{
  "version": "1.12.1",
  "generatedAt": "2026-12-03",
  "components": [
    {
      "name": "accordion",
      "type": "component",
      "description": "Vertically stacked, collapsible content sections",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/accordion/accordion.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/accordion/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/accordion/accordion.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/accordion/accordion.meta.ts"
      ],
      "fileHashes": {
        "accordion.tsx": "sha256-7a766e5cfd72d7ec01df415f0266907f4bc8e7fdebcdc5890ff32c8874249c09",
        "index.ts": "sha256-4e44786f6a7d08d54dcaad59e3c423ec89a6248852ddaa13e133cdbaa9e83cea",
        "accordion.module.css": "sha256-d559585cd5a3803d10319a19e7d62ccc0a4efc1a3d1ba569af28c9fdbd4f0a4c",
        "accordion.meta.ts": "sha256-06cb13f2c8af6b6accdacf81ab7b112bc4daaf143cbc8b32e36d5c3f6d349ac5"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["navigation", "collapse", "disclosure"],
      "meta": {
        "name": "Accordion",
        "description": "Vertically stacked, collapsible content sections",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-type": ["single", "multiple"]
            },
            "children": ["item"],
            "emit": "manual"
          },
          "parts": {
            "item": {
              "element": "details",
              "data": {
                "data-value": "string",
                "data-state": ["open", "closed"]
              },
              "children": ["trigger", "content"]
            },
            "trigger": {
              "element": "summary",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-controls"],
              "children": ["heading", "indicator"]
            },
            "heading": {
              "element": "h3",
              "children": ["$slot"]
            },
            "indicator": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "content": {
              "element": "div",
              "role": "region",
              "aria": ["aria-labelledby"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "type",
            "description": "Whether one or multiple sections can be open at once ('single' | 'multiple').",
            "type": "'single' | 'multiple'",
            "required": false,
            "default": "single"
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string | string[]",
            "required": false
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string | string[]",
            "required": false
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(value: string | string[]) => void",
            "required": false
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "AccordionItem elements"
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-radius-md",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"],
          "apgPattern": "accordion",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Single",
            "code": "<Accordion type=\"single\" defaultValue=\"a\"><AccordionItem value=\"a\"><AccordionTrigger>Section</AccordionTrigger><AccordionContent>…</AccordionContent></AccordionItem></Accordion>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["navigation", "collapse", "disclosure"],
        "intent": {
          "whenToUse": [
            "Progressively disclosing sections of related content the user reads top to bottom",
            "Reducing vertical scroll when most sections stay collapsed (FAQs, settings groups)",
            "Allowing multiple sections open at once (type=\"multiple\")"
          ],
          "whenNotToUse": [
            "Switching between mutually exclusive, equally important views — use Tabs",
            "A single show/hide region — a plain disclosure is enough"
          ],
          "antiPatterns": [
            {
              "bad": "<Accordion> with one item that is always open",
              "good": "Render the content directly, or use a collapsible disclosure",
              "why": "A single permanently-open section adds chrome and indirection for no gain"
            }
          ],
          "related": [
            {
              "name": "Tabs",
              "relationship": "alternative",
              "reason": "Tabs switch between peer views; Accordion stacks sequential sections vertically"
            }
          ],
          "a11yRationale": "Each item is a native <details> and each trigger its <summary>, so the button role, the expanded state, and Enter/Space activation all come from the platform rather than from ARIA — and the open panel renders before any JavaScript runs. The trigger wraps a heading so heading navigation still reaches each section, and each panel is a role=\"region\" labelled by its trigger",
          "flexibility": [
            {
              "area": "single vs multiple",
              "level": "flexible",
              "note": "type prop is free to choose based on whether sections are exclusive"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Borders, surfaces, and radii must resolve to --cascivo-* semantic tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "action-sheet",
      "type": "component",
      "description": "Bottom-rising sheet of discrete actions (iOS action-sheet pattern) with a Cancel button",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/action-sheet/action-sheet.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/action-sheet/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/action-sheet/action-sheet.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/action-sheet/action-sheet.meta.ts"
      ],
      "fileHashes": {
        "action-sheet.tsx": "sha256-a3f57f302cdf4c56ae3c9783ac9f7e12722c4f2a8c1db611b3982523d47d0836",
        "index.ts": "sha256-d2a01e0adc30a54e7fc09598fae38dc929844ab4bded5805cc6c5f5014c5f215",
        "action-sheet.module.css": "sha256-10fea60ac1fd26beca66f2e21e53f76e63d745b3667b4ecfac48fd54c4621bb1",
        "action-sheet.meta.ts": "sha256-179473d63c59ae6a8d1280148aee747139938183b43cedf3894629672217bfb0"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["overlay", "action-sheet", "menu", "mobile", "sheet"],
      "meta": {
        "name": "ActionSheet",
        "description": "Bottom-rising sheet of discrete actions (iOS action-sheet pattern) with a Cancel button",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "overlay",
            "children": ["sheet"]
          },
          "parts": {
            "sheet": {
              "element": "div",
              "role": "menu",
              "aria": ["aria-label", "aria-labelledby", "aria-describedby"],
              "children": ["group"]
            },
            "group": {
              "element": "div",
              "children": ["heading", "item"]
            },
            "heading": {
              "element": "div",
              "role": "presentation",
              "children": ["title", "description"]
            },
            "title": {
              "element": "p",
              "children": ["$slot"]
            },
            "description": {
              "element": "p",
              "children": ["$slot"]
            },
            "item": {
              "element": "button",
              "role": "menuitem",
              "data": {
                "data-destructive": "string"
              },
              "aria": ["aria-disabled"],
              "modifiers": {
                "cancel": "cancel button"
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "defaultOpen",
            "description": "Whether the component is open on first render (uncontrolled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onOpenChange",
            "description": "Called with the next open state when it changes.",
            "type": "(open: boolean) => void",
            "required": false
          },
          {
            "name": "actions",
            "type": "ActionSheetAction[]",
            "required": true,
            "description": "Choices, each with a label, onSelect, and optional destructive/disabled flags"
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "showCancel",
            "description": "When true, shows a cancel button below the actions.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ cancel?: string; label?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-destructive",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-text-muted",
          "--cascivo-radius-overlay",
          "--cascivo-shadow-overlay",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-z-overlay"
        ],
        "accessibility": {
          "role": "menu",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowUp", "ArrowDown", "Home", "End", "Enter", "Space", "Escape"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<ActionSheet\n  open={isOpen}\n  onOpenChange={setIsOpen}\n  title=\"Share photo\"\n  actions={[\n    { label: 'Copy link', onSelect: copyLink },\n    { label: 'Delete', onSelect: remove, destructive: true },\n  ]}\n/>"
          },
          {
            "title": "Without cancel button",
            "code": "<ActionSheet defaultOpen showCancel={false} actions={[{ label: \"Archive\", onSelect: archive }]} />",
            "description": "Escape and outside press still dismiss the sheet."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["overlay", "action-sheet", "menu", "mobile", "sheet"],
        "intent": {
          "whenToUse": [
            "A short list of discrete actions on a touch surface, rising from the bottom",
            "Confirming or choosing among a few operations (e.g. Share, Edit, Delete) on mobile",
            "A mobile-first alternative to an anchored dropdown menu when there is no trigger anchor"
          ],
          "whenNotToUse": [
            "A single yes/no confirmation — use AlertDialog",
            "A form or scrollable content — use BottomSheet or Sheet",
            "A menu anchored to a trigger on desktop — use Menu or Dropdown"
          ],
          "antiPatterns": [
            {
              "bad": "<ActionSheet actions={[{ label: \"OK\", onSelect }]} />",
              "good": "<AlertDialog title=\"Delete item?\" />",
              "why": "A one-action sheet is a confirmation; AlertDialog states the decision clearly"
            }
          ],
          "related": [
            {
              "name": "BottomSheet",
              "relationship": "alternative",
              "reason": "Use BottomSheet for rich/resizable content; ActionSheet is a fixed list of actions"
            },
            {
              "name": "Menu",
              "relationship": "alternative",
              "reason": "Use Menu for a trigger-anchored dropdown on pointer-first surfaces"
            }
          ],
          "a11yRationale": "Renders role=\"menu\" with role=\"menuitem\" buttons under vertical roving focus (Arrow keys, Home/End, wrapping). The title labels the menu via aria-labelledby (or a built-in label otherwise) and the description via aria-describedby. FocusScope traps and restores focus; DismissableLayer handles Escape and outside-pointer dismissal; a separate Cancel button provides an explicit non-destructive exit.",
          "flexibility": [
            {
              "area": "actions",
              "level": "flexible",
              "note": "Any number of actions; each may be destructive or disabled"
            },
            {
              "area": "open state",
              "level": "flexible",
              "note": "Controlled (open/onOpenChange) or uncontrolled (defaultOpen)"
            },
            {
              "area": "cancel",
              "level": "flexible",
              "note": "showCancel toggles the separate Cancel button (Escape/outside press still dismiss)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "ai-badge",
      "type": "component",
      "description": "Small \"AI\" marker for AI-generated content; with children it opens a toggletip explaining how AI was involved",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-badge/ai-badge.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-badge/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-badge/ai-badge.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-badge/ai-badge.meta.ts"
      ],
      "fileHashes": {
        "ai-badge.tsx": "sha256-6692ba227f10cae300cb43344ad2a710139a12a0f64a518fdd1216e849c8e01d",
        "index.ts": "sha256-00e0e862eaaee71016e22757a11a5998147b909c8f4974db4ebbaa1d2bcd598a",
        "ai-badge.module.css": "sha256-5f56fd77f9a97da6044916b8c032423084facc17335d574e57c4cb3a37fe0623",
        "ai-badge.meta.ts": "sha256-828d7d2314db1082d30bbafa904abf08965f9c241890f25a1490005ef8d88e52"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["AILabel", "AiSlug", "AISlug"],
      "tags": ["ai", "label", "badge", "provenance", "explainability", "generated"],
      "meta": {
        "name": "AiBadge",
        "description": "Small \"AI\" marker for AI-generated content; with children it opens a toggletip explaining how AI was involved",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "root",
            "children": ["badge", "revert"],
            "emit": "manual"
          },
          "parts": {
            "badge": {
              "element": "span",
              "children": ["$text"]
            },
            "revert": {
              "element": "button",
              "aria": ["aria-label"],
              "when": "edited && onRevert"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "The explanation shown in the toggletip — model, sources, confidence. Omit for a static marker.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "edited",
            "description": "The person has changed the AI’s output. The AI mark gives way to a revert button when `onRevert` is set, and to nothing otherwise — edited content is no longer AI-generated.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onRevert",
            "description": "Restores the AI version. Shown as an icon button (named by `labels.revert`) while `edited` is true.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n): `text` (the pill, \"AI\"), `explain` (appended to the trigger’s accessible name), `description` (what a screen reader hears for the static marker), `revert` (the revert button’s accessible name).",
            "type": "{ text?: string; explain?: string; description?: string; revert?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-ai",
          "--cascivo-color-ai-subtle",
          "--cascivo-color-ai-border",
          "--cascivo-color-text",
          "--cascivo-radius-indicator",
          "--cascivo-text-xs",
          "--cascivo-font-semibold"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space", "Escape"],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Edited, with revert",
            "code": "<AiBadge edited onRevert={() => {}} />"
          },
          {
            "title": "Static marker",
            "code": "<AiBadge />"
          },
          {
            "title": "With explanation",
            "code": "<AiBadge>This summary was generated by an AI model from the last 30 days of tickets. Check important details.</AiBadge>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["icon-button", "toggletip", "visually-hidden"],
        "tags": ["ai", "label", "badge", "provenance", "explainability", "generated"],
        "intent": {
          "whenToUse": [
            "Marking a field, card, table cell or message whose content an AI produced or suggested",
            "Giving readers an on-demand explanation of how AI was involved (model, sources, confidence)",
            "Offering a way back to the AI version after a person edits an AI-filled value (`edited` + `onRevert`)"
          ],
          "whenNotToUse": [
            "Reporting that generation is in progress — use AiStatus",
            "Generic status or category chips — use Badge or Tag"
          ],
          "antiPatterns": [
            {
              "bad": "A sparkle icon alone next to AI content",
              "good": "<AiBadge /> — visible \"AI\" text and an accessible description",
              "why": "An icon or gradient carries no meaning for assistive tech; the badge names the provenance"
            }
          ],
          "related": [
            {
              "name": "Toggletip",
              "relationship": "contains",
              "reason": "The explanation opens in a Toggletip anchored to the badge"
            },
            {
              "name": "Badge",
              "relationship": "alternative",
              "reason": "Badge is the general-purpose chip; AiBadge is reserved for AI provenance"
            },
            {
              "name": "AiStatus",
              "relationship": "pairs-with",
              "reason": "AiStatus reports work in progress; AiBadge marks the finished result"
            }
          ],
          "a11yRationale": "Provenance is carried by text, never by colour: the static marker shows \"AI\" and reads \"AI-generated\"; the interactive one is a button whose accessible name begins with its visible text (\"AI Show information\", WCAG 2.5.3), opening a Toggletip that is dismissable with Escape. The revert state is a real button with an accessible name (\"Revert to AI suggestion\"). Forced colours keep the border and text as CanvasText",
          "content": {
            "tone": "Plain and factual — say what the AI did and what the reader should check",
            "notes": "Keep the pill to \"AI\" (localised); put detail in the explanation"
          },
          "flexibility": [
            {
              "area": "explanation content",
              "level": "flexible",
              "note": "Any rich content — model name, sources, a link to learn more"
            },
            {
              "area": "pill text",
              "level": "strict",
              "note": "Keep it a short AI marker; do not reuse the badge for unrelated labels"
            }
          ]
        }
      },
      "registryDependencies": ["icon-button", "toggletip", "visually-hidden"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "ai-disclaimer",
      "type": "component",
      "description": "A short, quiet note that AI-generated content may be wrong — \"AI-generated content may be incorrect\"",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-disclaimer/ai-disclaimer.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-disclaimer/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-disclaimer/ai-disclaimer.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-disclaimer/ai-disclaimer.meta.ts"
      ],
      "fileHashes": {
        "ai-disclaimer.tsx": "sha256-35b7e0fe93b06af10cd114dcad803837eb273952ae31ce393f7a6d6adcafa825",
        "index.ts": "sha256-23d0a321828e8a9df91ab8fb6afbbe3328c015bd711335dced95ad79ae9da9a0",
        "ai-disclaimer.module.css": "sha256-e63038cf9e9e43bfd082c3f28331cc5e81499913f8983cc79266f29580b13292",
        "ai-disclaimer.meta.ts": "sha256-a50ae437494f50c186d12790565ad7ddb040d4153c15417c15a9afa603dad4e3"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["AiGeneratedDisclaimer", "AIDisclaimer"],
      "tags": ["ai", "disclaimer", "disclosure", "notice", "provenance", "generated"],
      "meta": {
        "name": "AiDisclaimer",
        "description": "A short, quiet note that AI-generated content may be wrong — \"AI-generated content may be incorrect\"",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "p",
            "local": "disclaimer",
            "children": ["glyph", "$slot"],
            "emit": "manual"
          },
          "parts": {
            "glyph": {
              "element": "svg",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "Replaces the default text — e.g. naming the model or what to double-check.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ text?: string }",
            "required": false
          }
        ],
        "tokens": ["--cascivo-color-text-muted", "--cascivo-color-ai", "--cascivo-text-xs"],
        "accessibility": {
          "role": "paragraph",
          "wcag": "2.2-AA",
          "keyboard": [],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Default",
            "code": "<AiDisclaimer />"
          },
          {
            "title": "Specific",
            "code": "<AiDisclaimer>Summaries are generated by AI. Check figures against the source report.</AiDisclaimer>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["ai", "disclaimer", "disclosure", "notice", "provenance", "generated"],
        "intent": {
          "whenToUse": [
            "Under an AI chat composer or answer, telling readers the output can be wrong",
            "Beside AI-generated summaries, drafts or suggestions that people may act on"
          ],
          "whenNotToUse": [
            "Marking a single field or card as AI-generated — use AiBadge",
            "Warnings the reader must act on — use Alert"
          ],
          "antiPatterns": [
            {
              "bad": "Repeating the disclaimer under every message in a conversation",
              "good": "Show it once, under the composer or at the end of the thread",
              "why": "Repeated boilerplate is skimmed past and stops being read"
            }
          ],
          "related": [
            {
              "name": "AiBadge",
              "relationship": "pairs-with",
              "reason": "AiBadge marks which content is AI-generated; the disclaimer says what that means"
            },
            {
              "name": "Alert",
              "relationship": "alternative",
              "reason": "Alert is for messages that need attention or action"
            }
          ],
          "a11yRationale": "A plain paragraph: read in document order, never a live region, because it is static guidance rather than a status change. The sparkle is aria-hidden; muted text keeps AA contrast on every theme",
          "content": {
            "tone": "Plain and specific — say what may be wrong and what to check",
            "notes": "One sentence; avoid legalese"
          },
          "flexibility": [
            {
              "area": "text",
              "level": "flexible",
              "note": "Replace via children or labels.text"
            },
            {
              "area": "placement",
              "level": "flexible",
              "note": "Typically under a composer or at the foot of AI content"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "ai-status",
      "type": "component",
      "description": "Announces what an AI is doing — thinking, generating, done, failed or stopped — with a shimmering label and an optional Stop button",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-status/ai-status.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-status/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-status/ai-status.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/ai-status/ai-status.meta.ts"
      ],
      "fileHashes": {
        "ai-status.tsx": "sha256-280f512a8b8e425406f531ac3dfaabb555575dccd1fdba82e44119db1c20c2a5",
        "index.ts": "sha256-59aebd45c1673809ee806320581975d8764674d13eababff5b3560f736e27d13",
        "ai-status.module.css": "sha256-72c17e42131067e024e266391245b276dea76dd74b8cab480cc1997bec01489e",
        "ai-status.meta.ts": "sha256-50696c30e020c18255b0ae101f52d1b48c699175da9436dd11ac48ce0fc2a600"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["ThinkingBar", "ThinkingIndicator", "AiLoader"],
      "tags": ["ai", "status", "loading", "thinking", "generating", "progress", "stop"],
      "meta": {
        "name": "AiStatus",
        "description": "Announces what an AI is doing — thinking, generating, done, failed or stopped — with a shimmering label and an optional Stop button",
        "category": "feedback",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "ai-status",
            "data": {
              "data-status": ["thinking", "generating", "complete", "error", "stopped"]
            },
            "children": ["glyph", "label", "stop"],
            "emit": "manual"
          },
          "parts": {
            "glyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "label": {
              "element": "span",
              "role": "status",
              "children": ["$slot"]
            },
            "stop": {
              "element": "button",
              "children": ["$text"],
              "when": "onStop"
            }
          }
        },
        "states": ["thinking", "generating", "complete", "error", "stopped"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "status",
            "description": "The phase: `thinking` (working, nothing produced yet), `generating` (output is streaming), `complete`, `error`, or `stopped` (the reader pressed Stop).",
            "type": "'thinking' | 'generating' | 'complete' | 'error' | 'stopped'",
            "required": true
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Replaces the default text for the current status, e.g. \"Searching 12 documents…\".",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ thinking?: string; generating?: string; complete?: string; error?: string; stopped?: string; stop?: string }",
            "required": false
          },
          {
            "name": "onStop",
            "description": "Called when the reader presses Stop. When set, a Stop button renders while the status is `thinking` or `generating`.",
            "type": "() => void",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-ai",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-success",
          "--cascivo-color-destructive",
          "--cascivo-duration-loop-slow"
        ],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Thinking",
            "code": "<AiStatus status=\"thinking\" />"
          },
          {
            "title": "Generating, with Stop",
            "code": "<AiStatus status=\"generating\" onStop={() => {}} />"
          },
          {
            "title": "Custom label",
            "code": "<AiStatus status=\"thinking\" label=\"Searching 12 documents…\" />"
          },
          {
            "title": "Complete",
            "code": "<AiStatus status=\"complete\" />"
          },
          {
            "title": "Error",
            "code": "<AiStatus status=\"error\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["button", "shimmer-text"],
        "tags": ["ai", "status", "loading", "thinking", "generating", "progress", "stop"],
        "intent": {
          "whenToUse": [
            "Telling the reader an AI request is in flight, and which phase it is in (thinking before output, generating while it streams)",
            "Offering a keyboard-reachable Stop while a response is being produced",
            "Reporting the terminal outcome of a generation — done, failed or stopped"
          ],
          "whenNotToUse": [
            "Non-AI async work such as saving a form — use InlineLoading",
            "Holding the place of a chat reply with no text — use TypingIndicator",
            "Determinate progress with a known percentage — use ProgressBar"
          ],
          "antiPatterns": [
            {
              "bad": "aria-live on the streaming response text",
              "good": "<AiStatus status={phase} /> beside the response, which renders silently",
              "why": "A live region on streaming text re-announces on every token; AiStatus announces each phase change once"
            },
            {
              "bad": "Showing AiStatus for a response that arrives in under a second",
              "good": "Delay mounting it ~1s so fast responses never flash a loader",
              "why": "A loader that blinks on and off reads as a glitch and makes a screen reader announce noise"
            }
          ],
          "related": [
            {
              "name": "ShimmerText",
              "relationship": "contains",
              "reason": "The in-progress label is rendered in ShimmerText"
            },
            {
              "name": "InlineLoading",
              "relationship": "alternative",
              "reason": "InlineLoading is the neutral, non-AI save/submit status"
            },
            {
              "name": "TypingIndicator",
              "relationship": "alternative",
              "reason": "TypingIndicator is the wordless placeholder inside a chat bubble"
            },
            {
              "name": "Reasoning",
              "relationship": "pairs-with",
              "reason": "Reasoning shows the model’s thinking while AiStatus reports the phase"
            }
          ],
          "a11yRationale": "The label lives in a role=\"status\" node holding one stable string per phase, so each phase change is announced once and token-level streaming never is. The glyph is aria-hidden and only it pulses (under prefers-reduced-motion: no-preference), so the label never drops below contrast. Stop is a real button outside the status node, so pressing it does not re-announce; forced colours render everything CanvasText",
          "content": {
            "tone": "Present progressive while working (\"Thinking…\", \"Searching the docs…\"), terse when done (\"Done\", \"Stopped\")",
            "notes": "Name the specific work when you can; keep it to one line"
          },
          "flexibility": [
            {
              "area": "label",
              "level": "flexible",
              "note": "Defaults per status come from the i18n catalog; override with label or the labels map"
            },
            {
              "area": "status semantics",
              "level": "strict",
              "note": "thinking/generating are in progress (sparkle + shimmer); complete/error/stopped are terminal — do not repurpose"
            }
          ]
        }
      },
      "registryDependencies": ["button", "shimmer-text"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "alert",
      "type": "component",
      "description": "Highlights a short, important message inline",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert/alert.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert/alert.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert/alert.meta.ts"
      ],
      "fileHashes": {
        "alert.tsx": "sha256-efa3d6322171fff06b4e410c3c79006dbf00dc3f7c8548f9b68ffeb899c39b07",
        "index.ts": "sha256-9dc074958383f841fd75ca7eb7c9172cbf7841de2e8a01b71699ec2360a3a8a1",
        "alert.module.css": "sha256-9a375ffec7f759af5edf0a2c067e84edcd77590bdf080ee71fb2381adde159b0",
        "alert.meta.ts": "sha256-30c99bbc77b9e3f6d6693ce1200e752d59d1823e7617b5d6a703d1f07ef6f15b"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["notification", "message", "feedback"],
      "meta": {
        "name": "Alert",
        "description": "Highlights a short, important message inline",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-variant": ["default", "info", "success", "warning", "destructive"]
            },
            "children": ["icon", "body", "dismiss"],
            "emit": "manual"
          },
          "parts": {
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"],
              "when": "icon"
            },
            "body": {
              "element": "div",
              "children": ["title", "content", "action"]
            },
            "title": {
              "element": "div",
              "children": ["$text"],
              "when": "title"
            },
            "content": {
              "element": "div",
              "children": ["$slot"],
              "when": "children"
            },
            "action": {
              "element": "button",
              "children": ["$text"],
              "when": "action"
            },
            "dismiss": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"],
              "when": "dismissible"
            }
          }
        },
        "states": [],
        "variants": ["default", "info", "success", "warning", "destructive"],
        "sizes": [],
        "props": [
          {
            "name": "variant",
            "description": "Severity tone: `default` (neutral), `info`, `success`, `warning` or `destructive`. Sets the icon and the accent colour. Unlike Badge/Tag/Notification this is a private union, not `ToneInput` — the canonical `danger`/`neutral` spellings are not accepted here.",
            "type": "'default' | 'info' | 'success' | 'warning' | 'destructive'",
            "required": false,
            "default": "default"
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": false
          },
          {
            "name": "icon",
            "description": "Icon element rendered in the component.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "dismissible",
            "description": "When true, shows a control to dismiss the component.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onDismiss",
            "description": "Called when the component is dismissed.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "action",
            "description": "Primary action shown in the component.",
            "type": "{ label: string; onClick: () => void }",
            "required": false
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Alert body content"
          }
        ],
        "tokens": [
          "--cascivo-color-info",
          "--cascivo-color-success",
          "--cascivo-color-warning",
          "--cascivo-color-destructive",
          "--cascivo-color-border",
          "--cascivo-radius-md"
        ],
        "accessibility": {
          "role": "alert",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Info",
            "code": "<Alert variant=\"info\" title=\"Heads up\">Your trial ends soon.</Alert>"
          },
          {
            "title": "Dismissible",
            "code": "<Alert variant=\"success\" dismissible title=\"Saved\">Changes saved.</Alert>"
          },
          {
            "title": "Actionable",
            "code": "<Alert variant=\"warning\" title=\"Update available\" action={{ label: 'Update now', onClick: update }}>A new version is ready.</Alert>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["notification", "message", "feedback"],
        "intent": {
          "whenToUse": [
            "Surfacing a persistent, contextual message inline within a view (warning, error, info, success)",
            "Communicating status that should stay visible until read or resolved",
            "Offering an inline recovery action tied to the message (action prop)"
          ],
          "whenNotToUse": [
            "Transient confirmation that should auto-dismiss — use Toast",
            "Blocking the user for a decision — use Modal or AlertDialog"
          ],
          "antiPatterns": [
            {
              "bad": "Auto-dismissing an Alert on a timer to mimic a notification",
              "good": "<Toast> for ephemeral feedback",
              "why": "Alerts persist by design; auto-hiding important inline context risks the user missing it"
            }
          ],
          "related": [
            {
              "name": "Toast",
              "relationship": "alternative",
              "reason": "Toast auto-dismisses and floats; Alert persists inline in the layout"
            },
            {
              "name": "AlertDialog",
              "relationship": "alternative",
              "reason": "Use AlertDialog when the message must block and demand a choice"
            }
          ],
          "a11yRationale": "role=\"alert\" makes assistive tech announce the message when it appears; the dismiss control is a real button so it is reachable and labeled, and color is paired with an icon/title so meaning is not conveyed by hue alone",
          "content": {
            "tone": "Direct and specific — state what happened and what to do next",
            "notes": "Title is a short summary; body explains. Avoid alarmist all-caps."
          },
          "flexibility": [
            {
              "area": "variant",
              "level": "flexible",
              "note": "Choose the severity variant that matches the message; default is neutral"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Severity colors must resolve to --cascivo-color-info/success/warning/destructive"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "alert-dialog",
      "type": "component",
      "description": "Confirmation dialog requiring explicit user action; no light-dismiss",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert-dialog/alert-dialog.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert-dialog/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert-dialog/alert-dialog.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/alert-dialog/alert-dialog.meta.ts"
      ],
      "fileHashes": {
        "alert-dialog.tsx": "sha256-9f7a887709fba51657f92685484b1a47955896568a752e068fcfe7d71812e97a",
        "index.ts": "sha256-16e70fe8a254ae23756f3bd5f19ca303f0e6bf543c6a95c36112a6fc9f11c2de",
        "alert-dialog.module.css": "sha256-ebb638f616939ac2cb7ca8743cbe215eec281c3db3fbacde490e61320b5a2935",
        "alert-dialog.meta.ts": "sha256-79ae5281ba27c1b3511985d27f05b7ca1efac7cece82b8ee4de401881b836782"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["ConfirmDialog", "Confirm", "confirm-dialog"],
      "tags": ["overlay", "dialog", "confirm", "destructive"],
      "meta": {
        "name": "AlertDialog",
        "description": "Confirmation dialog requiring explicit user action; no light-dismiss",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "dialog",
            "role": "alertdialog",
            "data": {
              "data-state": ["open", "closed"],
              "data-variant": ["default", "destructive"]
            },
            "aria": ["aria-modal", "aria-labelledby", "aria-describedby"],
            "children": ["content"]
          },
          "parts": {
            "content": {
              "element": "div",
              "children": ["title", "description", "actions"]
            },
            "title": {
              "element": "p",
              "children": ["$text"]
            },
            "description": {
              "element": "p",
              "children": ["$text"]
            },
            "actions": {
              "element": "div",
              "children": ["cancel", "confirm"]
            },
            "cancel": {
              "element": "button",
              "children": ["$text"]
            },
            "confirm": {
              "element": "button",
              "children": ["$text"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": ["default", "destructive"],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": true
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": true
          },
          {
            "name": "onConfirm",
            "description": "Called when the confirm button is activated.",
            "type": "() => void",
            "required": true
          },
          {
            "name": "onCancel",
            "description": "Called when the cancel button is activated.",
            "type": "() => void",
            "required": true
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "AlertDialogLabels",
            "required": false
          },
          {
            "name": "variant",
            "description": "`destructive` styles the confirm button as a danger action; `default` styles it as the primary action. Use `destructive` for anything that deletes.",
            "type": "'destructive' | 'default'",
            "required": false,
            "default": "default"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-lg",
          "--cascivo-shadow-xl",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-color-accent",
          "--cascivo-color-destructive"
        ],
        "accessibility": {
          "role": "alertdialog",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Shift+Tab", "Enter", "Space"]
        },
        "examples": [
          {
            "title": "Destructive confirm",
            "code": "<AlertDialog\n  open={isOpen}\n  variant=\"destructive\"\n  title=\"Delete project?\"\n  description=\"This permanently removes the project and cannot be undone.\"\n  onConfirm={remove}\n  onCancel={() => setIsOpen(false)}\n/>"
          },
          {
            "title": "Custom action labels",
            "code": "<AlertDialog\n  open={isOpen}\n  title=\"Sign out?\"\n  description=\"Unsaved changes will be lost.\"\n  labels={{ confirm: 'Sign out', cancel: 'Stay' }}\n  onConfirm={signOut}\n  onCancel={() => setIsOpen(false)}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["overlay", "dialog", "confirm", "destructive"],
        "intent": {
          "whenToUse": [
            "Confirming a destructive or irreversible action (delete, overwrite, sign out) before it happens",
            "Interrupting a flow to force an explicit decision the user must acknowledge"
          ],
          "whenNotToUse": [
            "Showing non-critical information or forms — use Modal, which supports light-dismiss and arbitrary content",
            "Confirming a low-stakes action where an undoable Toast is friendlier and less interruptive"
          ],
          "antiPatterns": [
            {
              "bad": "Using AlertDialog for a multi-field form or rich content",
              "good": "Use Modal for content; reserve AlertDialog for a title + description + confirm/cancel decision",
              "why": "AlertDialog only renders a title, description, and two action buttons, and is role=\"alertdialog\" with no light-dismiss — it is built to demand a yes/no answer, not host content"
            },
            {
              "bad": "Adding a backdrop/Escape close to dismiss the dialog without choosing",
              "why": "It uses popover=\"manual\" so it cannot be light-dismissed by design — closing must go through onConfirm/onCancel so the decision is always explicit"
            }
          ],
          "related": [
            {
              "name": "Modal",
              "relationship": "alternative",
              "reason": "Use for general dialogs with content and light-dismiss; AlertDialog is the must-acknowledge confirm"
            },
            {
              "name": "Toast",
              "relationship": "alternative",
              "reason": "Prefer an undoable Toast for reversible low-stakes actions instead of a blocking confirm"
            },
            {
              "name": "Button",
              "relationship": "pairs-with",
              "reason": "A Button typically triggers the action that opens the AlertDialog"
            }
          ],
          "a11yRationale": "Uses role=\"alertdialog\" with aria-modal and labelled/described-by wiring so assistive tech announces it as an interruptive decision; focus moves to the cancel button on open so the safe default is selected, and popover=\"manual\" prevents accidental dismissal that would skip the decision",
          "content": {
            "tone": "Direct and specific — name the exact consequence",
            "notes": "Title states the action (\"Delete project?\"); description states what is lost and whether it is reversible; confirm label is the verb (\"Delete\"), not \"OK\""
          },
          "flexibility": [
            {
              "area": "dismiss behavior",
              "level": "strict",
              "note": "No light-dismiss — closing must go through onConfirm/onCancel"
            },
            {
              "area": "action labels",
              "level": "flexible",
              "note": "confirm/cancel copy overridable via labels; defaults come from the i18n catalog"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Visual styling resolves to semantic --cascivo-color-* tokens; destructive variant uses --cascivo-color-destructive"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "app-shell",
      "type": "component",
      "description": "Sticky-header + full-height side-nav + single-scroll-container layout with an animated, accessible nav toggle.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/app-shell/app-shell.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/app-shell/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/app-shell/app-shell.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/app-shell/app-shell.meta.ts"
      ],
      "fileHashes": {
        "app-shell.tsx": "sha256-ac0b9d9738874858a23ba6714e54b59bd09161dbb5dd206d90fbfb330af0d95a",
        "index.ts": "sha256-62a878a63857df7eac4e7176389932ece54eca36fad54def65fcd6153ef8d22a",
        "app-shell.module.css": "sha256-0892b0033ef3e91d01840e2d5a4a99cd2898e5475704f82bc711ccf233d4b52c",
        "app-shell.meta.ts": "sha256-73b2fc8dac9c3c923aa779fa6c3bbc6d7c1a75b1db38dd2994b7391dd6460800"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["Layout", "Shell", "AppLayout"],
      "tags": ["shell", "layout", "sidebar", "navigation", "drawer", "responsive", "sticky"],
      "meta": {
        "name": "AppShell",
        "description": "Sticky-header + full-height side-nav + single-scroll-container layout with an animated, accessible nav toggle.",
        "category": "layout",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "shell",
            "data": {
              "data-open": ["true", "false"]
            },
            "children": ["header", "body", "footer"],
            "emit": "manual"
          },
          "parts": {
            "header": {
              "element": "div",
              "children": ["$slot"]
            },
            "body": {
              "element": "div",
              "children": ["navWrapper", "scrim", "main"]
            },
            "navWrapper": {
              "element": "div",
              "data": {
                "data-cascivo-appshell-nav": [""],
                "data-open": ["true", "false"]
              },
              "children": ["navInner"],
              "when": "nav"
            },
            "navInner": {
              "element": "div",
              "children": ["$slot"]
            },
            "scrim": {
              "element": "div",
              "data": {
                "data-open": ["true", "false"]
              },
              "aria": ["aria-hidden"],
              "when": "nav"
            },
            "main": {
              "element": "main",
              "data": {
                "data-cascivo-appshell-main": [""],
                "data-padding": "string"
              },
              "children": ["$slot"]
            },
            "footer": {
              "element": "div",
              "children": ["$slot"],
              "when": "footer"
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "header",
            "type": "ReactNode",
            "required": true,
            "description": "Top bar (typically a ShellHeader). If a React element, its onMenuClick/menuExpanded are bound to the nav toggle."
          },
          {
            "name": "nav",
            "type": "ReactNode",
            "required": false,
            "description": "Side navigation (typically a SideNav). Fills full height and scrolls internally."
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "Main content, rendered inside the single scroll container."
          },
          {
            "name": "footer",
            "type": "ReactNode",
            "required": false,
            "description": "Optional footer pinned below the content area."
          },
          {
            "name": "open",
            "type": "boolean",
            "required": false,
            "description": "Controlled nav open/visible state. Omit for uncontrolled."
          },
          {
            "name": "defaultOpen",
            "type": "boolean",
            "required": false,
            "description": "Initial open state when uncontrolled. Defaults open on desktop, closed on small screens."
          },
          {
            "name": "onOpenChange",
            "type": "(open: boolean) => void",
            "required": false,
            "description": "Fired when the nav requests open/close (burger, Escape, scrim)."
          },
          {
            "name": "padding",
            "type": "SpaceStep | 'none'",
            "required": false,
            "default": "6",
            "description": "Inset around the main content area, as a space-scale step. Defaults to 6 — `<main>` shipped unpadded for three releases and every adopter wrote the same wrapper div. Pass 'none' for a full-bleed layout that owns its own insets."
          }
        ],
        "tokens": [
          "--cascivo-shell-aside-inline-size",
          "--cascivo-shell-panel-inline-size",
          "--cascivo-motion-emphasis",
          "--cascivo-z-raised",
          "--cascivo-z-overlay",
          "--cascivo-color-foreground",
          "--cascivo-color-background"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": ["Escape"]
        },
        "examples": [
          {
            "title": "Header + SideNav + content",
            "code": "<AppShell\n  header={<ShellHeader brand={{ name: 'Acme' }} />}\n  nav={<SideNav items={items} />}\n>\n  <h1>Dashboard</h1>\n</AppShell>",
            "description": "The burger in ShellHeader toggles the SideNav automatically."
          },
          {
            "title": "Controlled open",
            "code": "const [open, setOpen] = useSignalState(false)\n\n<AppShell header={header} nav={nav} open={open.value} onOpenChange={setOpen}>\n  …\n</AppShell>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "styleHooks": ["data-cascivo-appshell-nav", "data-cascivo-appshell-main"],
        "tags": ["shell", "layout", "sidebar", "navigation", "drawer", "responsive", "sticky"],
        "intent": {
          "whenToUse": [
            "Building an application screen with a persistent header and side navigation",
            "You want the header burger to toggle the side nav with an animated, accessible show/hide out of the box",
            "You need one scroll container (the main area) with a fixed header and full-height nav"
          ],
          "whenNotToUse": [
            "Marketing/document pages where the whole page should scroll — use a plain Header instead",
            "A single, always-visible sidebar with no toggle — compose SideNav directly",
            "You need a persisted collapsible sidebar, a top progress bar, or a right aside — that is the richer copy-paste `layout/app-shell` (different props: `sideNav`/`aside`/`persistKey`/`state`), not this drop-in."
          ],
          "antiPatterns": [
            {
              "bad": "Animating the nav collapse with grid-template-columns: 1fr → 0fr on an auto-width sidebar",
              "good": "AppShell animates an explicit inline-size (desktop) / transform (mobile drawer)",
              "why": "fr units have no definite size to resolve against on a shrink-to-fit flex item, so the track never animates"
            }
          ],
          "related": [
            {
              "name": "layout/app-shell",
              "relationship": "alternative",
              "reason": "A richer, copy-paste-only app shell with a persisted collapsible sidebar, a signal-driven top progress bar, an error strip, and a right aside. Same `AppShell` name, different prop surface (`sideNav`/`aside`/`persistKey`/`state`). Choose this npm drop-in for a simple header + toggleable nav; choose layout/app-shell when you need persistence/progress/aside."
            },
            {
              "name": "ShellHeader",
              "relationship": "pairs-with",
              "reason": "Provides the top bar and burger AppShell binds to the nav"
            },
            {
              "name": "SideNav",
              "relationship": "pairs-with",
              "reason": "The side navigation AppShell lays out full-height"
            }
          ],
          "a11yRationale": "The hidden nav uses transform/inline-size + inert (never display:none alone), so it stays in the a11y tree and is keyboard-reachable when open while leaving the tab order when closed; Escape and a scrim close the mobile drawer and focus returns to the toggle.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "aspect-ratio",
      "type": "component",
      "description": "Constrains content to a fixed width-to-height ratio",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/aspect-ratio/aspect-ratio.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/aspect-ratio/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/aspect-ratio/aspect-ratio.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/aspect-ratio/aspect-ratio.meta.ts"
      ],
      "fileHashes": {
        "aspect-ratio.tsx": "sha256-759d67b119b4702e0b7141c17541195bab82d491941d88732832b3ac24668d80",
        "index.ts": "sha256-1c286f16b593809ebfb639f00287be1c2fac9a5fb960135532ca0ab66a969e9b",
        "aspect-ratio.module.css": "sha256-45fe567e8d1e3e8c98e15503cfecf46f488d2cee567d6ae8d87624a0abab47ea",
        "aspect-ratio.meta.ts": "sha256-6f9a3c0a25252b054a2a5d8a413c8785e66350ea3d3b947e9726f5d6c3a3b3dd"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "ratio", "image", "video", "responsive"],
      "meta": {
        "name": "AspectRatio",
        "description": "Constrains content to a fixed width-to-height ratio",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["inner"],
            "emit": "manual"
          },
          "parts": {
            "inner": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "ratio",
            "type": "number",
            "required": false,
            "default": "16 / 9",
            "description": "Width-to-height ratio applied via the CSS aspect-ratio property"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Content to fill the ratio box (typically an image, video, or iframe)"
          }
        ],
        "tokens": ["--cascivo-aspect-ratio"],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Image at 16:9",
            "code": "<AspectRatio ratio={16 / 9}>\n  <img src=\"/cover.jpg\" alt=\"Cover\" />\n</AspectRatio>"
          },
          {
            "title": "Square",
            "code": "<AspectRatio ratio={1}>\n  <img src=\"/avatar.jpg\" alt=\"Avatar\" />\n</AspectRatio>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "ratio", "image", "video", "responsive"],
        "intent": {
          "whenToUse": [
            "Reserving a stable box for media that loads asynchronously, avoiding layout shift",
            "Embedding responsive iframes (video, maps) at a known proportion",
            "Keeping thumbnails or covers uniform across a grid"
          ],
          "whenNotToUse": [
            "Content whose height should grow with text — let it size naturally",
            "A single fixed-pixel image where width and height are already known"
          ],
          "antiPatterns": [
            {
              "bad": "Wrapping text content that must expand to fit its lines",
              "good": "Reserve AspectRatio for media; let prose flow at its intrinsic height",
              "why": "A fixed ratio clips or distorts content that needs variable height"
            }
          ],
          "related": [
            {
              "name": "Card",
              "relationship": "contained-by",
              "reason": "Commonly holds a cover image inside a Card media region"
            }
          ],
          "a11yRationale": "Purely presentational wrapper with no role; the inner media element carries its own semantics and alt text",
          "flexibility": [
            {
              "area": "ratio",
              "level": "flexible",
              "note": "Any positive number; common values are 16/9, 4/3, 1, 3/2"
            },
            {
              "area": "child sizing",
              "level": "strict",
              "note": "The single child is stretched to fill; provide one media element"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "avatar",
      "type": "component",
      "description": "Displays a user image with initials fallback",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar/avatar.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar/avatar.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar/avatar.meta.ts"
      ],
      "fileHashes": {
        "avatar.tsx": "sha256-4793fe171b0dfc31d94387042247962207d2861a9689e53fb9b775fc34bdd7c3",
        "index.ts": "sha256-07b005dc23656b8d6ba76e82208220c256250de7c03fa68a511cc3990c817862",
        "avatar.module.css": "sha256-e0f5b3e477d8a6b541293d9966e530c235ddb3df57fabf55955c17f62847d13f",
        "avatar.meta.ts": "sha256-e91d21ea1c59866b6f27672ac0a273e6df0ac4ad9516aad728d26c1b38a2f8cf"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["user", "profile", "image"],
      "meta": {
        "name": "Avatar",
        "description": "Displays a user image with initials fallback",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "data": {
              "data-size": ["xs", "sm", "md", "lg", "xl"],
              "data-status": ["online", "offline", "busy"]
            },
            "aria": ["aria-label"],
            "role": "img",
            "children": ["image", "fallback", "status"],
            "emit": "manual"
          },
          "parts": {
            "image": {
              "element": "img",
              "when": "src"
            },
            "fallback": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"],
              "when": "!src"
            },
            "status": {
              "element": "span",
              "aria": ["aria-hidden"],
              "when": "status"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": ["xs", "sm", "md", "lg", "xl"],
        "props": [
          {
            "name": "src",
            "description": "Image source URL.",
            "type": "string",
            "required": false
          },
          {
            "name": "alt",
            "default": "",
            "description": "Alternative text describing the image.",
            "type": "string",
            "required": false
          },
          {
            "name": "name",
            "type": "string",
            "required": false,
            "description": "Full name — used to derive initials for the fallback and as the accessible label."
          },
          {
            "name": "fallback",
            "type": "string",
            "required": false,
            "description": "Explicit fallback text (initials/glyph); overrides initials derived from name."
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
            "required": false,
            "default": "md"
          },
          {
            "name": "status",
            "description": "Status state.",
            "type": "'online' | 'offline' | 'busy'",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-subtle",
          "--cascivo-color-success",
          "--cascivo-color-destructive",
          "--cascivo-radius-full"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Image",
            "code": "<Avatar src=\"/jane.jpg\" alt=\"Jane Doe\" />"
          },
          {
            "title": "Initials from name",
            "code": "<Avatar name=\"Ada Lovelace\" /> // renders \"AL\"",
            "description": "Derives initials automatically; also sets the accessible label."
          },
          {
            "title": "Explicit fallback",
            "code": "<Avatar fallback=\"JD\" alt=\"Jane Doe\" />"
          },
          {
            "title": "With status",
            "code": "<Avatar name=\"Jane Doe\" status=\"online\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["user", "profile", "image"],
        "intent": {
          "whenToUse": [
            "Representing a person or entity with a thumbnail image and initials fallback",
            "Showing presence/status alongside an identity (status prop)",
            "Compactly identifying authors in lists, comments, and headers"
          ],
          "whenNotToUse": [
            "Decorative imagery unrelated to identity — use a plain <img>",
            "A generic icon or logo with no person/entity meaning"
          ],
          "antiPatterns": [
            {
              "bad": "<Avatar src=\"/logo.png\" /> with no alt and no fallback",
              "good": "<Avatar src=\"/jane.jpg\" alt=\"Jane Doe\" fallback=\"JD\" />",
              "why": "Without alt/fallback the identity is invisible to assistive tech and breaks on image load failure"
            }
          ],
          "related": [
            {
              "name": "Status",
              "relationship": "alternative",
              "reason": "Use Status for a standalone state dot not attached to an identity"
            }
          ],
          "a11yRationale": "role=\"img\" with alt names the person; on image error it falls back to initials so the identity survives; the status dot carries an accessible label rather than relying on color alone",
          "flexibility": [
            {
              "area": "size",
              "level": "flexible",
              "note": "Pick the size that fits the surrounding density"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Fallback and status colors must resolve to --cascivo-* semantic tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "avatar-group",
      "type": "component",
      "description": "Overlapping stack of avatars with a max cap and an i18n-labelled +N overflow chip",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar-group/avatar-group.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar-group/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar-group/avatar-group.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/avatar-group/avatar-group.meta.ts"
      ],
      "fileHashes": {
        "avatar-group.tsx": "sha256-9f37862c28bf567516492685881d8288302ccb23f2f3e59e0854f4a3876fb822",
        "index.ts": "sha256-860e0752b38c410c3d6647a864bf1e602b41159be1b7c369bf91416815913855",
        "avatar-group.module.css": "sha256-6a3367c2fa054dc6d0ff0ca768f0162a5c9f4de52f539c0d3f4090c39924c810",
        "avatar-group.meta.ts": "sha256-d928de123dfae94e7f6247fcfefd2bbc4dc2efbca25f9aa99fbe06dfdf4f5416"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["AvatarStack", "AvatarPile"],
      "tags": ["avatar", "group", "stack", "overflow", "display"],
      "meta": {
        "name": "AvatarGroup",
        "description": "Overlapping stack of avatars with a max cap and an i18n-labelled +N overflow chip",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "group",
            "role": "group",
            "data": {
              "data-spacing": ["sm", "md", "lg"],
              "data-grid": [""]
            },
            "children": ["$slot", "overflow"],
            "emit": "manual"
          },
          "parts": {
            "overflow": {
              "element": "div",
              "aria": ["aria-label"],
              "children": ["@avatar"],
              "when": "max"
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "max",
            "type": "number",
            "required": false,
            "description": "Cap the number of visible avatars"
          },
          {
            "name": "total",
            "type": "number",
            "required": false,
            "description": "Override the total count used for the +N chip"
          },
          {
            "name": "spacing",
            "description": "Spacing between items.",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "isGrid",
            "description": "When true, lays the avatars out in a grid instead of an overlapping stack.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "AvatarGroupLabels",
            "required": false
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Avatar elements to stack"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-text-muted",
          "--cascivo-space-2",
          "--cascivo-text-xs"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<AvatarGroup><Avatar fallback=\"A\" /><Avatar fallback=\"B\" /><Avatar fallback=\"C\" /></AvatarGroup>"
          },
          {
            "title": "With max",
            "code": "<AvatarGroup max={3}>{users.map((u) => <Avatar key={u.id} src={u.src} alt={u.name} />)}</AvatarGroup>"
          },
          {
            "title": "Grid",
            "code": "<AvatarGroup isGrid max={8}>{avatars}</AvatarGroup>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["avatar"],
        "tags": ["avatar", "group", "stack", "overflow", "display"],
        "intent": {
          "whenToUse": [
            "Showing several people compactly as an overlapping stack (collaborators, attendees, reviewers)",
            "Capping a long list of avatars with a +N overflow chip",
            "A facepile in a card header, table cell, or activity row"
          ],
          "whenNotToUse": [
            "A single identity with a name — use User or Avatar",
            "A selectable list of people — use a list/menu with checkboxes"
          ],
          "antiPatterns": [
            {
              "bad": "<AvatarGroup>{hundredsOfAvatars}</AvatarGroup> with no max",
              "good": "<AvatarGroup max={5} total={120}>{avatars}</AvatarGroup>",
              "why": "Without a max the row grows unbounded; a cap plus total keeps it compact and accurate"
            }
          ],
          "related": [
            {
              "name": "Avatar",
              "relationship": "contains",
              "reason": "AvatarGroup arranges Avatar children and adds an overflow chip"
            },
            {
              "name": "User",
              "relationship": "alternative",
              "reason": "Use User for a single labelled identity row"
            }
          ],
          "a11yRationale": "The stack is a labelled group; the +N chip carries an i18n-defaulted aria-label (\"{count} more\") so the hidden count is announced, not conveyed by the chip text alone",
          "flexibility": [
            {
              "area": "spacing",
              "level": "flexible",
              "note": "Pick the overlap that fits the surrounding density"
            },
            {
              "area": "overflow label",
              "level": "strict",
              "note": "The +N label must come from i18n (builtin.avatarGroup.more or a labels override)"
            }
          ]
        }
      },
      "registryDependencies": ["avatar"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "badge",
      "type": "component",
      "description": "Small status label or category indicator",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/badge/badge.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/badge/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/badge/badge.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/badge/badge.meta.ts"
      ],
      "fileHashes": {
        "badge.tsx": "sha256-ff710455d38c01f10b237958eb84eaddf2ac1403daab4fcf9079f5974c3db180",
        "index.ts": "sha256-99f606cb9765238a88c7adcff6c4dd017be53641d16d394da96fcf9196be2e8b",
        "badge.module.css": "sha256-bb304c5e6e2464f9e80255b587281b5b654bc9020c9dfa6e77d189afd6cef1e0",
        "badge.meta.ts": "sha256-add7d23f1825125a1b791e9e5c82454e2385f9579901e4a861674183fde82163"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["label", "status", "tag"],
      "meta": {
        "name": "Badge",
        "description": "Small status label or category indicator",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "data": {
              "data-variant": [
                "default",
                "secondary",
                "success",
                "warning",
                "destructive",
                "outline",
                "info",
                "primary"
              ],
              "data-size": ["sm", "md"]
            },
            "children": ["$slot"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [
          "default",
          "secondary",
          "success",
          "warning",
          "destructive",
          "outline",
          "info",
          "primary"
        ],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "variant",
            "description": "Severity tone. Accepts the catalog-wide `Tone` vocabulary (`neutral | info | success | warning | danger`) plus Badge's historical spellings (`default` → neutral, `error`/`destructive` → danger), and two values that carry no tone at all: `secondary` (muted fill) and `outline` (border only).",
            "type": "'default' | 'secondary' | 'success' | 'warning' | 'destructive' | 'outline' | 'info' | 'primary'",
            "required": false,
            "default": "default"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Badge label"
          }
        ],
        "tokens": [
          "--cascivo-font-sans",
          "--cascivo-font-medium",
          "--cascivo-radius-badge",
          "--cascivo-space-1",
          "--cascivo-space-2",
          "--cascivo-space-3",
          "--cascivo-text-xs",
          "--cascivo-leading-normal",
          "--cascivo-color-accent",
          "--cascivo-color-text-on-accent",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-success-subtle",
          "--cascivo-color-success-foreground",
          "--cascivo-color-warning-subtle",
          "--cascivo-color-warning-foreground",
          "--cascivo-color-destructive-subtle",
          "--cascivo-color-destructive-foreground",
          "--cascivo-color-primary",
          "--cascivo-color-primary-content",
          "--cascivo-color-info",
          "--cascivo-color-info-content",
          "--cascivo-color-error",
          "--cascivo-color-error-content"
        ],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": [],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Badge>New</Badge>"
          },
          {
            "title": "Success",
            "code": "<Badge variant=\"success\">Active</Badge>"
          },
          {
            "title": "Destructive",
            "code": "<Badge variant=\"destructive\">Deprecated</Badge>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["label", "status", "tag"],
        "intent": {
          "whenToUse": [
            "Labeling an item with a short, static status or category (e.g. \"New\", \"Beta\")",
            "Annotating an element with a count or state that is not interactive"
          ],
          "whenNotToUse": [
            "A removable or interactive chip (filters, selections) — use Tag",
            "A standalone system state with a colored dot — use Status"
          ],
          "antiPatterns": [
            {
              "bad": "<Badge onClick={removeFilter}>Active</Badge>",
              "good": "<Tag onDismiss={removeFilter}>Active</Tag>",
              "why": "Badge is a non-interactive label; interactive/removable labels belong to Tag with proper button semantics"
            }
          ],
          "related": [
            {
              "name": "Tag",
              "relationship": "alternative",
              "reason": "Tag is the interactive, dismissible counterpart"
            },
            {
              "name": "Status",
              "relationship": "alternative",
              "reason": "Status pairs a colored dot with a label for live system state"
            }
          ],
          "a11yRationale": "role=\"status\" lets assistive tech expose the label as state; meaning is reinforced by text, never by color alone",
          "flexibility": [
            {
              "area": "variant",
              "level": "flexible",
              "note": "Choose the variant that matches the semantic meaning"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Colors and radius must resolve to --cascivo-* tokens (--cascivo-radius-badge)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "blockquote",
      "type": "component",
      "description": "Quoted passage with optional attribution footer",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blockquote/blockquote.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blockquote/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blockquote/blockquote.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blockquote/blockquote.meta.ts"
      ],
      "fileHashes": {
        "blockquote.tsx": "sha256-bb95f2d7b170b0777c2ab28a72157060e33b4d1ec61c55de293cd3cb7f8634b9",
        "index.ts": "sha256-3205191e66d8e5bfe52a1abb153bf7c6f208b72e59f802ac098da8f11eb92a58",
        "blockquote.module.css": "sha256-2d67d6719167f6bed6857a2be2ea7041d70b29e0124c7e1d536a16ac9d956bfb",
        "blockquote.meta.ts": "sha256-1848645bc3a1f88a83a66c4382f7967ca1d7b4404e2670f3d1125a28eb913a00"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["typography", "quote", "blockquote", "citation"],
      "meta": {
        "name": "Blockquote",
        "description": "Quoted passage with optional attribution footer",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "blockquote",
            "children": ["$slot", "footer"],
            "emit": "manual"
          },
          "parts": {
            "footer": {
              "element": "footer",
              "children": ["$text"],
              "when": "cite"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "cite",
            "description": "URL of the quote’s source (sets the HTML cite attribute).",
            "type": "string",
            "required": false,
            "default": "undefined"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "The quoted content"
          }
        ],
        "tokens": [
          "--cascivo-color-border-strong",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-font-sans",
          "--cascivo-font-medium",
          "--cascivo-leading-relaxed",
          "--cascivo-text-sm",
          "--cascivo-text-base"
        ],
        "accessibility": {
          "role": "blockquote",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Blockquote>Less, but better.</Blockquote>"
          },
          {
            "title": "With attribution",
            "code": "<Blockquote cite=\"Dieter Rams\">Less, but better.</Blockquote>",
            "description": "Attribution renders as <footer><cite>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["typography", "quote", "blockquote", "citation"],
        "intent": {
          "whenToUse": [
            "Setting off a quoted passage from another source with visual emphasis",
            "Attributing a quote to a person or work via the cite footer"
          ],
          "whenNotToUse": [
            "Indenting or emphasizing your own non-quoted text — use Text styling",
            "Inline quotations within a sentence — use a <q> element"
          ],
          "antiPatterns": [
            {
              "bad": "Using <Blockquote> purely to indent a callout",
              "good": "A Card or styled Text block for non-quote emphasis",
              "why": "blockquote semantics tell assistive tech the content is a quotation; misusing it misleads readers"
            }
          ],
          "related": [
            {
              "name": "Prose",
              "relationship": "pairs-with",
              "reason": "Prose styles blockquotes among other long-form elements automatically"
            }
          ],
          "a11yRationale": "Renders a native <blockquote> with the attribution in <footer><cite>, so the quotation and its source are semantically distinct to assistive tech",
          "content": {
            "contentPrimitive": true,
            "tone": "Verbatim quotation; do not paraphrase inside the quote",
            "notes": "cite names the author or work, not a URL label"
          },
          "flexibility": [
            {
              "area": "attribution",
              "level": "flexible",
              "note": "cite is optional; omit when the source is given in surrounding context"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Border and text colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "bottom-sheet",
      "type": "component",
      "description": "Mobile bottom sheet with drag-to-resize detents, velocity-projected snapping, and drag-to-dismiss",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/bottom-sheet/bottom-sheet.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/bottom-sheet/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/bottom-sheet/bottom-sheet.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/bottom-sheet/bottom-sheet.meta.ts"
      ],
      "fileHashes": {
        "bottom-sheet.tsx": "sha256-0ac207aede2881c8b9c77e0c7e534ad286b84ab06ca6e21d71bf7ad6a78381d8",
        "index.ts": "sha256-2f43a3d5fb5c1636ec715e22d6f5287a278752a683f595d124defe3a4b4b04cc",
        "bottom-sheet.module.css": "sha256-4e8f886dd70fa89cf89a69e16601ad8c3c9bd73dc176a8fbbda8c7d755b86d59",
        "bottom-sheet.meta.ts": "sha256-44f90b8b96931b4ed538dda5d0d31cd08bfdc0e0d1b88dbb1d1526ce089ad702"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["overlay", "sheet", "bottom-sheet", "mobile", "drag", "detent", "gesture"],
      "meta": {
        "name": "BottomSheet",
        "description": "Mobile bottom sheet with drag-to-resize detents, velocity-projected snapping, and drag-to-dismiss",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "overlay",
            "children": ["panel"]
          },
          "parts": {
            "panel": {
              "element": "div",
              "role": "dialog",
              "data": {
                "data-dragging": "string"
              },
              "aria": ["aria-modal", "aria-labelledby", "aria-describedby"],
              "children": ["header", "body"]
            },
            "header": {
              "element": "div",
              "children": ["handle", "heading", "close"]
            },
            "handle": {
              "element": "div",
              "role": "separator",
              "aria": ["aria-label", "aria-orientation"]
            },
            "heading": {
              "element": "div",
              "children": ["title", "description"]
            },
            "title": {
              "element": "h2",
              "children": ["$slot"]
            },
            "description": {
              "element": "p",
              "children": ["$slot"]
            },
            "close": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["closeIcon"]
            },
            "closeIcon": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "body": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed", "dragging"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "defaultOpen",
            "description": "Whether the component is open on first render (uncontrolled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onOpenChange",
            "description": "Called with the next open state when it changes.",
            "type": "(open: boolean) => void",
            "required": false
          },
          {
            "name": "snapPoints",
            "type": "number[]",
            "required": false,
            "default": "[0.5, 0.92]",
            "description": "Detent heights as ascending fractions of the viewport (0–1)"
          },
          {
            "name": "activeSnap",
            "description": "The controlled snap-point index.",
            "type": "number",
            "required": false
          },
          {
            "name": "defaultSnap",
            "description": "The initial snap-point index when uncontrolled.",
            "type": "number",
            "required": false,
            "default": "0"
          },
          {
            "name": "onSnapChange",
            "description": "Called with the new snap-point index when it changes.",
            "type": "(index: number) => void",
            "required": false
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ close?: string; handle?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-overlay",
          "--cascivo-shadow-overlay",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-target-min-coarse",
          "--cascivo-z-overlay"
        ],
        "accessibility": {
          "role": "dialog",
          "wcag": "2.2-AA",
          "keyboard": ["Escape", "Tab", "Shift+Tab"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<BottomSheet open={isOpen} onOpenChange={setIsOpen} title=\"Filters\">\n  <FilterForm />\n</BottomSheet>"
          },
          {
            "title": "Custom detents",
            "code": "<BottomSheet defaultOpen snapPoints={[0.25, 0.5, 0.9]} defaultSnap={1} title=\"Nearby\">\n  <PlacesList />\n</BottomSheet>",
            "description": "Snaps between three detents by dragging the handle; opens at half height."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["overlay", "sheet", "bottom-sheet", "mobile", "drag", "detent", "gesture"],
        "intent": {
          "whenToUse": [
            "A mobile surface that rises from the bottom and can be resized between detents by dragging",
            "Showing secondary content, filters, or a form where the user can peek at half height then expand",
            "A touch-first overlay that dismisses by flinging or dragging it down past the lowest detent"
          ],
          "whenNotToUse": [
            "A short yes/no confirmation — use AlertDialog",
            "A non-resizable edge panel without gestures — use Drawer or Sheet",
            "A desktop-first side panel for navigation — use Drawer"
          ],
          "antiPatterns": [
            {
              "bad": "<BottomSheet title=\"Delete item?\">Are you sure?</BottomSheet>",
              "good": "<AlertDialog title=\"Delete item?\" />",
              "why": "A resizable gesture surface is overkill for a focused yes/no decision"
            }
          ],
          "related": [
            {
              "name": "Sheet",
              "relationship": "alternative",
              "reason": "Use Sheet for a fixed-height panel from any edge; BottomSheet adds resize detents"
            },
            {
              "name": "Drawer",
              "relationship": "alternative",
              "reason": "Use Drawer for a plain edge dialog without resize detents"
            }
          ],
          "a11yRationale": "Renders role=\"dialog\" with aria-modal; the title labels it via aria-labelledby and the description via aria-describedby. FocusScope traps Tab focus and restores it on close; DismissableLayer handles Escape and outside-pointer dismissal. The grab handle is a labelled separator and a Close button gives a non-gesture dismissal path so the sheet stays keyboard-operable.",
          "flexibility": [
            {
              "area": "snapPoints",
              "level": "flexible",
              "note": "Any ascending list of viewport fractions; the sheet snaps between them"
            },
            {
              "area": "open state",
              "level": "flexible",
              "note": "Controlled (open/onOpenChange) or uncontrolled (defaultOpen)"
            },
            {
              "area": "active detent",
              "level": "flexible",
              "note": "Controlled (activeSnap/onSnapChange) or uncontrolled (defaultSnap)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "breadcrumb",
      "type": "component",
      "description": "Shows the current page location within a navigation hierarchy",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/breadcrumb/breadcrumb.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/breadcrumb/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/breadcrumb/breadcrumb.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/breadcrumb/breadcrumb.meta.ts"
      ],
      "fileHashes": {
        "breadcrumb.tsx": "sha256-a2609ca47476e5e6ef9d4d48bfe3e891c11408e3c3980c28283ae4898be7b0a0",
        "index.ts": "sha256-9dd930cf8c9cc0b75ccb7c17d47ea90d02ef39b84235ac5b9364093b88d46524",
        "breadcrumb.module.css": "sha256-f75bb68385f2664591666d0cfa8017ce32440ffb9bef2e9d42ef5f512d46637d",
        "breadcrumb.meta.ts": "sha256-09c7310ad45329d0aaacbfc71a7aa60fe0a05a8acd329ccdd6191c01b56f6fd6"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["breadcrumb", "navigation", "hierarchy"],
      "meta": {
        "name": "Breadcrumb",
        "description": "Shows the current page location within a navigation hierarchy",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "nav",
            "aria": ["aria-label"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "description": "The items to render.",
            "type": "{ label: string; href?: string }[]",
            "required": true
          },
          {
            "name": "maxVisible",
            "type": "number",
            "required": false,
            "description": "When items exceed this count, collapse to the first item, an ellipsis, and the trailing items"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Accessible label for the component.",
            "type": "string",
            "required": false,
            "default": "Breadcrumb"
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-text-subtle",
          "--cascivo-radius-sm",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "navigation",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Breadcrumb items={[{ label: 'Home', href: '/' }, { label: 'Docs', href: '/docs' }, { label: 'Breadcrumb' }]} />"
          },
          {
            "title": "Collapsed",
            "code": "<Breadcrumb maxVisible={3} items={[{ label: 'Home', href: '/' }, { label: 'Docs', href: '/docs' }, { label: 'Components', href: '/docs/components' }, { label: 'Breadcrumb' }]} />",
            "description": "Long trails collapse to the first item, an ellipsis, and the trailing items."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["breadcrumb", "navigation", "hierarchy"],
        "intent": {
          "whenToUse": [
            "Showing the user where the current page sits in a navigation hierarchy",
            "Providing one-click navigation back to ancestor pages",
            "Collapsing deep trails to keep the trail compact (maxVisible)"
          ],
          "whenNotToUse": [
            "Paging through data records — use Pagination",
            "Switching between sibling views — use Tabs"
          ],
          "antiPatterns": [
            {
              "bad": "Using Breadcrumb to step through pages 1, 2, 3 of a dataset",
              "good": "<Pagination> for paged data",
              "why": "Breadcrumb models hierarchy depth, not sequential position in a list"
            }
          ],
          "related": [
            {
              "name": "Pagination",
              "relationship": "alternative",
              "reason": "Pagination moves through data pages; Breadcrumb moves up a hierarchy"
            }
          ],
          "a11yRationale": "Wrapped in <nav> with an aria-label and the current page marked aria-current=\"page\"; ancestor entries are real links so keyboard users can jump up the hierarchy",
          "content": {
            "tone": "Short labels matching page titles",
            "notes": "The last item is the current page and is not a link"
          },
          "flexibility": [
            {
              "area": "maxVisible",
              "level": "flexible",
              "note": "Collapse long trails to fit available width"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Text colors and focus ring must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "button",
      "type": "component",
      "description": "Triggers an action or event",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button/button.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button/button.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button/button.meta.ts"
      ],
      "fileHashes": {
        "button.tsx": "sha256-b030a070e63464a0c099f418b240f579484974e48bdc0dc3ff35fc7d4f47f2e7",
        "index.ts": "sha256-7979b137663ece5f57327ba1c8f891ed0d3882d1da13d9424d6d8bfdc1d1aeaf",
        "button.module.css": "sha256-77bf1cb5537e72e4f36f0ee5add12c8437a9db73cec2ad725ebf2b809c6976ee",
        "button.meta.ts": "sha256-b659290e186a4be7ceeb8e664232ff5d8b8e5a04b6c855a8e71f7db0e3350ea2"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["action", "form", "interactive"],
      "meta": {
        "name": "Button",
        "description": "Triggers an action or event",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["button", "a"],
            "data": {
              "data-variant": ["primary", "secondary", "ghost", "destructive"],
              "data-size": ["sm", "md", "lg"],
              "data-state": ["idle", "loading"]
            },
            "aria": ["aria-busy"],
            "children": ["@spinner", "label"],
            "emit": "auto"
          },
          "parts": {
            "label": {
              "element": "span",
              "children": ["$slot"],
              "when": "!asChild"
            }
          }
        },
        "states": ["idle", "loading"],
        "variants": ["primary", "secondary", "ghost", "destructive"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "variant",
            "description": "`primary` for the main action, `secondary` for a supporting one, `ghost` for a borderless action in dense UI, `destructive` for anything that deletes.",
            "type": "'primary' | 'secondary' | 'ghost' | 'destructive'",
            "required": false,
            "default": "primary"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "loading",
            "description": "When true, shows a loading state.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "asChild",
            "description": "When true, renders the child element as the root via Slot, merging props (polymorphic rendering).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onClick",
            "description": "Called when the element is clicked.",
            "type": "React.MouseEventHandler<HTMLButtonElement>",
            "required": false
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Button label"
          }
        ],
        "tokens": [
          "--cascivo-button-primary-bg",
          "--cascivo-button-primary-bg-hover",
          "--cascivo-button-primary-bg-active",
          "--cascivo-button-secondary-bg",
          "--cascivo-button-secondary-bg-hover",
          "--cascivo-button-ghost-bg",
          "--cascivo-button-ghost-bg-hover",
          "--cascivo-button-destructive-bg",
          "--cascivo-button-destructive-bg-hover",
          "--cascivo-button-radius",
          "--cascivo-color-accent",
          "--cascivo-color-accent-hover",
          "--cascivo-color-accent-active",
          "--cascivo-color-text-on-accent",
          "--cascivo-color-destructive",
          "--cascivo-radius-button",
          "--cascivo-focus-ring",
          "--cascivo-disabled-opacity",
          "--cascivo-text-ui",
          "--cascivo-text-body"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"],
          "apgPattern": "button",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Primary",
            "code": "<Button>Click me</Button>"
          },
          {
            "title": "Loading",
            "code": "<Button loading>Saving…</Button>"
          },
          {
            "title": "Destructive",
            "code": "<Button variant=\"destructive\">Delete</Button>"
          },
          {
            "title": "As link",
            "code": "<Button asChild><a href=\"/pricing\">View pricing</a></Button>",
            "description": "Render button styling on a real anchor (keeps middle-click / open-in-new-tab)."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["spinner"],
        "tags": ["action", "form", "interactive"],
        "intent": {
          "whenToUse": [
            "Triggering an action or navigation the user initiates by click/press",
            "Submitting a form or confirming a decision"
          ],
          "whenNotToUse": [
            "Navigation between pages where a real link is semantically correct — use an anchor",
            "Toggling a binary setting — use Toggle; persistent selection — use Checkbox/Radio"
          ],
          "antiPatterns": [
            {
              "bad": "<Button onClick={() => navigate(\"/x\")}>Home</Button>",
              "good": "<a href=\"/x\">Home</a>",
              "why": "Buttons are for actions, links for navigation — assistive tech and the browser treat them differently"
            }
          ],
          "related": [
            {
              "name": "Toggle",
              "relationship": "alternative",
              "reason": "Use for binary on/off state, not one-shot actions"
            },
            {
              "name": "Dropdown",
              "relationship": "pairs-with",
              "reason": "A button often triggers a menu"
            }
          ],
          "a11yRationale": "Renders a native <button> so Enter/Space activation, focus, and role come from the platform; loading state uses aria-busy rather than removing the element so focus is preserved",
          "content": {
            "tone": "Imperative verb-first label",
            "notes": "Sentence case, ≤3 words; avoid \"Click here\""
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Visual props must resolve to --cascivo-button-* / semantic tokens"
            },
            {
              "area": "label copy",
              "level": "flexible",
              "note": "Free, within tone guidance"
            }
          ]
        }
      },
      "registryDependencies": ["spinner"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "button-group",
      "type": "component",
      "description": "Visually joins a set of related buttons into a single segmented control",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button-group/button-group.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button-group/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button-group/button-group.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/button-group/button-group.meta.ts"
      ],
      "fileHashes": {
        "button-group.tsx": "sha256-55a44b4ad5defe34a68f04554f23d3fb9b7c2baac7675392277e791593c6c22c",
        "index.ts": "sha256-0ed106fd13169589eb81c3b59fcb93a180bac8511d66dbdb12734aafd2fd3ae7",
        "button-group.module.css": "sha256-38ef0e5c125f8d4300ddf2afcce6cfccd0be37b90d2cbb7c9c3d464b3afa065d",
        "button-group.meta.ts": "sha256-d9bc4bac6e45e19e01314a9f94b7f9b2bb3a527fa9c0fadf0160c81b5b013910"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["action", "segmented", "toolbar", "layout"],
      "meta": {
        "name": "ButtonGroup",
        "description": "Visually joins a set of related buttons into a single segmented control",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "buttonGroup",
            "role": "group",
            "data": {
              "data-orientation": ["horizontal", "vertical"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["$slot"],
            "emit": "auto"
          }
        },
        "states": ["idle"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "orientation",
            "description": "Axis the buttons flow along: `horizontal` puts them in a row, `vertical` stacks them in a column. The seams between them are collapsed either way.",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "horizontal"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "roving",
            "description": "When true, uses roving tabindex so arrow keys move focus between buttons.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "loop",
            "description": "When true, navigation wraps around from end to start.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "aria-label",
            "description": "Accessible label used when no visible label is present.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-labelledby",
            "description": "Id of the element that labels this component.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-button-radius", "--cascivo-radius-control"],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown", "Home", "End"],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Joined actions",
            "code": "<ButtonGroup aria-label=\"Text alignment\"><Button>Left</Button><Button>Center</Button><Button>Right</Button></ButtonGroup>"
          },
          {
            "title": "Vertical with roving focus",
            "code": "<ButtonGroup orientation=\"vertical\" roving aria-label=\"View\"><Button>List</Button><Button>Grid</Button></ButtonGroup>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["action", "segmented", "toolbar", "layout"],
        "intent": {
          "whenToUse": [
            "Presenting several related, independent actions that read as one control (e.g. an editor toolbar)",
            "Visually grouping buttons that share context without implying mutual exclusivity"
          ],
          "whenNotToUse": [
            "The buttons represent a single selected value among options — use ToggleGroup",
            "The actions are unrelated and should read as separate buttons — lay them out with spacing instead"
          ],
          "antiPatterns": [
            {
              "bad": "<ButtonGroup><Button>Bold</Button><Button>Italic</Button></ButtonGroup>",
              "good": "<ButtonGroup aria-label=\"Formatting\"><Button>Bold</Button><Button>Italic</Button></ButtonGroup>",
              "why": "A group with no accessible name is announced as an unlabeled region; supply aria-label or aria-labelledby"
            }
          ],
          "related": [
            {
              "name": "ToggleGroup",
              "relationship": "alternative",
              "reason": "Use when the buttons select a value rather than fire independent actions"
            },
            {
              "name": "Button",
              "relationship": "contains",
              "reason": "A button group is a layout container for buttons"
            }
          ],
          "a11yRationale": "Exposes role=\"group\" so assistive tech treats the buttons as one labeled set; optional roving focus lets arrow keys traverse the buttons as a single tab stop, matching toolbar expectations",
          "content": {
            "tone": "Imperative verb-first labels on each child button",
            "notes": "Keep child labels parallel in form and length so the segmented control reads evenly"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Outer corner radius must resolve to --cascivo-button-radius / --cascivo-radius-control to match standalone buttons"
            },
            {
              "area": "children",
              "level": "flexible",
              "note": "Any focusable controls (Button, IconButton, links) may be grouped"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "calendar",
      "type": "component",
      "description": "An accessible standalone month-grid date picker.",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/calendar/calendar.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/calendar/calendar-date.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/calendar/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/calendar/calendar.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/calendar/calendar.meta.ts"
      ],
      "fileHashes": {
        "calendar.tsx": "sha256-2976b86451364ce4bd77726ce987fdf9f799de0ce035a3c1d1810f636a8c7c6d",
        "calendar-date.ts": "sha256-5709e0ae245751b7d28a3c0cb79eed0d5dd88bfe75bc9c047ad50cc98ec3465a",
        "index.ts": "sha256-afc64f5df9822c7a7696d95cb4c3ef69f831e420a04ae358f36b879736933ba4",
        "calendar.module.css": "sha256-f2b63f7440f795873a14efb767d31fc23f9b510e271df7cb5d3487777f7aced2",
        "calendar.meta.ts": "sha256-8f3828403b04e715c3bff7d0d4e1469bd9ca5d5e01a4b93d47f81f668cf113fa"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["calendar", "date", "month", "grid", "picker", "input"],
      "meta": {
        "name": "Calendar",
        "description": "An accessible standalone month-grid date picker.",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["header", "grid", "footer", "srOnly"]
          },
          "parts": {
            "header": {
              "element": "div",
              "children": ["navButton", "navSpacer", "monthLabel"]
            },
            "navButton": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            },
            "navSpacer": {
              "element": "span"
            },
            "monthLabel": {
              "element": "span",
              "children": ["$text"]
            },
            "grid": {
              "element": "table",
              "role": "grid",
              "aria": ["aria-label"],
              "children": ["weekday", "weekNumber", "empty", "cell"]
            },
            "weekday": {
              "element": "th",
              "children": ["srOnly", "$text"]
            },
            "weekNumber": {
              "element": "th",
              "children": ["$text"]
            },
            "empty": {
              "element": "td",
              "role": "gridcell"
            },
            "cell": {
              "element": "td",
              "role": "presentation",
              "children": ["day"]
            },
            "day": {
              "element": "button",
              "role": "gridcell",
              "data": {
                "data-day": "string",
                "data-selected": "string",
                "data-today": "string",
                "data-in-range": "string",
                "data-range-start": "string",
                "data-range-end": "string"
              },
              "aria": ["aria-label", "aria-selected", "aria-current", "aria-disabled"],
              "children": ["$text"]
            },
            "footer": {
              "element": "div",
              "when": "showToday",
              "children": ["todayButton"]
            },
            "todayButton": {
              "element": "button",
              "children": ["$text"]
            },
            "srOnly": {
              "element": "span",
              "aria": ["aria-live"],
              "children": ["$text"]
            }
          }
        },
        "states": ["default", "selected", "today", "disabled"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "isInRange",
            "type": "(date: Date) => boolean",
            "required": false,
            "description": "Highlight predicate for range previews (used by DateRangePicker)."
          },
          {
            "name": "isRangeStart",
            "type": "(date: Date) => boolean",
            "required": false,
            "description": "Predicate marking the range's start date for styling."
          },
          {
            "name": "isRangeEnd",
            "type": "(date: Date) => boolean",
            "required": false,
            "description": "Predicate marking the range's end date for styling."
          },
          {
            "name": "onDayHover",
            "type": "(date: Date | null) => void",
            "required": false,
            "description": "Called with the hovered day (or null on leave) to drive range previews."
          },
          {
            "name": "value",
            "type": "Date | null",
            "required": false,
            "description": "Controlled selected date"
          },
          {
            "name": "defaultValue",
            "type": "Date",
            "required": false,
            "description": "Uncontrolled initial selected date"
          },
          {
            "name": "onValueChange",
            "type": "(date: Date) => void",
            "required": false,
            "description": "Called when a day is selected"
          },
          {
            "name": "min",
            "type": "Date",
            "required": false,
            "description": "Earliest selectable date"
          },
          {
            "name": "max",
            "type": "Date",
            "required": false,
            "description": "Latest selectable date"
          },
          {
            "name": "disabled",
            "type": "(date: Date) => boolean",
            "required": false,
            "description": "Predicate to disable individual days"
          },
          {
            "name": "locale",
            "type": "string",
            "required": false,
            "description": "BCP-47 locale; defaults to the current i18n locale"
          },
          {
            "name": "size",
            "default": "md",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "description": "Grid cell size"
          },
          {
            "name": "labels",
            "type": "CalendarLabels",
            "required": false,
            "description": "i18n label overrides for the nav buttons"
          },
          {
            "name": "month",
            "type": "number",
            "required": false,
            "description": "Controlled view month (0-11)"
          },
          {
            "name": "year",
            "type": "number",
            "required": false,
            "description": "Controlled view year"
          },
          {
            "name": "onViewChange",
            "type": "(view: { month: number; year: number }) => void",
            "required": false,
            "description": "Called when the visible month changes"
          },
          {
            "name": "hideNav",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "Hides the prev/next nav so a parent can drive navigation"
          },
          {
            "name": "showToday",
            "description": "When true, shows a button that jumps the view to the current month and focuses today.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "showWeekNumbers",
            "description": "When true, prefixes each row with its ISO-8601 week number.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "ariaLabel",
            "description": "Accessible name for the grid. Defaults to the visible month label. Calendar has no visible label slot — the month heading is its own — so `label` and `ariaLabel` are aliases for the same invisible name.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          },
          {
            "name": "label",
            "description": "Alias for `ariaLabel`; both set the grid’s invisible accessible name.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-calendar-bg",
          "--cascivo-calendar-radius",
          "--cascivo-calendar-cell-size",
          "--cascivo-calendar-day-selected-bg",
          "--cascivo-calendar-day-selected-fg",
          "--cascivo-calendar-day-today-color",
          "--cascivo-calendar-range-bg"
        ],
        "accessibility": {
          "role": "grid",
          "wcag": "2.2-AA",
          "forcedColors": true,
          "reducedMotion": true,
          "keyboard": [
            "ArrowLeft",
            "ArrowRight",
            "ArrowUp",
            "ArrowDown",
            "Home",
            "End",
            "PageUp",
            "PageDown",
            "Enter",
            "Space"
          ]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Calendar defaultValue={new Date(Date.UTC(2024, 5, 15))} />",
            "description": "Uncontrolled calendar"
          },
          {
            "title": "Constrained",
            "code": "<Calendar min={new Date(Date.UTC(2024, 5, 1))} max={new Date(Date.UTC(2024, 5, 30))} />",
            "description": "Limits the selectable range"
          },
          {
            "title": "Disabled weekends",
            "code": "<Calendar disabled={(d) => [0, 6].includes(d.getUTCDay())} />",
            "description": "Predicate disables individual days"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["calendar", "date", "month", "grid", "picker", "input"],
        "intent": {
          "whenToUse": [
            "Showing an always-visible month grid for picking a single date (inline, not a popover)",
            "As the building block inside a date-picker or date-range-picker popover"
          ],
          "whenNotToUse": [
            "A compact form field where an inline grid wastes space — use DatePicker (trigger + popover)",
            "Selecting a contiguous date range — use DateRangePicker, which composes two calendars"
          ],
          "antiPatterns": [
            {
              "bad": "Comparing dates with local-time getters (getHours/getDate) after constructing them with new Date(y, m, d)",
              "good": "All arithmetic and comparisons use UTC getters/Date.UTC so DST and timezone offsets never shift a day",
              "why": "Local-time construction can land a midnight date on the previous day in negative-offset zones, breaking selection and range math"
            }
          ],
          "related": [
            {
              "name": "DatePicker",
              "relationship": "alternative",
              "reason": "Use the popover-based picker when an inline grid is too heavy for the layout"
            },
            {
              "name": "DateRangePicker",
              "relationship": "contained-by",
              "reason": "The range picker renders two Calendar instances side-by-side"
            }
          ],
          "a11yRationale": "A role=\"grid\" table with role=\"row\"/role=\"gridcell\" and a roving tabindex keeping exactly one day focusable. Navigation moves *real DOM focus*, not just the tabindex: the previous build only rotated the index, so focus stayed on the old button and the moment an arrow crossed a month boundary that button unmounted and focus fell to <body>, ejecting the user from the widget mid-navigation. React reuses the day buttons positionally across months, so the focus move is deferred a task and re-queried by date — landing on the reused node would silently focus whatever date now occupies that grid slot. Arrows move a day or a week, Home/End reach the week edges, PageUp/PageDown change month (Shift for year), and every move is clamped to min/max and skips predicate-disabled days rather than parking the cursor where Enter does nothing; the prev/next buttons disable at the bounds for the same reason. Each day is a <button role=\"gridcell\"> inside a presentational <td>, so aria-selected sits on the element that takes focus (on the <td> it was never announced) and on a role ARIA allows it on (a plain button may not carry it); it is omitted rather than serialised as \"false\" on the other thirty cells. Today is computed from the *local* calendar rather than the UTC instant, so aria-current=\"date\" no longer lands a day early east of UTC+12. The month is announced through a separate visually-hidden status region: the visible label is also the grid's accessible name, so announcing there would mutate the name of the container focus sits inside.",
          "flexibility": [
            {
              "area": "date type",
              "level": "strict",
              "note": "All date props are native Date objects compared in UTC"
            },
            {
              "area": "locale",
              "level": "flexible",
              "note": "Weekday labels, month label, and first-day-of-week derive from the locale via Intl (with Monday fallback)"
            },
            {
              "area": "view control",
              "level": "flexible",
              "note": "month/year/onViewChange/hideNav let a parent drive navigation (used by DateRangePicker)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "card",
      "type": "component",
      "description": "Container for grouping related content",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/card/card.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/card/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/card/card.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/card/card.meta.ts"
      ],
      "fileHashes": {
        "card.tsx": "sha256-935015ad6252ba67e57162e8acaa090d8c33d3369b3ded62240ba21575e4a7bb",
        "index.ts": "sha256-27d4f144329873a2f2124423ec77094366cc0854d2a9312796078391fb9eee34",
        "card.module.css": "sha256-0aa255f27145ecc215a5c5f28c5a71cb9f6522364c8b7169499f31b2b991dcdb",
        "card.meta.ts": "sha256-992a9fae0b1fa0156c63611058edd628d1100ed5bca7a7470adba4564aaa38b0"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["container", "layout", "surface", "ai"],
      "meta": {
        "name": "Card",
        "description": "Container for grouping related content",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-cascivo-card": [""],
              "data-variant": ["default", "outlined", "elevated"],
              "data-padding": ["none", "sm", "md", "lg"],
              "data-ai": ["", "generating"]
            },
            "children": ["$slot", "header", "title", "content", "footer"],
            "emit": "manual"
          },
          "parts": {
            "header": {
              "element": "div",
              "modifiers": {
                "headerRow": "actions"
              },
              "children": ["$slot", "headerMain", "headerActions"]
            },
            "headerMain": {
              "element": "div",
              "children": ["$slot"],
              "when": "actions"
            },
            "headerActions": {
              "element": "div",
              "children": ["$slot"],
              "when": "actions"
            },
            "title": {
              "element": "h3",
              "children": ["$slot"]
            },
            "content": {
              "element": "div",
              "children": ["$slot"]
            },
            "footer": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": ["default", "outlined", "elevated"],
        "sizes": [],
        "props": [
          {
            "name": "actions",
            "type": "ReactNode",
            "required": false,
            "description": "CardHeader only — trailing content pinned to the inline-end (overflow menu, badge, link). The header is a column by default, so `justify-content: space-between` alone does nothing; this is how you get the title-left / action-right dashboard card."
          },
          {
            "name": "variant",
            "description": "`default` draws a 1px border, `outlined` a heavier one, `elevated` drops the border for a shadow.",
            "type": "'default' | 'outlined' | 'elevated'",
            "required": false,
            "default": "default"
          },
          {
            "name": "padding",
            "description": "Inner padding of the CARD BOX. ⚠ `padding=\"none\"` deliberately does NOT strip the padding from CardHeader/CardContent/CardFooter — those keep their own. It means \"let a flush child (a LogViewer, an image, an edge-to-edge table) reach the card's edge\"; zeroing both put the title flush against the border and made the mode unusable with the composition it exists for. For an edge-to-edge table, skip CardContent and pass the table as a direct child.",
            "type": "'none' | 'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "ai",
            "type": "boolean | 'generating'",
            "required": false,
            "default": "false",
            "description": "AI presence: `true` gives the surface an AI-tinted edge and a soft aura, marking AI-generated content; `'generating'` adds a pulsing inner glow while AI is still producing it (stops under reduced motion). Visual only — pair it with an AiBadge so the provenance is also text."
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Card content; compose with CardHeader, CardTitle, CardContent and CardFooter"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-card",
          "--cascivo-shadow-md"
        ],
        "accessibility": {
          "role": "region",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic card",
            "code": "<Card>\n  <CardHeader><CardTitle>Title</CardTitle></CardHeader>\n  <CardContent>Content here</CardContent>\n</Card>"
          },
          {
            "title": "AI-generated content",
            "code": "<Card ai>\n  <CardHeader actions={<AiBadge />}><CardTitle>Summary</CardTitle></CardHeader>\n  <CardContent>Revenue grew 12% quarter over quarter.</CardContent>\n</Card>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "styleHooks": ["data-cascivo-card"],
        "tags": ["container", "layout", "surface", "ai"],
        "intent": {
          "whenToUse": [
            "Grouping related content into a visually distinct surface with border/shadow",
            "Creating scannable units in a grid or list (dashboard tiles, item summaries)",
            "Giving a content cluster elevation to separate it from the page background"
          ],
          "whenNotToUse": [
            "Pure semantic/structural grouping with no surface — use a <section>",
            "Wrapping every element in a card — nesting surfaces flattens visual hierarchy"
          ],
          "antiPatterns": [
            {
              "bad": "Nesting Cards several levels deep for layout",
              "good": "A single Card with internal spacing, or a plain <section>",
              "why": "Stacked surfaces and shadows compete for attention and muddy the hierarchy"
            }
          ],
          "related": [
            {
              "name": "Separator",
              "relationship": "pairs-with",
              "reason": "Use a Separator to divide regions inside a card"
            }
          ],
          "a11yRationale": "role=\"region\" is appropriate only when the card is a meaningful landmark; otherwise treat it as presentational — the visual surface adds no semantics on its own",
          "flexibility": [
            {
              "area": "variant and padding",
              "level": "flexible",
              "note": "Choose elevation and density to fit the surrounding layout"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, border, radius, and shadow must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "carousel",
      "type": "component",
      "description": "Scroll-snap slide deck with previous/next controls and dot indicators",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/carousel/carousel.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/carousel/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/carousel/carousel.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/carousel/carousel.meta.ts"
      ],
      "fileHashes": {
        "carousel.tsx": "sha256-a9de2b53b7da22ec1f350e0be62bc9e9cdeed0f562c3bd7e9b41e09aa045979a",
        "index.ts": "sha256-0daa6ff3317b8eee63dfbf7b70069ccb88a4b5c163431b0b06a7e5aca63faff6",
        "carousel.module.css": "sha256-3b2083cbc117b5377eada3ecd319abd709618dfa661baca7cce3c71038db6021",
        "carousel.meta.ts": "sha256-ddcd1f422f49e64e10902537a7cdafb2d8f4b0f0bc988221f3a36b47c8a88628"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["slider", "gallery", "slideshow", "deck", "scroll-snap"],
      "meta": {
        "name": "Carousel",
        "description": "Scroll-snap slide deck with previous/next controls and dot indicators",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "section",
            "aria": ["aria-roledescription", "aria-label"],
            "children": ["viewport", "controls"]
          },
          "parts": {
            "viewport": {
              "element": "div",
              "children": ["nav", "track"]
            },
            "nav": {
              "element": "button",
              "aria": ["aria-label", "aria-controls"],
              "modifiers": {
                "prev": "previous button",
                "next": "next button"
              },
              "children": ["chevron"]
            },
            "chevron": {
              "element": "span",
              "aria": ["aria-hidden"],
              "modifiers": {
                "chevronPrev": "previous button",
                "chevronNext": "next button"
              }
            },
            "track": {
              "element": "div",
              "aria": ["aria-live"],
              "children": ["slide"]
            },
            "slide": {
              "element": "div",
              "role": "group",
              "aria": ["aria-roledescription", "aria-label"],
              "children": ["$slot"]
            },
            "controls": {
              "element": "div",
              "children": ["playPause", "dots"]
            },
            "playPause": {
              "element": "button",
              "when": "autoplay",
              "aria": ["aria-label"],
              "children": ["pauseGlyph", "playGlyph"]
            },
            "pauseGlyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "playGlyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "dots": {
              "element": "div",
              "role": "group",
              "aria": ["aria-label"],
              "children": ["dot"]
            },
            "dot": {
              "element": "button",
              "data": {
                "data-active": "string"
              },
              "aria": ["aria-label", "aria-current"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "labels",
            "type": "CarouselLabels",
            "required": false,
            "description": "Overrides for the component’s user-visible strings (i18n)."
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Slides as children"
          },
          {
            "name": "slides",
            "type": "ReactNode[]",
            "required": false,
            "description": "Slides as an array"
          },
          {
            "name": "index",
            "type": "number",
            "required": false,
            "description": "Controlled active index"
          },
          {
            "name": "defaultIndex",
            "description": "The initial slide index when uncontrolled.",
            "type": "number",
            "required": false,
            "default": "0"
          },
          {
            "name": "onIndexChange",
            "description": "Called with the new slide index when it changes.",
            "type": "(index: number) => void",
            "required": false
          },
          {
            "name": "loop",
            "description": "When true, navigation wraps around from end to start.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "autoplay",
            "description": "Milliseconds between automatic advances. Omit or set 0 to leave rotation off. Pauses on hover, on focus within, while the tab is hidden and under prefers-reduced-motion, and always renders a play/pause control.",
            "type": "number",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-radius-md",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowLeft", "ArrowRight", "Home", "End"],
          "forcedColors": true,
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Carousel>\n  <img src=\"/1.jpg\" alt=\"\" />\n  <img src=\"/2.jpg\" alt=\"\" />\n</Carousel>"
          },
          {
            "title": "Looping with array",
            "code": "<Carousel loop slides={[<Slide1 />, <Slide2 />, <Slide3 />]} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["slider", "gallery", "slideshow", "deck", "scroll-snap"],
        "intent": {
          "whenToUse": [
            "Presenting a sequence of media or cards the user pages through one at a time",
            "Image galleries, onboarding decks, or featured-content rotators",
            "When horizontal swiping/scrolling is a natural interaction on touch devices"
          ],
          "whenNotToUse": [
            "Content users must compare side-by-side — show a grid instead",
            "Critical information that must always be visible — carousels hide most of their content"
          ],
          "antiPatterns": [
            {
              "bad": "Auto-rotating carousel for primary navigation or key calls-to-action",
              "good": "A static list or grid where every item is visible",
              "why": "Auto-rotation and hidden slides reduce discoverability and accessibility of important content"
            }
          ],
          "related": [
            {
              "name": "Tabs",
              "relationship": "alternative",
              "reason": "Use tabs when sections are distinct and should be directly addressable"
            }
          ],
          "a11yRationale": "A section with aria-roledescription=\"carousel\" holding one role=\"group\" per slide. Inactive slides are `inert`, not `aria-hidden`: they stay in the layout and remain scroll-reachable, so aria-hidden alone declared them non-existent to assistive technology while every link and button inside them was still tabbable — the canonical aria-hidden-focus violation. The track is aria-live=\"polite\" when the user drives the carousel and \"off\" while it rotates on its own, per APG; a rotating carousel always renders a play/pause control, and rotation additionally pauses on hover, on focus within, while the tab is hidden and under prefers-reduced-motion. Reduced motion is read in JS as well as CSS because a scrollTo `behavior` option overrides the stylesheet, which is why the previous build's stylesheet rule could never take effect. Arrow keys on the indicator row move the slide, not merely the roving tabindex, and the indicators are named as their own group rather than repeating the region's name. The indicator hit area reaches the target minimum through a pseudo-element, leaving the 10px visual mark unchanged.",
          "flexibility": [
            {
              "area": "transition",
              "level": "strict",
              "note": "Paging uses native CSS scroll-snap, not transform math — no custom easing config"
            },
            {
              "area": "slide content",
              "level": "flexible",
              "note": "Any ReactNode may be a slide; pass via children or the slides array"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "chain-of-thought",
      "type": "component",
      "description": "The steps an AI agent takes — searching, reading, calling tools — each with its status, and optional collapsible detail",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chain-of-thought/chain-of-thought.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chain-of-thought/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chain-of-thought/chain-of-thought.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chain-of-thought/chain-of-thought.meta.ts"
      ],
      "fileHashes": {
        "chain-of-thought.tsx": "sha256-0a7b170a9f7c3a32d13bf65c37114ec81fadaa436cea61451eaf25029cd0b85e",
        "index.ts": "sha256-e05fbbf54fd0e1a4c07fa461bad7ee2ad0c3f7a02c2f8c7cada4b77577c34c69",
        "chain-of-thought.module.css": "sha256-f8d2039b93f5e33c9cb2fc491452c6a75ce4cb3c4c5d738356751ad043804246",
        "chain-of-thought.meta.ts": "sha256-9ac7ebab44c1360dace22702d9ceca764c67b5a7e08cdd230caab4bf617de393"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["ThoughtChain", "AgentSteps", "ReasoningSteps"],
      "tags": ["ai", "agent", "steps", "chain-of-thought", "reasoning", "progress", "tools"],
      "meta": {
        "name": "ChainOfThought",
        "description": "The steps an AI agent takes — searching, reading, calling tools — each with its status, and optional collapsible detail",
        "category": "display",
        "clientJs": "none",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "ol",
            "local": "chain",
            "aria": ["aria-busy"],
            "children": ["step"],
            "emit": "manual"
          },
          "parts": {
            "step": {
              "element": "li",
              "data": {
                "data-status": ["pending", "active", "complete", "error"]
              },
              "aria": ["aria-current"],
              "children": ["marker", "body"]
            },
            "marker": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "body": {
              "element": "div",
              "children": ["disclosure", "heading", "description"]
            },
            "disclosure": {
              "element": "details",
              "children": ["summary", "description", "detail"],
              "when": "detail"
            },
            "summary": {
              "element": "summary",
              "children": ["title", "indicator"]
            },
            "indicator": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "heading": {
              "element": "div",
              "children": ["title"],
              "when": "!detail"
            },
            "title": {
              "element": "span",
              "children": ["$slot"]
            },
            "description": {
              "element": "div",
              "children": ["$slot"],
              "when": "description"
            },
            "detail": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": ["pending", "active", "complete", "error"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "description": "The steps, in order. Each has `id`, `title`, optional `description`, `status` (`pending | active | complete | error`, plus the `current` / `upcoming` aliases), optional `detail` (collapsible content that turns the title into a toggle) and optional `icon`.",
            "type": "ChainOfThoughtItem[]",
            "required": true
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n) — the status text a screen reader hears after each step title.",
            "type": "{ pending?: string; active?: string; complete?: string; error?: string }",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "ChainOfThoughtItem",
            "description": "One step in the chain.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true,
                "description": "Stable key for the step."
              },
              {
                "name": "title",
                "type": "ReactNode",
                "required": true,
                "description": "What the step does."
              },
              {
                "name": "description",
                "type": "ReactNode",
                "required": false,
                "description": "A secondary line under the title."
              },
              {
                "name": "status",
                "type": "ProgressInput",
                "required": false,
                "description": "`pending | active | complete | error` (plus `current` / `upcoming`). Defaults to `pending`."
              },
              {
                "name": "detail",
                "type": "ReactNode",
                "required": false,
                "description": "Collapsible content; makes the title a disclosure toggle."
              },
              {
                "name": "icon",
                "type": "ReactNode",
                "required": false,
                "description": "Replaces the status glyph in the marker."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-ai",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-border",
          "--cascivo-color-success",
          "--cascivo-color-destructive",
          "--cascivo-focus-ring",
          "--cascivo-duration-loop-slow"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Agent steps",
            "code": "<ChainOfThought\n  items={[\n    { id: 'search', title: 'Searched the docs for \"refund policy\"', status: 'complete' },\n    { id: 'read', title: 'Reading 3 pages', status: 'active' },\n    { id: 'answer', title: 'Write the answer', status: 'pending' },\n  ]}\n/>"
          },
          {
            "title": "With collapsible detail",
            "code": "<ChainOfThought\n  items={[\n    {\n      id: 'search',\n      title: 'Searched the web',\n      status: 'complete',\n      detail: 'cascivo.com/docs · github.com/cascivo/cascivo · npmjs.com/package/@cascivo/react',\n    },\n    { id: 'fail', title: 'Fetch pricing page', description: 'The page returned 404.', status: 'error' },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["shimmer-text", "visually-hidden"],
        "tags": ["ai", "agent", "steps", "chain-of-thought", "reasoning", "progress", "tools"],
        "intent": {
          "whenToUse": [
            "Showing the discrete steps an AI agent is taking or took — searches, file reads, tool calls",
            "Letting a reader expand a step to see what it found, without cluttering the answer"
          ],
          "whenNotToUse": [
            "A free-form reasoning trace — use Reasoning",
            "A user-facing multi-step form or checkout — use Steps",
            "A dated activity feed — use Timeline",
            "One tool invocation with its input and output — use ToolCall"
          ],
          "antiPatterns": [
            {
              "bad": "Marking several steps active at once to look busy",
              "good": "One active step at a time; finished steps become complete or error",
              "why": "The active step is announced as the current step (aria-current=\"step\"); more than one makes the position meaningless"
            }
          ],
          "related": [
            {
              "name": "Reasoning",
              "relationship": "alternative",
              "reason": "Reasoning holds unstructured thinking text; ChainOfThought holds discrete steps"
            },
            {
              "name": "Timeline",
              "relationship": "alternative",
              "reason": "Same status vocabulary, for dated events rather than agent steps"
            },
            {
              "name": "ToolCall",
              "relationship": "pairs-with",
              "reason": "A step’s detail can contain the ToolCall for that step"
            },
            {
              "name": "AiStatus",
              "relationship": "pairs-with",
              "reason": "AiStatus announces the overall phase; the chain itself is never a live region"
            }
          ],
          "a11yRationale": "An ordered list whose active step carries aria-current=\"step\" and whose list is aria-busy while any step is active. Each step speaks its state as visually hidden text after the title, because the marker glyph is decorative. Steps with detail are native <details>/<summary> disclosures (Enter/Space), so they work before hydration. Only the active marker pulses, under prefers-reduced-motion: no-preference; the chain is never a live region — pair it with AiStatus to announce progress",
          "content": {
            "tone": "Past tense for finished steps (\"Searched the docs\"), present progressive for the active one (\"Reading 3 pages\")"
          },
          "flexibility": [
            {
              "area": "step content",
              "level": "flexible",
              "note": "Titles, descriptions, detail and icons are any ReactNode"
            },
            {
              "area": "status vocabulary",
              "level": "strict",
              "note": "Use the shared Progress values; do not invent per-chain statuses"
            }
          ]
        }
      },
      "registryDependencies": ["shimmer-text", "visually-hidden"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "chat-bubble",
      "type": "component",
      "description": "Message bubble for chat and messaging UIs with avatar, name, and timestamp support",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chat-bubble/chat-bubble.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chat-bubble/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chat-bubble/chat-bubble.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/chat-bubble/chat-bubble.meta.ts"
      ],
      "fileHashes": {
        "chat-bubble.tsx": "sha256-333523aff3d09931648544fb7dc66199493fcb54af1f56924aea403cd834c804",
        "index.ts": "sha256-60c31be4b82d8ee45b93e2216fa79a2e1e92013a82c734709ae61d5703f6ce17",
        "chat-bubble.module.css": "sha256-057b48821b086f66878e1f2557b1f233847315d6487dd33fb3a5feadfbda16b1",
        "chat-bubble.meta.ts": "sha256-6b04b31d72c7dbd64abd4934965b78828cf9cbe0f4baaa78da6957a4227c1318"
      },
      "dependencies": [],
      "tags": ["chat", "message", "conversation", "messaging"],
      "meta": {
        "name": "ChatBubble",
        "description": "Message bubble for chat and messaging UIs with avatar, name, and timestamp support",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "bubble",
            "data": {
              "data-side": ["start", "end"]
            },
            "children": ["avatar", "content"],
            "emit": "manual"
          },
          "parts": {
            "avatar": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["$slot"],
              "when": "avatar"
            },
            "content": {
              "element": "div",
              "children": ["meta", "body"]
            },
            "meta": {
              "element": "div",
              "children": ["name", "time"],
              "when": "name || time"
            },
            "name": {
              "element": "span",
              "children": ["$text"],
              "when": "name"
            },
            "time": {
              "element": "time",
              "children": ["$text"],
              "when": "time"
            },
            "body": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": ["start", "end"],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "side",
            "description": "Which side of the thread the bubble sits on: `start` for an incoming message (avatar first), `end` for an outgoing one (right-aligned, avatar last).",
            "type": "'start' | 'end'",
            "required": false,
            "default": "start"
          },
          {
            "name": "avatar",
            "description": "Avatar element shown beside the message.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "name",
            "description": "Display name of the message sender.",
            "type": "string",
            "required": false
          },
          {
            "name": "time",
            "description": "Timestamp text shown with the message.",
            "type": "string",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-text-subtle",
          "--cascivo-color-accent",
          "--cascivo-color-accent-content",
          "--cascivo-radius-overlay",
          "--cascivo-radius-indicator"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Incoming message",
            "code": "<ChatBubble side=\"start\" name=\"Alice\" time=\"10:42 AM\">Hey, how are you?</ChatBubble>",
            "description": "Message from another user, aligned to the start"
          },
          {
            "title": "Outgoing message",
            "code": "<ChatBubble side=\"end\" time=\"10:43 AM\">Doing great, thanks!</ChatBubble>",
            "description": "Current user message, aligned to the end with accent background"
          },
          {
            "title": "With avatar",
            "code": "<ChatBubble side=\"start\" avatar={<Avatar src=\"/alice.png\" size=\"sm\" />} name=\"Alice\">See you tomorrow!</ChatBubble>",
            "description": "Message with an avatar beside the bubble"
          }
        ],
        "dependencies": [],
        "tags": ["chat", "message", "conversation", "messaging"],
        "intent": {
          "whenToUse": [
            "Chat UIs and messaging features showing conversation history",
            "Comment threads with a bubble-style layout",
            "Customer support widgets displaying agent and user messages"
          ],
          "whenNotToUse": [
            "General content cards without a conversational context — use Card",
            "Inline comments that do not need a bubble visual treatment"
          ],
          "antiPatterns": [
            {
              "bad": "Using ChatBubble for notification cards or feed items",
              "good": "<Card> or <Alert> for non-conversational content",
              "why": "ChatBubble implies a back-and-forth conversation; use Card for standalone content pieces"
            }
          ],
          "related": [
            {
              "name": "Card",
              "relationship": "alternative",
              "reason": "Use for general content display that is not part of a conversation"
            },
            {
              "name": "Avatar",
              "relationship": "pairs-with",
              "reason": "Pass an Avatar as the avatar prop to identify the message sender"
            }
          ],
          "a11yRationale": "Pure layout component with role=\"none\". Wrap a list of ChatBubble elements in an element with role=\"log\" and aria-live=\"polite\" to announce new messages to screen readers.",
          "flexibility": [
            {
              "area": "avatar slot",
              "level": "flexible",
              "note": "Accepts any ReactNode — Avatar, initials, icon, or nothing"
            },
            {
              "area": "body content",
              "level": "flexible",
              "note": "children accepts rich content including images, links, and formatted text"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "checkbox",
      "type": "component",
      "description": "Binary toggle for forms, with indeterminate support",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox/checkbox.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox/checkbox.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox/checkbox.meta.ts"
      ],
      "fileHashes": {
        "checkbox.tsx": "sha256-8c74c7d8ac5bdc2dccaea4127a8c723c65d39854446ba4fe16ed5c8e4242b661",
        "index.ts": "sha256-cb76713df13a750d36ce3458f7b9b829986de64e69802681e0e66ea302612b84",
        "checkbox.module.css": "sha256-40acb3223bd3d3f176aba0803625cc7d2df7a461ef339194e8816d26d4c36ec8",
        "checkbox.meta.ts": "sha256-19f7254440d64238ec7f9baf94b43e52222180463e5fdf7c69a4a350f7ad55cd"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "toggle", "boolean"],
      "meta": {
        "name": "Checkbox",
        "description": "Binary toggle for forms, with indeterminate support",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "label",
            "local": "wrapper",
            "data": {
              "data-disabled": ["true"],
              "data-state": ["unchecked", "checked", "indeterminate"]
            },
            "children": ["input", "control", "label"],
            "emit": "manual"
          },
          "parts": {
            "input": {
              "element": "input",
              "aria": ["aria-label"]
            },
            "control": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "label": {
              "element": "span",
              "children": ["$text"],
              "when": "label"
            }
          }
        },
        "states": ["unchecked", "checked", "indeterminate"],
        "variants": [],
        "sizes": [],
        "agent": {
          "actions": [
            {
              "name": "setChecked",
              "prop": "checked",
              "args": "boolean"
            }
          ]
        },
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "checked",
            "description": "Whether the control is checked (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "indeterminate",
            "description": "When true, renders the mixed/indeterminate state.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onChange",
            "description": "Called when the value changes.",
            "type": "React.ChangeEventHandler<HTMLInputElement>",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-accent",
          "--cascivo-color-border-strong",
          "--cascivo-color-text-on-accent",
          "--cascivo-radius-sm",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "checkbox",
          "wcag": "2.2-AA",
          "keyboard": ["Space"],
          "apgPattern": "checkbox",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "With label",
            "code": "<Checkbox label=\"Accept terms\" />"
          },
          {
            "title": "Indeterminate",
            "code": "<Checkbox label=\"Select all\" indeterminate />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "toggle", "boolean"],
        "intent": {
          "whenToUse": [
            "Selecting zero or more options from a list where each choice is independent",
            "A single opt-in within a form (accept terms, subscribe) submitted alongside other fields",
            "A \"select all\" control that needs an indeterminate (partial) state"
          ],
          "whenNotToUse": [
            "A binary setting that applies immediately on change — use Toggle",
            "Choosing exactly one option from a mutually exclusive set — use Radio"
          ],
          "antiPatterns": [
            {
              "bad": "<Checkbox label=\"Dark mode\" /> that flips a setting live",
              "good": "<Toggle label=\"Dark mode\" />",
              "why": "Checkbox signals a form value to be submitted; Toggle signals an immediate on/off state change"
            },
            {
              "bad": "Two checkboxes for one either/or choice",
              "good": "Use Radio for mutually exclusive options",
              "why": "Independent checkboxes let the user select both or neither, which a single exclusive choice should not allow"
            }
          ],
          "related": [
            {
              "name": "Toggle",
              "relationship": "alternative",
              "reason": "Use for immediate binary settings rather than form values"
            },
            {
              "name": "Radio",
              "relationship": "alternative",
              "reason": "Use for selecting exactly one from a mutually exclusive set"
            },
            {
              "name": "CheckboxCard",
              "relationship": "alternative",
              "reason": "Use the card variant when each option needs a title plus description"
            }
          ],
          "a11yRationale": "Renders a native <input type=\"checkbox\"> wrapped in a <label>, so role, checked/indeterminate state, Space activation, and label association come from the platform; the indeterminate visual is set on the DOM node since it is a property not an attribute",
          "flexibility": [
            {
              "area": "native input props",
              "level": "flexible",
              "note": "Spreads InputHTMLAttributes — name, value, required, checked, onChange all pass through"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Control styling resolves to semantic --cascivo-color-* / --cascivo-radius-sm tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "checkbox-card",
      "type": "component",
      "description": "Multi-selectable card backed by a native checkbox. Use multiple independent CheckboxCards for multi-select scenarios.",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox-card/checkbox-card.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox-card/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox-card/checkbox-card.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/checkbox-card/checkbox-card.meta.ts"
      ],
      "fileHashes": {
        "checkbox-card.tsx": "sha256-2aeed628d20c78cf97501a013cf22aec078b10fcde7889e67a7a606c0f2a7cff",
        "index.ts": "sha256-bcb69c06be6286f0be6b8192abb0383be9eeb8b44aa5338b5bc22b8756c9a87f",
        "checkbox-card.module.css": "sha256-d6e4344dd68247e0ec41ebd7458459be180fa12e97c1299c1be918679e4045cd",
        "checkbox-card.meta.ts": "sha256-2507c7fe8b4af75b6f707f2e20a4f44f7ed66b71729809859bc1286e58303fc6"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["checkbox", "card", "selectable", "form"],
      "meta": {
        "name": "CheckboxCard",
        "description": "Multi-selectable card backed by a native checkbox. Use multiple independent CheckboxCards for multi-select scenarios.",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "label",
            "local": "card",
            "data": {
              "data-disabled": [""]
            },
            "children": ["input", "glyph", "body"],
            "emit": "manual"
          },
          "parts": {
            "input": {
              "element": "input"
            },
            "glyph": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["check"]
            },
            "check": {
              "element": "svg"
            },
            "body": {
              "element": "span",
              "children": ["title", "description"]
            },
            "title": {
              "element": "span",
              "children": ["$slot"]
            },
            "description": {
              "element": "span",
              "children": ["$slot"],
              "when": "description"
            }
          }
        },
        "states": ["default", "checked", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "title",
            "type": "ReactNode",
            "required": true,
            "description": "Card title"
          },
          {
            "name": "description",
            "type": "ReactNode",
            "required": false,
            "description": "Optional description"
          },
          {
            "name": "checked",
            "type": "boolean",
            "required": false,
            "description": "Controlled checked state"
          },
          {
            "name": "defaultChecked",
            "type": "boolean",
            "required": false,
            "description": "Uncontrolled default"
          },
          {
            "name": "onCheckedChange",
            "type": "(checked: boolean) => void",
            "required": false,
            "description": "Change callback"
          },
          {
            "name": "disabled",
            "type": "boolean",
            "required": false,
            "description": "Disables the card"
          }
        ],
        "tokens": ["--cascivo-color-accent", "--cascivo-color-border", "--cascivo-radius-surface"],
        "accessibility": {
          "role": "checkbox",
          "wcag": "2.2-AA",
          "keyboard": ["Space"]
        },
        "examples": [
          {
            "title": "Feature toggles",
            "code": "<div style={{ display: 'grid', gap: 12 }}>\n  <CheckboxCard title=\"Automated backups\" description=\"Daily snapshots, 30-day retention\" defaultChecked />\n  <CheckboxCard title=\"Monitoring\" description=\"Metrics + alerting\" />\n  <CheckboxCard title=\"Audit log\" description=\"Requires Team plan\" disabled />\n</div>",
            "description": "Multi-select feature toggles"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["checkbox", "card", "selectable", "form"],
        "intent": {
          "whenToUse": [
            "Multi-select where each option needs a title and supporting description (feature toggles, add-ons)",
            "Presenting selectable options as larger, scannable click targets rather than a dense checkbox list"
          ],
          "whenNotToUse": [
            "A simple labelled boolean in a form — use Checkbox",
            "Choosing exactly one option from a set — use RadioCard or Radio"
          ],
          "antiPatterns": [
            {
              "bad": "Using CheckboxCard for mutually exclusive options",
              "good": "Use RadioCard so only one can be selected",
              "why": "Each CheckboxCard is an independent native checkbox — nothing enforces a single selection across them"
            },
            {
              "bad": "Cramming a paragraph of marketing copy into description",
              "why": "The description is a single supporting line; long content breaks the card layout and scannability"
            }
          ],
          "related": [
            {
              "name": "Checkbox",
              "relationship": "alternative",
              "reason": "Use the plain checkbox when a title/description card is overkill"
            },
            {
              "name": "RadioCard",
              "relationship": "alternative",
              "reason": "Use for single-select card groups"
            }
          ],
          "a11yRationale": "Backed by a native <input type=\"checkbox\"> inside a <label>, so the entire card is clickable and role, checked state, Space activation, and label association come from the platform; the SVG glyph is aria-hidden as it is purely decorative",
          "content": {
            "tone": "Title is a concise noun phrase; description is one supporting line",
            "notes": "Keep description to a single line of context (what it does, plan requirements)"
          },
          "flexibility": [
            {
              "area": "controlled vs uncontrolled",
              "level": "flexible",
              "note": "Supports both checked + onCheckedChange and defaultChecked"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Card styling resolves to --cascivo-color-accent / --cascivo-color-border / --cascivo-radius-surface"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "code",
      "type": "component",
      "description": "Inline code span for identifiers, commands, and short snippets",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code/code.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code/code.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code/code.meta.ts"
      ],
      "fileHashes": {
        "code.tsx": "sha256-b8534658238f4f64a85159e93b055590571c09ec4e6ea925dfecb5fa93940dae",
        "index.ts": "sha256-fa4497ee221826e42b0ba97dc9076a2a17463fde2508cd8e71393a89fab45d62",
        "code.module.css": "sha256-795e9e62fcedbf7f83b8548fc99d7f2b392e5eca7ce3ee1dcdc98005b69340ae",
        "code.meta.ts": "sha256-faf461b81e79a4319aeb972d20e564b62343dac5fd61978b30bdb398e11ba58b"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["typography", "code", "inline", "mono"],
      "meta": {
        "name": "Code",
        "description": "Inline code span for identifiers, commands, and short snippets",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "code",
            "data": {
              "data-size": ["sm", "md"]
            },
            "children": ["$slot"],
            "emit": "auto"
          }
        },
        "states": [],
        "variants": [],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "The code text"
          }
        ],
        "tokens": [
          "--cascivo-font-mono",
          "--cascivo-color-text",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-indicator",
          "--cascivo-text-xs",
          "--cascivo-text-sm"
        ],
        "accessibility": {
          "role": "code",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Code>npx cascivo add button</Code>"
          },
          {
            "title": "In a sentence",
            "code": "<Text>Run <Code>vp check</Code> before committing.</Text>",
            "description": "Sits inline with surrounding text"
          },
          {
            "title": "Small",
            "code": "<Code size=\"sm\">--cascivo-color-accent</Code>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["typography", "code", "inline", "mono"],
        "intent": {
          "whenToUse": [
            "Marking up an inline identifier, command, path, or token within prose",
            "Distinguishing literal code from surrounding text with a monospace span"
          ],
          "whenNotToUse": [
            "Multi-line code blocks with syntax highlighting — use a <pre> block",
            "Keyboard shortcuts the user should press — use Kbd"
          ],
          "antiPatterns": [
            {
              "bad": "<Code>Press Cmd+K</Code>",
              "good": "<Kbd>⌘</Kbd> <Kbd>K</Kbd>",
              "why": "Code marks literal code; key presses are semantically Kbd"
            }
          ],
          "related": [
            {
              "name": "Kbd",
              "relationship": "alternative",
              "reason": "Kbd is for keys to press, not code to read"
            },
            {
              "name": "Prose",
              "relationship": "pairs-with",
              "reason": "Prose styles inline <code> automatically in authored content"
            }
          ],
          "a11yRationale": "Renders a native <code> element so assistive tech can expose the content as code; relies on monospace and surface, not color alone, to distinguish it",
          "flexibility": [
            {
              "area": "size",
              "level": "flexible",
              "note": "sm fits dense UI; md matches body text"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Font and surface must resolve to --cascivo-font-mono and --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "code-snippet",
      "type": "component",
      "description": "Displays code (inline, single-line, or multi-line) with an optional copy button, lightweight built-in syntax highlighting for bash/css/js/ts, and an optional terminal-window look",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code-snippet/code-snippet.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code-snippet/highlight.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code-snippet/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code-snippet/code-snippet.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/code-snippet/code-snippet.meta.ts"
      ],
      "fileHashes": {
        "code-snippet.tsx": "sha256-05cc8956133077cb5324e51dfe00102c80f790b7164900ca5f1e6c50752b17e6",
        "highlight.ts": "sha256-252064dd28611c901ce64e2804a11fd5725555af31421768d3178aeba15badea",
        "index.ts": "sha256-f36499ede047cbe5afebdecb12696b34918c8eabcd93fe8448026eb329956b1a",
        "code-snippet.module.css": "sha256-85e9422e76aba669082e03bda4e0d659b48f8a2723dd9c4a1914e179fbcfd36e",
        "code-snippet.meta.ts": "sha256-24935302563235e2cd34202b2a1e3149b38cffdad57f5af263cfdbe48640f9ce"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": [
        "display",
        "code",
        "snippet",
        "copy",
        "pre",
        "syntax-highlighting",
        "terminal",
        "bash",
        "css",
        "js",
        "ts"
      ],
      "meta": {
        "name": "CodeSnippet",
        "description": "Displays code (inline, single-line, or multi-line) with an optional copy button, lightweight built-in syntax highlighting for bash/css/js/ts, and an optional terminal-window look",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["span", "div"],
            "local": "root",
            "data": {
              "data-variant": ["inline", "single", "multi"],
              "data-terminal": [""]
            },
            "children": ["bar", "pre", "inlineCode", "copy"],
            "emit": "manual"
          },
          "parts": {
            "bar": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["dots", "title"],
              "when": "terminal"
            },
            "dots": {
              "element": "span",
              "children": ["dot"]
            },
            "dot": {
              "element": "span"
            },
            "title": {
              "element": "span",
              "children": ["$text"],
              "when": "title"
            },
            "pre": {
              "element": "pre",
              "children": ["code", "line"]
            },
            "code": {
              "element": "code",
              "children": ["$text", "line"]
            },
            "line": {
              "element": "span",
              "children": ["lineNumber", "lineText"]
            },
            "lineNumber": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "lineText": {
              "element": "span",
              "children": ["$text"]
            },
            "inlineCode": {
              "element": "code",
              "children": ["$text"]
            },
            "copy": {
              "element": "button",
              "data": {
                "data-state": ["idle", "copied"]
              },
              "aria": ["aria-label"],
              "children": ["icon"],
              "when": "showCopyButton"
            },
            "icon": {
              "element": "svg",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": ["idle", "copied"],
        "variants": ["inline", "single", "multi"],
        "sizes": [],
        "props": [
          {
            "name": "code",
            "description": "The code to display (and copy). Equivalent to passing a plain string as `children`; `code` wins if both are given, and one of the two is required. A string rather than a ReactNode because the content is tokenized for highlighting and handed to the clipboard.",
            "type": "string",
            "required": false
          },
          {
            "name": "children",
            "description": "The code, as children — `<CodeSnippet>npm i foo</CodeSnippet>`. Must be a plain string (interpolation is fine, arbitrary elements are not).",
            "type": "string",
            "required": false
          },
          {
            "name": "variant",
            "description": "inline = a <code> span; single = one-line <pre>; multi = multi-line <pre>.",
            "type": "'inline' | 'single' | 'multi'",
            "required": false,
            "default": "single"
          },
          {
            "name": "language",
            "description": "Enables built-in syntax highlighting for the block variants; inline is never highlighted.",
            "type": "'bash' | 'css' | 'js' | 'ts'",
            "required": false
          },
          {
            "name": "terminal",
            "description": "Renders terminal-window chrome (title bar with dots). Block variants only.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "title",
            "description": "Optional label shown in the terminal title bar.",
            "type": "string",
            "required": false
          },
          {
            "name": "showLineNumbers",
            "description": "Show line numbers (multi only; ignored when language is set).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "showCopyButton",
            "description": "Show the copy-to-clipboard button. Defaults true for single/multi, false for inline.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ copy?: string; copied?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-font-mono",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-surface",
          "--cascivo-radius-control"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"]
        },
        "examples": [
          {
            "title": "Install command",
            "code": "<CodeSnippet code=\"npx cascivo add button\" language=\"bash\" />"
          },
          {
            "title": "Inline",
            "code": "<p>Run <CodeSnippet variant=\"inline\" code=\"pnpm build\" /> first.</p>"
          },
          {
            "title": "Terminal block",
            "code": "<CodeSnippet\n  variant=\"multi\"\n  language=\"bash\"\n  terminal\n  title=\"deploy.sh\"\n  code={'pnpm build\\npnpm deploy'}\n/>",
            "description": "Multi-line shell transcript with terminal-window chrome."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": [
          "display",
          "code",
          "snippet",
          "copy",
          "pre",
          "syntax-highlighting",
          "terminal",
          "bash",
          "css",
          "js",
          "ts"
        ],
        "intent": {
          "whenToUse": [
            "Showing a command, token, or path the user is expected to copy",
            "Displaying a short read-only code block in docs or UI",
            "Inline code references inside flowing text (inline variant)"
          ],
          "whenNotToUse": [
            "An editable code input — use a textarea or code editor",
            "Whole source files needing folding, diagnostics, or many languages — use a dedicated viewer; the built-in highlighter is a presentational scan for bash/css/js/ts only"
          ],
          "antiPatterns": [
            {
              "bad": "<CodeSnippet variant=\"inline\" code={\"line1\\nline2\"} />",
              "good": "<CodeSnippet variant=\"multi\" code={\"line1\\nline2\"} />",
              "why": "The inline variant is a single in-text chip; multi-line content belongs in the multi variant"
            }
          ],
          "related": [
            {
              "name": "CopyButton",
              "relationship": "pairs-with",
              "reason": "CodeSnippet embeds the same clipboard behavior for its copy affordance"
            }
          ],
          "a11yRationale": "Code is rendered in semantic <code>/<pre>. The copy button is a real button with an aria-label that flips between the copy and copied messages so the action and its result are announced. Line numbers are aria-hidden so they are not read as content.",
          "flexibility": [
            {
              "area": "variant",
              "level": "strict",
              "note": "inline | single | multi — controls the wrapping element and layout"
            },
            {
              "area": "copy button",
              "level": "flexible",
              "note": "Shown by default for single/multi; togglable via showCopyButton"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "collapsible",
      "type": "component",
      "description": "A single disclosure region toggled open and closed by its trigger",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/collapsible/collapsible.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/collapsible/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/collapsible/collapsible.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/collapsible/collapsible.meta.ts"
      ],
      "fileHashes": {
        "collapsible.tsx": "sha256-2864d6e8532a79077079950e22caedd33ad4123674ff5d99498efd0405aa1008",
        "index.ts": "sha256-a0f206a70adabe1567e129778a34ab5e2272bac9526cb7712e1e4eeb27d4a6c3",
        "collapsible.module.css": "sha256-f007d00fdbdaeb7fb68e214100a8f1173391136a28a60f0b154a689e46af4594",
        "collapsible.meta.ts": "sha256-e4b3c6ea37c9f0bb30f3e064e090f2508c2629188b9908a9034ef6330854cf6f"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["Disclosure", "disclosure", "AccordionItem"],
      "tags": ["disclosure", "collapse", "expand", "toggle", "show-hide"],
      "meta": {
        "name": "Collapsible",
        "description": "A single disclosure region toggled open and closed by its trigger",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "details",
            "local": "root",
            "data": {
              "data-state": ["open", "closed"]
            },
            "children": ["trigger", "content"],
            "emit": "manual"
          },
          "parts": {
            "trigger": {
              "element": "summary",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-controls", "aria-disabled"],
              "children": ["$slot"]
            },
            "content": {
              "element": "div",
              "role": "region",
              "aria": ["aria-labelledby"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "type": "boolean",
            "required": false,
            "description": "Controlled open state"
          },
          {
            "name": "defaultOpen",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Initial open state for uncontrolled use"
          },
          {
            "name": "onOpenChange",
            "type": "(open: boolean) => void",
            "required": false,
            "description": "Called whenever the open state should change"
          },
          {
            "name": "trigger",
            "type": "ReactNode",
            "required": true,
            "description": "Content rendered inside the built-in trigger button"
          },
          {
            "name": "disabled",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Disables the trigger. Enforced in the enhancement layer — <details> has no native disabled state, so with JavaScript off a disabled Collapsible is still operable"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Content of the collapsible region"
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-control",
          "--cascivo-focus-ring",
          "--cascivo-space-3",
          "--cascivo-duration-200",
          "--cascivo-ease-out"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"],
          "apgPattern": "disclosure",
          "forcedColors": true,
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Uncontrolled",
            "code": "<Collapsible trigger=\"Show details\">\n  <p>Hidden content revealed on toggle.</p>\n</Collapsible>"
          },
          {
            "title": "Open by default",
            "code": "<Collapsible defaultOpen trigger=\"Details\">\n  <p>Visible initially.</p>\n</Collapsible>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["disclosure", "collapse", "expand", "toggle", "show-hide"],
        "intent": {
          "whenToUse": [
            "Hiding a single secondary block until the user asks for it",
            "Progressive disclosure of details, advanced options, or supplementary text",
            "Toggling one region whose state you may want to control externally"
          ],
          "whenNotToUse": [
            "Several mutually related sections — use Accordion instead",
            "Transient overlays anchored to a trigger — use Dropdown or Popover"
          ],
          "antiPatterns": [
            {
              "bad": "Stacking many Collapsibles to emulate an accordion",
              "good": "Use Accordion when sections are a related set",
              "why": "Accordion manages single/multiple-open semantics and shared keyboard navigation"
            }
          ],
          "related": [
            {
              "name": "Accordion",
              "relationship": "alternative",
              "reason": "Multi-region disclosure; Collapsible is the single-region case"
            }
          ],
          "a11yRationale": "Built on a native <details>/<summary>, so the button role, the expanded state, and Enter/Space activation come from the platform rather than from ARIA, and the content renders before any JavaScript runs; the region is labelled by the trigger so screen readers announce the disclosure target",
          "flexibility": [
            {
              "area": "open state",
              "level": "flexible",
              "note": "Controlled or uncontrolled via open / defaultOpen"
            },
            {
              "area": "trigger markup",
              "level": "strict",
              "note": "Always rendered as a native button for keyboard and a11y correctness"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "color-picker",
      "type": "component",
      "description": "Interactive color selection widget with saturation/lightness area, hue and alpha sliders",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/color-picker/color-picker.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/color-picker/color.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/color-picker/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/color-picker/color-picker.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/color-picker/color-picker.meta.ts"
      ],
      "fileHashes": {
        "color-picker.tsx": "sha256-d7149a24479219e5fa12f81a39d0f7754bee5c2cb919a27176145e2ad143b2d6",
        "color.ts": "sha256-1bc572843880e93d5df3dc7ca0c7f704e32833d07cc5a2bdda9d768b969594ae",
        "index.ts": "sha256-120305c1bb7f369a90401d00c51b72b88b325c69693760f07fc84e2ee8df4c1e",
        "color-picker.module.css": "sha256-fda41b8535be08f4a2edac344dbd683dc826b013c5c13bb3349656f6d445560b",
        "color-picker.meta.ts": "sha256-9cc3c7db68aea3308e75aec72e3855d802c5d634809465d1a6554c720995ae73"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["color", "input", "form", "picker", "hue", "alpha"],
      "meta": {
        "name": "ColorPicker",
        "description": "Interactive color selection widget with saturation/lightness area, hue and alpha sliders",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-disabled": "string"
            },
            "children": ["label", "area", "sliders", "row", "presets", "srOnly"]
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"]
            },
            "area": {
              "element": "div",
              "role": "group",
              "aria": ["aria-label"],
              "children": ["axis", "thumb"]
            },
            "axis": {
              "element": "input",
              "aria": ["aria-label", "aria-valuetext"]
            },
            "thumb": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "sliders": {
              "element": "div",
              "children": ["slider"]
            },
            "slider": {
              "element": "input",
              "aria": ["aria-label", "aria-valuetext"],
              "modifiers": {
                "hue": "hue slider",
                "alpha": "alpha slider"
              }
            },
            "row": {
              "element": "div",
              "children": ["preview", "hex", "eyedropper"]
            },
            "preview": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "hex": {
              "element": "input",
              "aria": ["aria-label", "aria-labelledby", "aria-describedby", "aria-invalid"]
            },
            "eyedropper": {
              "element": "button",
              "when": "EyeDropper support",
              "aria": ["aria-label"]
            },
            "presets": {
              "element": "div",
              "role": "group",
              "aria": ["aria-label"],
              "children": ["preset"]
            },
            "preset": {
              "element": "button",
              "aria": ["aria-label", "aria-pressed"]
            },
            "srOnly": {
              "element": "span",
              "role": "status",
              "aria": ["aria-live"],
              "children": ["$text"]
            }
          }
        },
        "states": ["default", "disabled"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "labels",
            "type": "ColorPickerLabels",
            "required": false,
            "description": "Overrides for the component’s user-visible strings (i18n)."
          },
          {
            "name": "value",
            "type": "string",
            "required": false,
            "description": "Controlled hex color value"
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false,
            "default": "#3b82f6"
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "presets",
            "type": "string[]",
            "required": false,
            "description": "Preset swatch colors"
          },
          {
            "name": "alpha",
            "description": "When true, enables alpha (opacity) selection.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "format",
            "description": "Notation for the emitted value. Alpha is included whenever alpha is on, so the emitted string has a stable width.",
            "type": "'hex' | 'rgb' | 'hsl'",
            "required": false,
            "default": "'hex'"
          },
          {
            "name": "name",
            "description": "Submitted with a surrounding form — a hidden input carrying the current value.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "aria-labelledby",
            "description": "Wired automatically by a wrapping `Field` — its label id, forwarded to the focusable control so the Field's label names it.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-describedby",
            "description": "Wired automatically by a wrapping `Field` — the ids of its hint/error text, forwarded to the focusable control so the supporting text is announced.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-invalid",
            "description": "Wired automatically by a wrapping `Field` when it is in an error state.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "id",
            "description": "Id for the **focusable control** (not the wrapper), so a `<label for>` names what actually takes focus. `Field` supplies this automatically.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-radius-md",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "forcedColors": true,
          "reducedMotion": true,
          "keyboard": [
            "ArrowLeft",
            "ArrowRight",
            "ArrowUp",
            "ArrowDown",
            "Home",
            "End",
            "PageUp",
            "PageDown",
            "Enter",
            "Escape"
          ]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<ColorPicker defaultValue=\"#3b82f6\" onValueChange={setColor} />"
          },
          {
            "title": "With presets",
            "code": "<ColorPicker presets={[\"#ef4444\", \"#3b82f6\", \"#10b981\"]} alpha={false} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["color", "input", "form", "picker", "hue", "alpha"],
        "intent": {
          "whenToUse": [
            "Letting a user choose an arbitrary color via a visual saturation/lightness area plus hue control",
            "Brand or theme customization UIs where an exact color value (hex) is captured",
            "Forms that need an optional alpha channel alongside the color"
          ],
          "whenNotToUse": [
            "Choosing from a small fixed palette only — use a swatch RadioGroup instead",
            "A single accent toggle where a few preset chips suffice"
          ],
          "antiPatterns": [
            {
              "bad": "<ColorPicker /> with no presets for a brand palette of 4 fixed colors",
              "good": "<RadioGroup> of color swatches",
              "why": "A free-form picker invites off-brand values when only a fixed set is allowed"
            }
          ],
          "related": [
            {
              "name": "Slider",
              "relationship": "contains",
              "reason": "Hue and alpha channels are range sliders"
            },
            {
              "name": "Input",
              "relationship": "pairs-with",
              "reason": "The hex text field lets users paste an exact value"
            }
          ],
          "a11yRationale": "The picking area is a role=\"group\" holding one native range input per axis — saturation on x, brightness on y — rather than a single role=\"slider\", which cannot describe two dimensions and in the previous build carried no aria-valuenow at all. Real inputs also mean arrow stepping, Home/End and PageUp/PageDown are the platform's rather than a hand-rolled key switch, and each axis announces its own percentage. Hue and alpha are native range inputs for the same reason. The preset swatches are a labelled role=\"group\" of toggle buttons with roving focus, so the arrows move focus between swatches and Enter or Space selects — the previous build labelled that group \"Saturation and lightness\" and made the arrows change the value instead. The hex field commits on blur, Enter or a valid paste and rejects anything unparseable, so a half-typed value never reaches onValueChange. A polite live region reports the current colour, mounted before the first change so that change is announced too. Selection and focus each carry a non-colour channel under forced-colors, and every control reaches the coarse-pointer target minimum.",
          "flexibility": [
            {
              "area": "output format",
              "level": "flexible",
              "note": "format switches between hex, rgb() and hsl(); alpha is included whenever the alpha prop is on"
            },
            {
              "area": "color model",
              "level": "flexible",
              "note": "Values are stored as hex; consumers can convert to rgb/hsl/oklch as needed"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surfaces, borders and focus ring must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "combobox",
      "type": "component",
      "description": "Filterable single-select with an animated custom listbox, built on the dropdown open/close machine",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/combobox/combobox.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/combobox/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/combobox/list-nav.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/combobox/option-list.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/combobox/combobox.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/combobox/combobox.meta.ts"
      ],
      "fileHashes": {
        "combobox.tsx": "sha256-98b2f402a87a918b300e73bd07fa6d573ddcf016ee44a23c096eb97b9611f232",
        "index.ts": "sha256-3b6d63e5ee9bc60b3bfb305ec9c05e16ed11af1dcc6b99f167af2f87f420c3ff",
        "list-nav.ts": "sha256-c353010ce8a580307537312e0d1aac711fb76013d3bf882e328b4873e8d4e16a",
        "option-list.ts": "sha256-054bf4fc0c361a2ea48732052371e30756c70ec34736672bae340abd16beae2f",
        "combobox.module.css": "sha256-e8b41dfe8892ee406b15790fc22c9ef0e0f6f167b8b0e0610551227870aa5771",
        "combobox.meta.ts": "sha256-be62d31081985c0dbb145e960a865c5c6ddf873221c37bbbdce4a76e8cfe89af"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["select", "combobox", "dropdown", "filter", "search"],
      "meta": {
        "name": "Combobox",
        "description": "Filterable single-select with an animated custom listbox, built on the dropdown open/close machine",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["closed", "open", "error"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["label", "field", "popup", "srOnly", "error", "hint"]
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"]
            },
            "field": {
              "element": "div",
              "children": ["trigger", "clear", "chevron"]
            },
            "trigger": {
              "element": ["input", "button"],
              "aria": [
                "aria-expanded",
                "aria-controls",
                "aria-haspopup",
                "aria-activedescendant",
                "aria-labelledby",
                "aria-label",
                "aria-invalid",
                "aria-describedby",
                "aria-required",
                "aria-autocomplete"
              ],
              "children": ["value"]
            },
            "value": {
              "element": "span",
              "modifiers": {
                "placeholder": "no option selected"
              },
              "children": ["$text"]
            },
            "clear": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["clearGlyph"]
            },
            "clearGlyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "chevron": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "popup": {
              "element": "div",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["listbox", "empty"]
            },
            "listbox": {
              "element": "div",
              "role": "listbox",
              "aria": ["aria-label", "aria-busy"],
              "children": ["group", "option"]
            },
            "group": {
              "element": "div",
              "role": "group",
              "aria": ["aria-label"],
              "children": ["groupLabel", "option"]
            },
            "groupLabel": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "option": {
              "element": "div",
              "role": "option",
              "data": {
                "data-state": ["active"],
                "data-disabled": "string"
              },
              "aria": ["aria-selected", "aria-disabled"],
              "modifiers": {
                "create": "creatable"
              },
              "children": ["optionLabel", "check", "$text"]
            },
            "optionLabel": {
              "element": "span",
              "children": ["match", "$text"]
            },
            "match": {
              "element": "mark",
              "children": ["$text"]
            },
            "check": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "empty": {
              "element": "div",
              "role": "status",
              "children": ["$text"]
            },
            "srOnly": {
              "element": "span",
              "role": "status",
              "aria": ["aria-live"],
              "children": ["$text"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "children": ["$text"]
            },
            "hint": {
              "element": "span",
              "children": ["$text"]
            }
          }
        },
        "states": ["closed", "open", "error"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "id",
            "type": "string",
            "required": false,
            "description": "Base id for the input and its listbox/aria wiring; auto-generated when omitted."
          },
          {
            "name": "options",
            "description": "The selectable options.",
            "type": "ComboboxOption[]",
            "required": true
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "onValueChange",
            "description": "Called with the selected option value (or undefined when cleared).",
            "type": "(value: string | undefined) => void",
            "required": false
          },
          {
            "name": "clearable",
            "description": "When true, shows a control to clear the selected value.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "searchable",
            "description": "When true the field is a text input that filters the list as the user types (the APG editable combobox). When false it is a button that opens the list, and type-to-select jumps to a matching option (the APG select-only combobox).",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "loading",
            "description": "When true, the list reports itself as busy and shows a loading row instead of the empty message.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onSearchChange",
            "description": "Called with the search text on every keystroke. Pair it with filter={() => true} for a server-driven list.",
            "type": "(query: string) => void",
            "required": false
          },
          {
            "name": "filter",
            "description": "Replaces the built-in diacritic-insensitive matcher.",
            "type": "(option: ComboboxOption, query: string) => boolean",
            "required": false
          },
          {
            "name": "creatable",
            "description": "When true, offers the current search text as a new option.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onCreate",
            "description": "Called with the typed label when the user picks the \"create\" row.",
            "type": "(label: string) => void",
            "required": false
          },
          {
            "name": "name",
            "description": "Submitted with a surrounding form — a hidden input carrying the selected value.",
            "type": "string",
            "required": false
          },
          {
            "name": "required",
            "description": "Marks the control as required for assistive technology.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "open",
            "description": "Controlled open state of the listbox.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "defaultOpen",
            "description": "The initial open state when uncontrolled.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onOpenChange",
            "description": "Called when the listbox opens or closes.",
            "type": "(open: boolean) => void",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "hint",
            "description": "Supplementary hint text shown with the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "error",
            "description": "Error message shown when the value is invalid.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "'md'"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "ComboboxLabels",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-labelledby",
            "description": "Wired automatically by a wrapping `Field` — its label id, forwarded to the focusable control so the Field's label names it.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-describedby",
            "description": "Wired automatically by a wrapping `Field` — the ids of its hint/error text, forwarded to the focusable control so the supporting text is announced.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-invalid",
            "description": "Wired automatically by a wrapping `Field` when it is in an error state.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-surface",
          "--cascivo-color-surface-overlay",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-text-subtle",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-font-medium",
          "--cascivo-font-bold",
          "--cascivo-radius-field",
          "--cascivo-radius-overlay",
          "--cascivo-radius-item",
          "--cascivo-radius-control",
          "--cascivo-shadow-overlay",
          "--cascivo-motion-enter",
          "--cascivo-z-dropdown",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "combobox",
          "wcag": "2.2-AA",
          "apgPattern": "combobox",
          "keyboard": [
            "ArrowDown",
            "ArrowUp",
            "Home",
            "End",
            "PageUp",
            "PageDown",
            "Enter",
            "Space",
            "Escape",
            "Tab"
          ],
          "forcedColors": true,
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Grouped options",
            "code": "<Combobox options={[{value:'de',label:'Germany',group:'Europe'},{value:'jp',label:'Japan',group:'Asia'}]} />",
            "description": "Options carrying a group render under a labelled role=\"group\" heading."
          },
          {
            "title": "Remote search",
            "code": "<Combobox options={results} loading={pending} onSearchChange={search} filter={() => true} />",
            "description": "filter={() => true} hands filtering to the server; loading marks the list busy between keystroke and response."
          },
          {
            "title": "Select-only",
            "code": "<Combobox options={options} searchable={false} />",
            "description": "A button rather than a text field; printable characters type-to-select, and Home/End jump the list."
          },
          {
            "title": "Basic combobox",
            "code": "<Combobox\n  label=\"Country\"\n  options={[\n    { value: 'us', label: 'United States' },\n    { value: 'de', label: 'Germany' },\n    { value: 'fr', label: 'France' },\n  ]}\n  onValueChange={(value) => console.log(value)}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["select", "combobox", "dropdown", "filter", "search"],
        "intent": {
          "whenToUse": [
            "Single-select from a long list where type-to-filter makes finding an option faster",
            "Form fields where the value is one of many known options (country, assignee, repository)"
          ],
          "whenNotToUse": [
            "Short option lists (≈2–7) where filtering adds no value — use Select or SegmentedControl",
            "Selecting multiple values — use MultiSelect",
            "Triggering actions or commands — use Dropdown or CommandMenu"
          ],
          "antiPatterns": [
            {
              "bad": "Using Combobox to fire actions like \"Delete\" or \"Export\"",
              "good": "Use Dropdown for actions; Combobox is for picking a value",
              "why": "Combobox has role=\"combobox\" with a listbox of selectable values and onValueChange semantics — actions belong in a menu"
            },
            {
              "bad": "Setting searchable={false} on a 200-item list",
              "good": "Keep the default searchable so the user can filter",
              "why": "Type-to-select still jumps to a matching option, but without a visible filter a 200-row list is an unusable scroll; searchable={false} is for short lists"
            },
            {
              "bad": "<Combobox options={remote} onSearchChange={search} />",
              "good": "<Combobox options={remote} onSearchChange={search} filter={() => true} />",
              "why": "The built-in matcher still runs over the server’s results and filters them a second time against the same query, hiding rows the server deliberately returned"
            }
          ],
          "related": [
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Use for short lists that do not need type-to-filter"
            },
            {
              "name": "MultiSelect",
              "relationship": "alternative",
              "reason": "Use when more than one value can be selected"
            },
            {
              "name": "CommandMenu",
              "relationship": "alternative",
              "reason": "Use the Cmd+K palette for command/navigation search rather than value selection"
            }
          ],
          "a11yRationale": "Two APG combobox shapes, chosen by `searchable`. With searchable (the default) the field is an <input role=\"combobox\"> with aria-autocomplete=\"list\" that filters as the user types — the APG editable combobox. With searchable={false} it is a <button role=\"combobox\"> and printable characters type-to-select — the APG select-only combobox. Either way the field itself keeps DOM focus and owns aria-expanded, aria-controls and aria-activedescendant, so assistive technology tracks the active option as the arrows move it; the previous build put aria-activedescendant on a trigger while focus had moved into a separate search input, so nothing was tracked. The listbox holds only role=\"option\" rows (with aria-selected and aria-disabled) and role=\"group\" headings — the loading and no-results messages are siblings of it, as role=\"listbox\" owns no other children. ArrowUp/ArrowDown skip disabled rows and wrap, PageUp/PageDown move by ten, Alt+ArrowDown opens without moving the active option and Alt+ArrowUp closes keeping the value, Enter selects, Escape closes and returns focus to the field, and Tab closes without stealing focus back. Home/End jump the list only in the select-only variant, because in the editable one they belong to the text caret. Outside-pointer and Escape dismissal come from the shared DismissableLayer rather than a hand-rolled document listener. A polite live region reports the result count as the filter narrows. Selection, the active row and the focus ring each carry a non-colour channel under forced-colors, and every control reaches the coarse-pointer target minimum.",
          "flexibility": [
            {
              "area": "searchable",
              "level": "flexible",
              "note": "Filtering can be toggled off for short lists via searchable={false}"
            },
            {
              "area": "controlled vs uncontrolled",
              "level": "flexible",
              "note": "Supports value + onValueChange or defaultValue"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Listbox/field styling resolves to semantic --cascivo-color-* / --cascivo-radius-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "command-menu",
      "type": "component",
      "description": "Cmd+K command palette with fuzzy search over grouped commands",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/command-menu/command-menu.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/command-menu/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/command-menu/command-menu.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/command-menu/command-menu.meta.ts"
      ],
      "fileHashes": {
        "command-menu.tsx": "sha256-eb7e7894b122b6e23e4086821176b329a0e0253d89917a68acfb99724581a700",
        "index.ts": "sha256-d08d121a4ef16627e1f176642cad93e731582c02ee31e7a6f0a8a1babc717715",
        "command-menu.module.css": "sha256-00c3aca20cd16fa9aa0b42959541f46120480085841c6ecaf895940886d33efb",
        "command-menu.meta.ts": "sha256-38d668e8578dc9105769a48a7f7093b9edb9f4401a9c6fb0b2c8af09e13c639a"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["CommandPalette", "Cmdk", "cmdk", "Spotlight"],
      "tags": ["overlay", "command", "palette", "search", "cmdk", "keyboard", "scope", "fuzzy"],
      "meta": {
        "name": "CommandMenu",
        "description": "Cmd+K command palette with fuzzy search over grouped commands",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "dialog",
            "local": "dialog",
            "aria": ["aria-label"],
            "children": ["panel"]
          },
          "parts": {
            "panel": {
              "element": "div",
              "children": ["search", "scopes", "list", "footer"]
            },
            "search": {
              "element": "div",
              "children": ["searchIcon", "scopeChip", "input"]
            },
            "searchIcon": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "scopeChip": {
              "element": "span",
              "children": ["$text", "scopeClear"]
            },
            "scopeClear": {
              "element": "button",
              "aria": ["aria-label"]
            },
            "input": {
              "element": "input",
              "role": "combobox",
              "aria": [
                "aria-expanded",
                "aria-controls",
                "aria-activedescendant",
                "aria-autocomplete",
                "aria-label"
              ]
            },
            "scopes": {
              "element": "div",
              "children": ["scopesLabel", "scopePill"]
            },
            "scopesLabel": {
              "element": "span",
              "children": ["$text"]
            },
            "scopePill": {
              "element": "button",
              "data": {
                "data-active": "string"
              },
              "children": ["scopePrefix", "$text"]
            },
            "scopePrefix": {
              "element": "span",
              "children": ["$text"]
            },
            "list": {
              "element": "div",
              "children": ["group", "empty"]
            },
            "group": {
              "element": "div",
              "role": "group",
              "aria": ["aria-label"],
              "children": ["heading", "option"]
            },
            "heading": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["$text", "count"]
            },
            "count": {
              "element": "span",
              "children": ["$text"]
            },
            "option": {
              "element": "div",
              "role": "option",
              "data": {
                "data-state": ["active"],
                "data-disabled": "string"
              },
              "aria": ["aria-selected", "aria-disabled"],
              "children": ["icon", "text", "status", "actions", "shortcut"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "text": {
              "element": "span",
              "children": ["label", "description"]
            },
            "label": {
              "element": "span",
              "children": ["match", "$text"]
            },
            "match": {
              "element": "mark",
              "children": ["$text"]
            },
            "description": {
              "element": "span",
              "children": ["$text"]
            },
            "status": {
              "element": "span",
              "data": {
                "data-tone": "string"
              },
              "children": ["statusDot", "$text"]
            },
            "statusDot": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "actions": {
              "element": "span",
              "children": ["action"]
            },
            "action": {
              "element": "span",
              "children": ["$text", "actionKeys"]
            },
            "actionKeys": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["@kbd"]
            },
            "shortcut": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["@kbd"]
            },
            "empty": {
              "element": "div",
              "role": "status",
              "children": ["@spinner", "$text"]
            },
            "footer": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["hint"]
            },
            "hint": {
              "element": "span",
              "children": ["@kbd", "$text"]
            }
          }
        },
        "states": ["closed", "open"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": true
          },
          {
            "name": "onOpenChange",
            "description": "Called with the next open state when it changes.",
            "type": "(open: boolean) => void",
            "required": true
          },
          {
            "name": "groups",
            "description": "The grouped commands to display.",
            "type": "CommandGroup[]",
            "required": true
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false,
            "default": "Type a command or search…"
          },
          {
            "name": "emptyLabel",
            "description": "Text shown when no commands match the query.",
            "type": "string",
            "required": false,
            "default": "No results found"
          },
          {
            "name": "hotkey",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "Global Cmd/Ctrl+K toggles the menu via onOpenChange"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Accessible name for the command dialog. Not rendered — screen readers only.",
            "type": "string",
            "required": false,
            "default": "Command menu"
          },
          {
            "name": "loading",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Shows a loading spinner in place of the empty state (for async items)"
          },
          {
            "name": "onQueryChange",
            "type": "(query: string) => void",
            "required": false,
            "description": "Fires on every query keystroke — use to fetch async items"
          },
          {
            "name": "scopes",
            "default": "[]",
            "type": "CommandScope[]",
            "required": false,
            "description": "Selectable filter scopes. Renders a scope bar + chip; a scope activates by clicking its pill, typing its prefix (c:/c ), or cycling with Tab, and filters to groups tagged with a matching scope (plus untagged groups)."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface-overlay",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-text-subtle",
          "--cascivo-color-accent-content",
          "--cascivo-color-accent-muted",
          "--cascivo-color-accent-subtle",
          "--cascivo-color-success-subtle",
          "--cascivo-color-success-foreground",
          "--cascivo-color-warning-subtle",
          "--cascivo-color-warning-foreground",
          "--cascivo-font-mono",
          "--cascivo-radius-modal",
          "--cascivo-radius-sm",
          "--cascivo-shadow-xl",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "combobox",
          "wcag": "2.2-AA",
          "keyboard": [
            "Cmd/Ctrl+K",
            "ArrowDown",
            "ArrowUp",
            "Home",
            "End",
            "Enter",
            "Cmd/Ctrl+Enter",
            "Tab",
            "Backspace",
            "Escape"
          ]
        },
        "examples": [
          {
            "title": "Basic command menu",
            "code": "<CommandMenu\n  open={open}\n  onOpenChange={setOpen}\n  groups={[\n    {\n      heading: 'Actions',\n      items: [\n        { id: 'new', label: 'New file', shortcut: ['⌘', 'N'], onSelect: createFile },\n        { id: 'search', label: 'Search docs', keywords: ['find'], onSelect: openSearch },\n      ],\n    },\n  ]}\n/>"
          },
          {
            "title": "Scoped search with rich rows and inline actions",
            "description": "A scope chip filters to Clusters, matched glyphs are highlighted, each row carries a mono metadata line + status pill, and the selected row reveals Open (↵) / New tab (⌘↵) inline actions.",
            "code": "<CommandMenu\n  open={open}\n  onOpenChange={setOpen}\n  scopes={[\n    { id: 'clusters', label: 'Clusters', prefix: 'c' },\n    { id: 'orgs', label: 'Orgs', prefix: 'o' },\n    { id: 'commands', label: 'Commands', prefix: '>' },\n  ]}\n  groups={[\n    {\n      heading: 'Clusters',\n      scope: 'clusters',\n      items: [\n        {\n          id: 'prod-eu',\n          label: 'prod-eu-central-1',\n          description: 'eu-central-1 · Enterprise · c9f21a04',\n          status: { label: 'Healthy', tone: 'healthy' },\n          actions: [\n            { id: 'open', label: 'Open', shortcut: ['↵'], onSelect: () => open('prod-eu') },\n            { id: 'tab', label: 'New tab', shortcut: ['⌘', '↵'], onSelect: () => openInTab('prod-eu') },\n          ],\n        },\n      ],\n    },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["kbd", "spinner"],
        "tags": ["overlay", "command", "palette", "search", "cmdk", "keyboard", "scope", "fuzzy"],
        "intent": {
          "whenToUse": [
            "Giving power users a global Cmd/Ctrl+K palette to search and run actions or navigate",
            "Exposing many commands across grouped categories that benefit from fuzzy search",
            "Multi-step flows where selecting an item drills into a nested page of further commands"
          ],
          "whenNotToUse": [
            "Picking a form value from a list — use Combobox",
            "A small set of actions tied to a specific trigger button — use Dropdown"
          ],
          "antiPatterns": [
            {
              "bad": "Using CommandMenu as a form field to capture a selected value",
              "good": "Use Combobox for value selection inside a form",
              "why": "CommandMenu is a modal command palette whose items run onSelect callbacks or open sub-pages; it has no controlled form value"
            },
            {
              "bad": "Items that set both page and an activation (onSelect/actions), or neither",
              "why": "Each item does one thing on Enter — run onSelect, run its first action, or push a nested page (page)"
            }
          ],
          "related": [
            {
              "name": "Combobox",
              "relationship": "alternative",
              "reason": "Use for filtering and selecting a form value rather than running commands"
            },
            {
              "name": "Dropdown",
              "relationship": "alternative",
              "reason": "Use for a small action menu anchored to a button instead of a global palette"
            },
            {
              "name": "Modal",
              "relationship": "contained-by",
              "reason": "Renders inside a native modal dialog with backdrop dismiss"
            }
          ],
          "a11yRationale": "The search input is role=\"combobox\" with aria-controls, aria-expanded, aria-autocomplete=\"list\" and aria-activedescendant so navigation is announced without moving DOM focus from the input; it renders in a native <dialog> for focus trapping, the empty/loading state uses role=\"status\", and footer hints, match highlights, status dots, and keycaps are aria-hidden as redundant decoration (status labels remain readable text). Scope pills are real buttons and the scope chip exposes an aria-labelled clear control",
          "content": {
            "tone": "Action-oriented item labels; short group headings",
            "notes": "Item labels are verb-first commands; use keywords for synonyms users might type"
          },
          "flexibility": [
            {
              "area": "hotkey",
              "level": "flexible",
              "note": "Global Cmd/Ctrl+K binding can be disabled via hotkey={false} for custom triggering"
            },
            {
              "area": "async items",
              "level": "flexible",
              "note": "onQueryChange + loading allow fetching items per keystroke"
            },
            {
              "area": "scopes",
              "level": "flexible",
              "note": "Optional scopes prop adds a filter bar/chip + typed prefixes; groups opt in via a scope id, untagged groups stay visible under any scope"
            },
            {
              "area": "inline actions",
              "level": "flexible",
              "note": "Items may declare actions[]; the first is Enter, the second Cmd/Ctrl+Enter, and each is clickable. Rows also support a description metadata line and a status pill"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Palette styling resolves to semantic --cascivo-color-* / --cascivo-radius-modal tokens"
            }
          ]
        }
      },
      "registryDependencies": ["kbd", "spinner"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "comparison",
      "type": "component",
      "description": "Reveals the difference between two layers with a draggable divider",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/comparison/comparison.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/comparison/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/comparison/comparison.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/comparison/comparison.meta.ts"
      ],
      "fileHashes": {
        "comparison.tsx": "sha256-d31ee8fa7ea0d6f64da2e7867f7d889ebe6ca8abc59c0d6c0f085978a383bebb",
        "index.ts": "sha256-ba53e6c6743020216aa95767b7b4242cf208f5172df936118948f5afac94a4da",
        "comparison.module.css": "sha256-aca33593240a1f285f5b2b96e077e9c78d592e67582938b093a65418a44ea34c",
        "comparison.meta.ts": "sha256-d6ed11be74bfbbefb5644f0bb0f820857fb8e573a0546395e8733f7a3fa8545f"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["comparison", "before-after", "image", "slider", "display"],
      "meta": {
        "name": "Comparison",
        "description": "Reveals the difference between two layers with a draggable divider",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-orientation": ["horizontal", "vertical"],
              "data-dragging": "string"
            },
            "children": ["item", "before", "divider"]
          },
          "parts": {
            "item": {
              "element": "div",
              "children": ["$slot"]
            },
            "before": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "divider": {
              "element": "div",
              "children": ["handle"]
            },
            "handle": {
              "element": "div",
              "role": "slider",
              "aria": [
                "aria-label",
                "aria-orientation",
                "aria-valuemin",
                "aria-valuemax",
                "aria-valuenow"
              ]
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "after",
            "type": "ReactNode",
            "required": true,
            "description": "Base layer shown underneath"
          },
          {
            "name": "before",
            "type": "ReactNode",
            "required": true,
            "description": "Top layer revealed up to the divider"
          },
          {
            "name": "position",
            "type": "number",
            "required": false,
            "description": "Divider position 0–100 (controlled)"
          },
          {
            "name": "defaultPosition",
            "description": "The initial divider position (0–100) when uncontrolled.",
            "type": "number",
            "required": false,
            "default": "50"
          },
          {
            "name": "onPositionChange",
            "description": "Called with the new divider position when it changes.",
            "type": "(position: number) => void",
            "required": false
          },
          {
            "name": "orientation",
            "description": "Axis you drag along. `horizontal` splits the two images left and right with a vertical divider; `vertical` splits them top and bottom with a horizontal one.",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "horizontal"
          },
          {
            "name": "keyboardStep",
            "description": "How far the divider moves per arrow-key press.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Accessible name for the divider slider. Not rendered — screen readers only.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-radius-md",
          "--cascivo-radius-full",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-focus-ring",
          "--cascivo-shadow-sm",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "slider",
          "wcag": "2.2-AA",
          "keyboard": [
            "ArrowLeft",
            "ArrowRight",
            "ArrowUp",
            "ArrowDown",
            "Home",
            "End",
            "PageUp",
            "PageDown"
          ],
          "apgPattern": "slider"
        },
        "examples": [
          {
            "title": "Image before/after",
            "code": "<Comparison before={<img src=\"/edited.jpg\" alt=\"\" />} after={<img src=\"/original.jpg\" alt=\"Original\" />} label=\"Reveal edited image\" />"
          },
          {
            "title": "Vertical",
            "code": "<Comparison orientation=\"vertical\" before={<Before />} after={<After />} />"
          },
          {
            "title": "Controlled",
            "code": "<Comparison position={position} onPositionChange={setPosition} before={<Before />} after={<After />} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["comparison", "before-after", "image", "slider", "display"],
        "intent": {
          "whenToUse": [
            "Showing the difference between two versions of similar content (before/after edits, original vs processed)",
            "Letting users interactively reveal one image or panel over another",
            "Side-by-side visual demos where a draggable divider is clearer than two static images"
          ],
          "whenNotToUse": [
            "Comparing more than two items — use a layout or table instead",
            "Non-visual data comparison — use a table or chart",
            "Static side-by-side images with no need for an interactive reveal"
          ],
          "antiPatterns": [
            {
              "bad": "<Comparison before={<Before />} after={<After />} /> with no label",
              "good": "<Comparison label=\"Reveal edited photo\" before={<Before />} after={<After />} />",
              "why": "The divider is a slider; without a label assistive tech announces an unnamed control"
            }
          ],
          "related": [
            {
              "name": "Slider",
              "relationship": "alternative",
              "reason": "Use Slider for selecting a numeric value rather than revealing layered content"
            },
            {
              "name": "Carousel",
              "relationship": "alternative",
              "reason": "Use Carousel to step through more than two pieces of content"
            }
          ],
          "a11yRationale": "The divider is a role=\"slider\" with aria-valuemin/max/now and full keyboard support (Arrow/Home/End/PageUp/PageDown); aria-orientation reflects the axis so the value and direction are conveyed without sight",
          "flexibility": [
            {
              "area": "orientation",
              "level": "flexible",
              "note": "Horizontal or vertical depending on the content"
            },
            {
              "area": "label",
              "level": "strict",
              "note": "Provide a label (or rely on the i18n default) so the slider is named"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "contained-list",
      "type": "component",
      "description": "Labelled list of rows inside a bordered container",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/contained-list/contained-list.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/contained-list/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/contained-list/contained-list.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/contained-list/contained-list.meta.ts"
      ],
      "fileHashes": {
        "contained-list.tsx": "sha256-4e5b4a2489f192a2991b41a557ffaddc1736fcc1422dfd3b0f5110d46cefe5bd",
        "index.ts": "sha256-135d12a12a06ff79dcda7b7e3971c5e3508296cee2b977e9f3137dce4e598ab9",
        "contained-list.module.css": "sha256-0e5173f57b1ed47368cce8555fff3c435f01ac6c168ea948ab9c1b574efd734f",
        "contained-list.meta.ts": "sha256-f0444be23ed356ecd2c616aa11d6c8a0d7fb5e2319fc5fd3fac6cb5be48bf2e7"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["list", "container", "rows", "group"],
      "meta": {
        "name": "ContainedList",
        "description": "Labelled list of rows inside a bordered container",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "data": {
              "data-kind": ["on-page", "disclosed"]
            },
            "children": ["header", "list"],
            "emit": "manual"
          },
          "parts": {
            "header": {
              "element": "div",
              "children": ["label", "action"]
            },
            "label": {
              "element": "h3",
              "children": ["$slot"]
            },
            "action": {
              "element": "div",
              "children": ["$slot"],
              "when": "action"
            },
            "list": {
              "element": "ul",
              "children": ["item"]
            },
            "item": {
              "element": "li",
              "data": {
                "data-interactive": [""]
              },
              "children": ["itemContent"]
            },
            "itemContent": {
              "element": ["div", "a", "button"],
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": ["on-page", "disclosed"],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "kind",
            "description": "Visual treatment — 'on-page' or 'disclosed'.",
            "type": "'on-page' | 'disclosed'",
            "required": false,
            "default": "on-page"
          },
          {
            "name": "action",
            "description": "Primary action shown in the component.",
            "type": "ReactNode",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-surface",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space"]
        },
        "examples": [
          {
            "title": "Basic contained list",
            "code": "<ContainedList label=\"Members\">\n  <ContainedListItem>Ada Lovelace</ContainedListItem>\n  <ContainedListItem>Alan Turing</ContainedListItem>\n</ContainedList>"
          },
          {
            "title": "Interactive rows",
            "code": "<ContainedList label=\"Settings\" kind=\"disclosed\">\n  <ContainedListItem asChild>\n    <button type=\"button\" onClick={open}>Profile</button>\n  </ContainedListItem>\n</ContainedList>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["list", "container", "rows", "group"],
        "intent": {
          "whenToUse": [
            "Grouping a short set of related rows under a visible heading in a bordered surface",
            "Presenting selectable or navigable rows (settings groups, member lists)",
            "Separating a labelled cluster of items from surrounding page content"
          ],
          "whenNotToUse": [
            "A long, virtualised data set — use a Table or DataList instead",
            "Plain bulleted prose where the container border adds no meaning — use List"
          ],
          "antiPatterns": [
            {
              "bad": "Putting interactive controls on a plain ContainedListItem div",
              "good": "Use ContainedListItem asChild with a <button> or <a> so the row is keyboard-focusable",
              "why": "A non-interactive div gives no focus or role semantics to assistive tech"
            }
          ],
          "related": [
            {
              "name": "List",
              "relationship": "alternative",
              "reason": "List is for unbordered prose lists; ContainedList adds a labelled surface"
            },
            {
              "name": "ContainedListItem",
              "relationship": "contains",
              "reason": "Each row is a ContainedListItem"
            }
          ],
          "a11yRationale": "The container heading labels the ul/li structure; interactive rows must slot a real button or link via asChild so role and focus are native, not faked on a div",
          "flexibility": [
            {
              "area": "kind",
              "level": "flexible",
              "note": "on-page sits inline; disclosed adds a header band for menus and popovers"
            },
            {
              "area": "list semantics",
              "level": "strict",
              "note": "Rows are always ul/li; do not replace with generic divs"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "context-menu",
      "type": "component",
      "description": "Right-click context menu anchored at pointer coordinates via CSS custom properties",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-menu/context-menu.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-menu/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-menu/context-menu.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-menu/context-menu.meta.ts"
      ],
      "fileHashes": {
        "context-menu.tsx": "sha256-55cf01dae920d60dde96a9058ca4a5482ea4cb46895c37c3da31e9997ca05d12",
        "index.ts": "sha256-5d669fbb67d4b0f55ea58287d3b7d3c3d0504a50d2016f1ce55439481de5446f",
        "context-menu.module.css": "sha256-56560bcc3e7c74bf522b5cbbd0e044e04143f35426dbfb003b4db968a5b89e7f",
        "context-menu.meta.ts": "sha256-9e6bce6a16a7f4d2b0384a4c3bba7a00ad5ee84c9075e78d7bfc5f5e8cdf4fc9"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["overlay", "menu", "context", "right-click"],
      "meta": {
        "name": "ContextMenu",
        "description": "Right-click context menu anchored at pointer coordinates via CSS custom properties",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "children": ["$slot", "menu"]
          },
          "parts": {
            "menu": {
              "element": "div",
              "role": "menu",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["item"]
            },
            "item": {
              "element": "div",
              "role": "menuitem",
              "aria": ["aria-disabled"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "The right-click target first, followed by ContextMenuItem children.",
            "type": "React.ReactNode",
            "required": true
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-md",
          "--cascivo-shadow-md",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-color-bg-subtle"
        ],
        "accessibility": {
          "role": "menu",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowDown", "ArrowUp", "Home", "End", "Enter", "Space", "Escape"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<ContextMenu>\n  <div>Right-click me</div>\n  <ContextMenuItem onSelect={rename}>Rename</ContextMenuItem>\n  <ContextMenuItem onSelect={remove}>Delete</ContextMenuItem>\n</ContextMenu>"
          },
          {
            "title": "Disabled item",
            "code": "<ContextMenu>\n  <FileRow file={file} />\n  <ContextMenuItem onSelect={copy}>Copy</ContextMenuItem>\n  <ContextMenuItem onSelect={paste} disabled>Paste</ContextMenuItem>\n</ContextMenu>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["overlay", "menu", "context", "right-click"],
        "intent": {
          "whenToUse": [
            "Offering actions contextual to an element via right-click (rename, delete, copy on a row or canvas item)",
            "Power-user surfaces where the desktop right-click affordance is expected"
          ],
          "whenNotToUse": [
            "Primary actions that must be discoverable by all users — right-click is hidden; use a visible Button or Dropdown",
            "Selecting a value or filtering a list — use Combobox/Select"
          ],
          "antiPatterns": [
            {
              "bad": "Putting the only path to an action behind a right-click ContextMenu",
              "good": "Also expose it via a visible Dropdown or Button; treat the context menu as a shortcut",
              "why": "Right-click is undiscoverable and unavailable on touch, so critical actions become unreachable for many users"
            }
          ],
          "related": [
            {
              "name": "Dropdown",
              "relationship": "alternative",
              "reason": "Use a button-triggered menu when actions must be visible and touch-accessible"
            },
            {
              "name": "Menu",
              "relationship": "alternative",
              "reason": "Use a general menu when the trigger is not a right-click gesture"
            }
          ],
          "a11yRationale": "The menu container is role=\"menu\" and items are role=\"menuitem\" with roving keyboard navigation (ArrowDown/ArrowUp/Home/End skip disabled items, Enter/Space activate) and aria-disabled, and it uses popover=\"auto\" so it light-dismisses on Escape or outside click; the toggle event syncs that dismissal back into state so focus and open state stay consistent",
          "flexibility": [
            {
              "area": "menu contents",
              "level": "flexible",
              "note": "Accepts arbitrary ContextMenuItem children after the trigger child"
            },
            {
              "area": "anchor position",
              "level": "strict",
              "note": "Anchored at pointer coordinates via --cascivo-context-x/y custom properties set on right-click"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "context-meter",
      "type": "component",
      "description": "How much of a model’s context window a conversation has used — \"12K / 200K\" with a bar that warns as it fills",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-meter/context-meter.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-meter/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-meter/context-meter.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/context-meter/context-meter.meta.ts"
      ],
      "fileHashes": {
        "context-meter.tsx": "sha256-919c844f0ec5e134efdd3ac64832203a155dba490d46bb57237a6552e8f41c17",
        "index.ts": "sha256-13da1ba0d9b84aeb36762e187944804a3bd7c845fe392a1b985be9a86b57ad28",
        "context-meter.module.css": "sha256-55dd296e989b222cd029490d899e797c60be1d33e4cea098ac4331edb24b207d",
        "context-meter.meta.ts": "sha256-221cdadc5d3c7b1792c99690aca57387e9a96a5698d342156330911ce238cfad"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Context", "TokenUsage", "TokenMeter"],
      "tags": ["ai", "context", "tokens", "usage", "meter", "quota"],
      "meta": {
        "name": "ContextMeter",
        "description": "How much of a model’s context window a conversation has used — \"12K / 200K\" with a bar that warns as it fills",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "meter",
            "role": "meter",
            "data": {
              "data-level": ["normal", "high", "full"]
            },
            "aria": [
              "aria-label",
              "aria-valuenow",
              "aria-valuemin",
              "aria-valuemax",
              "aria-valuetext"
            ],
            "children": ["header", "track"],
            "emit": "manual"
          },
          "parts": {
            "header": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["$text", "value"]
            },
            "value": {
              "element": "span",
              "children": ["$text"]
            },
            "track": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["fill"]
            },
            "fill": {
              "element": "div"
            }
          }
        },
        "states": ["normal", "high", "full"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "description": "Tokens used so far.",
            "type": "number",
            "required": true
          },
          {
            "name": "max",
            "description": "The context window size, in tokens.",
            "type": "number",
            "required": true
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "The meter’s name, shown above the bar.",
            "type": "string",
            "required": false,
            "default": "Context"
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n). `usage` is the spoken value and may contain `{used}`, `{max}` and `{percent}`.",
            "type": "{ usage?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-ai",
          "--cascivo-color-warning",
          "--cascivo-color-destructive",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-radius-full"
        ],
        "accessibility": {
          "role": "meter",
          "wcag": "2.2-AA",
          "keyboard": [],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Plenty left",
            "code": "<ContextMeter value={12400} max={200000} />"
          },
          {
            "title": "Nearly full",
            "code": "<ContextMeter value={192000} max={200000} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["ai", "context", "tokens", "usage", "meter", "quota"],
        "intent": {
          "whenToUse": [
            "Showing how much of the model’s context window a conversation or document has used",
            "Warning before a conversation hits the limit and older turns are dropped"
          ],
          "whenNotToUse": [
            "Task progress toward completion — use ProgressBar",
            "Account-level usage and billing quotas with many figures — use Stat or a chart"
          ],
          "antiPatterns": [
            {
              "bad": "Colour alone to signal the window is nearly full",
              "good": "Keep the \"used / max\" figures visible; colour reinforces them",
              "why": "Colour is not perceivable by everyone; the numbers carry the meaning"
            }
          ],
          "related": [
            {
              "name": "ProgressBar",
              "relationship": "alternative",
              "reason": "ProgressBar is for progress toward done; a meter measures a level within a range"
            },
            {
              "name": "AiStatus",
              "relationship": "pairs-with",
              "reason": "Both sit in an AI chat’s header or footer"
            }
          ],
          "a11yRationale": "role=\"meter\" with aria-valuenow/min/max and an aria-valuetext in full words (\"12,400 of 200,000 tokens used (6%)\"), named by its label. The compact visible line is aria-hidden so it is not read twice. Colour steps to warning at 80% and destructive at 95%, but the figures always carry the meaning",
          "flexibility": [
            {
              "area": "label and wording",
              "level": "flexible",
              "note": "Rename via label; reword via labels.usage"
            },
            {
              "area": "thresholds",
              "level": "strict",
              "note": "Warning at 80%, full at 95% — consistent across every meter"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "copy-button",
      "type": "component",
      "description": "Icon button that copies a value to the clipboard with copied feedback",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/copy-button/copy-button.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/copy-button/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/copy-button/copy-button.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/copy-button/copy-button.meta.ts"
      ],
      "fileHashes": {
        "copy-button.tsx": "sha256-5f959ce7ce8d276ee888d647e8a9e334bbb791a85be565507167040e9e511ac0",
        "index.ts": "sha256-0555cb13ed4be35b62decc17df4ef405298bed71e03e78838c5a7dcf5c79bf1e",
        "copy-button.module.css": "sha256-5113a86476597891a2a86ca7cfff03c2f9c668c1d54c9e9844b447b7bb634207",
        "copy-button.meta.ts": "sha256-f534af2fa8ed0ffe9a1e92c1a290960033b7441e5ce4128b3169b7bbab208e89"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["clipboard", "copy", "button", "snippet"],
      "meta": {
        "name": "CopyButton",
        "description": "Icon button that copies a value to the clipboard with copied feedback",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "button",
            "local": "copyButton",
            "data": {
              "data-state": ["idle", "copied"],
              "data-size": ["sm", "md"]
            },
            "aria": ["aria-label"],
            "children": ["icon"]
          },
          "parts": {
            "icon": {
              "element": "svg",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": ["idle", "copied"],
        "variants": [],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "value",
            "type": "string",
            "required": true,
            "description": "The text written to the clipboard on click"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "labels",
            "type": "{ copy?: string; copied?: string }",
            "required": false,
            "description": "Overrides the built-in i18n labels per instance"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-text-subtle",
          "--cascivo-color-text",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-success",
          "--cascivo-radius-control",
          "--cascivo-focus-ring",
          "--cascivo-control-height-sm",
          "--cascivo-control-height-md"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"]
        },
        "examples": [
          {
            "title": "Default",
            "code": "<CopyButton value=\"npx cascivo add button\" />"
          },
          {
            "title": "Small",
            "code": "<CopyButton value=\"pnpm install\" size=\"sm\" />"
          },
          {
            "title": "Custom labels",
            "code": "<CopyButton value=\"token\" labels={{ copy: 'Copy token', copied: 'Token copied' }} />",
            "description": "Override the built-in copy/copied strings per instance"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["clipboard", "copy", "button", "snippet"],
        "intent": {
          "whenToUse": [
            "Letting users copy a short value to the clipboard — install commands, API keys, tokens, share links",
            "Inline next to code snippets or read-only fields where copying is the primary affordance"
          ],
          "whenNotToUse": [
            "Triggering a general action — use Button",
            "Copying content the user can already select and edit freely where a copy affordance adds nothing"
          ],
          "antiPatterns": [
            {
              "bad": "Wiring CopyButton to perform a non-clipboard action via onClick",
              "good": "Use Button for arbitrary actions; CopyButton always writes value to the clipboard",
              "why": "Its click handler is fixed to navigator.clipboard.writeText(value) plus copied feedback — overloading it breaks user expectation"
            }
          ],
          "related": [
            {
              "name": "Button",
              "relationship": "alternative",
              "reason": "Use for actions other than copying to clipboard"
            },
            {
              "name": "Input",
              "relationship": "pairs-with",
              "reason": "Often placed alongside a read-only field whose value it copies"
            }
          ],
          "a11yRationale": "Renders a native <button> so Enter/Space, focus, and role come from the platform; the aria-label swaps between copy and copied labels to announce the state change to screen readers since the icon swap alone is silent, and the SVG icons are aria-hidden",
          "content": {
            "tone": "Concise action/confirmation labels",
            "notes": "Default copy/copied strings come from the i18n catalog; override per instance via labels (e.g. \"Copy token\" / \"Token copied\")"
          },
          "flexibility": [
            {
              "area": "labels",
              "level": "flexible",
              "note": "copy/copied strings overridable via labels; default from i18n catalog"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Styling resolves to semantic --cascivo-color-* tokens; copied state uses --cascivo-color-success"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "data-list",
      "type": "component",
      "description": "Key-value pairs rendered as a description list",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-list/data-list.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-list/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-list/data-list.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-list/data-list.meta.ts"
      ],
      "fileHashes": {
        "data-list.tsx": "sha256-b0f8e6944da93ab33cf55a66793df64a292fe5a76163190aa85a9a1efcda88f3",
        "index.ts": "sha256-e66b774146ac0f07c45044fc335f97290bd3ee96df1764ca00f0cd0a1cd804a2",
        "data-list.module.css": "sha256-2543d44f539a0b05d7f4ee26b3d5b481797444173fe4d9f5e5f14ceaeea7242d",
        "data-list.meta.ts": "sha256-749a0801550a3d714ef1acdccf88221752f5711aa8ec02e5e7155a2d0d0a5b04"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["key-value", "description", "metadata", "details"],
      "meta": {
        "name": "DataList",
        "description": "Key-value pairs rendered as a description list",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "dl",
            "local": "list",
            "data": {
              "data-orientation": ["horizontal", "vertical"],
              "data-size": ["sm", "md"],
              "data-dividers": [""]
            },
            "children": ["row", "$slot"],
            "emit": "manual"
          },
          "parts": {
            "row": {
              "element": "div",
              "children": ["term", "detail"]
            },
            "term": {
              "element": "dt",
              "children": ["$slot"]
            },
            "detail": {
              "element": "dd",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": ["horizontal", "vertical"],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "items",
            "description": "The label/value pairs to render. Optional: pass `<DataListItem label=\"…\">value</DataListItem>` children instead when a value needs surrounding JSX.",
            "type": "DataListEntry[]",
            "required": false
          },
          {
            "name": "orientation",
            "description": "Where each value sits relative to its own label: 'horizontal' beside it, 'vertical' underneath. Items are stacked vertically in both modes — this does not change the list's own axis.",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "horizontal"
          },
          {
            "name": "dividers",
            "description": "When true, shows dividers between items.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "children",
            "description": "`<DataListItem>` rows, as an alternative to `items`.",
            "type": "ReactNode",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-border",
          "--cascivo-space-3",
          "--cascivo-space-4"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Horizontal data list",
            "code": "<DataList\n  items={[\n    { label: 'Name', value: 'Ada Lovelace' },\n    { label: 'Role', value: 'Mathematician' },\n  ]}\n/>"
          },
          {
            "title": "Vertical — value under its label, not \"items stacked vertically\"",
            "description": "Both modes stack the items vertically. `orientation` moves the VALUE: beside its label (horizontal) or under it (vertical).",
            "code": "<DataList\n  orientation=\"vertical\"\n  items={[\n    { label: 'Region', value: 'fra1' },\n    { label: 'Branch', value: 'main' },\n  ]}\n/>"
          },
          {
            "title": "Vertical with dividers",
            "code": "<DataList\n  orientation=\"vertical\"\n  dividers\n  items={[{ label: 'Email', value: 'ada@example.com' }]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["key-value", "description", "metadata", "details"],
        "intent": {
          "whenToUse": [
            "Displaying read-only key-value metadata (profile fields, record summaries)",
            "Presenting structured attributes where each value maps to a single label",
            "Compact detail panels next to or below a primary subject"
          ],
          "whenNotToUse": [
            "Editable fields — use form Inputs, not a DataList",
            "Tabular data with many rows and columns — use a Table"
          ],
          "antiPatterns": [
            {
              "bad": "Faking a description list with stacked divs and manual labels",
              "good": "Use the native dl/dt/dd structure DataList emits",
              "why": "dl/dt/dd conveys the term-to-description relationship to assistive tech for free"
            }
          ],
          "related": [
            {
              "name": "ContainedList",
              "relationship": "alternative",
              "reason": "ContainedList shows single-value rows; DataList shows labelled pairs"
            }
          ],
          "a11yRationale": "Rendered as semantic dl with dt/dd pairs so the label-to-value association is native; no extra ARIA role is added",
          "flexibility": [
            {
              "area": "orientation and size",
              "level": "flexible",
              "note": "horizontal for wide panels, vertical for narrow columns; size tunes density"
            },
            {
              "area": "dl semantics",
              "level": "strict",
              "note": "Always renders dl/dt/dd; do not substitute generic elements"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "data-table",
      "type": "component",
      "description": "Signal-driven data table with client/server sort, filter, pagination, multi-selection, expandable rows, and CSS content-visibility row containment for large datasets",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/data-table.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/column-filter.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/column-layout.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/grid-keys.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/row-group.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/row-search.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/row-sort.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/to-csv.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/virtual-window.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/data-table.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/data-table/data-table.meta.ts"
      ],
      "fileHashes": {
        "data-table.tsx": "sha256-6a9aa7947d79bb6e6d6c1802568e4f8cbd2a63f819f9923fe6bf0f2c81f9c65b",
        "column-filter.ts": "sha256-dc062cef69abba1fb3c374a0c800a8488d8f43f324a543afc4ba9d3f9723c839",
        "column-layout.ts": "sha256-02a18b8fda408cf2f88709c127f99f9f3365dc2b929844cd6ac9400c5842591e",
        "grid-keys.ts": "sha256-c5064f632e8be232a6fd20e4a480724b4b061b3c17e0bcc0217678473b5ff704",
        "index.ts": "sha256-1ad58193a6a77c800f170bd7fadaafa1d8db9f1698c43f44669e5a95c217a73b",
        "row-group.ts": "sha256-65d136c376132627a3e924dd3ec2c2c425b09ee7d188d0b796ec90d28e412ab5",
        "row-search.ts": "sha256-b31f1040151bd258c9947740714ea810df45c80c7c1e52779e613e48a5bab562",
        "row-sort.ts": "sha256-7d2b3e52e4249bb9f5856d43c0f95ddc8dac4c4f2b81e590ca7182a82b5d7d9d",
        "to-csv.ts": "sha256-8e26da77c73c415b6c7e128174463b8ad2f29036fda2df44e8b152953e9c3b0b",
        "virtual-window.ts": "sha256-7c96f234d62d0d0610cf05c5d99abf6cf10afbebbcbfd528e0202f385a0e1d0f",
        "data-table.module.css": "sha256-79df9cc0ad5b96fdfcc2127e7a5f33e7b515826a2512385ad03ee24d0807a26c",
        "data-table.meta.ts": "sha256-ee583533f7fb21180c0758752d91d4af99d9a6b82c4574297464cd2980b6828b"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Table", "DataGrid", "data-grid"],
      "tags": ["table", "data", "grid", "sort", "filter", "pagination", "selection"],
      "meta": {
        "name": "DataTable",
        "description": "Signal-driven data table with client/server sort, filter, pagination, multi-selection, expandable rows, and CSS content-visibility row containment for large datasets",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "data": {
              "data-density": ["compact", "normal", "relaxed"],
              "data-resized": ["true"],
              "data-zebra": ["true"],
              "data-sticky-header": ["true"],
              "data-paginated": ["true"],
              "data-fixed-layout": ["true"]
            },
            "children": ["srOnly", "toolbar", "batchBar", "scroller", "footer"]
          },
          "parts": {
            "srOnly": {
              "element": "span",
              "aria": ["aria-live"],
              "children": ["$text"]
            },
            "toolbar": {
              "element": "div",
              "children": ["heading", "toolbarActions"]
            },
            "heading": {
              "element": "div",
              "children": ["title", "description"],
              "when": "title !== undefined || description !== undefined"
            },
            "title": {
              "element": "div",
              "children": ["$text"],
              "when": "title !== undefined"
            },
            "description": {
              "element": "div",
              "children": ["$text"],
              "when": "description !== undefined"
            },
            "toolbarActions": {
              "element": "div",
              "children": ["search", "@button", "$slot", "@popover", "menu"]
            },
            "search": {
              "element": "input",
              "aria": ["aria-label"],
              "when": "searchable"
            },
            "menu": {
              "element": "div",
              "children": ["@checkbox"]
            },
            "batchBar": {
              "element": "div",
              "children": ["batchCount", "batchActions"],
              "when": "batchActions && selection"
            },
            "batchCount": {
              "element": "span",
              "children": ["$text"]
            },
            "batchActions": {
              "element": "div",
              "children": ["@button"]
            },
            "scroller": {
              "element": "div",
              "modifiers": {
                "scrollerVirtualized": "virtualized"
              },
              "children": ["table"]
            },
            "table": {
              "element": "table",
              "role": "grid",
              "aria": [
                "aria-labelledby",
                "aria-label",
                "aria-describedby",
                "aria-busy",
                "aria-rowcount"
              ],
              "children": [
                "controlCol",
                "groupHeader",
                "headerCell",
                "filterRow",
                "row",
                "emptyCell",
                "groupRow",
                "expansionRow",
                "totals"
              ]
            },
            "controlCol": {
              "element": "col"
            },
            "groupHeader": {
              "element": "th",
              "children": ["$text"],
              "when": "columnGroups"
            },
            "headerCell": {
              "element": "th",
              "data": {
                "data-align": ["start", "end"],
                "data-sized": ["true"],
                "data-pinned": ["start", "end"],
                "data-pinned-edge": ["true"],
                "data-cell": "string"
              },
              "aria": ["aria-sort"],
              "children": ["headerInner", "resizeHandle"]
            },
            "headerInner": {
              "element": "span",
              "children": ["sortButton", "$text", "@overflow-menu"]
            },
            "sortButton": {
              "element": "button",
              "data": {
                "data-state": ["ascending", "descending", "none"]
              },
              "children": ["$text", "sortIndex"],
              "when": "col.sortable"
            },
            "sortIndex": {
              "element": "sup",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "resizeHandle": {
              "element": "span",
              "role": "separator",
              "data": {
                "data-state": ["resizing"]
              },
              "aria": ["aria-orientation", "aria-label", "aria-valuenow"],
              "when": "resizable"
            },
            "filterRow": {
              "element": "tr",
              "children": ["filterInput", "rangeInputs", "@popover"],
              "when": "hasFilterRow"
            },
            "filterInput": {
              "element": "input",
              "aria": ["aria-label"]
            },
            "rangeInputs": {
              "element": "div",
              "children": ["filterInput"]
            },
            "row": {
              "element": "tr",
              "data": {
                "data-parity": ["even", "odd"],
                "data-pinned-row": ["top", "bottom"],
                "data-state": ["selected"]
              },
              "aria": ["aria-rowindex"],
              "children": ["controlCell", "$slot", "shimmer"]
            },
            "controlCell": {
              "element": ["td", "th"],
              "data": {
                "data-pinned": ["start", "end"],
                "data-pinned-edge": ["true"],
                "data-cell": "string"
              },
              "children": ["expandButton", "@checkbox", "@overflow-menu", "srOnly"]
            },
            "expandButton": {
              "element": "button",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-expanded", "aria-label"],
              "children": ["chevron"],
              "when": "renderExpandedRow"
            },
            "chevron": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "shimmer": {
              "element": "span",
              "aria": ["aria-hidden"],
              "when": "loading"
            },
            "emptyCell": {
              "element": "td",
              "children": ["$slot"]
            },
            "groupRow": {
              "element": "tr",
              "data": {
                "data-depth": "number",
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-rowindex"],
              "children": ["controlCell", "groupToggle"],
              "when": "groupBy"
            },
            "groupToggle": {
              "element": "button",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-expanded"],
              "children": ["chevron", "$text", "groupCount"]
            },
            "groupCount": {
              "element": "span",
              "children": ["$text"]
            },
            "expansionRow": {
              "element": "tr",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["expansionGrid"],
              "when": "renderExpandedRow"
            },
            "expansionGrid": {
              "element": "div",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["expansionInner"]
            },
            "expansionInner": {
              "element": "div",
              "children": ["$slot"]
            },
            "totals": {
              "element": "tfoot",
              "children": ["controlCell", "srOnly", "$slot"],
              "when": "totals"
            },
            "footer": {
              "element": "div",
              "children": ["pageSize", "range", "pageButtons"],
              "when": "pagination"
            },
            "pageSize": {
              "element": "label",
              "children": ["$text"],
              "when": "pagination.pageSizeOptions"
            },
            "range": {
              "element": "span",
              "children": ["$text"]
            },
            "pageButtons": {
              "element": "div",
              "children": ["pageButton"]
            },
            "pageButton": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            }
          }
        },
        "states": ["default", "loading", "empty"],
        "variants": [],
        "sizes": ["compact", "normal", "relaxed"],
        "props": [
          {
            "name": "virtualized",
            "type": "boolean",
            "required": false,
            "description": "Render only the visible row window for large datasets.",
            "default": "false"
          },
          {
            "name": "rowHeight",
            "type": "number",
            "required": false,
            "description": "Row height in px for the virtualized window. Measured from the first rendered row when omitted, so the density presets stay correct; set it only for custom-sized rows."
          },
          {
            "name": "windowSize",
            "type": "number",
            "required": false,
            "description": "Rows rendered per window. Derived from the scroller height when omitted; set it only to render a fixed count regardless of height."
          },
          {
            "name": "overscan",
            "type": "number",
            "required": false,
            "description": "Extra rows rendered above/below the window to smooth scrolling.",
            "default": "3"
          },
          {
            "name": "columns",
            "description": "The column definitions describing each table column.",
            "type": "Column<Row>[]",
            "required": true
          },
          {
            "name": "rows",
            "description": "The row objects to render — one table row per array element.",
            "type": "Row[]",
            "required": true
          },
          {
            "name": "getRowId",
            "description": "Returns a stable unique id for a row.",
            "type": "(row: Row) => string",
            "required": false
          },
          {
            "name": "sort",
            "description": "The controlled sort state.",
            "type": "SortState",
            "required": false
          },
          {
            "name": "defaultSort",
            "description": "The initial sort state when uncontrolled.",
            "type": "SortState",
            "required": false
          },
          {
            "name": "sortMode",
            "description": "Whether sorting is handled client-side or by the server ('client' | 'server').",
            "type": "'client' | 'server'",
            "required": false,
            "default": "'client'"
          },
          {
            "name": "onSortChange",
            "description": "Called with the new sort state when it changes.",
            "type": "(sort: SortState | undefined) => void",
            "required": false
          },
          {
            "name": "searchable",
            "description": "When true, shows a search/filter input.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "pagination",
            "description": "Paging config: pageSize, optional pageSizeOptions, and page/onPageChange to control the current page. With `server`, it is the pager for server-side paging.",
            "type": "{ pageSize: number; pageSizeOptions?: number[]; page?: number; onPageChange?: (page: number) => void }",
            "required": false
          },
          {
            "name": "selection",
            "description": "Row-selection configuration (mode and selected ids).",
            "type": "{ mode: 'single' | 'multi'; selected?: string[]; onChange?: (ids: string[]) => void }",
            "required": false
          },
          {
            "name": "batchActions",
            "description": "Actions applied to the currently selected rows.",
            "type": "{ label: string; onClick: (selectedIds: string[]) => void }[]",
            "required": false
          },
          {
            "name": "filters",
            "description": "Per-column filter values (controlled), keyed by column key. Columns opt in with `Column.filter`: `text` (substring), `select` (faceted checklist with counts), `range` (numeric min/max).",
            "type": "ColumnFilters",
            "required": false
          },
          {
            "name": "defaultFilters",
            "description": "Initial per-column filter values (uncontrolled).",
            "type": "ColumnFilters",
            "required": false
          },
          {
            "name": "onFiltersChange",
            "description": "Called with the full filter map whenever any column filter changes.",
            "type": "(filters: ColumnFilters) => void",
            "required": false
          },
          {
            "name": "noResultsState",
            "description": "Shown instead of emptyState when there are rows but the search or filters match none of them.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "toolbar",
            "description": "Extra controls rendered in the toolbar next to the search box — exports, primary actions.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "rowActions",
            "description": "Per-row actions. Returns the menu entries for a row; rendered as a trailing overflow-menu column. Each entry has id, label, onSelect(row), and optional destructive/disabled/icon.",
            "type": "(row: Row) => RowAction<Row>[]",
            "required": false
          },
          {
            "name": "columnState",
            "description": "User-adjustable column layout (controlled): `hidden` keys, display `order`, explicit `widths` in px, and `pinned` sides. One object, so it round-trips through storage or a URL as a unit.",
            "type": "ColumnState",
            "required": false
          },
          {
            "name": "defaultColumnState",
            "description": "Initial column layout (uncontrolled).",
            "type": "ColumnState",
            "required": false
          },
          {
            "name": "onColumnStateChange",
            "description": "Called with the full column layout whenever the user changes it.",
            "type": "(state: ColumnState) => void",
            "required": false
          },
          {
            "name": "columnSettings",
            "description": "Which column-layout controls to offer: `visibility` (a \"Columns\" menu in the toolbar), `resizable` (a drag handle per header; arrows nudge, Home resets), `reorderable` (Move left/right in the header menu), `pinnable` (Pin to start/end in the header menu). All off by default.",
            "type": "ColumnSettings",
            "required": false
          },
          {
            "name": "server",
            "description": "Server-driven mode: rows are rendered as the current page verbatim and `onQueryChange({ sort, search, filters, page, pageSize })` fires whenever any of them changes (not on mount). `totalItems` drives the pager. One switch turns off client sort, search, filters and paging together.",
            "type": "DataTableServer",
            "required": false
          },
          {
            "name": "multiSort",
            "description": "Allow sorting by more than one column: Shift-click a header adds it as a tie-breaker (`SortState.thenBy`); a plain click replaces the whole sort. Sorted headers show their level.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "stateKey",
            "description": "Remember the user's column layout and sort across reloads, in local storage under this key. Applies to uncontrolled `columnState`/`sort`; controlled props still win. Tables sharing a key share the preference.",
            "type": "string",
            "required": false
          },
          {
            "name": "keyboardNavigation",
            "description": "How the keyboard moves through the table. 'row' keeps every control in the Tab order with the arrows stepping between them. 'grid' is the APG data-grid pattern: one Tab stop, arrows move a focused cell, Home/End within the row, Ctrl+Home/End to the corners, PageUp/PageDown by a screenful, Enter/F2 enters the cell's control, Escape returns to the cell; rows outside the virtualized window are scrolled to.",
            "type": "'row' | 'grid'",
            "required": false,
            "default": "row"
          },
          {
            "name": "onCellEdit",
            "description": "Commits an inline edit with the row, the column key and the new text. Enables editing for every column marked `editable`; the table does not mutate `rows` itself.",
            "type": "(row: Row, key: string, value: string) => void",
            "required": false
          },
          {
            "name": "groupBy",
            "description": "Group the rows by one or more columns, in order. Each group is a collapsible row showing its value, its row count and every `aggregate` column's reduction; leaves keep the current sort inside their group. Groups appear in order of first occurrence — sort by the grouped column to order them.",
            "type": "string | string[]",
            "required": false
          },
          {
            "name": "totals",
            "description": "Show a totals row under the body with each `aggregate` column's reduction over every row passing the search and filters (not just the page). Sticks to the bottom of the scroller.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "pinnedRows",
            "description": "Rows kept in view outside sort, search, filters, paging and the virtual window: `top` rows sit under the header (stuck there with `stickyHeader`), `bottom` rows above the totals.",
            "type": "{ top?: Row[]; bottom?: Row[] }",
            "required": false
          },
          {
            "name": "columnGroups",
            "description": "Bands of columns under a shared header, rendered as a row above the column headers. Keep a band's columns adjacent; reordering them apart splits the band.",
            "type": "ColumnGroup[]",
            "required": false
          },
          {
            "name": "exportable",
            "description": "An \"Export CSV\" button in the toolbar: every row passing the search and filters (all pages; with `server`, the rows given), in the current sort, visible columns as headers, raw cell values as fields (RFC 4180, UTF-8 with BOM). Pass `{ filename }` to name the file; it defaults to the `title`.",
            "type": "boolean | { filename?: string }",
            "required": false,
            "default": "false"
          },
          {
            "name": "renderExpandedRow",
            "description": "Renders the expanded content for a row.",
            "type": "(row: Row) => ReactNode",
            "required": false
          },
          {
            "name": "density",
            "description": "Row density — 'compact', 'normal', or 'relaxed'. ⚠ It sets a row **height floor**, so it is invisible whenever the cell content is already taller: a two-line cell or a Badge stack looks identical at every density. Reported as \"barely distinguishable\" — the prop works, the content is winning. Shrink the cell content, or set `--cascivo-data-table-cell-gap` to tighten the horizontal rhythm too.",
            "type": "'compact' | 'normal' | 'relaxed'",
            "required": false,
            "default": "'normal'"
          },
          {
            "name": "zebra",
            "description": "When true, applies alternating row striping.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "stickyHeader",
            "description": "When true, the header stays fixed while the body scrolls.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "loading",
            "description": "When true, shows a loading state.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "emptyState",
            "description": "Content shown when there are no rows.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Invisible accessible name for the table, used when there is no visible `title`. A table with neither is an unnamed landmark; dev-warns.",
            "type": "string",
            "required": false
          },
          {
            "name": "title",
            "description": "Visible caption above the table; it also becomes the table's accessible name.",
            "type": "string",
            "required": false
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "DataTableLabels",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "Column<Row>",
            "description": "A single column definition. `render` is the escape hatch for custom cell content — return any ReactNode (a Badge, an icon + link, a formatted value); when omitted the cell shows `String(row[key])`.",
            "fields": [
              {
                "name": "key",
                "type": "string",
                "required": true,
                "description": "Row property this column reads, and the sort key."
              },
              {
                "name": "header",
                "type": "string",
                "required": true,
                "description": "Column header label."
              },
              {
                "name": "sortable",
                "type": "boolean",
                "required": false,
                "description": "When true, the header toggles sort on this column."
              },
              {
                "name": "render",
                "type": "(row: Row) => ReactNode",
                "required": false,
                "description": "Custom cell renderer. Return a Badge, icon + link, or formatted value. Omit to render `String(row[key])`."
              },
              {
                "name": "align",
                "type": "'start' | 'end'",
                "required": false,
                "description": "Cell/text alignment. Use 'end' for numbers and timestamps."
              },
              {
                "name": "filter",
                "type": "'text' | 'select' | 'range'",
                "required": false,
                "description": "Offer a per-column filter under the header: a substring input, a faceted checklist of distinct values with counts, or a numeric min/max pair. Values surface through the `filters` props."
              },
              {
                "name": "aggregate",
                "type": "'sum' | 'avg' | 'min' | 'max' | 'count' | ((rows: Row[]) => ReactNode)",
                "required": false,
                "description": "What group rows and the `totals` row show for this column: a built-in reduction over the numeric cell values (`count` counts rows), or a function of the rows."
              },
              {
                "name": "editable",
                "type": "boolean",
                "required": false,
                "description": "Edit cells in place: each renders an Editable (click, Enter or F2 to start; Enter commits, Escape cancels) that commits through `onCellEdit`. Ignored with a custom `render` or without `onCellEdit`."
              },
              {
                "name": "minWidth",
                "type": "string",
                "required": false,
                "description": "Floor for the column width, any CSS length."
              },
              {
                "name": "width",
                "type": "string",
                "required": false,
                "description": "Preferred column width (any CSS length, e.g. `120px`), with an automatic content floor. ⚠ Sizing EVERY column switches the table to `table-layout: fixed`. ⚠ \"Leave one unsized\" is necessary but NOT sufficient: the leftover width is split by content weight, so if the sized columns nearly fill the table the remainder can be narrower than the content needs and long tokens wrap mid-word. Leave the widest free-form column unsized, keep sized columns to ~2/3 of the table, and give the free-form one a `minWidth` when the data has long unbreakable tokens."
              }
            ]
          },
          {
            "name": "SortState",
            "description": "Controlled/initial sort state, used by `sort`, `defaultSort`, `onSortChange`.",
            "fields": [
              {
                "name": "key",
                "type": "string",
                "required": true,
                "description": "The sorted column key."
              },
              {
                "name": "direction",
                "type": "'asc' | 'desc'",
                "required": true,
                "description": "Sort direction."
              },
              {
                "name": "thenBy",
                "type": "{ key: string; direction: \"asc\" | \"desc\" }[]",
                "required": false,
                "description": "Secondary columns that break ties, in order (multi-sort)."
              }
            ]
          },
          {
            "name": "DataTableServer",
            "description": "Server-driven mode. The table renders `rows` as the current page and reports every change to sort, search, filters, page or page size through `onQueryChange`; nothing runs on the client.",
            "fields": [
              {
                "name": "totalItems",
                "type": "number",
                "required": false,
                "description": "Total rows across every page; drives the pager and the range label."
              },
              {
                "name": "onQueryChange",
                "type": "(query: TableQuery) => void",
                "required": true,
                "description": "Called with the full query whenever it changes. Not called on mount — the rows passed initially are the first page."
              }
            ]
          },
          {
            "name": "TableQuery",
            "description": "What the server is asked to apply.",
            "fields": [
              {
                "name": "sort",
                "type": "SortState | undefined",
                "required": true,
                "description": "Active sort."
              },
              {
                "name": "search",
                "type": "string",
                "required": true,
                "description": "Trimmed global search text."
              },
              {
                "name": "filters",
                "type": "ColumnFilters",
                "required": true,
                "description": "Per-column filter values keyed by column key."
              },
              {
                "name": "page",
                "type": "number",
                "required": true,
                "description": "1-based page."
              },
              {
                "name": "pageSize",
                "type": "number",
                "required": true,
                "description": "Rows per page."
              }
            ]
          },
          {
            "name": "ColumnState",
            "description": "User-adjustable column layout, used by `columnState`, `defaultColumnState`, `onColumnStateChange`.",
            "fields": [
              {
                "name": "hidden",
                "type": "string[]",
                "required": false,
                "description": "Keys of hidden columns. At least one column always stays visible."
              },
              {
                "name": "order",
                "type": "string[]",
                "required": false,
                "description": "Display order of column keys; keys not listed follow in definition order."
              },
              {
                "name": "widths",
                "type": "Record<string, number>",
                "required": false,
                "description": "Explicit widths in px by key — what the resize handle writes. Any set width switches the table to a fixed layout."
              },
              {
                "name": "pinned",
                "type": "Record<string, 'start' | 'end'>",
                "required": false,
                "description": "Pinned columns by key. Pinned-start columns render first and stick to the leading edge; pinned-end last, to the trailing edge."
              }
            ]
          },
          {
            "name": "ColumnGroup",
            "description": "A band of columns under one shared header (`columnGroups`).",
            "fields": [
              {
                "name": "header",
                "type": "string",
                "required": true,
                "description": "The band label."
              },
              {
                "name": "columns",
                "type": "string[]",
                "required": true,
                "description": "Column keys in the band. Non-adjacent keys render as separate spans."
              }
            ]
          },
          {
            "name": "ColumnSettings",
            "description": "Which column-layout controls the table offers. All off by default.",
            "fields": [
              {
                "name": "visibility",
                "type": "boolean",
                "required": false,
                "description": "A \"Columns\" menu in the toolbar that shows and hides columns."
              },
              {
                "name": "resizable",
                "type": "boolean",
                "required": false,
                "description": "A drag handle on each header; arrow keys nudge by 16px (Shift: 64px), Home returns to auto, double-click too."
              },
              {
                "name": "reorderable",
                "type": "boolean",
                "required": false,
                "description": "\"Move left\" / \"Move right\" in each column's header menu (within its pin group)."
              },
              {
                "name": "pinnable",
                "type": "boolean",
                "required": false,
                "description": "\"Pin to start\" / \"Pin to end\" / \"Unpin\" in each column's header menu."
              }
            ]
          },
          {
            "name": "RowAction<Row>",
            "description": "One entry in a row actions menu.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true,
                "description": "Stable id (menu key)."
              },
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Menu entry text."
              },
              {
                "name": "onSelect",
                "type": "(row: Row) => void",
                "required": true,
                "description": "Activation handler; receives the row the menu belongs to."
              },
              {
                "name": "destructive",
                "type": "boolean",
                "required": false,
                "description": "Style as a destructive action."
              },
              {
                "name": "disabled",
                "type": "boolean",
                "required": false,
                "description": "Disable the entry."
              },
              {
                "name": "icon",
                "type": "ReactNode",
                "required": false,
                "description": "Leading icon."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-accent",
          "--cascivo-font-sans",
          "--cascivo-text-sm",
          "--cascivo-text-xs",
          "--cascivo-font-semibold",
          "--cascivo-font-medium",
          "--cascivo-radius-lg",
          "--cascivo-radius-sm",
          "--cascivo-space-2",
          "--cascivo-space-3",
          "--cascivo-space-4",
          "--cascivo-data-table-max-height",
          "--cascivo-data-table-cell-gap",
          "--cascivo-duration-150",
          "--cascivo-duration-500",
          "--cascivo-ease-out",
          "--cascivo-ease-in-out"
        ],
        "accessibility": {
          "role": "table",
          "wcag": "2.2-AA",
          "keyboard": [
            "Tab",
            "ArrowUp",
            "ArrowDown",
            "ArrowLeft",
            "ArrowRight",
            "Enter",
            "Space",
            "Home",
            "End",
            "PageUp",
            "PageDown",
            "F2",
            "Escape"
          ]
        },
        "examples": [
          {
            "title": "Basic table",
            "code": "<DataTable\n  columns={[\n    { key: 'name', header: 'Name', sortable: true },\n    { key: 'role', header: 'Role' },\n  ]}\n  rows={[\n    { name: 'Alice', role: 'Engineer' },\n    { name: 'Bob', role: 'Designer' },\n  ]}\n  getRowId={(r) => r.name}\n/>"
          },
          {
            "title": "Custom cell content with Column.render",
            "description": "Use Column.render to return any ReactNode per cell — a Badge for status, an icon + link for a repo, a right-aligned timestamp. Columns without render fall back to String(row[key]).",
            "code": "<DataTable\n  columns={[\n    { key: 'name', header: 'Project', sortable: true },\n    {\n      key: 'status',\n      header: 'Status',\n      render: (row) => (\n        <Badge variant={row.status === 'ready' ? 'success' : 'warning'}>{row.status}</Badge>\n      ),\n    },\n    {\n      key: 'updated',\n      header: 'Updated',\n      align: 'end',\n      render: (row) => new Date(row.updated).toLocaleDateString(),\n    },\n  ]}\n  rows={rows}\n  getRowId={(r) => r.name}\n/>"
          },
          {
            "title": "Full-featured: selection, pagination, search",
            "code": "<DataTable\n  columns={columns}\n  rows={rows}\n  getRowId={(r) => r.id}\n  searchable\n  pagination={{ pageSize: 10, pageSizeOptions: [10, 25, 50] }}\n  selection={{ mode: 'multi', onChange: setSelected }}\n  batchActions={[{ label: 'Delete', onClick: deleteRows }]}\n  stickyHeader\n  zebra\n/>"
          },
          {
            "title": "Filters, row actions and a columns menu",
            "description": "Per-column filters under the header (a text input, a faceted checklist with counts, a numeric range), a row actions menu, and a toolbar Columns menu to hide columns.",
            "code": "<DataTable\n  columns={[\n    { key: 'name', header: 'Name', sortable: true, filter: 'text' },\n    { key: 'status', header: 'Status', filter: 'select' },\n    { key: 'amount', header: 'Amount', align: 'end', filter: 'range' },\n  ]}\n  rows={rows}\n  getRowId={(r) => r.id}\n  columnSettings={{ visibility: true, resizable: true, reorderable: true, pinnable: true }}\n  defaultColumnState={{ pinned: { name: 'start' } }}\n  rowActions={(row) => [\n    { id: 'edit', label: 'Edit', onSelect: () => edit(row) },\n    { id: 'delete', label: 'Delete', destructive: true, onSelect: () => remove(row) },\n  ]}\n  exportable={{ filename: 'invoices' }}\n  ariaLabel=\"Invoices\"\n/>"
          },
          {
            "title": "Grid keyboard mode with inline editing",
            "description": "One Tab stop; the arrows move a focused cell and Enter or F2 opens the cell for editing. Commit the edit into your own state — the table never mutates `rows`.",
            "code": "<DataTable\n  columns={[\n    { key: 'name', header: 'Name', editable: true },\n    { key: 'qty', header: 'Qty', editable: true, align: 'end' },\n  ]}\n  rows={items}\n  getRowId={(r) => r.id}\n  keyboardNavigation=\"grid\"\n  onCellEdit={(row, key, value) => update(row.id, { [key]: value })}\n  ariaLabel=\"Line items\"\n/>"
          },
          {
            "title": "Grouped, with totals and a column band",
            "description": "Rows grouped by region with a count and a sum on each group row, a sticky totals row over everything that passes the filters, and two columns under one \"Order\" header.",
            "code": "<DataTable\n  columns={[\n    { key: 'region', header: 'Region', sortable: true },\n    { key: 'status', header: 'Status', aggregate: 'count' },\n    { key: 'amount', header: 'Amount', align: 'end', aggregate: 'sum' },\n  ]}\n  rows={orders}\n  getRowId={(o) => o.id}\n  groupBy=\"region\"\n  totals\n  columnGroups={[{ header: 'Order', columns: ['status', 'amount'] }]}\n  ariaLabel=\"Orders by region\"\n/>"
          },
          {
            "title": "Server-driven",
            "description": "The server applies sort, search, filters and paging; the table renders the page it is given and reports the query whenever it changes.",
            "code": "<DataTable\n  columns={columns}\n  rows={page.rows}\n  getRowId={(r) => r.id}\n  searchable\n  pagination={{ pageSize: 50 }}\n  server={{ totalItems: page.total, onQueryChange: load }}\n  ariaLabel=\"Orders\"\n/>"
          },
          {
            "title": "A million rows",
            "description": "Virtualized: only the visible rows are in the DOM, the scrollbar reaches the last row at any count, and search and sort stay usable. Row height and viewport are measured, so nothing else is needed.",
            "code": "<DataTable\n  columns={columns}\n  rows={millionRows}\n  getRowId={(r) => r.id}\n  virtualized\n  searchable\n  ariaLabel=\"Events\"\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["button", "checkbox", "editable", "overflow-menu", "popover"],
        "tags": ["table", "data", "grid", "sort", "filter", "pagination", "selection"],
        "intent": {
          "whenToUse": [
            "Displaying tabular data with columns the user sorts, filters, or pages through",
            "Selecting rows for batch actions across a dataset",
            "Rendering large datasets that benefit from row containment and server-side sort/paging"
          ],
          "whenNotToUse": [
            "A simple static list of items — use List",
            "Layout grids of cards or media — use a Card grid, not a data table"
          ],
          "antiPatterns": [
            {
              "bad": "Using DataTable for two columns of label/value pairs",
              "good": "A description list or a small Card with Stat/Text",
              "why": "The full table machinery (sort, paging, selection) is overhead when there is no dataset to operate on"
            }
          ],
          "related": [
            {
              "name": "Pagination",
              "relationship": "contains",
              "reason": "DataTable embeds pagination controls for paged data"
            },
            {
              "name": "EmptyState",
              "relationship": "pairs-with",
              "reason": "Render an EmptyState via the emptyState prop when there are no rows"
            }
          ],
          "a11yRationale": "Built on a native <table> with proper header semantics; sortable headers expose sort state, selection uses real checkboxes, and arrow-key navigation follows the grid pattern so keyboard users can traverse cells",
          "flexibility": [
            {
              "area": "sortMode and density",
              "level": "flexible",
              "note": "Choose client/server sort and density to fit data size and layout"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "All surfaces, borders, and spacing must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "registryDependencies": ["button", "checkbox", "editable", "overflow-menu", "popover"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "date-picker",
      "type": "component",
      "description": "An accessible date-picker with a calendar popover.",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-picker/date-picker.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-picker/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-picker/parse-date.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-picker/date-picker.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-picker/date-picker.meta.ts"
      ],
      "fileHashes": {
        "date-picker.tsx": "sha256-d276af49da3323191400c55d817ec691bfe485a01ef420c8734323550ee4f493",
        "index.ts": "sha256-c2a3bcd044d58eb42f4673851759a1f3e1af3036d8f2a7268979c81d2c640bb4",
        "parse-date.ts": "sha256-36f5bac66c71d46302212155b4d9652aa67be7fad1020f4760dd5d5b6be32a50",
        "date-picker.module.css": "sha256-46b47faa0eb1787d897ae8a7aa922a7c3c6288d7a5feb8f58671da71e4b55e45",
        "date-picker.meta.ts": "sha256-d92d407ef48230377e09c33c3f9c0a4c12b0ee5678bf1736a55598b656c1607b"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["date", "calendar", "picker", "input", "form"],
      "meta": {
        "name": "DatePicker",
        "description": "An accessible date-picker with a calendar popover.",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["default", "open", "error", "disabled"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["label", "field", "popup", "error", "hint"]
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"]
            },
            "field": {
              "element": "div",
              "children": ["trigger", "clear", "openButton"]
            },
            "trigger": {
              "element": ["input", "button"],
              "aria": [
                "aria-expanded",
                "aria-controls",
                "aria-haspopup",
                "aria-labelledby",
                "aria-label",
                "aria-invalid",
                "aria-describedby",
                "aria-required"
              ],
              "children": ["value"]
            },
            "value": {
              "element": "span",
              "children": ["$text"],
              "modifiers": {
                "placeholder": "!displayValue"
              }
            },
            "clear": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["clearGlyph"]
            },
            "clearGlyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "openButton": {
              "element": "button",
              "aria": ["aria-label", "aria-expanded", "aria-controls"],
              "children": ["calendarGlyph"]
            },
            "calendarGlyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "popup": {
              "element": "div",
              "role": "dialog",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-label"],
              "children": ["@calendar"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "when": "error",
              "children": ["$text"]
            },
            "hint": {
              "element": "span",
              "when": "hint",
              "children": ["$text"]
            }
          }
        },
        "states": ["default", "open", "error", "disabled"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "id",
            "type": "string",
            "required": false,
            "description": "Base id for the input and its popover/aria wiring; auto-generated when omitted."
          },
          {
            "name": "value",
            "type": "string",
            "required": false,
            "description": "Controlled ISO date value (YYYY-MM-DD)"
          },
          {
            "name": "defaultValue",
            "type": "string",
            "required": false,
            "description": "Uncontrolled default value"
          },
          {
            "name": "onValueChange",
            "type": "(value: string | undefined) => void",
            "required": false,
            "description": "Called with the selected ISO date string (or undefined when cleared)"
          },
          {
            "name": "min",
            "type": "string",
            "required": false,
            "description": "Minimum ISO date"
          },
          {
            "name": "max",
            "type": "string",
            "required": false,
            "description": "Maximum ISO date"
          },
          {
            "name": "clearable",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "Shows a clear button"
          },
          {
            "name": "typeable",
            "description": "When true, the field accepts a typed date as well as one picked from the calendar.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "disabledDate",
            "description": "Rejects individual dates the bounds allow — holidays, weekends, taken slots.",
            "type": "(date: Date) => boolean",
            "required": false
          },
          {
            "name": "format",
            "description": "Formatting options for the displayed date. Defaults to the locale's numeric form.",
            "type": "Intl.DateTimeFormatOptions",
            "required": false
          },
          {
            "name": "showToday",
            "description": "When true, the calendar offers a button that jumps to the current month.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "name",
            "description": "Submitted with a surrounding form — a hidden input carrying the ISO value.",
            "type": "string",
            "required": false
          },
          {
            "name": "required",
            "description": "Marks the control as required for assistive technology.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "open",
            "description": "Controlled open state of the calendar popup.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onOpenChange",
            "description": "Called when the popup opens or closes.",
            "type": "(open: boolean) => void",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "string",
            "required": false,
            "description": "Visible field label rendered above the input; it also names the control."
          },
          {
            "name": "hint",
            "type": "string",
            "required": false,
            "description": "Hint text"
          },
          {
            "name": "error",
            "type": "string",
            "required": false,
            "description": "Error message"
          },
          {
            "name": "size",
            "default": "md",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "description": "Field size"
          },
          {
            "name": "disabled",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "Disables the picker"
          },
          {
            "name": "labels",
            "type": "DatePickerLabels",
            "required": false,
            "description": "i18n label overrides"
          },
          {
            "name": "aria-labelledby",
            "description": "Wired automatically by a wrapping `Field` — its label id, forwarded to the focusable control so the Field's label names it.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-describedby",
            "description": "Wired automatically by a wrapping `Field` — the ids of its hint/error text, forwarded to the focusable control so the supporting text is announced.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-invalid",
            "description": "Wired automatically by a wrapping `Field` when it is in an error state.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-surface",
          "--cascivo-color-surface-overlay",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-accent",
          "--cascivo-color-text-on-accent",
          "--cascivo-date-picker-day-today-color",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-text-subtle",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-destructive"
        ],
        "accessibility": {
          "role": "combobox",
          "wcag": "2.2-AA",
          "forcedColors": true,
          "reducedMotion": true,
          "keyboard": [
            "ArrowDown",
            "ArrowUp",
            "ArrowLeft",
            "ArrowRight",
            "Home",
            "End",
            "PageUp",
            "PageDown",
            "Enter",
            "Space",
            "Escape",
            "Delete"
          ]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<DatePicker label=\"Date\" />",
            "description": "Uncontrolled date picker"
          },
          {
            "title": "Clearable",
            "code": "<DatePicker label=\"Date\" clearable />",
            "description": "With clear button"
          },
          {
            "title": "With constraints",
            "code": "<DatePicker min=\"2024-01-01\" max=\"2024-12-31\" />",
            "description": "Date range constraint"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["calendar"],
        "tags": ["date", "calendar", "picker", "input", "form"],
        "intent": {
          "whenToUse": [
            "Picking a single calendar date in a form where a visual month grid helps (due dates, bookings)",
            "Date entry that benefits from min/max constraints and locale-aware formatting and week start"
          ],
          "whenNotToUse": [
            "Selecting a time of day — use TimePicker",
            "Free-form or approximate dates where a plain Input is faster, or a date already known by typing"
          ],
          "antiPatterns": [
            {
              "bad": "Passing a localized display string as value",
              "good": "value/defaultValue/min/max are ISO YYYY-MM-DD; display formatting is handled internally",
              "why": "The component parses and compares ISO dates; non-ISO values break selection, constraints, and onValueChange"
            }
          ],
          "related": [
            {
              "name": "TimePicker",
              "relationship": "pairs-with",
              "reason": "Combine when both a date and a time are needed"
            },
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use a plain input when a calendar grid is unnecessary"
            },
            {
              "name": "Form",
              "relationship": "contained-by",
              "reason": "Typically a field within a form with label/hint/error"
            }
          ],
          "a11yRationale": "The field is an <input role=\"combobox\"> with aria-expanded, aria-controls and aria-haspopup=\"dialog\" that accepts a typed date — the previous build had no text field at all, so a date already known could only be reached by paging a grid. ArrowDown and Alt+ArrowDown open the popup (the combobox pattern's required key, listed in the old manifest but never implemented), opening moves focus into the grid and Escape closes and returns it to the field; the old build did neither, leaving the grid unreachable on open and focus on <body> on close. The grid itself is a composed Calendar rather than a second hand-rolled copy, so its real-focus navigation, min/max clamping, disabled-day skipping, aria-selected placement and month announcements all apply here; the duplicate had none of them and its arrow keys did nothing at all until a value was set. Dismissal comes from the shared DismissableLayer instead of a raw document listener. Typed input is parsed at commit, not per keystroke, and rejected rather than coerced when unreadable or out of bounds.",
          "flexibility": [
            {
              "area": "value format",
              "level": "strict",
              "note": "All date props are ISO YYYY-MM-DD strings"
            },
            {
              "area": "locale formatting",
              "level": "flexible",
              "note": "Display, weekday labels, and week start derive from the current i18n locale via Intl"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Styling resolves to --cascivo-date-picker-* component tokens"
            }
          ]
        }
      },
      "registryDependencies": ["calendar"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "date-range-picker",
      "type": "component",
      "description": "A dual-calendar picker for selecting a contiguous date range.",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-range-picker/date-range-picker.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-range-picker/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-range-picker/date-range-picker.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/date-range-picker/date-range-picker.meta.ts"
      ],
      "fileHashes": {
        "date-range-picker.tsx": "sha256-47bb0daf3cd9ac45e091dc66a54203ee9e6a3109a0264195097da3cca5278bcf",
        "index.ts": "sha256-5f0a79eae12955487883b9421c8747709ecce575c6083992aadbecfd87c37266",
        "date-range-picker.module.css": "sha256-c9fa6b5cf1ba86f23eb53b47bdf871c8ae3c86e730df0469df914bd9c11d3942",
        "date-range-picker.meta.ts": "sha256-f812d776bcd4e912245dfa19d82e379c3137633ab25922008c971a85ac543687"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["date", "range", "calendar", "picker", "input", "form"],
      "meta": {
        "name": "DateRangePicker",
        "description": "A dual-calendar picker for selecting a contiguous date range.",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["trigger", "panel"]
          },
          "parts": {
            "trigger": {
              "element": "button",
              "role": "combobox",
              "aria": ["aria-expanded", "aria-haspopup", "aria-label"],
              "children": ["value", "icon"]
            },
            "value": {
              "element": "span",
              "children": ["$text"],
              "modifiers": {
                "placeholder": "!displayValue"
              }
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "panel": {
              "element": "div",
              "role": "dialog",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["presets", "calendars", "footer"]
            },
            "presets": {
              "element": "div",
              "when": "presets",
              "children": ["preset"]
            },
            "preset": {
              "element": "button",
              "children": ["$text"]
            },
            "calendars": {
              "element": "div",
              "children": ["calNav", "@calendar"]
            },
            "calNav": {
              "element": "div",
              "children": ["navButton"]
            },
            "navButton": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            },
            "footer": {
              "element": "div",
              "children": ["clearBtn", "applyBtn"]
            },
            "clearBtn": {
              "element": "button",
              "children": ["$text"]
            },
            "applyBtn": {
              "element": "button",
              "children": ["$text"]
            }
          }
        },
        "states": ["default", "open", "selecting"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "value",
            "type": "{ start: Date; end: Date } | null",
            "required": false,
            "description": "Controlled selected range"
          },
          {
            "name": "defaultValue",
            "type": "{ start: Date; end: Date }",
            "required": false,
            "description": "Uncontrolled initial range"
          },
          {
            "name": "onValueChange",
            "type": "(range: { start: Date; end: Date }) => void",
            "required": false,
            "description": "Called when a complete range is selected"
          },
          {
            "name": "min",
            "type": "Date",
            "required": false,
            "description": "Earliest selectable date"
          },
          {
            "name": "max",
            "type": "Date",
            "required": false,
            "description": "Latest selectable date"
          },
          {
            "name": "disabled",
            "type": "(date: Date) => boolean",
            "required": false,
            "description": "Predicate to disable individual days"
          },
          {
            "name": "presets",
            "type": "{ label: string; range: { start: Date; end: Date } }[]",
            "required": false,
            "description": "Quick-select preset ranges shown in a side column"
          },
          {
            "name": "locale",
            "type": "string",
            "required": false,
            "description": "BCP-47 locale; defaults to the current i18n locale"
          },
          {
            "name": "placeholder",
            "type": "string",
            "required": false,
            "description": "Empty-state trigger text"
          },
          {
            "name": "size",
            "default": "md",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "description": "Field/grid size"
          },
          {
            "name": "labels",
            "type": "DateRangePickerLabels",
            "required": false,
            "description": "i18n label overrides"
          }
        ],
        "tokens": [
          "--cascivo-calendar-bg",
          "--cascivo-calendar-day-selected-bg",
          "--cascivo-calendar-day-selected-fg",
          "--cascivo-calendar-range-bg"
        ],
        "accessibility": {
          "role": "combobox",
          "wcag": "2.2-AA",
          "keyboard": [
            "Enter",
            "Space",
            "Escape",
            "ArrowUp",
            "ArrowDown",
            "ArrowLeft",
            "ArrowRight",
            "Home",
            "End",
            "PageUp",
            "PageDown"
          ]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<DateRangePicker />",
            "description": "Uncontrolled dual-calendar range picker"
          },
          {
            "title": "With presets",
            "code": "<DateRangePicker presets={[{ label: \"Last 7 days\", range: last7 }]} />",
            "description": "Quick-select common ranges"
          },
          {
            "title": "Constrained",
            "code": "<DateRangePicker min={new Date(Date.UTC(2024, 0, 1))} max={new Date(Date.UTC(2024, 11, 31))} />",
            "description": "Limits the selectable dates"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["calendar"],
        "tags": ["date", "range", "calendar", "picker", "input", "form"],
        "intent": {
          "whenToUse": [
            "Selecting a contiguous start–end date range (reporting windows, bookings, filters)",
            "When two months visible at once and hover-preview of the in-between span aid selection"
          ],
          "whenNotToUse": [
            "Picking a single date — use DatePicker or Calendar",
            "Selecting many non-contiguous dates — a range picker only models one continuous span"
          ],
          "antiPatterns": [
            {
              "bad": "Emitting the range in click order, so onValueChange can fire with end before start",
              "good": "The two clicked dates are sorted before emitting, so start is always <= end",
              "why": "Consumers expect range.start <= range.end; an unsorted range breaks downstream comparisons and queries"
            }
          ],
          "related": [
            {
              "name": "Calendar",
              "relationship": "contains",
              "reason": "Renders two Calendar instances side-by-side with synced navigation"
            },
            {
              "name": "DatePicker",
              "relationship": "alternative",
              "reason": "Use the single-date picker when only one date is needed"
            }
          ],
          "a11yRationale": "The trigger is role=\"combobox\" with aria-haspopup=\"dialog\"/aria-expanded; the popover is a role=\"dialog\" containing two Calendar grids, each an APG role=\"grid\" with roving tabindex; selection is two clicks (first sets the pending start, second emits the sorted range; clicking the same day twice clears), and the hover/keyboard preview marks in-between cells with data-in-range; Escape and outside-click close the panel",
          "flexibility": [
            {
              "area": "range type",
              "level": "strict",
              "note": "value/defaultValue are { start: Date; end: Date } with native Date objects compared in UTC"
            },
            {
              "area": "presets",
              "level": "flexible",
              "note": "Optional preset ranges render as quick-select buttons in a side column"
            },
            {
              "area": "locale",
              "level": "flexible",
              "note": "Display, weekday labels, and week start derive from the locale via Intl"
            }
          ]
        }
      },
      "registryDependencies": ["calendar"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "dock",
      "type": "component",
      "description": "Fixed bottom navigation bar for mobile app shells with up to 5 items",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dock/dock.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dock/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dock/dock.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dock/dock.meta.ts"
      ],
      "fileHashes": {
        "dock.tsx": "sha256-6607d8363113fb21b9104a84696aa37c74acf731459e34567b266a9297304e4a",
        "index.ts": "sha256-b32d5f7a69013069a0a1c471de4cfc5be05a34926f756c1eb776d74f6a3ffaee",
        "dock.module.css": "sha256-c949615834af8fa7f4c117c34b67ef8d95b10bece0c1e2758afc00a034cfe5c0",
        "dock.meta.ts": "sha256-1fbe516e470da2a43f0bf967222045ceae248976d5c34c750122748ef5c6feac"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["dock", "tab-bar", "bottom-nav", "mobile", "navigation", "app-shell"],
      "meta": {
        "name": "Dock",
        "description": "Fixed bottom navigation bar for mobile app shells with up to 5 items",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "nav",
            "aria": ["aria-label"],
            "children": ["item"],
            "emit": "manual"
          },
          "parts": {
            "item": {
              "element": ["button", "a"],
              "data": {
                "data-active": ["true"]
              },
              "aria": ["aria-current"],
              "children": ["icon", "label"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "label": {
              "element": "span",
              "children": ["$text"]
            }
          }
        },
        "states": ["default", "active"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible label for the dock navigation; defaults to the built-in i18n string."
          },
          {
            "name": "items",
            "type": "DockItem[]",
            "required": true,
            "description": "Navigation items, each with a label, icon, and optional href or onClick"
          },
          {
            "name": "activeIndex",
            "type": "number",
            "required": false,
            "description": "Index of the currently active item (0-based)"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-surface",
          "--cascivo-color-text-muted",
          "--cascivo-border-subtle",
          "--cascivo-ring-width",
          "--cascivo-ring-color",
          "--cascivo-ease-out",
          "--cascivo-target-min-coarse",
          "--cascivo-z-dock"
        ],
        "accessibility": {
          "role": "navigation",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter"]
        },
        "examples": [
          {
            "title": "Basic mobile dock",
            "description": "Fixed bottom navigation for a mobile app shell",
            "code": "<Dock\n  activeIndex={0}\n  items={[\n    { label: 'Home', icon: '🏠', onClick: () => navigate('/') },\n    { label: 'Search', icon: '🔍', onClick: () => navigate('/search') },\n    { label: 'Profile', icon: '👤', onClick: () => navigate('/profile') },\n  ]}\n/>"
          },
          {
            "title": "With hrefs",
            "description": "Link-based dock items for standard navigation",
            "code": "<Dock\n  activeIndex={1}\n  items={[\n    { label: 'Feed', icon: '📰', href: '/feed' },\n    { label: 'Explore', icon: '🌐', href: '/explore' },\n    { label: 'Notifications', icon: '🔔', href: '/notifications' },\n    { label: 'Profile', icon: '👤', href: '/profile' },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["dock", "tab-bar", "bottom-nav", "mobile", "navigation", "app-shell"],
        "intent": {
          "whenToUse": [
            "Mobile app-shell navigation with 3–5 top-level destinations",
            "When the primary navigation must be thumb-reachable on small screens"
          ],
          "whenNotToUse": [
            "Desktop navigation — the dock hides at the lg breakpoint (64rem)",
            "More than 5 items — labels become unreadable and tap targets too small",
            "Secondary or contextual navigation — use Tabs or SideNav instead"
          ],
          "antiPatterns": [
            {
              "bad": "Putting more than 5 items in the Dock",
              "good": "Use an overflow menu or drawer for additional destinations",
              "why": "Tap targets become too small and labels collide on narrow screens"
            }
          ],
          "related": [
            {
              "name": "SideNav",
              "relationship": "alternative",
              "reason": "SideNav is the desktop equivalent for primary navigation"
            },
            {
              "name": "Tabs",
              "relationship": "alternative",
              "reason": "Tabs are for in-page section switching, not app-level navigation"
            }
          ],
          "a11yRationale": "Wrapped in <nav> with aria-label; active item carries aria-current=\"page\"; renders as <a> for href items and <button> for onClick items to preserve native semantics",
          "flexibility": [
            {
              "area": "item element",
              "level": "flexible",
              "note": "Renders <a> when href is provided, <button> otherwise — no wrapper needed"
            },
            {
              "area": "visibility",
              "level": "strict",
              "note": "Hidden at 64rem (lg) via display:none — not configurable to preserve mobile-only intent"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "drawer",
      "type": "component",
      "description": "Edge-anchored dialog panel that slides in from a screen edge with CSS-only enter/exit motion",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/drawer/drawer.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/drawer/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/drawer/drawer.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/drawer/drawer.meta.ts"
      ],
      "fileHashes": {
        "drawer.tsx": "sha256-d777ebbeb7e1a5a9569fa5ee51430f91b51f38115e1d8cabebf7f1803f6e245f",
        "index.ts": "sha256-ea186e8d5da189a37f9881cbdfb1f85689540f558ac64363659140387005f794",
        "drawer.module.css": "sha256-87b9e22a36da627ba7f8c876f00d48b654bb1c6de71826a274fc2b31d3e6e5c5",
        "drawer.meta.ts": "sha256-f754c96154ea7e0d20b1a4ac02ec8abc1816a40d8c847e9ef2d1e21dbfc90f97"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["NavigationDrawer"],
      "tags": ["overlay", "drawer", "panel", "slide", "dialog"],
      "meta": {
        "name": "Drawer",
        "description": "Edge-anchored dialog panel that slides in from a screen edge with CSS-only enter/exit motion",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "overlay",
            "data": {
              "data-side": ["left", "right", "top", "bottom"]
            },
            "children": ["panel"]
          },
          "parts": {
            "panel": {
              "element": "div",
              "role": "dialog",
              "data": {
                "data-side": ["left", "right", "top", "bottom"],
                "data-dragging": "string"
              },
              "aria": ["aria-modal", "aria-labelledby", "aria-describedby"],
              "children": ["header", "body"]
            },
            "header": {
              "element": "div",
              "when": "title || description",
              "children": ["heading", "close"]
            },
            "heading": {
              "element": "div",
              "children": ["title", "description"]
            },
            "title": {
              "element": "h2",
              "when": "title",
              "children": ["$text"]
            },
            "description": {
              "element": "p",
              "when": "description",
              "children": ["$text"]
            },
            "close": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["closeIcon"]
            },
            "closeIcon": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "body": {
              "element": "div",
              "data": {
                "data-cascivo-drawer-body": "string"
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "defaultOpen",
            "description": "Whether the component is open on first render (uncontrolled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onOpenChange",
            "description": "Called with the next open state when it changes.",
            "type": "(open: boolean) => void",
            "required": false
          },
          {
            "name": "side",
            "description": "Edge the panel is anchored to. Drives the slide direction.",
            "type": "'start' | 'end' | 'top' | 'bottom'",
            "required": false,
            "default": "end"
          },
          {
            "name": "size",
            "description": "Panel size along its cross axis (width for start/end, height for top/bottom).",
            "type": "string",
            "required": false
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ close?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "swipeToDismiss",
            "description": "Allow dragging the header toward its edge to dismiss (opt-in).",
            "type": "boolean",
            "required": false,
            "default": "false"
          }
        ],
        "tokens": [
          "--cascivo-dialog-body-gap",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-overlay",
          "--cascivo-shadow-overlay",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "dialog",
          "wcag": "2.2-AA",
          "keyboard": ["Escape", "Tab", "Shift+Tab"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Drawer open={isOpen} onOpenChange={setIsOpen} title=\"Settings\">\n  <SettingsForm />\n</Drawer>"
          },
          {
            "title": "Bottom drawer with swipe-to-dismiss",
            "code": "<Drawer defaultOpen side=\"bottom\" size=\"20rem\" swipeToDismiss title=\"Details\">\n  <OrderDetails />\n</Drawer>",
            "description": "Dragging the header past a threshold toward the edge dismisses the panel."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "styleHooks": ["data-cascivo-drawer-body"],
        "tags": ["overlay", "drawer", "panel", "slide", "dialog"],
        "intent": {
          "whenToUse": [
            "A side or edge panel for navigation, filters, or detail views that needs full-height space",
            "A modal surface that slides in and locks the page behind it while open",
            "A controllable open/close panel where the parent owns the state via open/onOpenChange"
          ],
          "whenNotToUse": [
            "A short yes/no confirmation — use AlertDialog",
            "Small content anchored to a trigger element — use Popover",
            "A gesture-driven, swipe-to-dismiss sheet — use Sheet"
          ],
          "antiPatterns": [
            {
              "bad": "<Drawer title=\"Delete item?\">Are you sure?</Drawer>",
              "good": "<AlertDialog title=\"Delete item?\" />",
              "why": "A full edge panel with focus trap and scroll lock is overkill for a yes/no decision"
            }
          ],
          "related": [
            {
              "name": "Sheet",
              "relationship": "alternative",
              "reason": "Use Sheet when swipe/gesture dismissal is wanted; Drawer is a plain dialog panel"
            },
            {
              "name": "Modal",
              "relationship": "alternative",
              "reason": "Use a centered modal rather than an edge panel for focused decisions"
            }
          ],
          "a11yRationale": "Renders role=\"dialog\" with aria-modal; the title labels it via aria-labelledby and the description via aria-describedby. FocusScope traps Tab focus and restores it on close; DismissableLayer handles Escape and outside-pointer dismissal.",
          "flexibility": [
            {
              "area": "side",
              "level": "strict",
              "note": "Limited to start | end | top | bottom — drives the slide direction and animation"
            },
            {
              "area": "open state",
              "level": "flexible",
              "note": "Controlled (open/onOpenChange) or uncontrolled (defaultOpen)"
            },
            {
              "area": "body content",
              "level": "flexible",
              "note": "Any children; the consumer owns the panel contents"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "dropdown",
      "type": "component",
      "description": "Menu of actions revealed from a trigger",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dropdown/dropdown.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dropdown/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dropdown/dropdown.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/dropdown/dropdown.meta.ts"
      ],
      "fileHashes": {
        "dropdown.tsx": "sha256-383b99c3677abd770c47f2d23d9a781d805940d6c6352ec7570738d1539befa5",
        "index.ts": "sha256-eadb4744bbbc90705110af4f638d0bbf19cf334f548adea9ac0e6296dd83e6ff",
        "dropdown.module.css": "sha256-ec65a7369bd0bff58ddeaecfa148090061d6d71b0ca69b0ed1fd3f4269238b51",
        "dropdown.meta.ts": "sha256-c2b35feb9aa222ae524a5a2d63140965908697123eba44a48b971eb0205e4543"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["DropdownMenu", "dropdown-menu", "MenuButton"],
      "tags": ["overlay", "menu", "actions"],
      "meta": {
        "name": "Dropdown",
        "description": "Menu of actions revealed from a trigger",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["$slot", "menu"]
          },
          "parts": {
            "menu": {
              "element": "div",
              "role": "menu",
              "data": {
                "data-placement": "string",
                "data-state": ["open", "closed"]
              },
              "children": ["item", "separator"]
            },
            "item": {
              "element": "button",
              "role": "menuitem",
              "children": ["icon", "$text"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "when": "item.icon",
              "children": ["$slot"]
            },
            "separator": {
              "element": "div",
              "role": "separator"
            }
          }
        },
        "states": ["closed", "open"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "trigger",
            "description": "The element that opens the dropdown when activated.",
            "type": "ReactElement",
            "required": true
          },
          {
            "name": "items",
            "description": "Menu entries. A selectable row is `{ label, value, icon?, disabled? }`; a rule between groups is `{ kind: 'separator' }`, which takes no label or value. The union is tagged on `kind`, so a separator cannot carry data that would be silently discarded.",
            "type": "({ label: string; value: string; icon?: ReactNode; disabled?: boolean } | { kind: 'separator' })[]",
            "required": true
          },
          {
            "name": "onSelect",
            "description": "Called with the selected value.",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "placement",
            "description": "Which trigger edge the menu aligns to. `bottom-start` hangs it from the trigger's start edge, `bottom-end` from its end edge — use `bottom-end` for a trigger near the end of the viewport.",
            "type": "'bottom-start' | 'bottom-end'",
            "required": false,
            "default": "bottom-start"
          },
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onOpenChange",
            "description": "Called with the next open state when it changes.",
            "type": "(open: boolean) => void",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "DropdownMenuItem",
            "description": "A selectable row in the menu.",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Visible item text."
              },
              {
                "name": "value",
                "type": "string",
                "required": true,
                "description": "Passed to `onSelect`."
              },
              {
                "name": "icon",
                "type": "ReactNode",
                "required": false,
                "description": "Leading icon."
              },
              {
                "name": "disabled",
                "type": "boolean",
                "required": false,
                "description": "Skips the item in keyboard navigation and selection."
              }
            ]
          },
          {
            "name": "DropdownSeparatorItem",
            "description": "A rule between groups. Carries no data and is skipped by keyboard navigation.",
            "fields": [
              {
                "name": "kind",
                "type": "'separator'",
                "required": true,
                "description": "Discriminant."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-surface-overlay",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-md",
          "--cascivo-z-dropdown"
        ],
        "accessibility": {
          "role": "menu",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowDown", "ArrowUp", "Home", "End", "Enter", "Space", "Escape"],
          "apgPattern": "menu",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Dropdown trigger={<Button>Actions</Button>} items={[{ label: \"Edit\", value: \"edit\" }]} onSelect={handle} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["overlay", "menu", "actions"],
        "intent": {
          "whenToUse": [
            "Revealing a short menu of actions from a trigger button (row actions, \"More\" overflow, account menu)",
            "Grouping related commands behind one affordance with optional icons and separators"
          ],
          "whenNotToUse": [
            "Selecting a persistent value for a form — use Select or Combobox",
            "A global searchable command palette — use CommandMenu; right-click context actions — use ContextMenu"
          ],
          "antiPatterns": [
            {
              "bad": "Using Dropdown to choose a form value and reading the selection as field state",
              "good": "Use Select/Combobox which expose role=\"combobox\" and a controlled value",
              "why": "Dropdown items are role=\"menuitem\" actions fired via onSelect — there is no selected-value semantics for assistive tech or forms"
            }
          ],
          "related": [
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Use for choosing and persisting a single form value"
            },
            {
              "name": "CommandMenu",
              "relationship": "alternative",
              "reason": "Use for a searchable global action palette"
            },
            {
              "name": "Button",
              "relationship": "pairs-with",
              "reason": "The trigger is typically a Button passed via the trigger prop"
            }
          ],
          "a11yRationale": "The menu is role=\"menu\" with role=\"menuitem\" buttons and roving tabindex; the trigger gets aria-haspopup=\"menu\" and aria-expanded via cloneElement; arrow/Home/End/Enter/Escape are handled and focus returns to the trigger on select or close, and popover=\"auto\" provides light-dismiss synced back to state via the toggle event",
          "flexibility": [
            {
              "area": "trigger element",
              "level": "flexible",
              "note": "Any ReactElement works as the trigger; ref and aria props are merged in"
            },
            {
              "area": "controlled vs uncontrolled",
              "level": "flexible",
              "note": "Supports open + onOpenChange or fully internal state"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Menu styling resolves to semantic --cascivo-color-* / --cascivo-z-dropdown tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "editable",
      "type": "component",
      "description": "Inline click-to-edit text field",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/editable/editable.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/editable/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/editable/editable.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/editable/editable.meta.ts"
      ],
      "fileHashes": {
        "editable.tsx": "sha256-728a2fd5ac543875b5f71db7e722db7cfc29dbd13255d081a6d36578b1f4c4db",
        "index.ts": "sha256-ac3241562959e3384601dcc4cab49f2c869a240600b6335a327ed21c11effd15",
        "editable.module.css": "sha256-ec9d9b7bc1172ca2ef57938563cf6eaa95ba55dcb64b3148c29d475159674341",
        "editable.meta.ts": "sha256-78a60b0312a828282079c94f502c8ac184e75f04100a1e1244d6f1fe072f8047"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "editable", "inline", "input", "text"],
      "meta": {
        "name": "Editable",
        "description": "Inline click-to-edit text field",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-disabled": "string"
            },
            "modifiers": {
              "editing": "isEditing"
            },
            "children": ["input", "preview"]
          },
          "parts": {
            "input": {
              "element": "input",
              "aria": ["aria-label", "aria-labelledby", "aria-describedby"]
            },
            "preview": {
              "element": "button",
              "aria": ["aria-label", "aria-labelledby", "aria-describedby"],
              "children": ["preview-text", "edit-icon"]
            },
            "preview-text": {
              "element": "span",
              "children": ["$text", "placeholder"]
            },
            "placeholder": {
              "element": "span",
              "children": ["$text"]
            },
            "edit-icon": {
              "element": "span",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": ["preview", "editing", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": true
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(v: string) => void",
            "required": true
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "submitOnBlur",
            "description": "When true, commits the edit when the field loses focus.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "onCancel",
            "description": "Called when the edit is cancelled.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "id",
            "description": "Id for the **focusable control** (not the wrapper), so a `<label for>` names what actually takes focus. `Field` supplies this automatically.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-labelledby",
            "description": "Wired automatically by a wrapping `Field` — its label id, forwarded to the focusable control so the Field's label names it.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-describedby",
            "description": "Wired automatically by a wrapping `Field` — the ids of its hint/error text, forwarded to the focusable control so the supporting text is announced.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-invalid",
            "description": "Wired automatically by a wrapping `Field` when it is in an error state.",
            "type": "boolean",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-sm",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Escape"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Editable value=\"Click to edit\" onValueChange={() => {}} />"
          },
          {
            "title": "With placeholder",
            "code": "<Editable value=\"\" onValueChange={() => {}} placeholder=\"Enter text\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "editable", "inline", "input", "text"],
        "intent": {
          "whenToUse": [
            "Editing a single piece of text in place where the value is normally read-only — titles, names, labels",
            "Keeping the page layout stable: the preview and the edit input occupy the same spot",
            "Letting users opt into editing by clicking, without a separate edit mode or form"
          ],
          "whenNotToUse": [
            "A field that is always meant to be edited — use Input inside a Form instead",
            "Multi-line or rich text — this is a single-line input only",
            "Collecting several related values at once — use a Form with grouped fields"
          ],
          "antiPatterns": [
            {
              "bad": "<Editable value={email} onValueChange={save} /> as a primary form control",
              "good": "<Input label=\"Email\" value={email} onChange={...} />",
              "why": "Inline edit hides the affordance behind a click; required form fields should be visibly editable from the start"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use Input when the field is always editable rather than click-to-reveal"
            }
          ],
          "a11yRationale": "The preview renders as a real <button> so it is keyboard-focusable and announces as an actionable control; while editing, Enter confirms and Escape cancels, and focus is moved into the input and its text selected so keyboard users can immediately type.",
          "content": {
            "tone": "Placeholder describes the value, not the action",
            "notes": "Sentence case; e.g. \"Enter title\" not \"Click to edit\""
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Visual styling must resolve to the listed --cascivo-* surface/border/accent/text tokens"
            },
            {
              "area": "placeholder copy",
              "level": "flexible",
              "note": "Free, within tone guidance"
            },
            {
              "area": "submit-on-blur behavior",
              "level": "flexible",
              "note": "submitOnBlur toggles whether blurring confirms or cancels the edit"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "empty-state",
      "type": "component",
      "description": "Placeholder for views that have no data to display",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/empty-state/empty-state.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/empty-state/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/empty-state/empty-state.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/empty-state/empty-state.meta.ts"
      ],
      "fileHashes": {
        "empty-state.tsx": "sha256-8f985213d17a36d7abaf3591569854869d4550e15f06479ecc0909aaa3d8cf7b",
        "index.ts": "sha256-1cdebd0969d28d1b4dd84625f654c2bd216975850ebc069048a964350eb62d69",
        "empty-state.module.css": "sha256-a96b87df58c53d5f14db3962fa0c3bd68bff8186b83b31c064206bc4cad2e747",
        "empty-state.meta.ts": "sha256-8d3880342c51fb351aa80ec4bf1b2fa99b6f2b4ea50d2f2b1b28fdcadec43943"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["EmptyView", "NoData", "ZeroState"],
      "tags": ["empty", "placeholder", "zero-state", "no-data"],
      "meta": {
        "name": "EmptyState",
        "description": "Placeholder for views that have no data to display",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-size": ["md", "lg"]
            },
            "children": ["icon", "title", "description", "action"],
            "emit": "manual"
          },
          "parts": {
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"],
              "when": "icon"
            },
            "title": {
              "element": "h3",
              "children": ["$text"]
            },
            "description": {
              "element": "p",
              "children": ["$text"],
              "when": "description"
            },
            "action": {
              "element": "div",
              "children": ["$slot"],
              "when": "action"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": ["md", "lg"],
        "props": [
          {
            "name": "icon",
            "description": "Icon element rendered in the component.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "action",
            "description": "Primary action shown in the component.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'md' | 'lg'",
            "required": false,
            "default": "md"
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-text-muted",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-full"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<EmptyState title=\"No results\" description=\"Try adjusting your filters.\" />"
          },
          {
            "title": "With action",
            "code": "<EmptyState icon=\"📄\" title=\"No documents yet\" description=\"Create your first document to get started.\" action={<Button>New document</Button>} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["empty", "placeholder", "zero-state", "no-data"],
        "intent": {
          "whenToUse": [
            "Filling a view that has no data with guidance and a primary next step",
            "Explaining why a list/table is empty (no results, nothing created yet)",
            "Offering an action that resolves the empty condition (action prop)"
          ],
          "whenNotToUse": [
            "Content is still loading — use Skeleton or Spinner",
            "An error occurred — use Alert to explain the failure"
          ],
          "antiPatterns": [
            {
              "bad": "Showing an EmptyState while data is still fetching",
              "good": "A Skeleton during load, then EmptyState only if the result is empty",
              "why": "Conflating loading with empty tells the user there is no data when there may be"
            }
          ],
          "related": [
            {
              "name": "Skeleton",
              "relationship": "alternative",
              "reason": "Skeleton covers the loading phase before data resolves"
            },
            {
              "name": "Alert",
              "relationship": "alternative",
              "reason": "Use Alert for error states rather than a generic empty state"
            }
          ],
          "a11yRationale": "Presentational by role; the title carries the meaning as text and the action is a real focusable control, so keyboard and screen-reader users can act on the next step",
          "content": {
            "tone": "Encouraging and concrete — name the next action",
            "notes": "Title states the situation; description tells the user what to do"
          },
          "flexibility": [
            {
              "area": "size and action",
              "level": "flexible",
              "note": "Action and icon are optional; size scales for full-page vs in-panel use"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Text and background colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "fab",
      "type": "component",
      "description": "Floating action button anchored to a screen corner, with an optional speed-dial of secondary actions",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/fab/fab.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/fab/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/fab/fab.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/fab/fab.meta.ts"
      ],
      "fileHashes": {
        "fab.tsx": "sha256-0379577f2339256cb16a3190b009168a0734ff96fba7dea9a44ecfd2f9f46a9e",
        "index.ts": "sha256-2cc152f990c3ce5c8aa631cb71a0d63475b70be88afd522fbe7ad37774b905fd",
        "fab.module.css": "sha256-2082c37c4dcec158b40c71d4f902b1fa6ff01d6b083c7a23fb6c3ca90103e7d8",
        "fab.meta.ts": "sha256-92215715fd47f0eea709ab6455d2dc7db8e7b212bffb6bd77b5dbc4abaf13145"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["inputs", "fab", "floating-action-button", "mobile", "speed-dial"],
      "meta": {
        "name": "Fab",
        "description": "Floating action button anchored to a screen corner, with an optional speed-dial of secondary actions",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "data": {
              "data-position": "string"
            },
            "children": ["dial", "fab"]
          },
          "parts": {
            "dial": {
              "element": "menu",
              "role": "menu",
              "aria": ["aria-label"],
              "when": "actions",
              "children": ["dialItem"]
            },
            "dialItem": {
              "element": "li",
              "role": "presentation",
              "children": ["action"]
            },
            "action": {
              "element": "button",
              "role": "menuitem",
              "aria": ["aria-disabled"],
              "children": ["actionLabel", "actionIcon"]
            },
            "actionLabel": {
              "element": "span",
              "children": ["$text"]
            },
            "actionIcon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "fab": {
              "element": "button",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-label", "aria-haspopup", "aria-expanded", "aria-controls"],
              "children": ["icon"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["default", "open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "React.ReactNode",
            "required": true,
            "description": "The main icon"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible name for the main button (it is icon-only). Not rendered — screen readers only. Exactly one of `label` / `ariaLabel` is required; the type enforces it."
          },
          {
            "name": "onClick",
            "description": "Called when the element is clicked.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "actions",
            "type": "FabAction[]",
            "required": false,
            "description": "Speed-dial actions; each has a label, icon, onSelect, and optional disabled"
          },
          {
            "name": "position",
            "description": "Screen corner the button is pinned to: `bottom-end` or `bottom-start`. Safe-area insets are honoured either way.",
            "type": "'bottom-end' | 'bottom-start'",
            "required": false,
            "default": "bottom-end"
          },
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "defaultOpen",
            "description": "Whether the component is open on first render (uncontrolled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onOpenChange",
            "description": "Called with the next open state when it changes.",
            "type": "(open: boolean) => void",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-accent",
          "--cascivo-color-accent-content",
          "--cascivo-color-accent-hover",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-full",
          "--cascivo-shadow-overlay",
          "--cascivo-target-min-coarse",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-z-dropdown"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space", "ArrowUp", "ArrowDown", "Home", "End", "Escape"]
        },
        "examples": [
          {
            "title": "Single action",
            "code": "<Fab label=\"Compose\" onClick={compose}><PlusIcon /></Fab>"
          },
          {
            "title": "Speed dial",
            "code": "<Fab\n  label=\"Create\"\n  actions={[\n    { label: 'New note', icon: <NoteIcon />, onSelect: newNote },\n    { label: 'New folder', icon: <FolderIcon />, onSelect: newFolder },\n  ]}\n>\n  <PlusIcon />\n</Fab>",
            "description": "The main button toggles a menu of secondary actions."
          },
          {
            "title": "Start corner",
            "code": "<Fab label=\"Help\" position=\"bottom-start\" onClick={openHelp}><HelpIcon /></Fab>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["inputs", "fab", "floating-action-button", "mobile", "speed-dial"],
        "intent": {
          "whenToUse": [
            "A single, high-emphasis primary action that floats above scrolling content (e.g. Compose, Add)",
            "A small cluster of related create actions revealed from one corner via a speed-dial",
            "Touch-first screens where the primary action should stay reachable at the thumb"
          ],
          "whenNotToUse": [
            "Ordinary form or toolbar buttons — use Button or IconButton in the layout flow",
            "More than a handful of actions — use a Menu, Drawer, or full navigation",
            "Primary navigation between top-level destinations — use Dock"
          ],
          "antiPatterns": [
            {
              "bad": "<Fab label=\"Save\"><SaveIcon /></Fab> next to a form submit button",
              "good": "<Button type=\"submit\">Save</Button>",
              "why": "A floating button competes with the in-flow submit and hides the action off the form"
            }
          ],
          "related": [
            {
              "name": "IconButton",
              "relationship": "alternative",
              "reason": "Use IconButton for an in-flow icon control; Fab floats and is high-emphasis"
            },
            {
              "name": "Dock",
              "relationship": "alternative",
              "reason": "Use Dock for bottom navigation between destinations rather than a single action"
            }
          ],
          "a11yRationale": "The main button is icon-only and requires a `label` that becomes its aria-label. With a speed-dial it exposes aria-haspopup=\"menu\", aria-expanded, and aria-controls; the dial is a role=\"menu\" of role=\"menuitem\" buttons under vertical roving focus (Arrow keys, Home/End, wrapping). Opening moves focus to the first action and closing (Escape, outside press, or selection via DismissableLayer) returns focus to the button.",
          "flexibility": [
            {
              "area": "actions",
              "level": "flexible",
              "note": "Omit for a single-action button, or provide a speed-dial of secondary actions"
            },
            {
              "area": "position",
              "level": "strict",
              "note": "Anchored to bottom-end or bottom-start; honours safe-area insets"
            },
            {
              "area": "open state",
              "level": "flexible",
              "note": "Speed-dial is controlled (open/onOpenChange) or uncontrolled (defaultOpen)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "field",
      "type": "component",
      "description": "Form-field wrapper composing label, control, description, and error",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/field/field.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/field/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/field/field.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/field/field.meta.ts"
      ],
      "fileHashes": {
        "field.tsx": "sha256-0454b9dde2cb52992cd2ceff28572281a72f97789ca5baccac713bf26aad51af",
        "index.ts": "sha256-af9db7b6453ad1385895c6cb7a00e21f34729a76014d4be1cbde318800c44ebc",
        "field.module.css": "sha256-4c967f468b4ba0c2f82abf2b6dff2c19f7a886747dc0c1558e7e78530b934c84",
        "field.meta.ts": "sha256-0e8735c974ad57518f294deff5d37479d2e54c971087a53ab27cd80b9a746896"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "layout", "validation", "accessibility"],
      "meta": {
        "name": "Field",
        "description": "Form-field wrapper composing label, control, description, and error",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-disabled": [""],
              "data-state": ["default", "disabled", "invalid"]
            },
            "children": ["@label", "$slot", "description", "error"],
            "emit": "manual"
          },
          "parts": {
            "description": {
              "element": "p",
              "children": ["$slot"],
              "when": "description || hint"
            },
            "error": {
              "element": "p",
              "role": "alert",
              "children": ["$slot"],
              "when": "error"
            }
          }
        },
        "states": ["default", "disabled", "invalid"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "hint",
            "description": "Alias of `description` — the name the eight form controls use for the same supporting text. Neither is deprecated.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "description",
            "description": "Supporting text under the control, wired via aria-describedby. `hint` is accepted as an alias.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "error",
            "description": "Error message shown when the value is invalid.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "required",
            "description": "When true, marks the field as required.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "id",
            "description": "Id applied to the root element (auto-generated when omitted).",
            "type": "string",
            "required": false
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "ReactElement",
            "required": true
          }
        ],
        "tokens": [
          "--cascivo-space-2",
          "--cascivo-font-sans",
          "--cascivo-text-sm",
          "--cascivo-leading-snug",
          "--cascivo-color-text-muted",
          "--cascivo-color-destructive"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": [],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Field label=\"Email\"><Input type=\"email\" /></Field>"
          },
          {
            "title": "With description",
            "code": "<Field label=\"Email\" description=\"We never share it.\"><Input /></Field>"
          },
          {
            "title": "With error",
            "code": "<Field label=\"Email\" error=\"Email is required\" required><Input /></Field>",
            "description": "Sets aria-invalid on the control and announces the error via role=\"alert\"."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["label"],
        "tags": ["form", "layout", "validation", "accessibility"],
        "intent": {
          "whenToUse": [
            "Pairing a single control with its label, helper text, and validation message",
            "Wiring aria-describedby / aria-invalid automatically instead of by hand"
          ],
          "whenNotToUse": [
            "A standalone control that needs no label, description, or error",
            "Grouping multiple related controls — use a <fieldset> with a <legend>"
          ],
          "antiPatterns": [
            {
              "bad": "<Field label=\"Email\"><Input label=\"Email\" /></Field>",
              "good": "<Field label=\"Email\"><Input /></Field>",
              "why": "Field owns the label; a labelled child (Input, Textarea, NativeSelect, …) renders a SECOND <label> for the same control. Omit the child's label inside a Field (dev builds warn)."
            },
            {
              "bad": "<Field label=\"Email\"><Input /><Input /></Field>",
              "good": "<Field label=\"Email\"><Input /></Field>",
              "why": "Field clones exactly one child control to inject its id and aria wiring; multiple children break the association"
            },
            {
              "bad": "<div><label>Email</label><input aria-invalid /><span>Error</span></div>",
              "good": "<Field label=\"Email\" error=\"Error\"><Input /></Field>",
              "why": "Hand-wired markup easily drifts: missing ids, no role=\"alert\", mismatched aria-describedby — Field keeps them in sync"
            }
          ],
          "related": [
            {
              "name": "Label",
              "relationship": "contains",
              "reason": "Field renders a Label and links it to the control via htmlFor"
            },
            {
              "name": "Input",
              "relationship": "contains",
              "reason": "The control passed as children receives the generated id and aria attributes"
            }
          ],
          "a11yRationale": "Generates stable ids with useId and links them through htmlFor and aria-describedby; the error carries role=\"alert\" so it is announced on appearance, and aria-invalid marks the control invalid for assistive tech",
          "content": {
            "tone": "Label is a noun phrase; error is a short corrective sentence",
            "notes": "Descriptions are concise helper text; errors state what is wrong and how to fix it"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Spacing and color must resolve to --cascivo-* semantic tokens"
            },
            {
              "area": "control element",
              "level": "flexible",
              "note": "Any single element accepting id/aria-* props can be the child control"
            }
          ]
        }
      },
      "registryDependencies": ["label"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "file-uploader",
      "type": "component",
      "description": "Drag-and-drop file upload zone with file list and status indicators.",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/file-uploader/file-uploader.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/file-uploader/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/file-uploader/file-uploader.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/file-uploader/file-uploader.meta.ts"
      ],
      "fileHashes": {
        "file-uploader.tsx": "sha256-c80fed89403b2e6dbad94d17528fbb8d66ef89a6fa27bc857c6ed6a634d5b147",
        "index.ts": "sha256-d06d12dc06b4a333c7971a58c8d0df4a3231cfa7c5f37b9887e0058310534f06",
        "file-uploader.module.css": "sha256-35bd0ec527994470c72a5ac6c867a7772fbea1bf3f7434e4324c7d278ed5a9df",
        "file-uploader.meta.ts": "sha256-f6cfc6ae80b647d5c3b43b5d22d09d7461b2d0f2b722d52adab6564e1d3ec197"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["upload", "file", "drop", "drag", "input", "form"],
      "meta": {
        "name": "FileUploader",
        "description": "Drag-and-drop file upload zone with file list and status indicators.",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "uploader",
            "children": ["label", "input", "zone", "hint", "srOnly", "list"]
          },
          "parts": {
            "label": {
              "element": "span",
              "children": ["$text"]
            },
            "input": {
              "element": "input",
              "aria": ["aria-labelledby"]
            },
            "zone": {
              "element": "button",
              "data": {
                "data-state": ["idle", "dragover"]
              },
              "aria": ["aria-labelledby", "aria-label", "aria-describedby"],
              "children": ["zoneText"]
            },
            "zoneText": {
              "element": "span",
              "children": ["$text"]
            },
            "hint": {
              "element": "span",
              "when": "hint",
              "children": ["$text"]
            },
            "srOnly": {
              "element": "span",
              "role": "status",
              "aria": ["aria-live"],
              "children": ["$text"]
            },
            "list": {
              "element": "ul",
              "when": "files.length",
              "children": ["file"]
            },
            "file": {
              "element": "li",
              "data": {
                "data-state": "string"
              },
              "children": ["status", "name", "size", "remove", "error-message"]
            },
            "status": {
              "element": "span",
              "children": ["@spinner", "glyph-complete", "glyph-error"]
            },
            "glyph-complete": {
              "element": "span",
              "role": "img",
              "aria": ["aria-label"],
              "children": ["$text"]
            },
            "glyph-error": {
              "element": "span",
              "role": "img",
              "aria": ["aria-label"],
              "children": ["$text"]
            },
            "name": {
              "element": "span",
              "children": ["$text"]
            },
            "size": {
              "element": "span",
              "children": ["$text"]
            },
            "remove": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            },
            "error-message": {
              "element": "span",
              "role": "alert",
              "children": ["$text"]
            }
          }
        },
        "states": ["idle", "dragover", "uploading", "complete", "error", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "files",
            "default": "[]",
            "type": "UploaderFile[]",
            "required": false,
            "description": "Controlled file list"
          },
          {
            "name": "onFilesAdded",
            "type": "(files: File[]) => void",
            "required": false,
            "description": "Called with accepted files"
          },
          {
            "name": "onRemove",
            "type": "(id: string) => void",
            "required": false,
            "description": "Called when a file is removed"
          },
          {
            "name": "multiple",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "Allow multiple files"
          },
          {
            "name": "accept",
            "type": "string",
            "required": false,
            "description": "Accepted file types (MIME or extension)"
          },
          {
            "name": "maxSize",
            "type": "number",
            "required": false,
            "description": "Maximum file size in bytes"
          },
          {
            "name": "onRejected",
            "type": "(files: File[], reason: 'size' | 'type') => void",
            "required": false,
            "description": "Called with rejected files"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "string",
            "required": false,
            "description": "Visible field label rendered above the drop zone; it also names the control."
          },
          {
            "name": "hint",
            "type": "string",
            "required": false,
            "description": "Hint text below the drop zone"
          },
          {
            "name": "labels",
            "type": "FileUploaderLabels",
            "required": false,
            "description": "i18n label overrides"
          },
          {
            "name": "disabled",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "Disables the upload zone"
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-accent-subtle",
          "--cascivo-color-success-foreground",
          "--cascivo-color-destructive",
          "--cascivo-color-destructive-subtle",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<FileUploader onFilesAdded={console.log} />",
            "description": "Single file upload zone"
          },
          {
            "title": "Multiple",
            "code": "<FileUploader multiple onFilesAdded={console.log} />",
            "description": "Accept multiple files"
          },
          {
            "title": "With files",
            "code": "<FileUploader files={[{ id:'1', name:'report.pdf', size:102400, status:'complete' }]} />",
            "description": "Shows file list"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["spinner"],
        "tags": ["upload", "file", "drop", "drag", "input", "form"],
        "intent": {
          "whenToUse": [
            "Letting users attach one or more files via click-to-browse or drag-and-drop",
            "Showing per-file upload progress and status (uploading, complete, error) in a list",
            "Enforcing client-side accept/maxSize constraints with a callback for rejected files"
          ],
          "whenNotToUse": [
            "A single short text value — use Input",
            "Choosing from a fixed set of options rather than supplying a file — use Select or MultiSelect"
          ],
          "antiPatterns": [
            {
              "bad": "Treating the component as uncontrolled and ignoring onFilesAdded",
              "good": "Track accepted files in state and pass them back via the files prop",
              "why": "The file list is controlled — without wiring files/onFilesAdded/onRemove nothing renders in the list and status cannot update"
            },
            {
              "bad": "Relying only on accept/maxSize for security",
              "good": "Re-validate type and size on the server after upload",
              "why": "Client-side accept/maxSize are UX filters, not enforcement; a determined user can bypass them"
            }
          ],
          "related": [
            {
              "name": "Form",
              "relationship": "pairs-with",
              "reason": "Place the uploader inside a Form when files are part of a larger submission"
            },
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use a plain text Input when capturing a value rather than a file"
            }
          ],
          "a11yRationale": "The drop zone is a real <button> so it is keyboard-operable (Enter/Space open the native file picker); it is named by the visible label via aria-labelledby (or by ariaLabel) and described by the hint only, so the name is the field rather than the generic drop instruction. Ids come from useId, so two uploaders on a page never collide. A single aria-live=\"polite\" region is mounted unconditionally — a region added in the same commit as its first file announces nothing — and reports the file count plus the list-wide state. Per-file glyphs carry role=\"img\" so their aria-label is honoured, a failed file's message is a role=\"alert\", the file input stays in the accessibility tree (aria-hidden on a node that is programmatically focused and clicked is the aria-hidden-focus violation) and carries the field label as its own name, since an exposed form control without one fails the axe label rule, disabled reaches the remove controls too, and remove targets meet the 44px floor under a coarse pointer. Drag-over, disabled and error states each get a forced-colors treatment, since colour alone disappears there.",
          "content": {
            "tone": "Plain, instructive labels and hints",
            "notes": "Defaults come from the i18n catalog; hint should state accepted types/size limits, e.g. \"PDF up to 5 MB\""
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Status colors must resolve to --cascivo-color-accent/success/danger tokens"
            },
            {
              "area": "label and hint copy",
              "level": "flexible",
              "note": "Overridable via label/hint props or the labels object"
            },
            {
              "area": "accept / maxSize constraints",
              "level": "flexible",
              "note": "Configure freely; rejected files surface through onRejected"
            }
          ]
        }
      },
      "registryDependencies": ["spinner"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "filter",
      "type": "component",
      "description": "A group of toggleable pill or outline buttons for filtering content by category",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/filter/filter.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/filter/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/filter/filter.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/filter/filter.meta.ts"
      ],
      "fileHashes": {
        "filter.tsx": "sha256-77143c2f8a48ffecce35dfe4cdc403a5cb2e5d4fd1eda0c7a879e2112c005592",
        "index.ts": "sha256-24fb4e877d4acbafec2b2e3de672486b429a97b973e27e5543905abf34bdb696",
        "filter.module.css": "sha256-245e2bf9caccc0d8aa52133814a9b4e362073f9667d07dd491159980fbceecfc",
        "filter.meta.ts": "sha256-895bae9ab2c47936bc21a567a2f3189adf1dc9355b0204ffa4d9d4abd1326503"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["filter", "chip", "tag", "pill", "facet", "category"],
      "meta": {
        "name": "Filter",
        "description": "A group of toggleable pill or outline buttons for filtering content by category",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "filter",
            "role": "group",
            "data": {
              "data-variant": ["pill", "outline"]
            },
            "aria": ["aria-label"],
            "children": ["item"]
          },
          "parts": {
            "item": {
              "element": "button",
              "data": {
                "data-selected": "boolean"
              },
              "aria": ["aria-pressed"],
              "children": ["$text"]
            }
          }
        },
        "states": ["default", "selected", "hover", "focus"],
        "variants": ["pill", "outline"],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Invisible accessible name. The catalog convention; the DOM spelling `aria-label` is accepted as an alias so either guess compiles.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-label",
            "type": "string",
            "required": false,
            "description": "Accessible label for the filter group."
          },
          {
            "name": "options",
            "type": "FilterOption[]",
            "required": true,
            "description": "Array of { label, value } objects to render as filter buttons"
          },
          {
            "name": "value",
            "type": "string[]",
            "required": false,
            "description": "Controlled selected values"
          },
          {
            "name": "defaultValue",
            "type": "string[]",
            "required": false,
            "default": "[]",
            "description": "Initial selected values for uncontrolled use"
          },
          {
            "name": "onValueChange",
            "description": "Called with the selected values whenever the selection changes.",
            "type": "(selected: string[]) => void",
            "required": false
          },
          {
            "name": "multi",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Allow multiple items to be selected simultaneously"
          },
          {
            "name": "variant",
            "description": "`pill` fills the selected chip with the accent colour; `outline` marks it with an accent border and text instead, leaving the fill transparent.",
            "type": "'pill' | 'outline'",
            "required": false,
            "default": "pill"
          },
          {
            "name": "multiple",
            "description": "Alias of `multi` — the HTML spelling (`<select multiple>`), accepted because it is the guess an adopter makes first. `multi` stays canonical.",
            "type": "boolean",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-radius-full",
          "--cascivo-border-default",
          "--cascivo-color-text-subtle",
          "--cascivo-color-text",
          "--cascivo-color-active-bg",
          "--cascivo-color-accent",
          "--cascivo-color-accent-content",
          "--cascivo-ring-width",
          "--cascivo-ring-color",
          "--cascivo-ease-out"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space"]
        },
        "examples": [
          {
            "title": "Single-select",
            "code": "<Filter\n  options={[\n    { label: 'All', value: 'all' },\n    { label: 'Active', value: 'active' },\n    { label: 'Archived', value: 'archived' },\n  ]}\n  aria-label=\"Filter by status\"\n/>"
          },
          {
            "title": "Multi-select",
            "code": "<Filter\n  multi\n  options={[\n    { label: 'Design', value: 'design' },\n    { label: 'Engineering', value: 'engineering' },\n    { label: 'Marketing', value: 'marketing' },\n  ]}\n  aria-label=\"Filter by team\"\n/>"
          },
          {
            "title": "Outline variant",
            "code": "<Filter\n  variant=\"outline\"\n  options={[{ label: 'React', value: 'react' }, { label: 'Vue', value: 'vue' }]}\n  aria-label=\"Filter by framework\"\n/>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["filter", "chip", "tag", "pill", "facet", "category"],
        "intent": {
          "whenToUse": [
            "Tag or category filtering on listing pages where the active filters must remain visible",
            "Facet chips that toggle content visibility (e.g. product categories, team labels)"
          ],
          "whenNotToUse": [
            "Navigation between distinct views — use Tabs",
            "A binary on/off switch — use Toggle",
            "Form field for selecting a value — use Select or Checkbox"
          ],
          "antiPatterns": [
            {
              "bad": "<Filter options={statusOptions} onValueChange={navigate} />",
              "good": "<Tabs items={statusTabs} />",
              "why": "Filter is for narrowing visible content, not routing between views"
            }
          ],
          "related": [
            {
              "name": "Tabs",
              "relationship": "alternative",
              "reason": "Tabs navigate between views; Filter narrows displayed content"
            },
            {
              "name": "Toggle",
              "relationship": "alternative",
              "reason": "Toggle is the binary on/off primitive; Filter handles multi-option sets"
            },
            {
              "name": "Tag",
              "relationship": "pairs-with",
              "reason": "Tag displays the currently active filters as dismissible chips"
            }
          ],
          "a11yRationale": "Wraps buttons in a role=\"group\" so screen readers announce the group label; each button uses aria-pressed to communicate selected state without relying on color alone",
          "flexibility": [
            {
              "area": "variant",
              "level": "flexible",
              "note": "pill suits floating filter bars; outline suits embedded filter rows within a bordered container"
            },
            {
              "area": "multi",
              "level": "flexible",
              "note": "single-select for mutually exclusive categories; multi for additive facets"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "form",
      "type": "component",
      "description": "Typed signal-based form store (createForm/useForm) with sync/async validation and a thin Form element wrapper",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/form/form.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/form/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/form/standard-schema.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/form/form.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/form/form.meta.ts"
      ],
      "fileHashes": {
        "form.tsx": "sha256-688d5a8bb8c2d7f2820bc32008e77a88e6d7e145ac555356f9c93d27ed11956e",
        "index.ts": "sha256-3f6bc834774a33e390e6ff1e24d8dc41deef579d0d1e5623c0dfae93b26f9eb7",
        "standard-schema.ts": "sha256-174557b4c4134bad94bc8dc60633d6c784e4d605ed32e7d4ccfec246c8971844",
        "form.module.css": "sha256-522ba6343e1880a683fe540cca1823c61f02299bde71e561762fd1a3ca46d755",
        "form.meta.ts": "sha256-2bd3f8d3c43e9afdd23564eeadd5bca71dda010b4d9d2fca714bae371a64f154"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "validation", "signals", "input"],
      "meta": {
        "name": "Form",
        "description": "Typed signal-based form store (createForm/useForm) with sync/async validation and a thin Form element wrapper",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "form",
            "local": "form",
            "children": ["$slot"]
          }
        },
        "states": ["idle", "submitting"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "form",
            "description": "The form store holding values, validation, and submission state.",
            "type": "FormStore<T>",
            "required": true
          },
          {
            "name": "onValid",
            "description": "Called with the values when the form passes validation.",
            "type": "(values: T) => void | Promise<void>",
            "required": true
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-space-4"],
        "accessibility": {
          "role": "form",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter"]
        },
        "examples": [
          {
            "title": "Basic form with validation",
            "code": "function Demo() {\n  const form = useForm({\n    initialValues: { email: '' },\n    validate: (v) => v.email.includes('@') ? {} : { email: 'Invalid email' },\n  })\n  const email = form.field('email')\n  return (\n    <Form form={form} onValid={console.log}>\n      <Input\n        label=\"Email\"\n        value={email.value}\n        onChange={(e) => email.onChange(e.currentTarget.value)}\n        onBlur={email.onBlur}\n        error={email.error}\n      />\n      <Button type=\"submit\">Save</Button>\n    </Form>\n  )\n}"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "validation", "signals", "input"],
        "intent": {
          "whenToUse": [
            "Collecting and submitting a set of related field values together",
            "Running sync or async validation (including Standard Schema like zod/valibot/arktype) before invoking onValid",
            "Tracking per-field touched state and errors via the signal-based store from useForm/createForm"
          ],
          "whenNotToUse": [
            "A single standalone value with no submission step — render a bare Input",
            "Inline editing of one read-only value — use Editable"
          ],
          "antiPatterns": [
            {
              "bad": "<form onSubmit={...}> with hand-rolled useState per field",
              "good": "const form = useForm({ initialValues, validate }); <Form form={form} onValid={...}>",
              "why": "The store centralizes values, errors, touched, and submitting as signals; rolling your own reintroduces the re-render and validation-timing bugs the store solves"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "contains",
              "reason": "Form wraps field controls like Input, wiring value/onChange/onBlur/error from form.field()"
            },
            {
              "name": "FileUploader",
              "relationship": "contains",
              "reason": "File attachments can participate in a Form submission"
            }
          ],
          "a11yRationale": "Renders a native <form> with noValidate so validation messages come from the component (surfaced per field via Input error/role=\"alert\") rather than inconsistent browser bubbles, while Enter-to-submit and the form role are preserved by the platform element.",
          "flexibility": [
            {
              "area": "validation strategy",
              "level": "flexible",
              "note": "Use schema, validate, or both; schema runs first and validate only if the schema passes"
            },
            {
              "area": "validation timing",
              "level": "flexible",
              "note": "Validates on submit by default; set validateOnChange to revalidate the edited field on every keystroke (signal-driven, no re-render)"
            },
            {
              "area": "field control composition",
              "level": "flexible",
              "note": "Any control can be wired via form.field(name); children are free-form"
            },
            {
              "area": "submit semantics",
              "level": "strict",
              "note": "onValid only fires when validation produces no errors; submission is guarded by the submitting signal"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "header",
      "type": "component",
      "description": "App top bar with brand, primary navigation links, and an actions slot",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header/header.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header/header.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header/header.meta.ts"
      ],
      "fileHashes": {
        "header.tsx": "sha256-036e52d0676626a3881c4bd2c9c70e89e93b9ad1cba51a05ab3fdcfbeffcdf18",
        "index.ts": "sha256-563a5d1fa9c8afba14061e7549818e6df9023b05bd9fbaa48cb12ab1f7eb96d9",
        "header.module.css": "sha256-b9881e5799d65035192bafa5d933a89c8039918e5c5f1084cc08311a148c74a2",
        "header.meta.ts": "sha256-4e2a23b72ce3f86a95448a778ce3763f612d5a19f3889293cd1a64b0c61581af"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["navigation", "app-shell", "top-bar", "banner"],
      "meta": {
        "name": "Header",
        "description": "App top bar with brand, primary navigation links, and an actions slot",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "header",
            "role": "banner",
            "data": {
              "data-sticky": ["true"]
            },
            "children": ["brand", "nav", "spacer", "actions"],
            "emit": "manual"
          },
          "parts": {
            "brand": {
              "element": "div",
              "children": ["$slot"],
              "when": "brand"
            },
            "nav": {
              "element": "nav",
              "aria": ["aria-label"],
              "children": ["list"],
              "when": "links"
            },
            "list": {
              "element": "ul",
              "children": ["link"]
            },
            "link": {
              "element": "a",
              "data": {
                "data-state": ["active"]
              },
              "aria": ["aria-current"],
              "children": ["$text"]
            },
            "spacer": {
              "element": "div"
            },
            "actions": {
              "element": "div",
              "children": ["$slot"],
              "when": "actions"
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "labels",
            "type": "HeaderLabels",
            "required": false,
            "description": "Overrides for the component’s user-visible strings (i18n)."
          },
          {
            "name": "brand",
            "type": "React.ReactNode",
            "required": false,
            "description": "Product name or logo area, typically wraps a link"
          },
          {
            "name": "links",
            "type": "{ label: string; href: string; active?: boolean }[]",
            "required": false,
            "description": "Primary navigation links; active link gets aria-current=\"page\""
          },
          {
            "name": "actions",
            "type": "React.ReactNode",
            "required": false,
            "description": "Right-aligned slot for buttons or an avatar"
          },
          {
            "name": "sticky",
            "description": "When true, the header sticks to the top on scroll.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-header-bg",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-bg-subtle",
          "--cascivo-focus-ring",
          "--cascivo-z-raised"
        ],
        "accessibility": {
          "role": "banner",
          "wcag": "2.2-AA",
          "keyboard": ["Tab"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Header brand=\"cascivo\" links={[{ label: 'Docs', href: '/docs' }]} />"
          },
          {
            "title": "With actions",
            "code": "<Header brand=\"cascivo\" actions={<Button size=\"sm\">Sign in</Button>} />"
          },
          {
            "title": "Sticky",
            "code": "<Header sticky brand=\"cascivo\" links={links} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["navigation", "app-shell", "top-bar", "banner"],
        "intent": {
          "whenToUse": [
            "Providing a simple marketing or app top bar with brand, links, and actions",
            "Anchoring primary navigation across pages of a site",
            "Keeping the bar visible while scrolling (sticky)"
          ],
          "whenNotToUse": [
            "Dense console apps with dropdown nav, global icon actions, and a hamburger — use ShellHeader",
            "Section headings within page content — use Heading"
          ],
          "antiPatterns": [
            {
              "bad": "Building complex multi-menu console chrome on top of Header",
              "good": "<ShellHeader> for console-grade navigation",
              "why": "Header is intentionally simple; console patterns belong to ShellHeader which provides them natively"
            }
          ],
          "related": [
            {
              "name": "ShellHeader",
              "relationship": "alternative",
              "reason": "ShellHeader is the console-grade header with dropdowns and icon actions"
            }
          ],
          "a11yRationale": "role=\"banner\" marks the page header landmark; the active link is marked aria-current=\"page\", and links/actions are real focusable controls so keyboard users can navigate the bar",
          "flexibility": [
            {
              "area": "links and actions",
              "level": "flexible",
              "note": "Brand, links, and actions slots are optional and composable"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, border, and z-index must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "header-panel",
      "type": "component",
      "description": "Non-modal panel anchored below the shell header at the inline-end edge — hosts notifications, app switcher, user settings",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header-panel/header-panel.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header-panel/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header-panel/header-panel.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/header-panel/header-panel.meta.ts"
      ],
      "fileHashes": {
        "header-panel.tsx": "sha256-13df66711076353f267cd06e38cbc001862bb0dbffe63a98ffd46fbfedd77bea",
        "index.ts": "sha256-3f1a80fd0b1d20520c3db44229ab73ae023c447c9fa92325a9e78b4b40d5db25",
        "header-panel.module.css": "sha256-a1b424f1c33c6b5ba16e54398d94d7222757b5c6a61e06d70454d5cce540d923",
        "header-panel.meta.ts": "sha256-179c1c6753704f510c8d4430c6a343f9624719dfb9cc4b959b6590173bf1416d"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["navigation", "panel", "shell", "console", "overlay", "notifications"],
      "meta": {
        "name": "HeaderPanel",
        "description": "Non-modal panel anchored below the shell header at the inline-end edge — hosts notifications, app switcher, user settings",
        "category": "navigation",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "panel",
            "role": "region",
            "data": {
              "data-state": ["open", "closed"]
            },
            "aria": ["aria-label"],
            "children": ["header", "body"]
          },
          "parts": {
            "header": {
              "element": "div",
              "children": ["title", "close"]
            },
            "title": {
              "element": "span",
              "children": ["$text"]
            },
            "close": {
              "element": "button",
              "aria": ["aria-label"]
            },
            "body": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "type": "boolean",
            "required": true,
            "description": "Controlled open state"
          },
          {
            "name": "onClose",
            "type": "() => void",
            "required": true,
            "description": "Called on close button click or light-dismiss"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "string",
            "required": true,
            "description": "Accessible label for the region (shown as header title)"
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "labels",
            "type": "HeaderPanelLabels",
            "required": false,
            "description": "i18n overrides"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-shell-header-block-size",
          "--cascivo-shell-panel-inline-size",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-shadow-md",
          "--cascivo-motion-enter"
        ],
        "accessibility": {
          "role": "region",
          "wcag": "2.2-AA",
          "keyboard": ["Escape", "Tab"]
        },
        "examples": [
          {
            "title": "Notification panel",
            "code": "<HeaderPanel open={open} onClose={() => setOpen(false)} label=\"Notifications\">\n  <p>3 unread messages</p>\n</HeaderPanel>",
            "description": "Pair with a ShellHeader action: action active=open, onAction toggles open"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["navigation", "panel", "shell", "console", "overlay", "notifications"],
        "intent": {
          "whenToUse": [
            "Hosting a non-modal panel anchored under the shell header (notifications, switcher, settings)",
            "Showing supplementary content triggered by a ShellHeader icon action",
            "Light-dismiss content that should not block the rest of the app"
          ],
          "whenNotToUse": [
            "Content that must block interaction until resolved — use Modal",
            "A small contextual menu attached to a trigger — use Dropdown or Popover"
          ],
          "antiPatterns": [
            {
              "bad": "Using HeaderPanel for a blocking confirmation",
              "good": "<Modal> or <AlertDialog> for decisions that must block",
              "why": "HeaderPanel is non-modal and light-dismissable; blocking flows need modal semantics"
            }
          ],
          "related": [
            {
              "name": "ShellHeader",
              "relationship": "pairs-with",
              "reason": "Opened by a ShellHeader action whose active state mirrors the panel open state"
            },
            {
              "name": "Switcher",
              "relationship": "contains",
              "reason": "A Switcher commonly lives inside a HeaderPanel"
            }
          ],
          "a11yRationale": "role=\"region\" with the label prop names the panel as a landmark; Escape closes it and focus is managed so keyboard users can dismiss it without a mouse",
          "flexibility": [
            {
              "area": "content",
              "level": "flexible",
              "note": "Children are arbitrary panel content"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, shadow, and sizing must resolve to --cascivo-* shell tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "heading",
      "type": "component",
      "description": "Section heading with semantic level decoupled from visual size",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/heading/heading.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/heading/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/heading/heading.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/heading/heading.meta.ts"
      ],
      "fileHashes": {
        "heading.tsx": "sha256-605008ea4ccca86e6b2268227a1c5c48279536544685e79ac49f675867940d5e",
        "index.ts": "sha256-8b10c70f2daf8fa5199445e0d9fbf4e080d224937f68bde022963deb2c2a4361",
        "heading.module.css": "sha256-59d9e1ed9471ef9fb413e534cc55569a150f5c07c3fdfc04b51a425a634a6a67",
        "heading.meta.ts": "sha256-25af41ef45061fb572992d1a1290448f619dcebb2f5bb7ba456c52a1ea1552ff"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["typography", "heading", "title"],
      "meta": {
        "name": "Heading",
        "description": "Section heading with semantic level decoupled from visual size",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["h1", "h2", "h3", "h4", "h5", "h6"],
            "data": {
              "data-size": ["sm", "md", "lg", "xl", "2xl"]
            },
            "children": ["$slot"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": ["sm", "md", "lg", "xl", "2xl"],
        "props": [
          {
            "name": "level",
            "description": "Heading level (1–6) mapping to h1–h6.",
            "type": "1 | 2 | 3 | 4 | 5 | 6",
            "required": false,
            "default": "2"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg' | 'xl' | '2xl'",
            "required": false,
            "default": "derived from level (1→2xl, 2→xl, 3→lg, 4→md, 5→sm, 6→sm)"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Heading text"
          }
        ],
        "tokens": [
          "--cascivo-font-display",
          "--cascivo-font-semibold",
          "--cascivo-leading-tight",
          "--cascivo-tracking-tight",
          "--cascivo-color-text",
          "--cascivo-text-base",
          "--cascivo-text-lg",
          "--cascivo-text-xl",
          "--cascivo-text-2xl",
          "--cascivo-text-3xl"
        ],
        "accessibility": {
          "role": "heading",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Heading>Section title</Heading>"
          },
          {
            "title": "Page title",
            "code": "<Heading level={1}>Page title</Heading>"
          },
          {
            "title": "Decoupled size",
            "code": "<Heading level={2} size=\"2xl\">Visually large, semantically h2</Heading>",
            "description": "Keep the document outline correct while controlling the visual scale"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["typography", "heading", "title"],
        "intent": {
          "whenToUse": [
            "Titling a page or section as part of the document outline",
            "Keeping the semantic heading level correct while choosing the visual size independently"
          ],
          "whenNotToUse": [
            "Emphasizing inline or body text — use Text with a weight",
            "Long-form rendered content — let Prose style its own headings"
          ],
          "antiPatterns": [
            {
              "bad": "<Heading level={4} size=\"2xl\"> chosen only to look big, skipping h2/h3",
              "good": "Keep levels sequential; use size to control scale within the correct level",
              "why": "Skipping heading levels breaks the document outline screen-reader users rely on to navigate"
            }
          ],
          "related": [
            {
              "name": "Text",
              "relationship": "alternative",
              "reason": "Text is for body copy; Heading is for outline structure"
            },
            {
              "name": "Prose",
              "relationship": "alternative",
              "reason": "Prose styles headings inside authored long-form content"
            }
          ],
          "a11yRationale": "Renders a real <h1>–<h6> from the level prop so the heading appears in the accessibility tree at the correct level; visual size is decoupled so styling never forces an incorrect level",
          "content": {
            "contentPrimitive": true,
            "tone": "Concise, descriptive titles in sentence case",
            "notes": "Each page should have one h1"
          },
          "flexibility": [
            {
              "area": "size",
              "level": "flexible",
              "note": "size may override the level-derived default for visual scale"
            },
            {
              "area": "level sequence",
              "level": "strict",
              "note": "Levels must not skip — maintain a valid heading hierarchy"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "hover-card",
      "type": "component",
      "description": "Hover-triggered popover with configurable open/close delay",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/hover-card/hover-card.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/hover-card/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/hover-card/hover-card.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/hover-card/hover-card.meta.ts"
      ],
      "fileHashes": {
        "hover-card.tsx": "sha256-746aef33ee69da6c3d3db23236138fa20b7e1f7ab3f1003676df3ffc7b3af2af",
        "index.ts": "sha256-e6f4f44c50f2ad4cd14a6d157e47b8d0263624e6e965d71174c135f81815fbb5",
        "hover-card.module.css": "sha256-9c800d627a4d03eb0f38667a2dd9fd8396b5c6482389ddaf80ea844c0439eb61",
        "hover-card.meta.ts": "sha256-8d1fcb31fb69a44f141f121522c63b135a5079dc034d2a3dcf0eb4bd1f6d6963"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["overlay", "hover", "preview", "floating"],
      "meta": {
        "name": "HoverCard",
        "description": "Hover-triggered popover with configurable open/close delay",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "trigger",
            "children": ["$slot", "content"]
          },
          "parts": {
            "content": {
              "element": "div",
              "role": "complementary",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "A HoverCardTrigger and HoverCardContent pair.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "openDelay",
            "description": "Delay (ms) before the card opens on hover/focus.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "closeDelay",
            "description": "Delay (ms) before the card closes after hover/focus leaves.",
            "type": "number",
            "required": false,
            "default": "100"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-md",
          "--cascivo-shadow-md",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "complementary",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Escape"]
        },
        "examples": [
          {
            "title": "Profile preview",
            "code": "<HoverCard>\n  <HoverCardTrigger><a href=\"/users/ada\">@ada</a></HoverCardTrigger>\n  <HoverCardContent>\n    <Avatar name=\"Ada Lovelace\" />\n    <p>Wrote the first program.</p>\n  </HoverCardContent>\n</HoverCard>"
          },
          {
            "title": "Custom delays",
            "code": "<HoverCard openDelay={500} closeDelay={200}>\n  <HoverCardTrigger>Definition</HoverCardTrigger>\n  <HoverCardContent>A longer explanation shown on hover or focus.</HoverCardContent>\n</HoverCard>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["popover"],
        "tags": ["overlay", "hover", "preview", "floating"],
        "intent": {
          "whenToUse": [
            "Showing a rich preview (avatar, summary, links) when a user hovers or focuses a trigger",
            "Supplementary, non-essential context the user can ignore without losing functionality",
            "Cases needing an open/close delay so brief mouse passes do not flicker the card"
          ],
          "whenNotToUse": [
            "Short plain-text hints — use Tooltip",
            "Content the user must interact with or that should trap focus — use Popover or Modal",
            "Touch-primary flows where there is no hover — prefer a tap-triggered Popover"
          ],
          "antiPatterns": [
            {
              "bad": "Putting required actions (buttons users must click) inside HoverCardContent",
              "good": "Use a Popover triggered by click so the surface is reliably reachable",
              "why": "Hover surfaces are transient and unreachable by touch and many keyboard paths, so essential controls get lost"
            }
          ],
          "related": [
            {
              "name": "Tooltip",
              "relationship": "alternative",
              "reason": "Use Tooltip for brief text labels rather than rich preview content"
            },
            {
              "name": "Popover",
              "relationship": "alternative",
              "reason": "Use Popover for click-triggered, interactive, focus-managed content"
            }
          ],
          "a11yRationale": "The trigger opens on both mouseenter and focus (and closes on mouseleave/blur) so keyboard users get the same preview, and the content is marked role=\"complementary\" to signal it is supplementary rather than a required dialog; the open/close delays prevent accidental flicker.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, border, radius, shadow, and motion must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "open/close delay",
              "level": "flexible",
              "note": "openDelay and closeDelay are tunable per instance (defaults 300/100ms)"
            },
            {
              "area": "content",
              "level": "flexible",
              "note": "HoverCardContent accepts arbitrary children"
            }
          ]
        }
      },
      "registryDependencies": ["popover"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "icon-button",
      "type": "component",
      "description": "Square, icon-only button with a required accessible label",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/icon-button/icon-button.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/icon-button/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/icon-button/icon-button.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/icon-button/icon-button.meta.ts"
      ],
      "fileHashes": {
        "icon-button.tsx": "sha256-eed28666863329e5cb4fab6f20280c5c9839ecc0a12a615ee8dec7418f453068",
        "index.ts": "sha256-322b88c8eab2b291254a58ff36de08bc879756521a7585818b679bd93c0e948f",
        "icon-button.module.css": "sha256-6318b21f5f7783f201cff842754b07c4c4e4fa16a6287e509bc220da4bdf47cb",
        "icon-button.meta.ts": "sha256-ed80ec9ee41bf9baed344a33abc0eff2b9c2a3845d5665f3fed10fb35a0d8c5e"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["action", "icon", "compact", "toolbar"],
      "meta": {
        "name": "IconButton",
        "description": "Square, icon-only button with a required accessible label",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "iconButton",
            "element": ["button", "a"],
            "data": {
              "data-variant": ["ghost", "outline", "filled"],
              "data-size": ["sm", "md", "lg"]
            },
            "aria": ["aria-label"],
            "children": ["$slot"],
            "emit": "manual"
          }
        },
        "states": ["idle"],
        "variants": ["ghost", "outline", "filled"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Accessible name for the icon-only button. Not rendered — screen readers only; `ariaLabel` is the same thing under the catalog name.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Alias for `label` (the catalog convention for an invisible accessible name). Both work; pass exactly one."
          },
          {
            "name": "icon",
            "description": "Icon element rendered in the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "variant",
            "description": "`ghost` is transparent until hover, `outline` adds a border, `filled` gives the button a solid surface.",
            "type": "'ghost' | 'outline' | 'filled'",
            "required": false,
            "default": "ghost"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "asChild",
            "description": "When true, renders the child element as the root via Slot, merging props (polymorphic rendering).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onClick",
            "description": "Called when the element is clicked.",
            "type": "React.MouseEventHandler<HTMLButtonElement>",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-control-height-sm",
          "--cascivo-control-height-md",
          "--cascivo-control-height-lg",
          "--cascivo-button-radius",
          "--cascivo-radius-control",
          "--cascivo-color-primary",
          "--cascivo-color-primary-fg",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"],
          "apgPattern": "button",
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Ghost",
            "code": "<IconButton label=\"Settings\"><GearIcon /></IconButton>"
          },
          {
            "title": "Filled",
            "code": "<IconButton label=\"Add\" variant=\"filled\" icon={<PlusIcon />} />"
          },
          {
            "title": "As link",
            "code": "<IconButton label=\"Home\" asChild><a href=\"/\"><HomeIcon /></a></IconButton>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["action", "icon", "compact", "toolbar"],
        "intent": {
          "whenToUse": [
            "A compact, recognizable action where an icon alone communicates intent (close, edit, more)",
            "Dense toolbars or table rows where a text label would not fit"
          ],
          "whenNotToUse": [
            "The action is not universally recognizable by its icon — use a Button with a text label",
            "Navigating between pages — use an anchor (optionally via asChild)"
          ],
          "antiPatterns": [
            {
              "bad": "<IconButton label=\"\"><TrashIcon /></IconButton>",
              "good": "<IconButton label=\"Delete item\"><TrashIcon /></IconButton>",
              "why": "An icon-only control has no visible text, so the label prop is the only accessible name screen readers can announce"
            }
          ],
          "related": [
            {
              "name": "Button",
              "relationship": "alternative",
              "reason": "Use a Button when the action needs a visible text label"
            },
            {
              "name": "ButtonGroup",
              "relationship": "contained-by",
              "reason": "Icon buttons are commonly joined into a toolbar via ButtonGroup"
            }
          ],
          "a11yRationale": "Renders a native <button> with a mandatory aria-label so the icon-only control always exposes an accessible name; focus, role, and Enter/Space activation come from the platform",
          "content": {
            "tone": "Imperative verb describing the action",
            "notes": "The label is announced to screen readers; be specific (e.g. \"Delete item\", not \"Delete\")"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Sizing must resolve to --cascivo-control-height-* so it stays square and aligned with other controls"
            },
            {
              "area": "icon choice",
              "level": "flexible",
              "note": "Any single icon node; consumer owns the icon set"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "image",
      "type": "component",
      "description": "Image with load state, blur-up placeholder, graceful fallback, and optional zoom",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/image/image.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/image/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/image/image.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/image/image.meta.ts"
      ],
      "fileHashes": {
        "image.tsx": "sha256-fa8e18c8f1939214c4f523d8110885f69e2e30c805aaf293ae85f1849cc593b7",
        "index.ts": "sha256-5524db0344c87c802cf92a7149e677bb4985767119ff7e118008f276039ac9ed",
        "image.module.css": "sha256-a70570d6e9476fc1e60930d461c915fa8adc0e82fc57fe343171de0af8da56fa",
        "image.meta.ts": "sha256-957af6b9918d10d47b9f8b97208c9ded7d8de5c7967057d551a3515cb0c1c265"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["image", "media", "display", "loading"],
      "meta": {
        "name": "Image",
        "description": "Image with load state, blur-up placeholder, graceful fallback, and optional zoom",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "wrapper",
            "data": {
              "data-state": ["loading", "loaded", "error"],
              "data-radius": ["none", "sm", "md", "lg", "full"],
              "data-zoom": "boolean",
              "data-blurred": "boolean"
            },
            "aria": ["aria-label"],
            "role": "img",
            "children": ["placeholder", "fallback", "image"],
            "emit": "manual"
          },
          "parts": {
            "placeholder": {
              "element": "span",
              "aria": ["aria-hidden"],
              "when": "state === 'loading'"
            },
            "fallback": {
              "element": "span",
              "aria": ["aria-hidden"],
              "when": "state === 'error' && !fallbackSrc"
            },
            "image": {
              "element": "img",
              "when": "state !== 'error' || fallbackSrc"
            }
          }
        },
        "states": ["loading", "loaded", "error"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "src",
            "description": "Image source URL.",
            "type": "string",
            "required": false
          },
          {
            "name": "alt",
            "default": "",
            "description": "Alternative text describing the image.",
            "type": "string",
            "required": false
          },
          {
            "name": "fallbackSrc",
            "type": "string",
            "required": false,
            "description": "Image shown if src fails to load"
          },
          {
            "name": "width",
            "description": "Intrinsic width in px, forwarded to the `<img>`. Set it together with `height` so the browser can reserve the box before the image loads (no layout shift).",
            "type": "string | number",
            "required": false
          },
          {
            "name": "height",
            "description": "Intrinsic height in px, forwarded to the `<img>`. Pair with `width` to reserve the box and avoid layout shift.",
            "type": "string | number",
            "required": false
          },
          {
            "name": "radius",
            "description": "Corner radius of the image ('none' | 'sm' | 'md' | 'lg' | 'full').",
            "type": "'none' | 'sm' | 'md' | 'lg' | 'full'",
            "required": false,
            "default": "md"
          },
          {
            "name": "zoom",
            "description": "When true, zooms the image on hover.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "removeWrapper",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Render a bare <img> with no wrapper, placeholder, or zoom"
          },
          {
            "name": "isBlurred",
            "description": "When true, renders a blurred backdrop behind the image.",
            "type": "boolean",
            "required": false,
            "default": "false"
          }
        ],
        "tokens": [
          "--cascivo-radius-none",
          "--cascivo-radius-sm",
          "--cascivo-radius-md",
          "--cascivo-radius-lg",
          "--cascivo-radius-full",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-space-12"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Image src=\"/photo.jpg\" alt=\"A photo\" width={320} height={240} />"
          },
          {
            "title": "With fallback",
            "code": "<Image src=\"/broken.jpg\" fallbackSrc=\"/placeholder.jpg\" alt=\"A photo\" />"
          },
          {
            "title": "Blurred placeholder",
            "code": "<Image src=\"/photo.jpg\" alt=\"A photo\" isBlurred />"
          },
          {
            "title": "Hover zoom",
            "code": "<Image src=\"/photo.jpg\" alt=\"A photo\" zoom />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["image", "media", "display", "loading"],
        "intent": {
          "whenToUse": [
            "Displaying a content image that should show a placeholder while loading and degrade gracefully on error",
            "Photos, thumbnails, or media that benefit from a blur-up placeholder or hover zoom",
            "Any image where a broken src should fall back rather than show a broken-image icon"
          ],
          "whenNotToUse": [
            "Identity thumbnails for a person or entity — use Avatar",
            "Purely decorative shapes or a fixed-ratio layout box with no load behavior — use AspectRatio"
          ],
          "antiPatterns": [
            {
              "bad": "<Image src=\"/photo.jpg\" /> with no alt",
              "good": "<Image src=\"/photo.jpg\" alt=\"Sunset over the bay\" />",
              "why": "Without alt the image is invisible to assistive tech; pass an empty alt only for decorative images"
            }
          ],
          "related": [
            {
              "name": "Avatar",
              "relationship": "alternative",
              "reason": "Use Avatar for identity thumbnails with an initials fallback"
            },
            {
              "name": "AspectRatio",
              "relationship": "alternative",
              "reason": "Use AspectRatio for a ratio box that does not own image load behavior"
            }
          ],
          "a11yRationale": "role=\"img\" with alt names the image; on error it shows a fallback image or neutral box so layout survives; the blur-up and zoom transitions are disabled under prefers-reduced-motion",
          "flexibility": [
            {
              "area": "radius",
              "level": "flexible",
              "note": "Pick the corner radius that matches the surrounding surface"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Radius and placeholder colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "indicator",
      "type": "component",
      "description": "Positions an overlay element (badge, dot, count) at a corner of its child",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/indicator/indicator.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/indicator/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/indicator/indicator.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/indicator/indicator.meta.ts"
      ],
      "fileHashes": {
        "indicator.tsx": "sha256-449602743c2521710aeb277f60a94448ae027679142c6cf673fa5d1ac883bebf",
        "index.ts": "sha256-5d8398504f61bd01953da105acc592a83fd8a682cd3cbfd1b13cd2f5350b6f7d",
        "indicator.module.css": "sha256-7e1f689d9f7baad0fb1b022aa6ae71ab80ba0d642ad99cd1ac5268eeab4d4d1c",
        "indicator.meta.ts": "sha256-3b5690df6ae9a34c4fa76babf7c8de7819b0b279b5e749234008521bf8f29fa2"
      },
      "dependencies": [],
      "tags": ["badge", "indicator", "overlay", "notification", "layout"],
      "meta": {
        "name": "Indicator",
        "description": "Positions an overlay element (badge, dot, count) at a corner of its child",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-placement": ["top-start", "top-end", "bottom-start", "bottom-end"]
            },
            "children": ["$slot", "overlay"],
            "emit": "manual"
          },
          "parts": {
            "overlay": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "overlay",
            "type": "React.ReactNode",
            "required": true,
            "description": "The element to display at the corner (badge, dot, count)"
          },
          {
            "name": "placement",
            "description": "Corner of the wrapped element the dot or count sits on: `top-end`, `top-start`, `bottom-start` or `bottom-end`.",
            "type": "'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'",
            "required": false,
            "default": "top-end"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Notification count",
            "code": "<Indicator overlay={<Badge>3</Badge>}><Button variant=\"ghost\"><Icon name=\"bell\" /></Button></Indicator>",
            "description": "Notification count badge on an icon button"
          },
          {
            "title": "Online status",
            "code": "<Indicator overlay={<span className=\"status-dot\" />} placement=\"bottom-end\"><Avatar src=\"/user.jpg\" /></Indicator>",
            "description": "Online status dot on an avatar"
          },
          {
            "title": "Bottom-start placement",
            "code": "<Indicator overlay={<Badge variant=\"destructive\">!</Badge>} placement=\"bottom-start\"><Card>Content</Card></Indicator>",
            "description": "Indicator positioned at the bottom-start corner"
          }
        ],
        "dependencies": [],
        "tags": ["badge", "indicator", "overlay", "notification", "layout"],
        "intent": {
          "whenToUse": ["Notification counts on icon buttons", "Status dots on avatars"],
          "whenNotToUse": [
            "Inline badges within text — use Badge directly",
            "Status messages below a field — use a form hint or Alert"
          ],
          "related": [
            {
              "name": "Badge",
              "relationship": "contained-by",
              "reason": "Badge is the most common overlay content placed inside Indicator"
            },
            {
              "name": "Avatar",
              "relationship": "pairs-with",
              "reason": "Indicator is frequently used to attach a status dot to an Avatar"
            }
          ],
          "antiPatterns": [],
          "a11yRationale": "The overlay is marked aria-hidden because it is a visual affordance — the underlying control (button, avatar) carries its own accessible label. Screen-reader users should receive the count or status through the control's accessible name or a live region, not from the overlay div.",
          "flexibility": [
            {
              "area": "placement",
              "level": "flexible",
              "note": "All four corners are supported; top-end is the most common convention for notification counts"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "infinite-scroll",
      "type": "component",
      "description": "Loads the next page when the end of a list scrolls into view",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/infinite-scroll/infinite-scroll.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/infinite-scroll/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/infinite-scroll/infinite-scroll.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/infinite-scroll/infinite-scroll.meta.ts"
      ],
      "fileHashes": {
        "infinite-scroll.tsx": "sha256-0c7d141a557847f6e95d3c76590f21268c5b59a0e004d9dd43feaba86f1d3632",
        "index.ts": "sha256-1f5f038b628864b06abe4d9c50502591a6bb89a858b286b6a69b64569306bca0",
        "infinite-scroll.module.css": "sha256-73994ed05ba8badd70c1c95a805d6ef9252895f385f56962f8b6b69dfc9cc67a",
        "infinite-scroll.meta.ts": "sha256-d44bfb081d94f81872196ce381f67e5731762ecf3ea7b7388c19deb9c8d57758"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["feedback", "infinite-scroll", "pagination", "list", "scroll", "mobile", "lazy"],
      "meta": {
        "name": "InfiniteScroll",
        "description": "Loads the next page when the end of a list scrolls into view",
        "category": "feedback",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["status", "button"]
          },
          "parts": {
            "status": {
              "element": "span",
              "role": "status",
              "when": "loading",
              "children": ["@spinner", "$text"]
            },
            "button": {
              "element": "button",
              "children": ["$text"]
            }
          }
        },
        "states": ["idle", "loading", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "onLoadMore",
            "type": "() => Promise<unknown> | unknown",
            "required": true,
            "description": "Called when the sentinel comes into view, or the button is activated; the spinner shows until it settles"
          },
          {
            "name": "disabled",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "When true, stops observing and renders nothing — there are no more pages."
          },
          {
            "name": "rootMargin",
            "type": "string",
            "required": false,
            "default": "'200px'",
            "description": "How far ahead of the end to start loading, as an IntersectionObserver root margin."
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ loadMore?: string; loading?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-text-muted",
          "--cascivo-color-border",
          "--cascivo-color-surface-2",
          "--cascivo-color-foreground",
          "--cascivo-radius-md",
          "--cascivo-ring-width",
          "--cascivo-ring-color",
          "--cascivo-text-ui",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<InfiniteScroll onLoadMore={loadNextPage} />",
            "description": "Place it as the last child of the scrolling region, after the list."
          },
          {
            "title": "Stopping at the last page",
            "code": "<InfiniteScroll onLoadMore={loadNextPage} disabled={!hasMore} />",
            "description": "Renders nothing and stops observing once there is nothing left to load."
          },
          {
            "title": "Loading earlier",
            "code": "<InfiniteScroll onLoadMore={loadNextPage} rootMargin=\"600px\" />",
            "description": "Starts the next page well before the user reaches the end."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["spinner"],
        "tags": ["feedback", "infinite-scroll", "pagination", "list", "scroll", "mobile", "lazy"],
        "intent": {
          "whenToUse": [
            "A long, page-fetched feed or list where the user should keep reading without a page break",
            "Search or media results that stream in as the user scrolls",
            "Mobile screens where numbered pagination would be awkward to hit"
          ],
          "whenNotToUse": [
            "Content the user needs to navigate back into by position — use Pagination so URLs stay addressable",
            "Lists with a footer below them, which infinite loading makes unreachable",
            "A fixed, fully-loaded dataset — render it, or virtualize it, instead of faking pages"
          ],
          "antiPatterns": [
            {
              "bad": "Leaving `disabled` false after the last page",
              "good": "Pass `disabled={!hasMore}` so the observer disconnects",
              "why": "A sentinel that stays in view keeps re-firing `onLoadMore` against an exhausted source"
            },
            {
              "bad": "Rendering it outside the element that scrolls",
              "good": "Place it as the last child of the scrolling region",
              "why": "The observer watches the sentinel against the nearest scroll root; outside it, intersection never changes"
            }
          ],
          "related": [
            {
              "name": "Pagination",
              "relationship": "alternative",
              "reason": "Addressable, position-stable paging when back-navigation matters"
            },
            {
              "name": "PullToRefresh",
              "relationship": "pairs-with",
              "reason": "Refreshes the head of the same list the InfiniteScroll extends"
            },
            {
              "name": "Spinner",
              "relationship": "contains",
              "reason": "Shows the Spinner while the load promise settles"
            }
          ],
          "a11yRationale": "The trigger is a real button, not a bare sentinel, so the next page is reachable by keyboard and by screen reader rather than only by scrolling — the standing accessibility complaint against scroll-only infinite lists. The IntersectionObserver activates the same code path the button does, so pointer and assistive-technology users converge on identical behaviour. While a page is in flight the button is replaced by a role=\"status\" region carrying the loading string from the i18n catalog, which announces politely. Re-entry is guarded on a loading flag, so a sentinel still in view after a short page cannot loop. Because the component requires client JavaScript, server-render the first page as real content rather than relying on it.",
          "flexibility": [
            {
              "area": "rootMargin",
              "level": "flexible",
              "note": "How far ahead of the end loading starts (default 200px)"
            },
            {
              "area": "onLoadMore",
              "level": "flexible",
              "note": "May return a promise; the spinner persists until it settles"
            },
            {
              "area": "trigger",
              "level": "strict",
              "note": "Always renders an activatable button — there is no sentinel-only mode"
            }
          ]
        }
      },
      "registryDependencies": ["spinner"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "inline-citation",
      "type": "component",
      "description": "A numbered citation marker inside AI-generated text that links to its source and previews it in a hover card",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-citation/inline-citation.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-citation/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-citation/inline-citation.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-citation/inline-citation.meta.ts"
      ],
      "fileHashes": {
        "inline-citation.tsx": "sha256-418cedb311bcec6d48a5e9efebee40e717234b4f3154a91564b4cf01d1e77ed3",
        "index.ts": "sha256-bed286e9ba1f10d13f469c9e0a9558211d822fcad4580a85c3448ca81952b46a",
        "inline-citation.module.css": "sha256-71a0eaad1eb06d386aa8cff15c18cc8a5cff6319baffa31cae151e840f2d44c0",
        "inline-citation.meta.ts": "sha256-fee3f6eb819962161badea13a20c95799d4e4a468f57c41d8b4785327924738d"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Citation", "CitationMarker", "Footnote"],
      "tags": ["ai", "citation", "sources", "footnote", "references", "provenance"],
      "meta": {
        "name": "InlineCitation",
        "description": "A numbered citation marker inside AI-generated text that links to its source and previews it in a hover card",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "citation",
            "element": "sup",
            "children": ["marker", "card"],
            "emit": "manual"
          },
          "parts": {
            "marker": {
              "element": ["a", "span"],
              "children": ["$text", "@visually-hidden"]
            },
            "card": {
              "element": "span",
              "children": ["title", "host", "description"]
            },
            "title": {
              "element": "span",
              "children": ["$text"]
            },
            "host": {
              "element": "span",
              "children": ["$text"],
              "when": "source.url"
            },
            "description": {
              "element": "span",
              "children": ["$text"],
              "when": "source.description"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "index",
            "description": "The visible citation number — the source’s position in the matching Sources list.",
            "type": "number",
            "required": true
          },
          {
            "name": "source",
            "description": "The cited source (`title`, `url`, optional `description`). Only absolute http(s) URLs become links.",
            "type": "AiSource",
            "required": true
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n). `source` may contain `{index}`; the accessible name is \"<source>: <title>\".",
            "type": "{ source?: string }",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "AiSource",
            "description": "One source an answer cites (shared with Sources).",
            "fields": [
              {
                "name": "title",
                "type": "string",
                "required": true,
                "description": "The source’s title."
              },
              {
                "name": "url",
                "type": "string",
                "required": true,
                "description": "Treated as untrusted: only absolute http(s) URLs are linked."
              },
              {
                "name": "description",
                "type": "ReactNode",
                "required": false,
                "description": "An excerpt shown in the hover card."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-ai-subtle",
          "--cascivo-color-ai-sheen",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "link",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter"],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "In a sentence",
            "code": "<p>\n  Refunds are available for 30 days.\n  <InlineCitation index={1} source={{ title: 'Refund policy', url: 'https://example.com/refunds' }} />\n</p>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["hover-card", "sources", "visually-hidden"],
        "tags": ["ai", "citation", "sources", "footnote", "references", "provenance"],
        "intent": {
          "whenToUse": [
            "Attributing a claim in an AI answer to the source it came from, right where the claim is made"
          ],
          "whenNotToUse": [
            "Listing every source of an answer — use Sources (and number the citations to match)",
            "General footnotes in authored content — use a plain link or Prose"
          ],
          "antiPatterns": [
            {
              "bad": "Numbering citations independently of the Sources list",
              "good": "Use the source’s position in Sources as `index`",
              "why": "A reader matches \"2\" in the text to row 2 of the list; mismatched numbers point at the wrong source"
            }
          ],
          "related": [
            {
              "name": "Sources",
              "relationship": "pairs-with",
              "reason": "The list the numbers point at"
            },
            {
              "name": "HoverCard",
              "relationship": "contains",
              "reason": "The preview opens in a HoverCard on hover and keyboard focus"
            }
          ],
          "a11yRationale": "A real link whose accessible name starts with the visible number and includes the source title (\"Source 1: Refund policy\"), so it is meaningful without the hover card, which also opens on keyboard focus. Refused URLs keep the number and name but are not links",
          "content": {
            "tone": "Place the marker right after the claim it supports"
          },
          "flexibility": [
            {
              "area": "preview content",
              "level": "flexible",
              "note": "description can be any node — an excerpt, a date, a favicon"
            },
            {
              "area": "URL handling",
              "level": "strict",
              "note": "Do not bypass sourceHref() — model output is untrusted"
            }
          ]
        }
      },
      "registryDependencies": ["hover-card", "sources", "visually-hidden"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "inline-loading",
      "type": "component",
      "description": "Compact inline status indicator that pairs a label with a loading, success, or error state",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-loading/inline-loading.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-loading/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-loading/inline-loading.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/inline-loading/inline-loading.meta.ts"
      ],
      "fileHashes": {
        "inline-loading.tsx": "sha256-50a99a14a4493b4bcc0efef386499209640930f021f176b5e489c79879f85b31",
        "index.ts": "sha256-ec114d7efeb6a879e25df2b2b9ab1ef5ebc1d42c65f30aac15bc9a97fbb57f1e",
        "inline-loading.module.css": "sha256-cd6c01b496ea7778e743d19e1ac04e5f55569dd96c1313655fdc5ed155dc8f94",
        "inline-loading.meta.ts": "sha256-f3c10fbc92999f5184a245a6cdb4ad83b5674e22929414fd16910358ce1acb40"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["LinearProgress", "LoadingIndicator"],
      "tags": ["loading", "status", "progress", "feedback", "spinner"],
      "meta": {
        "name": "InlineLoading",
        "description": "Compact inline status indicator that pairs a label with a loading, success, or error state",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "role": "status",
            "aria": ["aria-live"],
            "data": {
              "data-status": ["inactive", "active", "finished", "error"]
            },
            "children": ["indicator", "label"],
            "emit": "manual"
          },
          "parts": {
            "indicator": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["spinner", "icon"]
            },
            "spinner": {
              "element": "span",
              "when": "status === 'active'"
            },
            "icon": {
              "element": "svg",
              "when": "status === 'finished' || status === 'error'"
            },
            "label": {
              "element": "span",
              "children": ["$slot"],
              "when": "label"
            }
          }
        },
        "states": ["inactive", "active", "finished", "error"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "status",
            "description": "Status state.",
            "type": "'inactive' | 'active' | 'finished' | 'error'",
            "required": true
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ active?: string; finished?: string; error?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-success",
          "--cascivo-color-destructive",
          "--cascivo-motion-enter"
        ],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Active",
            "code": "<InlineLoading status=\"active\" />"
          },
          {
            "title": "Finished",
            "code": "<InlineLoading status=\"finished\" label=\"Saved\" />"
          },
          {
            "title": "Error",
            "code": "<InlineLoading status=\"error\" label=\"Save failed\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["spinner"],
        "tags": ["loading", "status", "progress", "feedback", "spinner"],
        "intent": {
          "whenToUse": [
            "Showing the progress of a single inline action — a Save button that becomes \"Saving… / Saved / Failed\"",
            "Communicating async status next to a control without occupying its own block or modal",
            "Reflecting a terminal success or error state that should be announced to assistive tech"
          ],
          "whenNotToUse": [
            "Page- or section-level loading where layout space is reserved — use Skeleton or Spinner",
            "Persistent, multi-line messages with recovery actions — use Alert or Notification",
            "Determinate progress with a known percentage — use a progress bar"
          ],
          "antiPatterns": [
            {
              "bad": "<Spinner /> with separate manually-managed success and error markup",
              "good": "<InlineLoading status={status} /> driving icon and color from one status prop",
              "why": "A single status keeps the icon, color, and announced label in sync and prevents mismatched states"
            }
          ],
          "related": [
            {
              "name": "Spinner",
              "relationship": "contains",
              "reason": "InlineLoading renders a Spinner for its active state and adds finished/error icons plus a label"
            },
            {
              "name": "Alert",
              "relationship": "alternative",
              "reason": "Use Alert for persistent messages that need a title, body, and actions rather than a terse status"
            }
          ],
          "a11yRationale": "role=\"status\" with aria-live=\"polite\" announces the label when the status changes; the icon is decorative (aria-hidden) so meaning is carried by the text and color is never the sole signal",
          "content": {
            "tone": "Terse and present-tense — \"Saving\", \"Saved\", \"Save failed\"",
            "notes": "Keep labels to a few words; the inactive status renders no label by default"
          },
          "flexibility": [
            {
              "area": "label",
              "level": "flexible",
              "note": "Defaults come from the i18n catalog per status; override with label or the per-status labels map"
            },
            {
              "area": "status semantics",
              "level": "strict",
              "note": "active must show a spinner, finished a success icon, error an error icon — do not repurpose"
            }
          ]
        }
      },
      "registryDependencies": ["spinner"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "input",
      "type": "component",
      "description": "Text input field with optional label, hint, and error state",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input/input.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input/input.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input/input.meta.ts"
      ],
      "fileHashes": {
        "input.tsx": "sha256-ffd0af802fc2fd35a94cff62657f5bcec130b6a4fecfe70a712412cda7312ea3",
        "index.ts": "sha256-0b253c54e1bd068a63c392ef39758a06cceba48aa5aa357034faaa6e926cd001",
        "input.module.css": "sha256-1452820e3da40a3252f214e16f9ecd11dd7626317748a2d643d879d046a1f526",
        "input.meta.ts": "sha256-db9ee7e8d6f8fdb0cb2e22199750ad74b7eb24253955a449c33745ff737aee66"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "text", "input", "ai"],
      "meta": {
        "name": "Input",
        "description": "Text input field with optional label, hint, and error state",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["idle", "focused", "error"],
              "data-size": ["sm", "md", "lg"],
              "data-ai": [""]
            },
            "children": ["label", "input", "error", "hint"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"],
              "when": "label"
            },
            "input": {
              "element": "input",
              "aria": ["aria-invalid", "aria-describedby", "aria-label"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "children": ["$text"],
              "when": "error"
            },
            "hint": {
              "element": "span",
              "children": ["$text"],
              "when": "!error && hint"
            }
          }
        },
        "states": ["idle", "focused", "error"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "agent": {
          "actions": [
            {
              "name": "setValue",
              "prop": "value",
              "args": "string"
            },
            {
              "name": "clear",
              "prop": "value"
            }
          ]
        },
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control (standalone use). Omit it when wrapping the Input in a Field — the Field owns the label, and setting both double-labels the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "hint",
            "description": "Supplementary hint text shown with the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "error",
            "description": "Error message shown when the value is invalid.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "onChange",
            "description": "Called with the change event; read the new value from `event.target.value`.",
            "type": "React.ChangeEventHandler<HTMLInputElement>",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          },
          {
            "name": "ai",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "AI presence: an AI-tinted border and a soft aura, marking a value AI produced or suggested. Visual only — put an AiBadge in the label so the provenance is also text, and clear `ai` once the person edits the value."
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-radius-input",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "textbox",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Shift+Tab"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "With label",
            "code": "<Input label=\"Email\" placeholder=\"you@example.com\" />"
          },
          {
            "title": "With error",
            "code": "<Input label=\"Email\" error=\"Invalid email address\" />"
          },
          {
            "title": "AI-suggested value",
            "code": "<Input label=\"Subject\" ai defaultValue=\"Weekly report\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "text", "input", "ai"],
        "intent": {
          "whenToUse": [
            "Collecting a single line of free-form text from the user",
            "Pairing a labelled field with optional hint and validation error messaging",
            "As a field control inside a Form, wired via form.field()"
          ],
          "whenNotToUse": [
            "Multi-line text — use Textarea",
            "Choosing from a fixed list of options — use Select, Combobox, or MultiSelect",
            "Editing one read-only value in place — use Editable"
          ],
          "antiPatterns": [
            {
              "bad": "<Input placeholder=\"Email\" /> with no label",
              "good": "<Input label=\"Email\" placeholder=\"you@example.com\" />",
              "why": "Placeholder text disappears on input and is not a substitute for a persistent, programmatically associated label"
            }
          ],
          "related": [
            {
              "name": "Form",
              "relationship": "contained-by",
              "reason": "Input is the primary field control wired into a Form store"
            },
            {
              "name": "InputGroup",
              "relationship": "pairs-with",
              "reason": "Wrap Input in InputGroup to add prefix/suffix addons"
            },
            {
              "name": "Textarea",
              "relationship": "alternative",
              "reason": "Use Textarea for multi-line input"
            }
          ],
          "a11yRationale": "The label is associated to the input via htmlFor/id, error text is linked through aria-describedby and announced with role=\"alert\", and aria-invalid is set when an error is present so assistive tech reports the field as erroneous; visual focus state is driven by CSS, not tracked imperatively.",
          "content": {
            "tone": "Concise noun label naming the value",
            "notes": "Sentence case label; hint and error are full sentences; error states what is wrong and how to fix it"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, border, accent, destructive, radius, and focus-ring must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "label / hint / error copy",
              "level": "flexible",
              "note": "Free, within content tone guidance"
            },
            {
              "area": "size",
              "level": "flexible",
              "note": "sm | md | lg, defaulting to md"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "input-group",
      "type": "component",
      "description": "Prefix/suffix addon wrapper for Input; InputGroupAddon renders inline icons/units inside the field border; InputGroupButtons collapses adjacent button borders",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input-group/input-group.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input-group/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input-group/input-group.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/input-group/input-group.meta.ts"
      ],
      "fileHashes": {
        "input-group.tsx": "sha256-552c412182c82f8846e7af90bf8f3a8cfbd96c7af150ef76e8ca74a2ad6d1252",
        "index.ts": "sha256-f508afcffa9a5d8fcb7ec7f26ee0fc7b6226188c31c2bc2dc5f66bb97db3df83",
        "input-group.module.css": "sha256-fb6c606ca6919903ae6f77582d19b62f90ec427fc6a5780dc1dcb466e60fd966",
        "input-group.meta.ts": "sha256-2fdb056ce881d9dc0afebcadf436d331409e55c72f08146a8f36b9bd2c874602"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "input", "addon", "group", "layout"],
      "meta": {
        "name": "InputGroup",
        "description": "Prefix/suffix addon wrapper for Input; InputGroupAddon renders inline icons/units inside the field border; InputGroupButtons collapses adjacent button borders",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "input-group",
            "element": "div",
            "data": {
              "data-has-prefix": [""],
              "data-has-suffix": [""]
            },
            "children": ["addon", "input-wrap", "inline-addon", "button-group"],
            "emit": "manual"
          },
          "parts": {
            "input-wrap": {
              "element": "span",
              "children": ["$slot"]
            },
            "addon": {
              "element": "span",
              "data": {
                "data-position": ["prefix", "suffix"]
              },
              "children": ["$slot"],
              "when": "prefix || suffix"
            },
            "inline-addon": {
              "element": "span",
              "data": {
                "data-align": ["inline-start", "inline-end"]
              },
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "button-group": {
              "element": "div",
              "role": "group",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "prefix",
            "description": "Content rendered before the input (leading adornment).",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "suffix",
            "description": "Content rendered after the input (trailing adornment).",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "ReactNode",
            "required": true
          }
        ],
        "tokens": [
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-text-subtle",
          "--cascivo-radius-input"
        ],
        "accessibility": {
          "role": "generic",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "With prefix",
            "code": "<InputGroup prefix=\"https://\"><Input placeholder=\"example.com\" /></InputGroup>"
          },
          {
            "title": "With leading icon addon",
            "code": "<InputGroup><InputGroupAddon><svg viewBox=\"0 0 16 16\" width=\"16\" height=\"16\"><circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\"/><path d=\"M10 10l3 3\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\"/></svg></InputGroupAddon><Input placeholder=\"Search…\" aria-label=\"Search\" /></InputGroup>"
          },
          {
            "title": "With trailing unit addon",
            "code": "<InputGroup><Input placeholder=\"0.00\" aria-label=\"Weight\" /><InputGroupAddon align=\"inline-end\">kg</InputGroupAddon></InputGroup>"
          },
          {
            "title": "InputGroupButtons",
            "code": "<InputGroupButtons><Button>Left</Button><Button>Right</Button></InputGroupButtons>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "input", "addon", "group", "layout"],
        "intent": {
          "whenToUse": [
            "Attaching a prefix/suffix addon (protocol, currency, unit) to an Input so it reads as one field",
            "Placing a leading or trailing inline icon/unit inside the field border via InputGroupAddon",
            "Grouping adjacent buttons with collapsed shared borders via InputGroupButtons"
          ],
          "whenNotToUse": [
            "A standalone field with no adornment — use Input directly",
            "Conveying meaning that the user must read via an addon — decorative addons are aria-hidden"
          ],
          "antiPatterns": [
            {
              "bad": "<InputGroupAddon>Required</InputGroupAddon> to convey field status",
              "good": "Use the Input error/hint props for meaningful text",
              "why": "InputGroupAddon is aria-hidden and decorative, so screen readers never announce it"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "contains",
              "reason": "InputGroup composes around an Input to add prefix/suffix addons"
            },
            {
              "name": "Button",
              "relationship": "contains",
              "reason": "InputGroupButtons arranges adjacent Buttons with merged borders"
            }
          ],
          "a11yRationale": "Inline addons are marked aria-hidden because they are purely decorative units/icons, so the wrapped Input keeps its own accessible name; InputGroupButtons uses role=\"group\" to convey that its buttons form a related set.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Addon background, border, text, and radius must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "addon alignment",
              "level": "flexible",
              "note": "InputGroupAddon align is inline-start (leading) or inline-end (trailing)"
            },
            {
              "area": "addon content",
              "level": "flexible",
              "note": "prefix/suffix and addon children accept arbitrary ReactNode"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "item",
      "type": "component",
      "description": "Generic content row primitive with media, content, and action regions",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/item/item.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/item/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/item/item.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/item/item.meta.ts"
      ],
      "fileHashes": {
        "item.tsx": "sha256-fd07d4befa48fe172782ee65b8cb23492a19ac62a525a3c537f18a23fa63e1a6",
        "index.ts": "sha256-84212d924cfe3c356480999817f4c784759b8dfa835ebef03fd639084f7cc276",
        "item.module.css": "sha256-74573cd2cf2265a0813d0e323ae4f6a54d4daf479fe06ec0ce6bbb4dfe1e1f6f",
        "item.meta.ts": "sha256-fcf8df4463dab52d085da6675a07c76a303294eb503781a3bc2f2bd7b813440c"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["row", "primitive", "list-item", "layout"],
      "meta": {
        "name": "Item",
        "description": "Generic content row primitive with media, content, and action regions",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["div", "a"],
            "data": {
              "data-variant": ["default", "muted"],
              "data-size": ["sm", "md"]
            },
            "children": ["$slot", "media", "content", "actions"],
            "emit": "manual"
          },
          "parts": {
            "media": {
              "element": "div",
              "children": ["$slot"]
            },
            "content": {
              "element": "div",
              "children": ["$slot", "title", "description"]
            },
            "title": {
              "element": "div",
              "children": ["$slot"]
            },
            "description": {
              "element": "p",
              "children": ["$slot"]
            },
            "actions": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": ["default", "muted"],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "asChild",
            "description": "When true, renders the child element as the root via Slot, merging props (polymorphic rendering).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "variant",
            "description": "`muted` gives the row a subtle background — for a selected or highlighted item; `default` leaves it transparent.",
            "type": "'default' | 'muted'",
            "required": false,
            "default": "default"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-item",
          "--cascivo-space-3"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Item with media, content, and actions",
            "code": "<Item>\n  <ItemMedia><Avatar /></ItemMedia>\n  <ItemContent>\n    <ItemTitle>Ada Lovelace</ItemTitle>\n    <ItemDescription>Mathematician</ItemDescription>\n  </ItemContent>\n  <ItemActions><Button size=\"sm\">Edit</Button></ItemActions>\n</Item>"
          },
          {
            "title": "As a link via asChild",
            "code": "<Item asChild>\n  <a href=\"/profile\">\n    <ItemContent><ItemTitle>Profile</ItemTitle></ItemContent>\n  </a>\n</Item>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["row", "primitive", "list-item", "layout"],
        "intent": {
          "whenToUse": [
            "Composing a single content row with leading media, a text block, and trailing actions",
            "Building list, menu, or card rows from a consistent layout primitive",
            "Slotting a row onto a real anchor or button via asChild for navigation or selection"
          ],
          "whenNotToUse": [
            "A full surface with elevation and padding regions — use Card",
            "Key-value metadata pairs — use DataList"
          ],
          "antiPatterns": [
            {
              "bad": "Wrapping an Item div in an anchor to make the whole row clickable",
              "good": "Use Item asChild with the anchor as the single child so semantics and focus are native",
              "why": "asChild merges row styling onto the real interactive element instead of nesting a non-semantic div"
            }
          ],
          "related": [
            {
              "name": "Card",
              "relationship": "alternative",
              "reason": "Card is a padded surface; Item is a lightweight horizontal row"
            },
            {
              "name": "ContainedListItem",
              "relationship": "alternative",
              "reason": "ContainedListItem is bound to a contained list; Item is a free-standing row"
            }
          ],
          "a11yRationale": "Item is presentational by default; the slotted element determines the role and focus behaviour, so wrap it asChild around a button or link when the row is interactive",
          "flexibility": [
            {
              "area": "variant and size",
              "level": "flexible",
              "note": "Tune density and emphasis to match the surrounding list"
            },
            {
              "area": "compound parts",
              "level": "flexible",
              "note": "Media, content, title, description, and actions are optional and composable"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "join",
      "type": "component",
      "description": "Groups adjacent children into a seamless joined element by removing interior borders and radii",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/join/join.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/join/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/join/join.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/join/join.meta.ts"
      ],
      "fileHashes": {
        "join.tsx": "sha256-ee5e05deead03fe07c135909dec14fede05ca14023f5e88c14b85d0f6c79b59b",
        "index.ts": "sha256-26c5aa34c90219944aca0c48a1d687edba484d84f9b98a6df0d01f87af443a62",
        "join.module.css": "sha256-fa3d06236cc6f4fd6e650fa73184c4ce5a820512a72ccae8eaeed4912d3a5e33",
        "join.meta.ts": "sha256-8ff6ae504e955e53d2b1f9dfc4f97953f11283e798010543ab30f37d07e0c9b9"
      },
      "dependencies": [],
      "tags": ["group", "join", "segmented", "layout"],
      "meta": {
        "name": "Join",
        "description": "Groups adjacent children into a seamless joined element by removing interior borders and radii",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-orientation": ["horizontal", "vertical"]
            },
            "children": ["$slot"],
            "emit": "auto"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "orientation",
            "description": "Axis the joined children flow along: `horizontal` for a row, `vertical` for a column. Inner corners are squared off either way.",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "horizontal"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Search group",
            "code": "<Join><Input placeholder=\"Search…\" /><Button>Go</Button></Join>",
            "description": "Input and button joined into a single search control"
          },
          {
            "title": "Segmented buttons",
            "code": "<Join><Button variant=\"secondary\">Day</Button><Button variant=\"secondary\">Week</Button><Button variant=\"secondary\">Month</Button></Join>",
            "description": "Segmented button row with no gaps between items"
          },
          {
            "title": "Vertical stack",
            "code": "<Join orientation=\"vertical\"><Button>Top</Button><Button>Middle</Button><Button>Bottom</Button></Join>",
            "description": "Vertically joined button group"
          }
        ],
        "dependencies": [],
        "tags": ["group", "join", "segmented", "layout"],
        "intent": {
          "whenToUse": [
            "Input + button search groups where the two controls should appear as one unit",
            "Segmented button rows where buttons share borders"
          ],
          "whenNotToUse": [
            "Independent adjacent buttons that should remain visually separate",
            "SegmentedControl — it has its own built-in grouping and selection semantics"
          ],
          "related": [
            {
              "name": "SegmentedControl",
              "relationship": "alternative",
              "reason": "SegmentedControl has built-in selection state; Join is purely a layout wrapper"
            },
            {
              "name": "InputGroup",
              "relationship": "alternative",
              "reason": "InputGroup handles input + addon joining; Join is the general-purpose grouping primitive"
            }
          ],
          "antiPatterns": [],
          "a11yRationale": "Join is a layout-only container (role=\"none\"). Accessibility semantics belong on the individual child controls — buttons carry their own role, inputs their labels.",
          "flexibility": [
            {
              "area": "orientation",
              "level": "flexible",
              "note": "Horizontal and vertical grouping are both supported via the orientation prop"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "kbd",
      "type": "component",
      "description": "Displays a keyboard key or shortcut",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/kbd/kbd.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/kbd/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/kbd/kbd.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/kbd/kbd.meta.ts"
      ],
      "fileHashes": {
        "kbd.tsx": "sha256-ec78b098e53fc3fd838bfae57be04d47ceecce7abaab2921cace2f7aa71d8c90",
        "index.ts": "sha256-03d4a6758d2b8134dded93b60640d709bfb69e9c183a0482993597fc27756e67",
        "kbd.module.css": "sha256-ab0c35cd53062ef3f521534cf8de9b3ecd55e4abb538b3200dfff073f7fe2205",
        "kbd.meta.ts": "sha256-5a4bda42d13886a95fae60c8b3918f445d80e2f652b8df82a2b5abc92584b15a"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["keyboard", "shortcut", "hotkey"],
      "meta": {
        "name": "Kbd",
        "description": "Displays a keyboard key or shortcut",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "kbd",
            "data": {
              "data-size": ["sm", "md"]
            },
            "children": ["$slot"],
            "emit": "auto"
          }
        },
        "states": [],
        "variants": [],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "The key label"
          }
        ],
        "tokens": [
          "--cascivo-color-text-subtle",
          "--cascivo-color-surface-raised",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-radius-sm"
        ],
        "accessibility": {
          "role": "kbd",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Single key",
            "code": "<Kbd>⌘</Kbd>"
          },
          {
            "title": "Shortcut",
            "code": "<span><Kbd>⌘</Kbd> + <Kbd>K</Kbd></span>",
            "description": "Compose multiple keys to show a shortcut"
          },
          {
            "title": "Small",
            "code": "<Kbd size=\"sm\">Esc</Kbd>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["keyboard", "shortcut", "hotkey"],
        "intent": {
          "whenToUse": [
            "Showing a keyboard key or shortcut the user should press",
            "Documenting hotkeys in menus, tooltips, or help text"
          ],
          "whenNotToUse": [
            "Inline code, commands, or identifiers — use Code",
            "A short label that is not a key press — use Badge or Text"
          ],
          "antiPatterns": [
            {
              "bad": "<Kbd>npm install</Kbd>",
              "good": "<Code>npm install</Code>",
              "why": "Kbd is for keys to press, not shell commands or code"
            }
          ],
          "related": [
            {
              "name": "Code",
              "relationship": "alternative",
              "reason": "Code marks literal code; Kbd marks keys to press"
            }
          ],
          "a11yRationale": "Renders a native <kbd> element so assistive tech identifies the content as keyboard input; compose multiple <kbd> for a chord rather than encoding the combination in one string",
          "flexibility": [
            {
              "area": "size",
              "level": "flexible",
              "note": "sm fits inline help; md matches body text"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface and border must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "label",
      "type": "component",
      "description": "Accessible caption for a form control",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/label/label.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/label/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/label/label.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/label/label.meta.ts"
      ],
      "fileHashes": {
        "label.tsx": "sha256-4a25167d1a96f39ea149e5b92201b85b4c3c46241f9fb324f4e2bd1b932aab8b",
        "index.ts": "sha256-133cc6239e4cf6ae30bcd0170a2794387eb5e7e8abf43cbb3dc983e84511930b",
        "label.module.css": "sha256-4ad66385f2ed2f7864fbaf25ade338f1296aedb83fd3881d4e0b5e31a877fc2a",
        "label.meta.ts": "sha256-f292142089e50a4c058008b36220e4a64dd2118409f52fef364cf643c0cc6bdd"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["form", "caption", "accessibility"],
      "meta": {
        "name": "Label",
        "description": "Accessible caption for a form control",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "label",
            "data": {
              "data-disabled": [""]
            },
            "children": ["$slot", "marker", "srOnly"],
            "emit": "manual"
          },
          "parts": {
            "marker": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"],
              "when": "required"
            },
            "srOnly": {
              "element": "span",
              "children": ["$text"],
              "when": "required"
            }
          }
        },
        "states": ["default", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "htmlFor",
            "description": "Id of the form control this label is associated with.",
            "type": "string",
            "required": false
          },
          {
            "name": "asChild",
            "description": "When true, renders the child element as the root via Slot, merging props (polymorphic rendering).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "required",
            "description": "When true, marks the field as required.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ required?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-space-1",
          "--cascivo-font-sans",
          "--cascivo-text-sm",
          "--cascivo-font-medium",
          "--cascivo-leading-snug",
          "--cascivo-leading-none",
          "--cascivo-color-text",
          "--cascivo-color-destructive"
        ],
        "accessibility": {
          "role": "label",
          "wcag": "2.2-AA",
          "keyboard": [],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Label htmlFor=\"email\">Email</Label>"
          },
          {
            "title": "Required",
            "code": "<Label htmlFor=\"email\" required>Email</Label>"
          },
          {
            "title": "asChild",
            "code": "<Label asChild htmlFor=\"email\"><span>Email</span></Label>",
            "description": "Render the label semantics onto a custom element via Slot."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["form", "caption", "accessibility"],
        "intent": {
          "whenToUse": [
            "Naming a single form control (input, select, checkbox) so clicking the text focuses it",
            "Marking a field as required with a visible and screen-reader-announced indicator"
          ],
          "whenNotToUse": [
            "Labeling a group of controls — use a <fieldset>/<legend> instead",
            "Static body copy that is not associated with a control — use a plain text element"
          ],
          "antiPatterns": [
            {
              "bad": "<Label>Email</Label><input id=\"email\" />",
              "good": "<Label htmlFor=\"email\">Email</Label><input id=\"email\" />",
              "why": "Without htmlFor the label is not programmatically associated, so click-to-focus and screen-reader naming break"
            },
            {
              "bad": "<Label required>Email <span>*</span></Label>",
              "good": "<Label required>Email</Label>",
              "why": "The required marker is rendered for you with an accessible text alternative; a hand-added asterisk is silent to screen readers"
            }
          ],
          "related": [
            {
              "name": "Field",
              "relationship": "contained-by",
              "reason": "Field composes Label with a control, description, and error and wires the ids automatically"
            },
            {
              "name": "Input",
              "relationship": "pairs-with",
              "reason": "A label names the input it points at via htmlFor"
            }
          ],
          "a11yRationale": "Renders a native <label> so the platform handles click-to-focus and accessible naming; the required marker pairs an aria-hidden asterisk with visually-hidden localized text so the requirement is both seen and announced",
          "content": {
            "contentPrimitive": true,
            "tone": "Short noun phrase naming the field",
            "notes": "Sentence case, no trailing colon; let the required marker convey requirement"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Colors and type must resolve to --cascivo-* semantic tokens"
            },
            {
              "area": "label copy",
              "level": "flexible",
              "note": "Free, within tone guidance"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "large-title-header",
      "type": "component",
      "description": "Scrolling region whose large title collapses into a compact sticky bar as it scrolls",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/large-title-header/large-title-header.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/large-title-header/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/large-title-header/large-title-header.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/large-title-header/large-title-header.meta.ts"
      ],
      "fileHashes": {
        "large-title-header.tsx": "sha256-014efd6680c9dae4f1efb1b1eb51c5bb5dc4107aa7449bd15ad261643389e3c3",
        "index.ts": "sha256-733bd0cc4cf5b29b8a93f0556e7185804d74e996f01d9ec6401fccf6c12c43d3",
        "large-title-header.module.css": "sha256-a51de8e5cbf51b1da6246dbd44ca0433ad885977bf9060c8a046ca96ca7d08ed",
        "large-title-header.meta.ts": "sha256-e93dc301fda92aaee8e165d3ea4ad5fd0b3b49c2bcc34eb01a0fa91eb8227aab"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["navigation", "header", "title", "mobile", "scroll", "sticky", "ios"],
      "meta": {
        "name": "LargeTitleHeader",
        "description": "Scrolling region whose large title collapses into a compact sticky bar as it scrolls",
        "category": "navigation",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "root",
            "element": "div",
            "children": ["bar", "largeTitle", "$slot"],
            "emit": "manual"
          },
          "parts": {
            "bar": {
              "element": "div",
              "children": ["slot", "compactTitle", "slot"]
            },
            "slot": {
              "element": "div",
              "children": ["$slot"],
              "modifiers": {
                "slotEnd": "actions"
              }
            },
            "compactTitle": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "largeTitle": {
              "element": ["h1", "h2", "h3"],
              "children": ["$text"]
            }
          }
        },
        "states": ["expanded", "collapsed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "title",
            "type": "string",
            "required": true,
            "description": "The page title, rendered as the large heading and mirrored in the compact bar"
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "leading",
            "type": "React.ReactNode",
            "required": false,
            "description": "Leading slot of the compact bar — typically a back control"
          },
          {
            "name": "actions",
            "type": "React.ReactNode",
            "required": false,
            "description": "Trailing slot of the compact bar — typically icon buttons"
          },
          {
            "name": "level",
            "type": "1 | 2 | 3",
            "required": false,
            "default": "1",
            "description": "Heading level for the title, mapping to h1–h3."
          },
          {
            "name": "collapseDistance",
            "type": "number",
            "required": false,
            "default": "48",
            "description": "Scroll distance (px) over which the large title collapses into the bar."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-foreground",
          "--cascivo-border-subtle",
          "--cascivo-text-ui",
          "--cascivo-text-heading-lg",
          "--cascivo-font-semibold",
          "--cascivo-font-bold",
          "--cascivo-leading-tight",
          "--cascivo-target-min-coarse",
          "--cascivo-z-raised"
        ],
        "accessibility": {
          "role": "heading",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<LargeTitleHeader title=\"Library\">\n  <List>\n    <ListItem>Recently Added</ListItem>\n    <ListItem>Artists</ListItem>\n    <ListItem>Albums</ListItem>\n  </List>\n</LargeTitleHeader>",
            "description": "The component owns the scroll container; give it a parent with a height."
          },
          {
            "title": "With a back control and actions",
            "code": "<LargeTitleHeader\n  title=\"Downloads\"\n  leading={<IconButton label=\"Back\" onClick={goBack}>←</IconButton>}\n  actions={<IconButton label=\"Sort\">⇅</IconButton>}\n>\n  <FileList files={files} />\n</LargeTitleHeader>",
            "description": "Both slots stay in the compact bar and never scroll away."
          },
          {
            "title": "Longer collapse",
            "code": "<LargeTitleHeader title=\"Recently Played\" collapseDistance={96}>\n  <TrackList tracks={tracks} />\n</LargeTitleHeader>",
            "description": "Stretches the reveal over more scroll distance."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["navigation", "header", "title", "mobile", "scroll", "sticky", "ios"],
        "intent": {
          "whenToUse": [
            "A scrolling screen that should keep its title reachable after the heading scrolls away",
            "Mobile and tablet layouts following the platform convention of a large title that collapses",
            "Any page where a persistent back control or actions must stay pinned while content scrolls"
          ],
          "whenNotToUse": [
            "A site-wide navigation bar with links and a brand — use Header",
            "An application chrome header spanning a sidebar layout — use ShellHeader",
            "A screen whose scroll container is owned by the app shell or router — this component owns its own"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering it inside a parent with no resolved height",
              "good": "Give the parent a height (a grid/flex track, a dvh value, or 100% of a sized ancestor)",
              "why": "The component is the scroll container at block-size 100%; with an auto-height parent it never scrolls, so the title never collapses"
            },
            {
              "bad": "Passing the page heading again as the first child of the content below",
              "good": "Let the component own the heading",
              "why": "The component already renders a real h1–h3; repeating it duplicates the heading in the accessibility tree"
            }
          ],
          "related": [
            {
              "name": "Header",
              "relationship": "alternative",
              "reason": "Site-wide banner with brand, links and actions rather than a page title"
            },
            {
              "name": "ShellHeader",
              "relationship": "alternative",
              "reason": "Application chrome for a shell layout rather than a scrolling page"
            },
            {
              "name": "Dock",
              "relationship": "pairs-with",
              "reason": "Bottom navigation for the same mobile app shell"
            }
          ],
          "a11yRationale": "The component owns the scroll container, so the sticky bar and the scroll timeline cannot be broken by surrounding markup. The title is a real h1–h3 in normal flow, so heading order and document outline are unaffected; the copy mirrored into the sticky bar is aria-hidden so screen readers announce the title exactly once. The collapse is a CSS scroll-driven animation with no client JavaScript, so the header is complete in server-rendered HTML and nothing depends on hydration. Where animation-timeline is unsupported the mirror stays hidden and the header degrades to a sticky bar above a heading — no content is lost. Under prefers-reduced-motion the reveal snaps with steps(1, jump-end) instead of interpolating. The bar clears the coarse-pointer target floor and pads for the top safe-area inset.",
          "flexibility": [
            {
              "area": "collapseDistance",
              "level": "flexible",
              "note": "Scroll distance over which the title collapses (default 48px)"
            },
            {
              "area": "level",
              "level": "flexible",
              "note": "Heading level is caller-controlled so the page outline stays correct"
            },
            {
              "area": "collapse mechanism",
              "level": "strict",
              "note": "Always a CSS scroll-driven animation — there is no JavaScript fallback path"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "link",
      "type": "component",
      "description": "Styled anchor for navigation, standalone or inline within prose",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/link/link.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/link/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/link/link.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/link/link.meta.ts"
      ],
      "fileHashes": {
        "link.tsx": "sha256-9deef687fc6b08e66d1ddf6229a3a37320d7d3a440a059bc7a13f58933930247",
        "index.ts": "sha256-b38bcec272a5dd95d54c6621068a03373bdbc5fbeb9a987638bcf011b8edc12f",
        "link.module.css": "sha256-e3e38b4be3a0b01c8808782768f50c9386f804984d5f315be06736e0c621c641",
        "link.meta.ts": "sha256-2578c52fb605dd1ecb9650f5ac2d56757a411714505ea7f40a54bc6457bd122b"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["link", "anchor", "navigation"],
      "meta": {
        "name": "Link",
        "description": "Styled anchor for navigation, standalone or inline within prose",
        "category": "navigation",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "a",
            "data": {
              "data-variant": ["standalone", "inline"],
              "data-size": ["sm", "md", "lg"],
              "data-external": ["true"]
            },
            "children": ["$slot"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": ["standalone", "inline"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "variant",
            "description": "`standalone` uses the system's own type and underlines on hover — for a link that stands on its own. `inline` inherits the surrounding prose font and stays underlined — for a link inside a paragraph.",
            "type": "'standalone' | 'inline'",
            "required": false,
            "default": "standalone"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "external",
            "description": "When true, treats the link as external (opens in a new tab with rel safety).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "href",
            "description": "The destination URL.",
            "type": "string",
            "required": false
          },
          {
            "name": "asChild",
            "description": "Render the single child element instead of cascivo's own `<a>`, so the link styling lands on your router's Link. ⚠ This — not `setLinkComponent` — is how you style an in-content link in a routed app; `setLinkComponent` only covers the config-driven navs. See https://cascivo.com/docs/using-with-a-router.md.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Link text"
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-accent-text-hover",
          "--cascivo-link-color",
          "--cascivo-radius-sm",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "link",
          "wcag": "2.2-AA",
          "keyboard": ["Enter"]
        },
        "examples": [
          {
            "title": "Standalone",
            "code": "<Link href=\"/docs\">View documentation</Link>"
          },
          {
            "title": "Inline",
            "code": "<p>Read the <Link variant=\"inline\" href=\"/guide\">guide</Link> first.</p>",
            "description": "Inline links inherit the surrounding font size and stay underlined."
          },
          {
            "title": "External",
            "code": "<Link external href=\"https://example.com\">Example</Link>",
            "description": "Opens in a new tab with rel=\"noreferrer\" and a visual indicator."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["link", "anchor", "navigation"],
        "intent": {
          "whenToUse": [
            "Navigating to another page, view, or resource via a real href",
            "Inline cross-references within prose (variant=\"inline\")",
            "Linking to an external destination with a clear new-tab indicator (external)"
          ],
          "whenNotToUse": [
            "Triggering an action or mutation with no destination — use Button",
            "Submitting a form — use a submit Button"
          ],
          "antiPatterns": [
            {
              "bad": "<Link onClick={doThing}> with no href",
              "good": "<Button onClick={doThing}>",
              "why": "Links are for navigation; actions belong to buttons so keyboard and assistive tech behave correctly"
            }
          ],
          "related": [
            {
              "name": "Button",
              "relationship": "alternative",
              "reason": "Button is for actions; Link is for navigation"
            }
          ],
          "a11yRationale": "Renders a native <a> so role, Enter activation, and focus come from the platform; external links add rel=\"noreferrer\" and a visual indicator so users know a new tab will open",
          "content": {
            "tone": "Descriptive link text that makes sense out of context",
            "notes": "Avoid \"click here\"; the text should name the destination"
          },
          "flexibility": [
            {
              "area": "variant",
              "level": "flexible",
              "note": "standalone vs inline depending on whether the link sits in prose"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Accent colors and focus ring must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "list",
      "type": "component",
      "description": "Styled unordered or ordered list with ListItem",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/list/list.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/list/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/list/list.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/list/list.meta.ts"
      ],
      "fileHashes": {
        "list.tsx": "sha256-719e49867ca9589144ccc6c68f54f2506f4b402dc40bdada914bad7c5281d4f8",
        "index.ts": "sha256-5208a9e9f2a1f5a7bd4c191a837048189909030343bc840145fc61341eb3c1e5",
        "list.module.css": "sha256-04cff38d1581297fbc1bf783c65c2f3525bd2ad12986a45fd173004173186fae",
        "list.meta.ts": "sha256-783d4a5540f0e3e952e0d79f62eef7e3604a264ca68058dfec151e3c8e5b55b1"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["typography", "list", "ul", "ol"],
      "meta": {
        "name": "List",
        "description": "Styled unordered or ordered list with ListItem",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["ul", "ol"],
            "data": {
              "data-marker": ["disc", "decimal", "none"]
            },
            "children": ["item"],
            "emit": "manual"
          },
          "parts": {
            "item": {
              "element": "li",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": ["disc", "decimal", "none"],
        "sizes": [],
        "props": [
          {
            "name": "as",
            "description": "`ul` for an unordered list, `ol` for a numbered one. Changes the element and its marker, not the styling.",
            "type": "'ul' | 'ol'",
            "required": false,
            "default": "ul"
          },
          {
            "name": "marker",
            "description": "List marker style ('disc' | 'decimal' | 'none').",
            "type": "'disc' | 'decimal' | 'none'",
            "required": false,
            "default": "derived from as (ul→disc, ol→decimal)"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "ListItem elements"
          }
        ],
        "tokens": [
          "--cascivo-font-sans",
          "--cascivo-leading-normal",
          "--cascivo-color-text",
          "--cascivo-text-base",
          "--cascivo-space-1",
          "--cascivo-space-6"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Unordered",
            "code": "<List><ListItem>Tokens</ListItem><ListItem>Themes</ListItem></List>"
          },
          {
            "title": "Ordered",
            "code": "<List as=\"ol\"><ListItem>Init</ListItem><ListItem>Add</ListItem></List>"
          },
          {
            "title": "Unmarked",
            "code": "<List marker=\"none\"><ListItem>Clean row</ListItem></List>",
            "description": "Keeps list semantics without visual markers"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["typography", "list", "ul", "ol"],
        "intent": {
          "whenToUse": [
            "Presenting a set of related items as a bulleted or numbered list",
            "Conveying sequence with an ordered list (as=\"ol\")",
            "Keeping list semantics while hiding visual markers (marker=\"none\")"
          ],
          "whenNotToUse": [
            "Tabular data with multiple columns — use DataTable",
            "Interactive navigation items — use SideNav or a menu"
          ],
          "antiPatterns": [
            {
              "bad": "A stack of <Text> rows used as a visual list",
              "good": "<List><ListItem>…</ListItem></List>",
              "why": "Real list markup lets screen readers announce item count and position"
            }
          ],
          "related": [
            {
              "name": "Text",
              "relationship": "contains",
              "reason": "ListItem content is typically body Text"
            }
          ],
          "a11yRationale": "Renders native <ul>/<ol> with <li> children so assistive tech announces the list and its length; marker=\"none\" hides bullets visually without removing list semantics",
          "flexibility": [
            {
              "area": "marker",
              "level": "flexible",
              "note": "disc/decimal/none chosen to match content and visual needs"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Spacing and text color must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "log-viewer",
      "type": "component",
      "description": "Virtualized monospace console for high-frequency log and stream output",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/log-viewer/log-viewer.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/log-viewer/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/log-viewer/log-viewer.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/log-viewer/log-viewer.meta.ts"
      ],
      "fileHashes": {
        "log-viewer.tsx": "sha256-113e1bc51c6b8f2970c039c77cc210dc199e855de4767fd9cd1ee2e18e9f4427",
        "index.ts": "sha256-08f1ea684b997cacab1d1500ec97465123a96d0d01fecd706861e556bf6852a7",
        "log-viewer.module.css": "sha256-880cc1528f2514005d53c4a5f84ca8f02dc29d4f56d8b81ad7be40664f1f075c",
        "log-viewer.meta.ts": "sha256-9f8383e6a830119dfa14b2231d5e2b65aab3ef17c0be98e23f0e9077ce3a666f"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["log", "stream", "virtual", "console", "terminal", "monospace"],
      "meta": {
        "name": "LogViewer",
        "description": "Virtualized monospace console for high-frequency log and stream output",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["toolbar", "scroll"]
          },
          "parts": {
            "toolbar": {
              "element": "div",
              "children": ["search", "count", "spacer", "toggle", "copy"]
            },
            "search": {
              "element": "input",
              "aria": ["aria-label"]
            },
            "count": {
              "element": "span",
              "aria": ["aria-live"],
              "when": "search query",
              "children": ["$text"]
            },
            "spacer": {
              "element": "span"
            },
            "toggle": {
              "element": "button",
              "aria": ["aria-pressed"],
              "children": ["$text"]
            },
            "copy": {
              "element": "button",
              "children": ["$text"]
            },
            "scroll": {
              "element": "div",
              "role": "log",
              "aria": ["aria-live", "aria-label"],
              "children": ["empty", "sizer"]
            },
            "empty": {
              "element": "div",
              "children": ["$text"]
            },
            "sizer": {
              "element": "div",
              "children": ["line"]
            },
            "line": {
              "element": "div",
              "data": {
                "data-level": ["info", "warn", "error", "debug"]
              },
              "children": ["timestamp", "ansi", "$text"]
            },
            "timestamp": {
              "element": "span",
              "children": ["$text"]
            },
            "ansi": {
              "element": "span",
              "data": {
                "data-ansi": "string"
              },
              "children": ["$text"]
            }
          }
        },
        "states": ["following", "paused", "empty"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "lines",
            "description": "The log lines to display (a signal or array).",
            "type": "ReadonlySignal<readonly LogLine[]> | readonly LogLine[]",
            "required": true
          },
          {
            "name": "rowHeight",
            "description": "Height of each row in pixels, used for virtualization.",
            "type": "number",
            "required": false,
            "default": "20"
          },
          {
            "name": "overscan",
            "description": "Number of extra rows rendered above and below the viewport.",
            "type": "number",
            "required": false,
            "default": "8"
          },
          {
            "name": "follow",
            "description": "Whether the view auto-scrolls to follow new lines (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onFollowChange",
            "description": "Called with the new follow state when it changes.",
            "type": "(follow: boolean) => void",
            "required": false
          },
          {
            "name": "ansi",
            "description": "When true, parses ANSI color escape codes into colored spans.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "search",
            "description": "Query used to filter and highlight matching lines.",
            "type": "string",
            "required": false
          },
          {
            "name": "maxHeight",
            "description": "Maximum height of the scroll viewport (CSS length).",
            "type": "string",
            "required": false,
            "default": "'24rem'"
          },
          {
            "name": "timestampWidth",
            "description": "Width of the `LogLine.timestamp` gutter (CSS length). Widen it for an ISO stamp, narrow it for a relative offset.",
            "type": "string",
            "required": false,
            "default": "'6.5rem'"
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "LogViewerLabels",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-font-mono",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-surface",
          "--cascivo-color-surface-raised",
          "--cascivo-color-border",
          "--cascivo-color-error",
          "--cascivo-color-warning",
          "--cascivo-color-success",
          "--cascivo-color-info",
          "--cascivo-color-accent",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "log",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "ArrowUp", "ArrowDown", "PageUp", "PageDown"]
        },
        "examples": [
          {
            "title": "Streaming build log",
            "code": "const logs = useStreamBuffer<LogLine>({ capacity: 1000 })\n// socket.onmessage = (e) => logs.append({ id: seq++, text: e.data })\n<LogViewer lines={logs.signal} />",
            "description": "Backed by createStreamBuffer; auto-follows the tail"
          },
          {
            "title": "Static log with levels",
            "code": "<LogViewer lines={[{ id: 1, text: \"Build started\", level: \"info\" }, { id: 2, text: \"Type error\", level: \"error\" }]} />"
          },
          {
            "title": "ANSI colored output",
            "code": "<LogViewer ansi lines={ansiLines} maxHeight=\"32rem\" />"
          },
          {
            "title": "Timestamped build log",
            "code": "<LogViewer lines={[{ id: 1, timestamp: \"08:59:12\", text: \"Build started\" }, { id: 2, timestamp: \"08:59:41\", text: \"Type error\", level: \"error\" }]} />",
            "description": "Pass the clock as `timestamp`, not prefixed into `text` — the gutter is dimmed, column-aligned, and excluded from search and copy"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["log", "stream", "virtual", "console", "terminal", "monospace"],
        "intent": {
          "whenToUse": [
            "Rendering continuous, high-volume log or stream output (build/deploy logs, server output)",
            "Showing thousands of lines without mounting a DOM node per line",
            "Auto-following live output while letting the user scroll back to inspect history"
          ],
          "whenNotToUse": [
            "A short, static block of code or output — use a <pre> or Code block",
            "Tabular data with columns — use DataTable",
            "A rich interactive terminal with cursor addressing — out of scope (line-oriented only)"
          ],
          "antiPatterns": [
            {
              "bad": "logsSignal.value = [...logsSignal.value.slice(1), line]",
              "good": "const logs = useStreamBuffer({ capacity: 1000 }); logs.append(line)",
              "why": "The slice pattern reallocates the whole array per line (O(n)) and renders per line; the stream buffer is O(1) and renders once per frame"
            }
          ],
          "related": [
            {
              "name": "createStreamBuffer",
              "relationship": "pairs-with",
              "reason": "Provides the bounded, O(1) signal LogViewer renders"
            },
            {
              "name": "DataTable",
              "relationship": "alternative",
              "reason": "DataTable virtualizes tabular rows; LogViewer virtualizes monospace lines"
            }
          ],
          "a11yRationale": "The scroll region is role=\"log\" with aria-live=\"polite\" so assistive tech announces new output without stealing focus; the container is keyboard-scrollable and a visually-hidden live status reports the line count; color is paired with level semantics, never the sole encoding",
          "flexibility": [
            {
              "area": "data source",
              "level": "flexible",
              "note": "Accepts a live signal or a plain array"
            },
            {
              "area": "rowHeight",
              "level": "strict",
              "note": "Virtualization assumes a fixed row height; variable-height lines are not supported"
            },
            {
              "area": "coloring",
              "level": "flexible",
              "note": "Per-line level or ANSI SGR-16 escapes"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "menu",
      "type": "component",
      "description": "Dropdown menu with keyboard navigation, built on usePopover",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu/menu.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu/menu.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu/menu.meta.ts"
      ],
      "fileHashes": {
        "menu.tsx": "sha256-138ff773a680d61c85f50bc4de1d9f56b52916158b53e6f35ecf55613771c510",
        "index.ts": "sha256-c1760e704b695ff34a74d9bb0198b595da6d0bfb518e434739be16ea79854c4b",
        "menu.module.css": "sha256-fef5ddaa2cd7527be8b0e8d0f71abc95baa9f18ab1ad382543ff6067695405f4",
        "menu.meta.ts": "sha256-fa7405d350ee5ec3c063a45823d383abf5cb42da70add0f07b3dafa75060b171"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["overlay", "menu", "dropdown", "floating"],
      "meta": {
        "name": "Menu",
        "description": "Dropdown menu with keyboard navigation, built on usePopover",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "panel",
            "role": "menu",
            "data": {
              "data-state": ["open", "closed"]
            },
            "children": ["trigger", "item", "separator"]
          },
          "parts": {
            "trigger": {
              "element": "button",
              "aria": ["aria-haspopup", "aria-expanded", "aria-label"],
              "children": ["$slot"]
            },
            "item": {
              "element": "div",
              "role": "menuitem",
              "aria": ["aria-disabled"],
              "children": ["$slot"]
            },
            "separator": {
              "element": "div",
              "role": "separator"
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "The MenuTrigger first, followed by MenuItem/MenuSeparator children.",
            "type": "React.ReactNode",
            "required": true
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-md",
          "--cascivo-shadow-md",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-color-bg-subtle"
        ],
        "accessibility": {
          "role": "menu",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowDown", "ArrowUp", "Enter", "Space", "Escape"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Menu>\n  <MenuTrigger>Options</MenuTrigger>\n  <MenuItem onSelect={rename}>Rename</MenuItem>\n  <MenuItem onSelect={duplicate}>Duplicate</MenuItem>\n</Menu>"
          },
          {
            "title": "With separator and disabled item",
            "code": "<Menu>\n  <MenuTrigger aria-label=\"More actions\">…</MenuTrigger>\n  <MenuItem onSelect={share}>Share</MenuItem>\n  <MenuSeparator />\n  <MenuItem onSelect={remove} disabled>Delete</MenuItem>\n</Menu>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["popover"],
        "tags": ["overlay", "menu", "dropdown", "floating"],
        "intent": {
          "whenToUse": [
            "Presenting a list of actions or commands triggered from a button",
            "Action lists that need arrow-key navigation and Enter/Space activation",
            "Grouping related commands with separators behind a single trigger"
          ],
          "whenNotToUse": [
            "Selecting a persistent value from options — use Select or MultiSelect",
            "Right-click contextual actions on an element — use ContextMenu",
            "A single non-list action — use a Button"
          ],
          "antiPatterns": [
            {
              "bad": "Using Menu items to pick a form value and showing the choice as selected",
              "good": "Use Select for value selection; Menu items are one-shot actions",
              "why": "Menu items use role=\"menuitem\" and close on activation — they are not selectable options and do not model a chosen value"
            }
          ],
          "related": [
            {
              "name": "ContextMenu",
              "relationship": "alternative",
              "reason": "Use ContextMenu for right-click activation on a target element"
            },
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Use Select when the user is choosing a value rather than firing an action"
            },
            {
              "name": "Button",
              "relationship": "pairs-with",
              "reason": "A button (MenuTrigger) opens the menu"
            }
          ],
          "a11yRationale": "The trigger exposes aria-haspopup=\"menu\" and aria-expanded, the panel is role=\"menu\" with role=\"menuitem\" children, focus moves to the first enabled item on open, ArrowUp/ArrowDown rove focus between items, disabled items are aria-disabled and removed from the tab order, and separators use role=\"separator\".",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, border, radius, shadow, and motion must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "item content",
              "level": "flexible",
              "note": "MenuItem accepts arbitrary children; onSelect defines the action"
            },
            {
              "area": "composition",
              "level": "flexible",
              "note": "MenuItem and MenuSeparator can be mixed freely under the trigger"
            }
          ]
        }
      },
      "registryDependencies": ["popover"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "menu-button",
      "type": "component",
      "description": "A button that opens an anchored action menu of one-shot commands",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu-button/menu-button.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu-button/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu-button/menu-button.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menu-button/menu-button.meta.ts"
      ],
      "fileHashes": {
        "menu-button.tsx": "sha256-6c4e6a6be80cb4ebf2e151a0c94f4d7238b3ad411095c92429f0f2aed406824c",
        "index.ts": "sha256-0aff42d155a51e53064b24e1e26db2cd850d6a3976837a3bbe557b46d21cb420",
        "menu-button.module.css": "sha256-37dfec8bd0bc3ea0b3820cfd73a83a35727d7f58df902b0aec6b61e08af25ee1",
        "menu-button.meta.ts": "sha256-956dbbcf8c8ae916cd6faf189960dbbb29b04db4f99f66cebd5966e9122aba74"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["navigation", "menu", "actions", "dropdown", "floating"],
      "meta": {
        "name": "MenuButton",
        "description": "A button that opens an anchored action menu of one-shot commands",
        "category": "navigation",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["trigger", "menu"]
          },
          "parts": {
            "trigger": {
              "element": "button",
              "data": {
                "data-variant": ["primary", "secondary", "ghost"],
                "data-size": ["sm", "md", "lg"]
              },
              "aria": ["aria-haspopup", "aria-expanded", "aria-controls", "aria-label"],
              "children": ["$slot"]
            },
            "menu": {
              "element": "div",
              "role": "menu",
              "data": {
                "data-state": ["open"],
                "data-align": ["start", "end"]
              },
              "when": "open",
              "children": ["item"]
            },
            "item": {
              "element": "div",
              "role": "menuitem",
              "aria": ["aria-disabled"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": ["primary", "secondary", "ghost"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "ReactNode",
            "required": true,
            "description": "Visible content rendered inside the trigger button."
          },
          {
            "name": "items",
            "type": "MenuButtonItem[]",
            "required": true,
            "description": "Action items: { id, label, onSelect?, disabled? }"
          },
          {
            "name": "variant",
            "type": "'primary' | 'secondary' | 'ghost'",
            "required": false,
            "default": "'secondary'",
            "description": "Trigger visual variant"
          },
          {
            "name": "size",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "'md'",
            "description": "Trigger size"
          },
          {
            "name": "disabled",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Disables the trigger"
          },
          {
            "name": "align",
            "type": "'start' | 'end'",
            "required": false,
            "default": "'start'",
            "description": "Aligns the menu to the start or end edge of the trigger"
          },
          {
            "name": "labels",
            "type": "{ open?: string }",
            "required": false,
            "description": "Override the trigger accessible name"
          }
        ],
        "tokens": [
          "--cascivo-color-primary",
          "--cascivo-color-primary-fg",
          "--cascivo-color-primary-hover",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-text",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-control",
          "--cascivo-radius-overlay",
          "--cascivo-radius-item",
          "--cascivo-shadow-md",
          "--cascivo-focus-ring",
          "--cascivo-motion-enter",
          "--cascivo-z-dropdown"
        ],
        "accessibility": {
          "role": "menu",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowDown", "ArrowUp", "Enter", "Space", "Escape", "Tab"],
          "apgPattern": "menu-button",
          "forcedColors": true,
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Basic action menu",
            "description": "A secondary button that opens a list of actions",
            "code": "<MenuButton\n  label=\"Actions\"\n  items={[\n    { id: 'edit', label: 'Edit', onSelect: () => edit() },\n    { id: 'duplicate', label: 'Duplicate', onSelect: () => duplicate() },\n    { id: 'delete', label: 'Delete', onSelect: () => remove(), disabled: !canDelete },\n  ]}\n/>"
          },
          {
            "title": "End-aligned, primary",
            "description": "Aligns the menu to the trigger end edge",
            "code": "<MenuButton\n  label=\"Create\"\n  variant=\"primary\"\n  align=\"end\"\n  items={[\n    { id: 'doc', label: 'New document', onSelect: createDoc },\n    { id: 'folder', label: 'New folder', onSelect: createFolder },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["navigation", "menu", "actions", "dropdown", "floating"],
        "intent": {
          "whenToUse": [
            "Exposing a small set of one-shot actions behind a single labeled button",
            "Toolbar or header overflow actions where each item runs a command on activation",
            "Action lists that need ArrowUp/ArrowDown roving focus and Enter/Space activation"
          ],
          "whenNotToUse": [
            "Choosing and persisting a value from options — use Select",
            "Right-click contextual actions on a target element — use ContextMenu",
            "A single action with no list — use a plain Button",
            "Rich interactive content (forms, pickers) rather than a list of commands — use Popover"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering checkbox or radio state inside MenuButton items and treating selection as a chosen value",
              "good": "Use Select or MultiSelect for value selection; MenuButton items are one-shot actions that close the menu on activation",
              "why": "role=\"menuitem\" items do not model a selected value and dismiss the menu when activated, so they cannot represent persistent choices"
            },
            {
              "bad": "Leaving the trigger label empty with no visible text and no labels.open override",
              "good": "Provide visible label text, or pass labels.open / rely on the built-in i18n accessible name",
              "why": "A trigger with no accessible name is unusable for screen-reader and voice-control users"
            }
          ],
          "related": [
            {
              "name": "Menu",
              "relationship": "alternative",
              "reason": "Use Menu for fully composable trigger + item children; MenuButton is the prop-driven convenience form"
            },
            {
              "name": "ContextMenu",
              "relationship": "alternative",
              "reason": "Use ContextMenu when actions are triggered by right-click on a target rather than a button"
            },
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Use Select when the user is picking a value instead of firing an action"
            },
            {
              "name": "Button",
              "relationship": "contains",
              "reason": "The trigger is a styled button that opens the menu"
            }
          ],
          "a11yRationale": "The trigger is a real <button> exposing aria-haspopup=\"menu\", aria-expanded reflecting open state, and aria-controls pointing at the role=\"menu\" panel. ArrowDown/Enter/Space open the menu and move focus to the first enabled item, ArrowUp opens and focuses the last item, ArrowUp/ArrowDown rove focus between items with wrap-around, disabled items are aria-disabled and skipped by roving focus, Escape closes and restores focus to the trigger, and Tab closes without trapping focus. DismissableLayer provides outside-pointer and Escape dismissal, and high-contrast plus reduced-motion preferences are honored in CSS.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Trigger and menu styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "item content",
              "level": "flexible",
              "note": "Each item label accepts arbitrary ReactNode; onSelect defines the action"
            },
            {
              "area": "trigger appearance",
              "level": "flexible",
              "note": "variant and size choose among the standard button looks and dimensions"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "menubar",
      "type": "component",
      "description": "Horizontal application menu bar with keyboard-navigable dropdown menus",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menubar/menubar.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menubar/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menubar/menubar.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/menubar/menubar.meta.ts"
      ],
      "fileHashes": {
        "menubar.tsx": "sha256-cadbbee2d8efcf45499871df41a431ccec14a79cf1cb2eff1fa910ecbe9deaa6",
        "index.ts": "sha256-00b329f5802840883f66a29e567ea17400dbe66fe88b55371ee6b50ff9e40723",
        "menubar.module.css": "sha256-6118e39206465f67c045b4ccb1276728ccd05963aa043ca2d2cb48aed74bc2d4",
        "menubar.meta.ts": "sha256-6ff8601bc0bb158fc21b57095c43ca5373a555a1ab05c897efba0c4b8d557b97"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["navigation", "menubar", "menu", "application"],
      "meta": {
        "name": "Menubar",
        "description": "Horizontal application menu bar with keyboard-navigable dropdown menus",
        "category": "navigation",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "menubar",
            "role": "menubar",
            "aria": ["aria-label"],
            "children": ["trigger"]
          },
          "parts": {
            "trigger": {
              "element": "button",
              "role": "menuitem",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-haspopup", "aria-expanded", "aria-controls"],
              "children": ["$text", "panel"]
            },
            "panel": {
              "element": "div",
              "role": "menu",
              "aria": ["aria-label"],
              "children": ["item"]
            },
            "item": {
              "element": "div",
              "role": "menuitem",
              "aria": ["aria-disabled"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["closed", "open"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Invisible accessible name for the menubar landmark. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling. Exactly one of the two is required — a menubar with no accessible name is a bug, so the type enforces it."
          },
          {
            "name": "menus",
            "description": "The top-level menus to render.",
            "type": "MenubarMenu[]",
            "required": true
          },
          {
            "name": "aria-label",
            "description": "Accessible label used when no visible label is present.",
            "type": "string",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-color-border",
          "--cascivo-focus-ring",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "menubar",
          "wcag": "2.2-AA",
          "keyboard": [
            "ArrowLeft",
            "ArrowRight",
            "ArrowDown",
            "ArrowUp",
            "Home",
            "End",
            "Enter",
            "Escape"
          ],
          "apgPattern": "menubar",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Menubar aria-label=\"Main\" menus={[{ id: \"file\", label: \"File\", items: [{ id: \"new\", label: \"New\", onSelect: () => {} }] }]} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["navigation", "menubar", "menu", "application"],
        "intent": {
          "whenToUse": [
            "A persistent application-style command bar (File / Edit / View) where each top-level entry opens a menu of actions",
            "Desktop-like apps that expose grouped commands across a horizontal bar"
          ],
          "whenNotToUse": [
            "Site or section navigation between pages or destinations — use NavigationMenu",
            "A single trigger that opens one menu of actions — use a Menu/Dropdown",
            "Switching between peer content panels — use Tabs"
          ],
          "antiPatterns": [
            {
              "bad": "Using Menubar entries as page links",
              "good": "<NavigationMenu> for navigating between destinations",
              "why": "menubar implies commands/actions within the current view, not navigation to other pages"
            }
          ],
          "related": [
            {
              "name": "NavigationMenu",
              "relationship": "alternative",
              "reason": "NavigationMenu navigates between destinations; Menubar invokes commands"
            },
            {
              "name": "Menu",
              "relationship": "contains",
              "reason": "Each Menubar entry behaves like a single Menu anchored under its trigger"
            }
          ],
          "a11yRationale": "Implements the WAI-ARIA menubar pattern: a roving-tabindex row of menuitem triggers (Left/Right/Home/End) where ArrowDown opens the menu and focuses its first item, Up/Down move within the menu, and Escape closes and restores focus to the trigger",
          "flexibility": [
            {
              "area": "menu content",
              "level": "strict",
              "note": "Menus are described by data (menus prop) so roles and keyboard wiring stay correct"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, borders, and focus ring must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "message-actions",
      "type": "component",
      "description": "The action row under an AI reply — copy, good / bad feedback as toggle buttons, and regenerate",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/message-actions/message-actions.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/message-actions/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/message-actions/message-actions.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/message-actions/message-actions.meta.ts"
      ],
      "fileHashes": {
        "message-actions.tsx": "sha256-3c8290a4a62b4c3ee1abafedae84f68899546842b7655d23f0f9510eefc84fcf",
        "index.ts": "sha256-dd83439285f8ab6066e1bea148a6276b017da4e581af0d8071eb771f53b26039",
        "message-actions.module.css": "sha256-5bc6b8580031b7868f5da6782225b16859799f932366e83b3b4375ae34eaa723",
        "message-actions.meta.ts": "sha256-19a90d2f67416e5d7f80478e7c2b98676e714de59cae94e3ddb043cd030fac36"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["ResponseActions", "MessageToolbar", "FeedbackButtons"],
      "tags": ["ai", "chat", "feedback", "copy", "regenerate", "thumbs", "actions"],
      "meta": {
        "name": "MessageActions",
        "description": "The action row under an AI reply — copy, good / bad feedback as toggle buttons, and regenerate",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "actions",
            "role": "group",
            "aria": ["aria-label"],
            "children": ["rate"]
          },
          "parts": {
            "rate": {
              "element": "button",
              "data": {
                "data-active": "boolean"
              },
              "aria": ["aria-pressed", "aria-label"],
              "children": ["down"]
            },
            "down": {
              "element": "svg"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "copyValue",
            "description": "The text the Copy button copies. Omit to hide Copy.",
            "type": "string",
            "required": false
          },
          {
            "name": "feedback",
            "description": "Controlled rating: `good`, `bad` or `null`. Pressing the active rating again clears it.",
            "type": "'good' | 'bad' | null",
            "required": false
          },
          {
            "name": "defaultFeedback",
            "description": "Initial rating when uncontrolled.",
            "type": "'good' | 'bad' | null",
            "required": false,
            "default": "null"
          },
          {
            "name": "onFeedbackChange",
            "description": "Called with the new rating (or `null` when cleared). The rating buttons render when this or `feedback` is set; a rating also announces \"Thanks for your feedback\".",
            "type": "(feedback: 'good' | 'bad' | null) => void",
            "required": false
          },
          {
            "name": "onRegenerate",
            "description": "Called by the Regenerate button. Omit to hide it.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ group?: string; good?: string; bad?: string; regenerate?: string; recorded?: string }",
            "required": false
          }
        ],
        "tokens": ["--cascivo-color-text-muted", "--cascivo-color-ai", "--cascivo-color-ai-subtle"],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space"],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Copy, rate and regenerate",
            "code": "<MessageActions copyValue=\"Refunds are available for 30 days.\" onFeedbackChange={() => {}} onRegenerate={() => {}} />"
          },
          {
            "title": "Copy only",
            "code": "<MessageActions copyValue=\"Hello\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["copy-button", "icon-button"],
        "tags": ["ai", "chat", "feedback", "copy", "regenerate", "thumbs", "actions"],
        "intent": {
          "whenToUse": [
            "Under each assistant message: copy the reply, rate it, or ask for another attempt"
          ],
          "whenNotToUse": [
            "Stopping a response that is still generating — use AiStatus with onStop",
            "Actions on a non-AI item — use ButtonGroup or a Menu"
          ],
          "antiPatterns": [
            {
              "bad": "Swapping the rating button’s label to \"Good response recorded\"",
              "good": "Keep a stable name and expose the choice with aria-pressed; the component announces the confirmation once",
              "why": "A name that changes on press reads as a different control; aria-pressed is how toggle buttons report state"
            }
          ],
          "related": [
            {
              "name": "CopyButton",
              "relationship": "contains",
              "reason": "Copy is a CopyButton"
            },
            {
              "name": "AiStatus",
              "relationship": "pairs-with",
              "reason": "AiStatus covers the in-progress phase; MessageActions appears once the reply is complete"
            }
          ],
          "a11yRationale": "A named group of real buttons. Good and Bad are toggle buttons (aria-pressed), so the chosen rating is exposed as state rather than by a changing label, and choosing one announces \"Thanks for your feedback\" once through the shared announce() region. Icon buttons carry accessible names and meet the coarse-pointer target size",
          "flexibility": [
            {
              "area": "which actions",
              "level": "flexible",
              "note": "Each action renders only when its prop is set"
            },
            {
              "area": "rating semantics",
              "level": "strict",
              "note": "Two-state good / bad toggles; do not repurpose them for other choices"
            }
          ]
        }
      },
      "registryDependencies": ["copy-button", "icon-button"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "modal",
      "type": "component",
      "description": "Accessible dialog overlay using native <dialog> element",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/modal/modal.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/modal/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/modal/modal.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/modal/modal.meta.ts"
      ],
      "fileHashes": {
        "modal.tsx": "sha256-451337b9a2bdeaae12b9b31887cfd4db8dedd01ec26bab366a1fed77b126079d",
        "index.ts": "sha256-fc11e823800f2d698fdd37dae08bdbb90f3b48d439f4c8ac37e5e3f2b9b48566",
        "modal.module.css": "sha256-63587ba887ac6ec129b80787d0cb15029df34f9be50bfcade9858268db935e95",
        "modal.meta.ts": "sha256-985a025233a5e38268406f8cabacb22b45e0ea18402e5c68213b2e43293beb08"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Dialog", "dialog", "DialogRoot"],
      "tags": ["overlay", "dialog", "popup", "ai"],
      "meta": {
        "name": "Modal",
        "description": "Accessible dialog overlay using native <dialog> element",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "dialog",
            "local": "dialog",
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-draggable": ["true"],
              "data-ai": ["", "generating"]
            },
            "aria": ["aria-labelledby", "aria-describedby"],
            "children": ["panel"]
          },
          "parts": {
            "panel": {
              "element": "div",
              "children": ["header", "description", "body", "footer"]
            },
            "header": {
              "element": "div",
              "children": ["title", "close"],
              "when": "title || onClose"
            },
            "title": {
              "element": "h2",
              "children": ["$text"],
              "when": "title"
            },
            "close": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"],
              "when": "onClose"
            },
            "description": {
              "element": "p",
              "children": ["$text"],
              "when": "description"
            },
            "body": {
              "element": "div",
              "data": {
                "data-cascivo-modal-body": [""]
              },
              "children": ["$slot"]
            },
            "footer": {
              "element": "div",
              "data": {
                "data-cascivo-modal-footer": [""]
              },
              "children": ["$slot"],
              "when": "footer"
            }
          }
        },
        "states": ["closed", "open"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "agent": {
          "actions": [
            {
              "name": "open",
              "prop": "open"
            },
            {
              "name": "close",
              "prop": "onClose"
            }
          ]
        },
        "props": [
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onClose",
            "description": "Called when the component is closed.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": false
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "footer",
            "description": "Dialog actions, rendered in a right-aligned row below the body and separated by a divider.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "draggable",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Allow dragging the dialog by its header"
          },
          {
            "name": "ai",
            "type": "boolean | 'generating'",
            "required": false,
            "default": "false",
            "description": "AI presence: `true` gives the surface an AI-tinted edge and a soft aura, marking AI-generated content; `'generating'` adds a pulsing inner glow while AI is still producing it (stops under reduced motion). Visual only — pair it with an AiBadge so the provenance is also text."
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Modal body content"
          }
        ],
        "tokens": [
          "--cascivo-color-surface-overlay",
          "--cascivo-color-border",
          "--cascivo-radius-modal",
          "--cascivo-shadow-xl",
          "--cascivo-focus-ring",
          "--cascivo-dialog-body-gap"
        ],
        "accessibility": {
          "role": "dialog",
          "wcag": "2.2-AA",
          "keyboard": ["Escape", "Tab", "Shift+Tab"],
          "apgPattern": "dialog-modal",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic modal",
            "code": "<Modal open={isOpen} onClose={() => setIsOpen(false)} title=\"Confirm action\">\n  <p>Are you sure?</p>\n</Modal>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "styleHooks": ["data-cascivo-modal-body", "data-cascivo-modal-footer"],
        "tags": ["overlay", "dialog", "popup", "ai"],
        "intent": {
          "whenToUse": [
            "Presenting focused content or a task that must interrupt the current flow",
            "Confirmations and forms that require the user to act before continuing",
            "Cases needing a modal backdrop, focus trap, and Escape-to-close from the native <dialog>"
          ],
          "whenNotToUse": [
            "Anchored, non-modal content next to a trigger — use Popover",
            "A side panel or drawer for secondary content — use Sheet",
            "A destructive confirmation with a clear yes/no decision — use AlertDialog"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering <Modal> mounted but driving visibility with CSS display",
              "good": "Control visibility with the open prop",
              "why": "The open prop drives showModal()/close() on the native dialog, which manages the top layer, backdrop, and focus trap; hiding with CSS breaks all three"
            }
          ],
          "related": [
            {
              "name": "AlertDialog",
              "relationship": "alternative",
              "reason": "Use AlertDialog for a focused confirm/cancel decision, especially destructive ones"
            },
            {
              "name": "Sheet",
              "relationship": "alternative",
              "reason": "Use Sheet for an edge-anchored drawer rather than a centered dialog"
            },
            {
              "name": "Popover",
              "relationship": "alternative",
              "reason": "Use Popover for lightweight, non-modal content anchored to a trigger"
            }
          ],
          "a11yRationale": "Built on the native <dialog> element so showModal() provides a real focus trap, top-layer rendering, and inert background for free; role=\"dialog\" plus aria-labelledby/aria-describedby tie the title and description to the dialog, and Escape closes via the platform.",
          "content": {
            "tone": "Clear title naming the task; concise body",
            "notes": "Title is a noun phrase; the close control label comes from the i18n catalog"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Overlay surface, border, radius, shadow, and focus-ring must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "size",
              "level": "flexible",
              "note": "sm | md | lg, defaulting to md"
            },
            {
              "area": "title / description / body",
              "level": "flexible",
              "note": "All optional; body accepts arbitrary children"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "multi-select",
      "type": "component",
      "description": "Searchable multi-value select with a popover listbox, chips and grouping",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/multi-select/multi-select.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/multi-select/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/multi-select/list-nav.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/multi-select/option-list.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/multi-select/multi-select.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/multi-select/multi-select.meta.ts"
      ],
      "fileHashes": {
        "multi-select.tsx": "sha256-ba95d45282f55ae963139173c70bb264f11cef490a6f7a07ccacd545eb29b17c",
        "index.ts": "sha256-a96401ec06d10d50661e72c64f097005706954a00cad748780e7e5a63f1f5a10",
        "list-nav.ts": "sha256-23970f965d7d83662ccc0e030294f9dd4d80daabe9304fb00c441d1d3dd35b9d",
        "option-list.ts": "sha256-93e2cebe41e01449b50f4f1bb7c32a41f80a88fdabae2f4609eac8953f1a5308",
        "multi-select.module.css": "sha256-62e5d26e403f688ef809dddcbeaffa68cdfae5f86e0def261479cea4c29425bb",
        "multi-select.meta.ts": "sha256-90f6d64ec281562c5da2b6ddb413627ef3bc3cd16d747050d9fdefee5a6c5e67"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["form", "select", "multi", "input", "popover", "combobox", "tags"],
      "meta": {
        "name": "MultiSelect",
        "description": "Searchable multi-value select with a popover listbox, chips and grouping",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["closed", "open", "error"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["label", "field", "panel", "sr-only", "error", "hint"]
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"]
            },
            "field": {
              "element": "div",
              "data": {
                "data-display": ["count", "chips"]
              },
              "children": ["chip", "trigger", "clear"]
            },
            "chip": {
              "element": "span",
              "when": "display === 'chips'",
              "children": ["chip-label", "chip-remove"]
            },
            "chip-label": {
              "element": "span",
              "children": ["$text"]
            },
            "chip-remove": {
              "element": "button",
              "aria": ["aria-label"]
            },
            "trigger": {
              "element": "button",
              "aria": [
                "aria-haspopup",
                "aria-expanded",
                "aria-controls",
                "aria-labelledby",
                "aria-label",
                "aria-invalid",
                "aria-describedby"
              ],
              "children": ["trigger-label", "chevron"]
            },
            "trigger-label": {
              "element": "span",
              "data": {
                "data-empty": "boolean"
              },
              "children": ["sr-only", "$text"]
            },
            "chevron": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "clear": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["clear-glyph"]
            },
            "clear-glyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "panel": {
              "element": "div",
              "children": ["search-row", "select-all", "options", "status"]
            },
            "search-row": {
              "element": "div",
              "children": ["search"]
            },
            "search": {
              "element": "input",
              "role": "combobox",
              "aria": [
                "aria-label",
                "aria-expanded",
                "aria-controls",
                "aria-autocomplete",
                "aria-activedescendant"
              ]
            },
            "select-all": {
              "element": "button",
              "children": ["$text"]
            },
            "options": {
              "element": "div",
              "role": "listbox",
              "aria": ["aria-multiselectable", "aria-label", "aria-busy", "aria-activedescendant"],
              "children": ["group", "option"]
            },
            "group": {
              "element": "div",
              "role": "group",
              "aria": ["aria-label"],
              "children": ["group-label", "option"]
            },
            "group-label": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "option": {
              "element": "div",
              "role": "option",
              "data": {
                "data-active": "boolean",
                "data-selected": "boolean",
                "data-disabled": "boolean"
              },
              "aria": ["aria-selected", "aria-disabled"],
              "modifiers": {
                "create": "create option"
              },
              "children": ["checkbox", "option-label"]
            },
            "checkbox": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "option-label": {
              "element": "span",
              "children": ["match", "$text"]
            },
            "match": {
              "element": "mark",
              "children": ["$text"]
            },
            "status": {
              "element": "div",
              "role": "status",
              "children": ["$text"]
            },
            "sr-only": {
              "element": "span",
              "role": "status",
              "aria": ["aria-live"],
              "children": ["$text"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "children": ["$text"]
            },
            "hint": {
              "element": "span",
              "children": ["$text"]
            }
          }
        },
        "states": ["closed", "open", "error"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "options",
            "description": "The selectable options.",
            "type": "MultiSelectOption[]",
            "required": true
          },
          {
            "name": "value",
            "description": "The controlled value. Omit it and pass defaultValue to let the component own the selection.",
            "type": "string[]",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string[]",
            "required": false,
            "default": "[]"
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(value: string[]) => void",
            "required": false
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "description": "Visible field label, rendered above the trigger.",
            "type": "string",
            "required": false,
            "nameVisibility": "visible"
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          },
          {
            "name": "aria-labelledby",
            "description": "Wired automatically by a wrapping `Field` — its label id, forwarded to the focusable control so the Field's label names it.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-describedby",
            "description": "Wired automatically by a wrapping `Field` — the ids of its hint/error text, forwarded to the focusable control so the supporting text is announced.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-invalid",
            "description": "Wired automatically by a wrapping `Field` when it is in an error state.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "hint",
            "description": "Helper text below the field.",
            "type": "string",
            "required": false
          },
          {
            "name": "error",
            "description": "Error text below the field; also marks the control invalid.",
            "type": "string",
            "required": false
          },
          {
            "name": "display",
            "description": "How the trigger summarises the selection: a count, or one removable chip per value.",
            "type": "'count' | 'chips'",
            "required": false,
            "default": "'count'"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "clearable",
            "description": "When true, shows a control that clears every selected value.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "selectAll",
            "description": "When true, shows a row that selects or clears every enabled option at once.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "max",
            "description": "Maximum number of values that may be selected. Further options become unselectable once reached.",
            "type": "number",
            "required": false
          },
          {
            "name": "creatable",
            "description": "When true, offers the current search text as a new option.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onCreate",
            "description": "Called with the typed label when the user picks the \"create\" row.",
            "type": "(label: string) => void",
            "required": false
          },
          {
            "name": "loading",
            "description": "When true, the list reports itself as busy and shows a loading row instead of the no-results message.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onSearchChange",
            "description": "Called with the search text on every keystroke. Pair it with filter={() => true} for a server-driven list.",
            "type": "(query: string) => void",
            "required": false
          },
          {
            "name": "filter",
            "description": "Replaces the built-in diacritic-insensitive matcher.",
            "type": "(option: MultiSelectOption, query: string) => boolean",
            "required": false
          },
          {
            "name": "searchable",
            "description": "When true, shows the search field. The list is keyboard-navigable either way.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "size",
            "description": "Field height.",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "'md'"
          },
          {
            "name": "name",
            "description": "Submitted with a surrounding form — one hidden input per selected value.",
            "type": "string",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "MultiSelectLabels",
            "required": false
          },
          {
            "name": "id",
            "description": "Id for the trigger control.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-font-medium",
          "--cascivo-font-bold",
          "--cascivo-radius-field",
          "--cascivo-radius-overlay",
          "--cascivo-radius-item",
          "--cascivo-radius-indicator",
          "--cascivo-shadow-md",
          "--cascivo-focus-ring",
          "--cascivo-motion-enter",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "listbox",
          "wcag": "2.2-AA",
          "keyboard": [
            "ArrowDown",
            "ArrowUp",
            "Home",
            "End",
            "PageUp",
            "PageDown",
            "Enter",
            "Space",
            "Escape",
            "Backspace"
          ],
          "forcedColors": true,
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<MultiSelect options={[{label:'One',value:'1'},{label:'Two',value:'2'}]} defaultValue={[]} />"
          },
          {
            "title": "Chips with a clear control",
            "code": "<MultiSelect options={options} display=\"chips\" clearable defaultValue={['1']} />",
            "description": "Each selection renders as a chip with its own remove button."
          },
          {
            "title": "Grouped options",
            "code": "<MultiSelect options={[{label:'Apple',value:'a',group:'Pome'},{label:'Cherry',value:'c',group:'Stone'}]} />",
            "description": "Options carrying a group render under a labelled role=\"group\" heading."
          },
          {
            "title": "Remote search",
            "code": "<MultiSelect options={results} loading={pending} onSearchChange={search} filter={() => true} />",
            "description": "filter={() => true} hands filtering to the server; loading marks the list busy between keystroke and response."
          },
          {
            "title": "Bounded selection",
            "code": "<MultiSelect options={options} max={3} selectAll />",
            "description": "Options past the limit report aria-disabled; select-all stops at the limit."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["popover"],
        "tags": ["form", "select", "multi", "input", "popover", "combobox", "tags"],
        "intent": {
          "whenToUse": [
            "Selecting several values at once from a known list of options",
            "Lists long enough that the built-in search/filter helps the user find options",
            "Cases needing a compact trigger that summarizes the selected count, or chips per value",
            "Server-driven option lists, via onSearchChange plus filter={() => true}"
          ],
          "whenNotToUse": [
            "Choosing exactly one value — use Select",
            "Free-text entries with no option list behind them — use TagsInput",
            "A handful of always-visible options — use a Checkbox group"
          ],
          "antiPatterns": [
            {
              "bad": "<MultiSelect value={value} /> with no onValueChange",
              "good": "<MultiSelect defaultValue={value} onValueChange={setValue} />",
              "why": "Passing value makes the component controlled for its whole life; without onValueChange the selection can never change. Use defaultValue when the component should own the state."
            },
            {
              "bad": "<MultiSelect options={remote} onSearchChange={search} />",
              "good": "<MultiSelect options={remote} onSearchChange={search} filter={() => true} />",
              "why": "The built-in matcher still runs over the server’s results and filters them a second time against the same query, hiding rows the server deliberately returned."
            }
          ],
          "related": [
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Use Select for single-value selection"
            },
            {
              "name": "Combobox",
              "relationship": "alternative",
              "reason": "Use Combobox for a single value chosen from a searchable list"
            },
            {
              "name": "TagsInput",
              "relationship": "alternative",
              "reason": "Use TagsInput for free-text values with no option list"
            },
            {
              "name": "Checkbox",
              "relationship": "alternative",
              "reason": "Use a Checkbox group for a small set of always-visible options"
            }
          ],
          "a11yRationale": "The trigger is a button with aria-haspopup=\"listbox\", aria-expanded and aria-controls pointing at the panel. Inside the panel the search field carries role=\"combobox\" with aria-expanded, aria-controls and aria-autocomplete=\"list\", and owns aria-activedescendant — it is the element that holds DOM focus, so assistive technology tracks the active option as the arrows move it. With searchable={false} the listbox itself takes focus and the same attributes. The listbox is aria-multiselectable with role=\"option\" rows carrying aria-selected, aria-disabled for unavailable ones and role=\"group\" headings for grouped options; the search field, the select-all row and the loading/no-results message are siblings of the listbox rather than children, because a listbox owns only option and group children. ArrowUp/ArrowDown move the active option and skip disabled rows, Home/End jump to the ends, PageUp/PageDown move by ten, Enter toggles (Space too when there is no search field), Backspace removes the last chip from an empty search, and Escape closes the panel and returns focus to the trigger. A permanently mounted polite live region reports the selection count, so the first selection is announced as well as later ones. Selection, the active row and the focus ring each carry a non-colour channel under forced-colors, and every control reaches the coarse-pointer target minimum.",
          "content": {
            "tone": "Plain placeholder and count summary",
            "notes": "Defaults from the i18n catalog; placeholder, selected(count), search, no-results, loading, clear, remove, select-all, clear-all and create strings are overridable via labels"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Surface, border, accent, radius, shadow, focus-ring, and motion must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "labels",
              "level": "flexible",
              "note": "Every user-visible string is overridable through labels"
            },
            {
              "area": "options",
              "level": "flexible",
              "note": "Caller supplies the option list and may mark options disabled or assign them a group"
            },
            {
              "area": "filtering",
              "level": "flexible",
              "note": "The default matcher folds diacritics and searches label then value; filter replaces it entirely"
            }
          ]
        }
      },
      "registryDependencies": ["popover"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "native-select",
      "type": "component",
      "description": "A styled native <select> that keeps platform form/keyboard behavior with a custom chevron and focus ring",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/native-select/native-select.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/native-select/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/native-select/native-select.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/native-select/native-select.meta.ts"
      ],
      "fileHashes": {
        "native-select.tsx": "sha256-d6eddb83cd8e5cf4af6d6a0dce521d8304b3c8949c9cd026adbc4d4d4167f603",
        "index.ts": "sha256-6af5d7c13fc052ae77c40616cf2a4dda79af16cd78ba63d7cd254c2d24bf8800",
        "native-select.module.css": "sha256-105112173293d8d9c6a9d1e6514aa99e989c72483d3df408d7ae96df3e3647f6",
        "native-select.meta.ts": "sha256-e7bc8b602d943319c3af39d8e38ab881c17c1878437b34c675d42a2a975e157f"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["NativeSelect", "SelectNative"],
      "tags": ["inputs", "select", "native", "form", "dropdown"],
      "meta": {
        "name": "NativeSelect",
        "description": "A styled native <select> that keeps platform form/keyboard behavior with a custom chevron and focus ring",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-invalid": [""]
            },
            "children": ["select", "chevron"],
            "emit": "manual"
          },
          "parts": {
            "select": {
              "element": "select",
              "aria": ["aria-invalid"],
              "children": ["$slot"]
            },
            "chevron": {
              "element": "span",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": ["default", "focus", "disabled", "invalid"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "options",
            "description": "Options to render. Alternatively pass <option> children.",
            "type": "NativeSelectOption[]",
            "required": false
          },
          {
            "name": "children",
            "description": "Raw <option> children (used when options is not provided).",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "invalid",
            "description": "Marks the control as invalid for error styling and a11y.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "placeholder",
            "description": "Placeholder rendered as a disabled, hidden first option.",
            "type": "string",
            "required": false
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "onChange",
            "description": "Called when the selected value changes.",
            "type": "React.ChangeEventHandler<HTMLSelectElement>",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-field",
          "--cascivo-radius-overlay",
          "--cascivo-radius-item",
          "--cascivo-shadow-md",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "combobox",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowUp", "ArrowDown", "Enter", "Space", "Home", "End"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<NativeSelect\n  aria-label=\"Country\"\n  placeholder=\"Choose a country\"\n  options={[\n    { value: 'us', label: 'United States' },\n    { value: 'de', label: 'Germany' },\n  ]}\n  onChange={(e) => setCountry(e.target.value)}\n/>"
          },
          {
            "title": "Option children",
            "code": "<NativeSelect size=\"sm\" defaultValue=\"light\" aria-label=\"Theme\">\n  <option value=\"light\">Light</option>\n  <option value=\"dark\">Dark</option>\n</NativeSelect>"
          },
          {
            "title": "Invalid",
            "code": "<NativeSelect invalid placeholder=\"Required\" options={countries} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["inputs", "select", "native", "form", "dropdown"],
        "intent": {
          "whenToUse": [
            "A standard single-choice dropdown where native behavior and form integration matter most",
            "Mobile-first forms that should use the platform picker UI",
            "Pairing with a Field/Label inside a regular HTML form"
          ],
          "whenNotToUse": [
            "Multi-select, search/typeahead, or rich option rendering — use the custom Select/Combobox",
            "A handful of mutually exclusive options where radios read better"
          ],
          "antiPatterns": [
            {
              "bad": "<NativeSelect options={oneHundredOptionsWithIcons} />",
              "good": "<Combobox options={...} />",
              "why": "Native <option> cannot render icons or be searched; use a custom listbox for rich options"
            }
          ],
          "related": [
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Custom-rendered listbox for richer options at the cost of native form/keyboard behavior"
            },
            {
              "name": "RadioCard",
              "relationship": "alternative",
              "reason": "Better for a small fixed set of mutually exclusive choices shown inline"
            }
          ],
          "a11yRationale": "It is a real <select>, so the browser provides the combobox role, keyboard interaction, and announcement. aria-invalid is set when invalid; the placeholder is a disabled hidden first option so it shows but is not selectable. Where `appearance: base-select` is supported the option list is themed from CSS instead of the OS, and the browser still owns open/close, keyboard interaction, typeahead and form submission — nothing is re-implemented, so the accessibility story is identical on both paths.",
          "flexibility": [
            {
              "area": "options",
              "level": "flexible",
              "note": "Pass an options array or raw <option> children"
            },
            {
              "area": "value",
              "level": "flexible",
              "note": "Controlled (value/onChange) or uncontrolled (defaultValue)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "navigation-menu",
      "type": "component",
      "description": "Site navigation bar with links and dropdown flyout panels",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/navigation-menu/navigation-menu.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/navigation-menu/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/navigation-menu/navigation-menu.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/navigation-menu/navigation-menu.meta.ts"
      ],
      "fileHashes": {
        "navigation-menu.tsx": "sha256-ca1f07477299c845ae4ed3fdb3e02db25882db8c3fb1a70ae8bc8f7bd72eb92d",
        "index.ts": "sha256-b6a075ea16b94e7a27b95bc268e44abdabf46f4d3d25a224eb3c9e1f6dada9c9",
        "navigation-menu.module.css": "sha256-27871a11da58d30b376d8194b52813d9c6b608b7bbd4b2fd053496d38a102f04",
        "navigation-menu.meta.ts": "sha256-1351a342d981c8a6a62f2cb6566451850c0b193e763b1752e69629d5b3f702b1"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["navigation", "menu", "flyout", "site-nav"],
      "meta": {
        "name": "NavigationMenu",
        "description": "Site navigation bar with links and dropdown flyout panels",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "nav",
            "local": "nav",
            "data": {
              "data-orientation": ["horizontal", "vertical", "both"]
            },
            "aria": ["aria-label"],
            "children": ["list"]
          },
          "parts": {
            "list": {
              "element": "ul",
              "role": "list",
              "children": ["item"]
            },
            "item": {
              "element": "li",
              "children": ["link", "trigger"]
            },
            "link": {
              "element": "a",
              "children": ["$text"]
            },
            "trigger": {
              "element": "button",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-expanded", "aria-controls"],
              "children": ["$text", "panel"]
            },
            "panel": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": ["closed", "open"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Invisible accessible name. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling."
          },
          {
            "name": "items",
            "description": "The items to render.",
            "type": "NavigationMenuItem[]",
            "required": true
          },
          {
            "name": "aria-label",
            "description": "Accessible label used when no visible label is present.",
            "type": "string",
            "required": false
          },
          {
            "name": "orientation",
            "default": "horizontal",
            "description": "Which arrow keys move focus, and the axis the items lay out on: `horizontal` (Left/Right), `vertical` (Up/Down), or `both` (all four).",
            "type": "'horizontal' | 'vertical' | 'both'",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-color-border",
          "--cascivo-focus-ring",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "navigation",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowLeft", "ArrowRight", "Home", "End", "Enter", "Space", "Escape"],
          "apgPattern": "disclosure-navigation",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<NavigationMenu aria-label=\"Main\" items={[{ id: \"home\", label: \"Home\", href: \"/\" }, { id: \"products\", label: \"Products\", content: <ul>…</ul> }]} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["navigation", "menu", "flyout", "site-nav"],
        "intent": {
          "whenToUse": [
            "Primary site navigation where some destinations are plain links and others reveal a flyout of grouped links",
            "A header nav bar that mixes direct links with rich dropdown panels"
          ],
          "whenNotToUse": [
            "Application commands and actions grouped under File/Edit/View — use Menubar",
            "A single trigger opening a list of actions — use a Menu/Dropdown",
            "Switching between peer content panels in place — use Tabs"
          ],
          "antiPatterns": [
            {
              "bad": "Putting action commands (Save, Delete) inside NavigationMenu flyouts",
              "good": "<Menubar> or <Menu> for commands; NavigationMenu is for destinations",
              "why": "navigation landmark implies moving between destinations, not invoking actions"
            }
          ],
          "related": [
            {
              "name": "Menubar",
              "relationship": "alternative",
              "reason": "Menubar invokes application commands; NavigationMenu navigates to destinations"
            },
            {
              "name": "Tabs",
              "relationship": "alternative",
              "reason": "Tabs swap in-page panels; NavigationMenu links to other destinations"
            }
          ],
          "a11yRationale": "Wrapped in a navigation landmark with a roving-tabindex row of links and disclosure triggers; triggers expose aria-expanded/aria-controls onto a flyout panel, and outside-pointer or Escape dismisses the open panel and restores trigger focus",
          "flexibility": [
            {
              "area": "orientation",
              "level": "flexible",
              "note": "horizontal (default) or vertical roving navigation"
            },
            {
              "area": "panel content",
              "level": "flexible",
              "note": "content is arbitrary ReactNode; links without content render as plain anchors"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "notification",
      "type": "component",
      "description": "Inline, actionable notification banner that surfaces a titled message with an optional recovery action",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/notification/notification.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/notification/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/notification/notification.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/notification/notification.meta.ts"
      ],
      "fileHashes": {
        "notification.tsx": "sha256-96d50c30208d15362532218d153b262964d7c08c21fac82575ae9bac97027e7a",
        "index.ts": "sha256-745a045b5c161dd4f4d53eccc0685b4d7aea58f12317abbed47dee0486e62f74",
        "notification.module.css": "sha256-5c7995e8eb4ea44832527a3850890609daffeaf2b50776e6fb56511a0c49fb13",
        "notification.meta.ts": "sha256-1e70f551d14fe8593be967cd74516cef5b3958615d3e68c9d65e271756b00563"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["notification", "banner", "message", "feedback", "actionable"],
      "meta": {
        "name": "Notification",
        "description": "Inline, actionable notification banner that surfaces a titled message with an optional recovery action",
        "category": "feedback",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-variant": ["info", "success", "warning", "error"]
            },
            "children": ["icon", "body", "dismiss"],
            "emit": "manual"
          },
          "parts": {
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "body": {
              "element": "div",
              "children": ["title", "description", "actions"]
            },
            "title": {
              "element": "div",
              "children": ["$slot"]
            },
            "description": {
              "element": "div",
              "children": ["$slot"],
              "when": "description"
            },
            "actions": {
              "element": "div",
              "children": ["$slot"],
              "when": "actions"
            },
            "dismiss": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"],
              "when": "dismissible || onDismiss"
            }
          }
        },
        "states": [],
        "variants": ["info", "success", "warning", "error"],
        "sizes": [],
        "props": [
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "variant",
            "description": "Severity tone. Accepts the catalog-wide `Tone` vocabulary (`neutral | info | success | warning | danger`) plus Notification's historical spellings (`error`, `destructive` → danger).",
            "type": "'info' | 'success' | 'warning' | 'error'",
            "required": false,
            "default": "info"
          },
          {
            "name": "dismissible",
            "description": "When true, shows a control to dismiss the component.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onDismiss",
            "description": "Called when the component is dismissed.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "actions",
            "description": "Action elements shown in the notification.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "icon",
            "description": "Icon element rendered in the component.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ dismiss?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-info",
          "--cascivo-color-success",
          "--cascivo-color-warning",
          "--cascivo-color-destructive",
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-radius-surface",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "alert",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Info",
            "code": "<Notification variant=\"info\" title=\"Sync complete\" description=\"Your files are up to date.\" />"
          },
          {
            "title": "Dismissible",
            "code": "<Notification variant=\"success\" title=\"Saved\" dismissible onDismiss={handleDismiss} />"
          },
          {
            "title": "Actionable",
            "code": "<Notification variant=\"error\" title=\"Upload failed\" description=\"The connection dropped.\" actions={<Button onClick={retry}>Retry</Button>} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["notification", "banner", "message", "feedback", "actionable"],
        "intent": {
          "whenToUse": [
            "Surfacing a prominent, often actionable message in the page flow (sync result, failed upload, available update)",
            "Pairing a status message with one or more recovery actions via the actions slot",
            "Communicating outcomes that should persist until the user reads or acts on them"
          ],
          "whenNotToUse": [
            "Transient, auto-dismissing feedback that floats above the layout — use Toast",
            "A terse single-line action status next to a control — use InlineLoading",
            "Blocking the user for a required decision — use Modal or AlertDialog"
          ],
          "antiPatterns": [
            {
              "bad": "Stacking Notifications in a fixed corner viewport on a timer to fake toasts",
              "good": "<Toast> for ephemeral, floating, auto-dismissing feedback",
              "why": "Notification is an in-flow banner; faking toast behavior duplicates Toast and breaks layout expectations"
            }
          ],
          "related": [
            {
              "name": "Toast",
              "relationship": "alternative",
              "reason": "Toast floats and auto-dismisses; Notification stays inline in the document flow"
            },
            {
              "name": "Alert",
              "relationship": "alternative",
              "reason": "Alert is a lighter inline message; Notification leans into a leading variant icon and an actions slot"
            }
          ],
          "a11yRationale": "role=\"alert\" for warning and error so assistive tech announces them assertively, role=\"status\" for info and success; the variant icon is decorative (aria-hidden) and color is always paired with the icon and title, and the dismiss control is a labeled button",
          "content": {
            "tone": "Clear and outcome-focused — state what happened and the next step",
            "notes": "Title summarizes; description adds detail. Put recovery controls in the actions slot, not the title."
          },
          "flexibility": [
            {
              "area": "icon",
              "level": "flexible",
              "note": "A variant-appropriate icon is supplied by default; override with the icon prop"
            },
            {
              "area": "actions",
              "level": "flexible",
              "note": "Any ReactNode (typically Buttons) can fill the actions slot"
            },
            {
              "area": "role mapping",
              "level": "strict",
              "note": "warning/error must use role=\"alert\"; info/success use role=\"status\""
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "number-input",
      "type": "component",
      "description": "Numeric input with stepper buttons, clamping, precision, and locale formatting",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/number-input/number-input.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/number-input/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/number-input/number-input.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/number-input/number-input.meta.ts"
      ],
      "fileHashes": {
        "number-input.tsx": "sha256-c89a10e18c2f1b6cc5377f45ff5dd2b07dd28d0ba1bb597d885e468163dd62a0",
        "index.ts": "sha256-e1bfb7f0d680c0d3353e29e96ad022f322e67560fcea6e5772d1e88fff732c51",
        "number-input.module.css": "sha256-052b1ea4e35ba484767d3b30b590e742a7069125857dc7c0a3bb2b8ceacbb39a",
        "number-input.meta.ts": "sha256-096b5cd3836387aa741d1cfca984bb7cf09f7e0f576d40f7212f524dfdc6d808"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["NumberField", "SpinButton", "Stepper"],
      "tags": ["form", "number", "input", "spinbutton", "stepper"],
      "meta": {
        "name": "NumberInput",
        "description": "Numeric input with stepper buttons, clamping, precision, and locale formatting",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["idle", "focused", "error"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["label", "field", "error", "hint"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"],
              "when": "label"
            },
            "field": {
              "element": "div",
              "children": ["input", "steppers"]
            },
            "input": {
              "element": "input",
              "role": "spinbutton",
              "aria": [
                "aria-valuenow",
                "aria-valuemin",
                "aria-valuemax",
                "aria-invalid",
                "aria-describedby",
                "aria-label"
              ]
            },
            "steppers": {
              "element": "div",
              "children": ["stepper"]
            },
            "stepper": {
              "element": "button",
              "aria": ["aria-label"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "children": ["$text"],
              "when": "error"
            },
            "hint": {
              "element": "span",
              "children": ["$text"],
              "when": "!error && hint"
            }
          }
        },
        "states": ["idle", "focused", "error"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "number | null",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "number",
            "required": false
          },
          {
            "name": "onValueChange",
            "type": "(value: number | null) => void",
            "required": false,
            "description": "Fired on commit (blur, Enter, stepping); null when empty or unparseable"
          },
          {
            "name": "min",
            "description": "Minimum allowed value.",
            "type": "number",
            "required": false
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false
          },
          {
            "name": "step",
            "description": "Increment between allowed values.",
            "type": "number",
            "required": false,
            "default": "1"
          },
          {
            "name": "precision",
            "type": "number",
            "required": false,
            "description": "Decimal places applied on commit"
          },
          {
            "name": "formatOptions",
            "type": "Intl.NumberFormatOptions",
            "required": false,
            "description": "Display formatting applied on blur; raw editable string while focused"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "hint",
            "description": "Supplementary hint text shown with the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "error",
            "description": "Error message shown when the value is invalid.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "incrementLabel",
            "description": "Accessible label for the increment button.",
            "type": "string",
            "required": false,
            "default": "Increment"
          },
          {
            "name": "decrementLabel",
            "description": "Accessible label for the decrement button.",
            "type": "string",
            "required": false,
            "default": "Decrement"
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text-subtle",
          "--cascivo-radius-input",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "spinbutton",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowUp", "ArrowDown", "Enter", "Tab"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<NumberInput label=\"Quantity\" defaultValue={1} min={0} max={99} />"
          },
          {
            "title": "Currency",
            "code": "<NumberInput label=\"Price\" precision={2} formatOptions={{ style: \"currency\", currency: \"USD\" }} />"
          },
          {
            "title": "Stepped",
            "code": "<NumberInput label=\"Opacity\" min={0} max={1} step={0.1} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["form", "number", "input", "spinbutton", "stepper"],
        "intent": {
          "whenToUse": [
            "Collecting a bounded numeric value where increment/decrement by a known step is natural (quantity, opacity, count)",
            "Numeric entry that needs clamping to min/max, fixed precision, or locale-aware display formatting (e.g. currency)",
            "Inputs where keyboard ArrowUp/ArrowDown stepping speeds up adjustment"
          ],
          "whenNotToUse": [
            "Free-form or non-numeric text — use Input",
            "Choosing along a continuous range where the exact number matters less than the relative position — use Slider",
            "Phone numbers, PINs, or codes that are digit strings rather than quantities — use Input or OtpInput"
          ],
          "antiPatterns": [
            {
              "bad": "<Input type=\"number\" onChange={...} />",
              "good": "<NumberInput min={0} max={99} step={1} onValueChange={...} />",
              "why": "NumberInput adds stepper buttons, clamping, precision rounding, and Intl formatting that a raw number input does not, and reports a parsed number | null rather than a string"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use for unbounded or non-numeric text entry"
            },
            {
              "name": "Slider",
              "relationship": "alternative",
              "reason": "Use when approximate position on a range matters more than an exact typed number"
            }
          ],
          "a11yRationale": "Exposes role=\"spinbutton\" with aria-valuenow/min/max so assistive tech announces the current value and bounds; stepper buttons are taken out of the tab order (tabIndex=-1) and labeled, keeping keyboard focus on the field while ArrowUp/ArrowDown drive stepping.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Visual props must resolve to the listed --cascivo-* semantic tokens"
            },
            {
              "area": "formatting and bounds",
              "level": "flexible",
              "note": "min, max, step, precision, and formatOptions are free to suit the value domain"
            },
            {
              "area": "stepper labels",
              "level": "flexible",
              "note": "incrementLabel/decrementLabel override the i18n defaults"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "otp-input",
      "type": "component",
      "description": "Segmented one-time code input",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/otp-input/otp-input.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/otp-input/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/otp-input/otp-input.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/otp-input/otp-input.meta.ts"
      ],
      "fileHashes": {
        "otp-input.tsx": "sha256-74d90f6f42da90db2ced87773cee63ba1a03fcc6ea8805cfbcdea37f20c6ddd8",
        "index.ts": "sha256-3ff33eb02a8876036f668cc90a8744e398543c1ae540d7523b6790d6e17e99b5",
        "otp-input.module.css": "sha256-37015c92493c5910a781c2e78b33a0d59eb711e0f3aefa954d70a047ca57450e",
        "otp-input.meta.ts": "sha256-a9e107621d6bcafb7bd26ee99cc80c0c9758f8f4411919d170c56d062e1bf0dc"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["PinInput", "pin-input", "VerificationCode"],
      "tags": ["form", "otp", "code", "input", "verification"],
      "meta": {
        "name": "OtpInput",
        "description": "Segmented one-time code input",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "role": "group",
            "aria": ["aria-label"],
            "children": ["slot"]
          },
          "parts": {
            "slot": {
              "element": "input",
              "data": {
                "data-filled": "boolean"
              },
              "aria": ["aria-label"]
            }
          }
        },
        "states": ["idle", "focused", "filled", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "length",
            "description": "Number of input cells.",
            "type": "number",
            "required": false,
            "default": "6"
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": true
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(v: string) => void",
            "required": true
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "type",
            "description": "Accepted characters ('numeric' | 'alphanumeric').",
            "type": "'numeric' | 'alphanumeric'",
            "required": false,
            "default": "numeric"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-input",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowLeft", "ArrowRight", "Backspace"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<OtpInput value=\"\" onValueChange={() => {}} />"
          },
          {
            "title": "4-digit",
            "code": "<OtpInput length={4} value=\"\" onValueChange={() => {}} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["form", "otp", "code", "input", "verification"],
        "intent": {
          "whenToUse": [
            "Entering a fixed-length one-time code (2FA, SMS verification, email confirmation) split across per-character slots",
            "Codes that benefit from auto-advance between slots and pasting the full code at once",
            "Numeric or alphanumeric short codes of a known length"
          ],
          "whenNotToUse": [
            "Variable-length or free-form text — use Input",
            "Secret credentials that should be masked — use PasswordInput",
            "Long codes where per-character boxes add no value over a single field — use Input"
          ],
          "antiPatterns": [
            {
              "bad": "<Input maxLength={6} placeholder=\"Enter code\" />",
              "good": "<OtpInput length={6} value={code} onValueChange={setCode} />",
              "why": "OtpInput gives per-digit slots with auto-advance, backspace-to-previous, full-code paste handling, and autoComplete=\"one-time-code\" that a single Input does not"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use for variable-length or non-code text entry"
            },
            {
              "name": "PasswordInput",
              "relationship": "alternative",
              "reason": "Use when the entered value is a secret that must be masked"
            }
          ],
          "a11yRationale": "Wraps the slots in role=\"group\" with a localized aria-label and labels each slot with its position so screen readers announce which digit is being entered; the first slot carries autoComplete=\"one-time-code\" so platform SMS autofill can populate the code.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Slot styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "length and type",
              "level": "flexible",
              "note": "length and numeric/alphanumeric type are free to match the issued code format"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "overflow-menu",
      "type": "component",
      "description": "Kebab icon button revealing a menu of row-level actions",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/overflow-menu/overflow-menu.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/overflow-menu/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/overflow-menu/overflow-menu.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/overflow-menu/overflow-menu.meta.ts"
      ],
      "fileHashes": {
        "overflow-menu.tsx": "sha256-f5ba4ceeafc4d5fa672ab02b0385006a8ed53356b08111b8060611d34cbdee0b",
        "index.ts": "sha256-7070c62d17b5995930ae65e66e40a55dc3532334befe4f899aab9692957447e5",
        "overflow-menu.module.css": "sha256-21f4c4a11b7f8dc0d8bf6ac885e922bf145a1d2ea68dc75ae3b77186112a89a9",
        "overflow-menu.meta.ts": "sha256-c5c6ffb356a581d15e41e16ed9eb19568a2ce0324a07818fb93b9968d69f0fc8"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "deprecated": {
        "since": "0.17.0",
        "replacement": "menu",
        "removeIn": "2.0.0",
        "note": "Menu covers the same trigger-plus-items shape with roving focus, typeahead and submenu support. OverflowMenu keeps working for the whole 1.x line and is removed in 2.0.0."
      },
      "aliases": ["MoreMenu", "KebabMenu", "ActionMenu"],
      "tags": ["overlay", "menu", "actions", "kebab", "table"],
      "meta": {
        "name": "OverflowMenu",
        "description": "Kebab icon button revealing a menu of row-level actions",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["trigger", "destructive-flag"]
          },
          "parts": {
            "trigger": {
              "element": "button",
              "data": {
                "data-size": ["sm", "md"]
              },
              "aria": ["aria-label"]
            },
            "destructive-flag": {
              "element": "span",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": ["closed", "open"],
        "variants": [],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "items",
            "description": "The items to render.",
            "type": "{ label: string; value?: string; id?: string; icon?: ReactNode; disabled?: boolean; destructive?: boolean }[]",
            "required": true
          },
          {
            "name": "onSelect",
            "description": "Called with the selected value.",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "placement",
            "description": "Which trigger edge the menu aligns to. `bottom-end` hangs it from the trigger's end edge (right in LTR), `bottom-start` from its start edge.",
            "type": "'bottom-start' | 'bottom-end'",
            "required": false,
            "default": "bottom-end"
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Accessible label for the component.",
            "type": "string",
            "required": false,
            "default": "More actions"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "tabIndex",
            "description": "Tab-order position of the trigger. Composite widgets that manage their own focus (a DataTable in grid keyboard mode) pass -1 so the menu is reachable by Enter on its cell without being an extra Tab stop.",
            "type": "number",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-destructive",
          "--cascivo-color-destructive-subtle",
          "--cascivo-radius-button",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "menu",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowDown", "ArrowUp", "Home", "End", "Enter", "Space", "Escape"]
        },
        "examples": [
          {
            "title": "Row actions",
            "code": "<OverflowMenu items={[{ label: \"Edit\", value: \"edit\" }, { label: \"Delete\", value: \"delete\", destructive: true }]} onSelect={handle} />"
          },
          {
            "title": "Small, start-aligned",
            "code": "<OverflowMenu size=\"sm\" placement=\"bottom-start\" items={items} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["dropdown"],
        "tags": ["overlay", "menu", "actions", "kebab", "table"],
        "deprecated": {
          "since": "0.17.0",
          "replacement": "menu",
          "removeIn": "2.0.0",
          "note": "Menu covers the same trigger-plus-items shape with roving focus, typeahead and submenu support. OverflowMenu keeps working for the whole 1.x line and is removed in 2.0.0."
        },
        "intent": {
          "whenToUse": [
            "Collapsing secondary row-level or item-level actions behind a kebab trigger in dense layouts like tables and lists",
            "Offering a small set of actions where a destructive option needs visual distinction"
          ],
          "whenNotToUse": [
            "A primary action that should always be visible — use Button",
            "Selecting a single value from a set rather than triggering actions — use Select or Dropdown",
            "New code — this component is deprecated in favor of Menu"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering every row action as a visible Button in a crowded table",
              "good": "<OverflowMenu items={[{ label: \"Edit\", value: \"edit\" }, { label: \"Delete\", value: \"delete\", destructive: true }]} onSelect={handle} />",
              "why": "A kebab menu keeps dense rows scannable; surfacing every action inline competes for attention and breaks alignment"
            }
          ],
          "related": [
            {
              "name": "Menu",
              "relationship": "alternative",
              "reason": "Preferred replacement; OverflowMenu is deprecated and delegates to Dropdown internally"
            },
            {
              "name": "Dropdown",
              "relationship": "contains",
              "reason": "OverflowMenu is a kebab-triggered wrapper around Dropdown"
            },
            {
              "name": "Button",
              "relationship": "alternative",
              "reason": "Use for a single always-visible action instead of hiding it in a menu"
            }
          ],
          "a11yRationale": "The kebab trigger carries a localized aria-label since it has no visible text, and the revealed list uses Dropdown's menu semantics so arrow keys, Home/End, Enter/Space, and Escape work without custom handling.",
          "content": {
            "tone": "Imperative verb-first action labels",
            "notes": "Sentence case, short; mark irreversible actions destructive"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Trigger and item styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "item set and labels",
              "level": "flexible",
              "note": "items, ariaLabel, and placement are free to suit the context"
            }
          ]
        }
      },
      "registryDependencies": ["dropdown"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "pagination",
      "type": "component",
      "description": "Controls for navigating paged data sets, with page size selection",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pagination/pagination.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pagination/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pagination/pagination.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pagination/pagination.meta.ts"
      ],
      "fileHashes": {
        "pagination.tsx": "sha256-35ed19daffe3c06a665dacd37baafd02b16b4bf6972d5569478a32e38b929bba",
        "index.ts": "sha256-70cbce51e8e656d3e22ffa2173f6fe855d9e4d5004cc009689830383884f53d3",
        "pagination.module.css": "sha256-8abeed2da3e0e2613253f5a0714867e4b36db2f7dbd672c4146a03adc21fdf2a",
        "pagination.meta.ts": "sha256-2d244885b6f54595badce48cbad3a68e71f98136745542d005fb92be1603493b"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["pagination", "navigation", "table", "data", "pages"],
      "meta": {
        "name": "Pagination",
        "description": "Controls for navigating paged data sets, with page size selection",
        "category": "navigation",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "nav",
            "aria": ["aria-label"],
            "children": ["group", "range", "buttons"]
          },
          "parts": {
            "group": {
              "element": ["label", "div"],
              "children": ["label", "select"]
            },
            "label": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "select": {
              "element": "select",
              "aria": ["aria-label"]
            },
            "range": {
              "element": "span",
              "children": ["$text"]
            },
            "buttons": {
              "element": "div",
              "children": ["button"]
            },
            "button": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "page",
            "type": "number",
            "required": true,
            "description": "Current page (1-based)"
          },
          {
            "name": "pageSize",
            "type": "number",
            "required": true,
            "description": "Items per page"
          },
          {
            "name": "totalItems",
            "type": "number",
            "required": true,
            "description": "Total number of items"
          },
          {
            "name": "onPageChange",
            "description": "Called with the new page number when it changes.",
            "type": "(page: number) => void",
            "required": true
          },
          {
            "name": "onPageSizeChange",
            "description": "Called with the new page size when it changes.",
            "type": "(size: number) => void",
            "required": false
          },
          {
            "name": "pageSizeOptions",
            "type": "number[]",
            "required": false,
            "default": "[10, 25, 50, 100]",
            "description": "Options for the page size select"
          },
          {
            "name": "labels",
            "type": "PaginationLabels",
            "required": false,
            "description": "Overridable English strings for all visible and accessible text"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-accent",
          "--cascivo-color-accent-subtle",
          "--cascivo-radius-input",
          "--cascivo-radius-button",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "navigation",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space", "ArrowUp", "ArrowDown"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Pagination page={1} pageSize={25} totalItems={103} onPageChange={setPage} />"
          },
          {
            "title": "With page size select",
            "code": "<Pagination page={page} pageSize={size} totalItems={103} onPageChange={setPage} onPageSizeChange={setSize} />"
          },
          {
            "title": "Custom labels",
            "code": "<Pagination page={1} pageSize={10} totalItems={42} onPageChange={setPage} labels={{ previous: 'Zurück', next: 'Weiter' }} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["pagination", "navigation", "table", "data", "pages"],
        "intent": {
          "whenToUse": [
            "Navigating between pages of a paged dataset",
            "Letting the user change how many items appear per page (onPageSizeChange)",
            "Pairing with a table or list that loads data in chunks"
          ],
          "whenNotToUse": [
            "Navigating a content hierarchy — use Breadcrumb",
            "Infinite scroll experiences where pages are not exposed"
          ],
          "antiPatterns": [
            {
              "bad": "Using Pagination to navigate between unrelated app sections",
              "good": "<Tabs> or nav links for section switching",
              "why": "Pagination semantics imply sequential pages of one dataset, not arbitrary navigation"
            }
          ],
          "related": [
            {
              "name": "DataTable",
              "relationship": "pairs-with",
              "reason": "DataTable embeds Pagination for its rows"
            },
            {
              "name": "Breadcrumb",
              "relationship": "alternative",
              "reason": "Breadcrumb is for hierarchy, Pagination for sequential pages"
            }
          ],
          "a11yRationale": "Wrapped in <nav> with an accessible label; page controls are real buttons with current-page state exposed, and all visible/assistive strings are overridable via labels for i18n",
          "flexibility": [
            {
              "area": "page size options",
              "level": "flexible",
              "note": "pageSizeOptions and the size select are optional"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surfaces, borders, and accent must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "password-input",
      "type": "component",
      "description": "Password input with reveal toggle and optional strength meter",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/password-input/password-input.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/password-input/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/password-input/password-input.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/password-input/password-input.meta.ts"
      ],
      "fileHashes": {
        "password-input.tsx": "sha256-60aca33bd03635e762b08cc8eca458151bba9933de22102e768b2e1be9bc920e",
        "index.ts": "sha256-b941920cedfd4a384a2d7ce70125deccb7e287f6ee225c74d8b9b7b84cf38df8",
        "password-input.module.css": "sha256-691e0128f4573fcf6bd44c44775e0834030a6ee36968c58949a120d00f3ecae2",
        "password-input.meta.ts": "sha256-c7413f45d37b9fc853676add71bc03eeebe13c8f07710554e64a5b664d9528d4"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["form", "password", "input", "security"],
      "meta": {
        "name": "PasswordInput",
        "description": "Password input with reveal toggle and optional strength meter",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-revealed": [""]
            },
            "children": ["input-row", "strength-meter"],
            "emit": "manual"
          },
          "parts": {
            "input-row": {
              "element": "div",
              "children": ["input", "reveal-btn"]
            },
            "input": {
              "element": "input"
            },
            "reveal-btn": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["reveal-icon"]
            },
            "reveal-icon": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "strength-meter": {
              "element": "div",
              "role": "meter",
              "data": {
                "data-strength": ["weak", "fair", "good", "strong"]
              },
              "aria": ["aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax"],
              "children": ["strength-segment"],
              "when": "showStrengthMeter"
            },
            "strength-segment": {
              "element": "div",
              "data": {
                "data-filled": [""]
              }
            }
          }
        },
        "states": ["idle", "revealed"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "showStrengthMeter",
            "description": "When true, shows a password-strength meter.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "PasswordInputLabels",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "onChange",
            "description": "Called when the value changes.",
            "type": "(e: React.ChangeEvent<HTMLInputElement>) => void",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-color-warning",
          "--cascivo-color-success",
          "--cascivo-radius-input",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "textbox",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Shift+Tab"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<PasswordInput placeholder=\"Enter password\" />"
          },
          {
            "title": "With strength meter",
            "code": "<PasswordInput showStrengthMeter placeholder=\"Create password\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["form", "password", "input", "security"],
        "intent": {
          "whenToUse": [
            "Collecting a secret credential that should be masked by default with an opt-in reveal toggle",
            "Password creation flows that benefit from inline strength feedback"
          ],
          "whenNotToUse": [
            "Non-secret text — use Input",
            "A fixed-length one-time verification code — use OtpInput"
          ],
          "antiPatterns": [
            {
              "bad": "<Input type=\"password\" />",
              "good": "<PasswordInput showStrengthMeter />",
              "why": "PasswordInput adds an accessible reveal/hide toggle and an optional strength meter on top of the masked field, which a raw password input lacks"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use for non-secret text that never needs masking"
            },
            {
              "name": "OtpInput",
              "relationship": "alternative",
              "reason": "Use for fixed-length one-time codes rather than passwords"
            }
          ],
          "a11yRationale": "The reveal control is a real <button> whose aria-label switches between reveal/hide so screen-reader users know the current masking state; toggling swaps the input type between password and text so the platform handles masking natively.",
          "content": {
            "tone": "Concise control labels",
            "notes": "reveal/hide and strength labels default from the i18n catalog; override via labels for custom copy or locale"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Field, toggle, and strength-meter styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "labels",
              "level": "flexible",
              "note": "reveal, hide, and strengthLabel can be overridden via the labels prop"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "popover",
      "type": "component",
      "description": "Anchored floating panel built on CSS Anchor Positioning + Popover API",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/popover/popover.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/popover/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/popover/use-popover.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/popover/popover.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/popover/popover.meta.ts"
      ],
      "fileHashes": {
        "popover.tsx": "sha256-76fdd1c31267f9ee83478806dc32ca5642d874895cabc7f95ab69b6a32640520",
        "index.ts": "sha256-2e50daeeb9dfa03e21cd5e7b890e55fc9db4054df101df845da6fa00ee285822",
        "use-popover.ts": "sha256-da5ba1569bbc6b565b50eca67b8f7088e6b8ef2bed99a8eba96b8010706dfa4f",
        "popover.module.css": "sha256-cd6827d53118b367cb7653d1376894ea7ccdd3e10bccfdc8296ddf779f191eb1",
        "popover.meta.ts": "sha256-64e7433c3ad7a29c7a0f6f456740864cfcf20250365326189388e7fd8e061df7"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["Popper", "popper"],
      "tags": ["overlay", "floating", "anchor", "popover"],
      "meta": {
        "name": "Popover",
        "description": "Anchored floating panel built on CSS Anchor Positioning + Popover API",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "content",
            "role": "dialog",
            "data": {
              "data-state": ["open", "closed"]
            },
            "children": ["$slot", "trigger"]
          },
          "parts": {
            "trigger": {
              "element": ["button", "a"],
              "aria": ["aria-expanded", "aria-haspopup"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "A PopoverTrigger and PopoverContent pair.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onOpenChange",
            "description": "Called with the next open state when it changes.",
            "type": "(open: boolean) => void",
            "required": false
          },
          {
            "name": "placement",
            "description": "Side of the trigger the panel opens on: `bottom`, `top`, `left` or `right`.",
            "type": "'top' | 'bottom' | 'left' | 'right'",
            "required": false,
            "default": "bottom"
          },
          {
            "name": "offset",
            "description": "Distance (px) between the trigger and the panel.",
            "type": "number",
            "required": false,
            "default": "4"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-md",
          "--cascivo-shadow-md",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "dialog",
          "wcag": "2.2-AA",
          "keyboard": ["Escape"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Popover>\n  <PopoverTrigger>Open settings</PopoverTrigger>\n  <PopoverContent>\n    <form>…</form>\n  </PopoverContent>\n</Popover>"
          },
          {
            "title": "Controlled with placement",
            "code": "<Popover open={isOpen} onOpenChange={setIsOpen} placement=\"top\">\n  <PopoverTrigger>Filters</PopoverTrigger>\n  <PopoverContent><FilterForm /></PopoverContent>\n</Popover>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["overlay", "floating", "anchor", "popover"],
        "intent": {
          "whenToUse": [
            "Showing rich, interactive content anchored to a trigger that the user must explicitly open by clicking",
            "Lightweight transient panels (forms, pickers, detail cards) that do not need to block the rest of the page"
          ],
          "whenNotToUse": [
            "A short, non-interactive text hint on hover/focus — use Tooltip",
            "A task that must capture focus and block interaction with the page — use Modal",
            "Preview content revealed on hover without a click — use HoverCard"
          ],
          "antiPatterns": [
            {
              "bad": "<Tooltip content={<form>...</form>}>",
              "good": "<Popover><PopoverTrigger>…</PopoverTrigger><PopoverContent><form>…</form></PopoverContent></Popover>",
              "why": "Tooltips are non-interactive and hover-driven; interactive content needs a click-opened dialog popover that users can move focus into"
            }
          ],
          "related": [
            {
              "name": "Tooltip",
              "relationship": "alternative",
              "reason": "Use for brief non-interactive hints, not interactive content"
            },
            {
              "name": "HoverCard",
              "relationship": "alternative",
              "reason": "Use when the panel should open on hover rather than click"
            },
            {
              "name": "Modal",
              "relationship": "alternative",
              "reason": "Use when the overlay must be blocking and focus-trapping"
            }
          ],
          "a11yRationale": "The trigger is a real <button> with aria-haspopup=\"dialog\" and aria-expanded reflecting open state, and the panel uses role=\"dialog\" via the native Popover API so Escape-to-close and light-dismiss come from the platform rather than custom handlers.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Panel styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "content",
              "level": "flexible",
              "note": "Trigger and panel content are arbitrary children supplied by the consumer"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "progress",
      "type": "component",
      "description": "Horizontal bar showing the completion progress of a tracked operation",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress/progress.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress/progress.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress/progress.meta.ts"
      ],
      "fileHashes": {
        "progress.tsx": "sha256-6f434b04ccf4a22c755f47e25d5c1306a2fcc5d800e99689141a79cb94028496",
        "index.ts": "sha256-996541f1ccb91118a11a1d6aee31abf7c382d6fa21e3008d94f58ad2e6473b95",
        "progress.module.css": "sha256-3d80445204e63121cb49b8ff35eccdfc4fc5115d89afea8fea325df51960a9ed",
        "progress.meta.ts": "sha256-f8c4cd77e4734580f46ee80e35578c4ca0c85e4fbf57cbdc6344af03deefc756"
      },
      "dependencies": [],
      "tags": ["progress", "loading", "upload", "bar"],
      "meta": {
        "name": "Progress",
        "description": "Horizontal bar showing the completion progress of a tracked operation",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "progress",
            "data": {
              "data-variant": ["primary", "info", "success", "warning", "error"],
              "data-size": ["sm", "md", "lg"],
              "data-state": ["determinate", "indeterminate"]
            },
            "aria": ["aria-label", "aria-describedby"],
            "emit": "manual"
          }
        },
        "states": ["determinate", "indeterminate"],
        "variants": ["primary", "info", "success", "warning", "error"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Invisible accessible name. The catalog convention; the DOM spelling `aria-label` is accepted as an alias so either guess compiles.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-label",
            "type": "string",
            "required": false,
            "description": "Accessible label when no visible label is present."
          },
          {
            "name": "aria-describedby",
            "type": "string",
            "required": false,
            "description": "Id of an element describing the progress bar."
          },
          {
            "name": "value",
            "type": "number",
            "required": false,
            "description": "0–100. Omit for indeterminate state."
          },
          {
            "name": "variant",
            "description": "Colour of the fill: `primary` (the accent) or a severity tone — `info`, `success`, `warning`, `error`.",
            "type": "'primary' | 'info' | 'success' | 'warning' | 'error'",
            "required": false,
            "default": "primary"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          }
        ],
        "tokens": [
          "--cascivo-color-surface-2",
          "--cascivo-color-primary",
          "--cascivo-color-info",
          "--cascivo-color-success",
          "--cascivo-color-warning",
          "--cascivo-color-error",
          "--cascivo-color-accent",
          "--cascivo-radius-full",
          "--cascivo-ease-out"
        ],
        "accessibility": {
          "role": "progressbar",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Determinate",
            "code": "<Progress value={65} />"
          },
          {
            "title": "Indeterminate",
            "code": "<Progress aria-label=\"Loading…\" />"
          },
          {
            "title": "Success variant",
            "code": "<Progress value={100} variant=\"success\" />"
          },
          {
            "title": "Small",
            "code": "<Progress value={40} size=\"sm\" />"
          }
        ],
        "dependencies": [],
        "tags": ["progress", "loading", "upload", "bar"],
        "intent": {
          "whenToUse": [
            "Tracked operations with a known total (file uploads, multi-step imports)",
            "Showing completion percentage of a long-running task"
          ],
          "whenNotToUse": [
            "Unbounded waits of unknown duration — use Spinner",
            "Single-action button loading state — use the button's own loading prop"
          ],
          "antiPatterns": [
            {
              "bad": "<Progress />",
              "good": "<Progress aria-label=\"Uploading file…\" />",
              "why": "Indeterminate progress bars must have an aria-label so screen readers can announce what is loading"
            }
          ],
          "related": [
            {
              "name": "Spinner",
              "relationship": "alternative",
              "reason": "Spinner is for unbounded waits; Progress is for operations with a known end point"
            },
            {
              "name": "ProgressBar",
              "relationship": "alternative",
              "reason": "ProgressBar is the richer compound variant with label and percentage display"
            }
          ],
          "a11yRationale": "Uses the native <progress> element which maps to role=\"progressbar\" automatically; aria-label or aria-labelledby is required for indeterminate state",
          "flexibility": [
            {
              "area": "variant",
              "level": "flexible",
              "note": "Choose the variant that matches the semantic meaning of the operation"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "progress-bar",
      "type": "component",
      "description": "Shows determinate or indeterminate progress of a task",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-bar/progress-bar.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-bar/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-bar/progress-bar.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-bar/progress-bar.meta.ts"
      ],
      "fileHashes": {
        "progress-bar.tsx": "sha256-0096f48d19b1672fe725b22371810d0a5d56c119b6b3702a9a72da1f9218db68",
        "index.ts": "sha256-2146ee69317ae7761d5f42bb4e299c9e4151d1f8fc944eeae3d7abdd1a838a93",
        "progress-bar.module.css": "sha256-613ed4d2f987bea0edb20bb21bff2aed87bc6d7be2837b411e0226c065d316f0",
        "progress-bar.meta.ts": "sha256-3104ebb1a11da93d3f8d1ea3380c095b670af31b03875caa5ba1624677ff7b2a"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["progress", "loading", "status", "feedback"],
      "meta": {
        "name": "ProgressBar",
        "description": "Shows determinate or indeterminate progress of a task",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "progress",
            "element": "div",
            "data": {
              "data-status": ["active", "success", "error"],
              "data-size": ["sm", "md"],
              "data-state": ["indeterminate"]
            },
            "children": ["label", "track", "helper"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "span",
              "children": ["$text", "glyph"],
              "when": "label"
            },
            "glyph": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"],
              "when": "status"
            },
            "track": {
              "element": "div",
              "role": "progressbar",
              "aria": ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby"],
              "children": ["fill"]
            },
            "fill": {
              "element": "div"
            },
            "helper": {
              "element": "span",
              "children": ["$text"],
              "when": "helperText"
            }
          }
        },
        "states": ["indeterminate"],
        "variants": ["active", "success", "error"],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "value",
            "type": "number",
            "required": false,
            "description": "Current value from 0 to max; omit for an indeterminate bar"
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false,
            "default": "100"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "string",
            "required": false,
            "description": "Visible label above the track, wired via aria-labelledby"
          },
          {
            "name": "helperText",
            "description": "Supplementary text shown with the progress bar.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "status",
            "type": "'active' | 'success' | 'error'",
            "required": false,
            "default": "active",
            "description": "success/error tint the fill and show a glyph next to the label"
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-success",
          "--cascivo-color-destructive",
          "--cascivo-color-border",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-radius-full",
          "--cascivo-motion-enter"
        ],
        "accessibility": {
          "role": "progressbar",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Determinate",
            "code": "<ProgressBar value={60} label=\"Uploading\" />"
          },
          {
            "title": "Indeterminate",
            "code": "<ProgressBar label=\"Processing\" />"
          },
          {
            "title": "Success",
            "code": "<ProgressBar value={100} status=\"success\" label=\"Upload complete\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["progress", "loading", "status", "feedback"],
        "intent": {
          "whenToUse": [
            "Showing linear determinate progress of a task with a known percentage (value)",
            "Indicating ongoing work of unknown duration (omit value for indeterminate)",
            "Reflecting success/error outcome of a tracked operation (status)"
          ],
          "whenNotToUse": [
            "A compact circular indicator is preferred — use ProgressCircle",
            "Pure indeterminate spinning with no track — use Spinner",
            "Stepping through a multi-step flow — use ProgressIndicator"
          ],
          "antiPatterns": [
            {
              "bad": "A determinate ProgressBar with a faked, jumping value",
              "good": "Omit value for an indeterminate bar when real progress is unknown",
              "why": "A determinate bar implies a meaningful percentage; faking it misleads the user"
            }
          ],
          "related": [
            {
              "name": "ProgressCircle",
              "relationship": "alternative",
              "reason": "Circular form for compact determinate progress"
            },
            {
              "name": "Spinner",
              "relationship": "alternative",
              "reason": "Spinner for indeterminate work with no track"
            }
          ],
          "a11yRationale": "role=\"progressbar\" with value/max exposes completion to assistive tech; the label is wired via aria-labelledby and success/error states add a glyph so outcome is not color-only",
          "flexibility": [
            {
              "area": "determinate vs indeterminate",
              "level": "flexible",
              "note": "Presence of value selects the mode"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Fill and status colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "progress-circle",
      "type": "component",
      "description": "Circular determinate progress indicator rendered as an SVG arc",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-circle/progress-circle.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-circle/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-circle/progress-circle.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-circle/progress-circle.meta.ts"
      ],
      "fileHashes": {
        "progress-circle.tsx": "sha256-426ccbdc6408008614855ea29b371734b0903d40ab01c8c2c4b0523468820e49",
        "index.ts": "sha256-c41b61dea3e5c3aee1a3c70df4bd0753d5a9216a1f51051b85d200a17fa0ca4d",
        "progress-circle.module.css": "sha256-e7530cc1cf44224f9e75c7723a65bb22048f89a282ad5920afd4b176e368ae62",
        "progress-circle.meta.ts": "sha256-215c17d847be1e0238d563e26aee6b2d708be5c240ef3342e1b66e852efb2aef"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["progress", "loading", "circle", "feedback"],
      "meta": {
        "name": "ProgressCircle",
        "description": "Circular determinate progress indicator rendered as an SVG arc",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "progressCircle",
            "element": "div",
            "data": {
              "data-size": ["sm", "md", "lg"]
            },
            "role": "progressbar",
            "aria": ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"],
            "children": ["svg", "value"],
            "emit": "manual"
          },
          "parts": {
            "svg": {
              "element": "svg",
              "aria": ["aria-hidden"],
              "children": ["track", "fill"]
            },
            "track": {
              "element": "circle"
            },
            "fill": {
              "element": "circle"
            },
            "value": {
              "element": "span",
              "children": ["$text"],
              "when": "showValue"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "value",
            "type": "number",
            "required": true,
            "description": "Current value from 0 to max — clamped"
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false,
            "default": "100"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "showValue",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Renders the rounded percentage in the center — pairs best with md and lg"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible name announced by screen readers"
          }
        ],
        "tokens": ["--cascivo-color-border", "--cascivo-color-accent", "--cascivo-color-text"],
        "accessibility": {
          "role": "progressbar",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<ProgressCircle value={40} label=\"Loading\" />"
          },
          {
            "title": "With value",
            "code": "<ProgressCircle value={72} showValue size=\"lg\" label=\"Upload progress\" />"
          },
          {
            "title": "Custom max",
            "code": "<ProgressCircle value={3} max={8} label=\"Steps completed\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["progress", "loading", "circle", "feedback"],
        "intent": {
          "whenToUse": [
            "Showing determinate progress compactly as a circular arc",
            "Displaying a percentage in a small footprint (showValue)",
            "Tracking completion against a custom maximum (max)"
          ],
          "whenNotToUse": [
            "Indeterminate work with no known value — use Spinner",
            "Full-width linear progress with a label and helper text — use ProgressBar",
            "Multi-step flows — use ProgressIndicator"
          ],
          "antiPatterns": [
            {
              "bad": "Using ProgressCircle for indeterminate loading",
              "good": "<Spinner> for indeterminate states",
              "why": "ProgressCircle requires a determinate value; it cannot express unknown progress"
            }
          ],
          "related": [
            {
              "name": "ProgressBar",
              "relationship": "alternative",
              "reason": "Linear form with labels and indeterminate support"
            },
            {
              "name": "Spinner",
              "relationship": "alternative",
              "reason": "Indeterminate alternative when value is unknown"
            }
          ],
          "a11yRationale": "role=\"progressbar\" with value/max conveys completion to assistive tech; the label prop supplies an accessible name since the SVG arc alone carries no text",
          "flexibility": [
            {
              "area": "size and showValue",
              "level": "flexible",
              "note": "showValue pairs best with md/lg sizes"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Arc and track colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "progress-indicator",
      "type": "component",
      "description": "Shows progress through the steps of a multi-step flow",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-indicator/progress-indicator.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-indicator/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-indicator/progress-indicator.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/progress-indicator/progress-indicator.meta.ts"
      ],
      "fileHashes": {
        "progress-indicator.tsx": "sha256-f0e0ee31ae2ba2d24df87274f61ef2b52d2ee3c230f185ed6d8dc2990585b02e",
        "index.ts": "sha256-6e63e10ef91c410f4652f5dcde1e1ba2a8d3e782134bd6b17f767ad33e441082",
        "progress-indicator.module.css": "sha256-3c1cf905db1bef926236938c55ec6406794238bdb5439dd8049c01fe12bdb0f6",
        "progress-indicator.meta.ts": "sha256-bf6e15e8728a0ed354ba84065bbb8d7215cff6b542502a99d5dcfc4304972dbf"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["steps", "wizard", "stepper", "progress", "navigation"],
      "meta": {
        "name": "ProgressIndicator",
        "description": "Shows progress through the steps of a multi-step flow",
        "category": "navigation",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "indicator",
            "element": "ol",
            "data": {
              "data-orientation": ["horizontal", "vertical"]
            },
            "children": ["step"],
            "emit": "manual"
          },
          "parts": {
            "step": {
              "element": "li",
              "data": {
                "data-status": ["complete", "current", "incomplete"]
              },
              "aria": ["aria-current"],
              "children": ["marker", "text"]
            },
            "marker": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "text": {
              "element": "span",
              "children": ["label", "description"]
            },
            "label": {
              "element": "span",
              "children": ["$text"]
            },
            "description": {
              "element": "span",
              "children": ["$text"],
              "when": "description"
            }
          }
        },
        "states": ["complete", "current", "incomplete"],
        "variants": ["horizontal", "vertical"],
        "sizes": [],
        "props": [
          {
            "name": "steps",
            "type": "{ label: string; description?: string }[]",
            "required": true,
            "description": "Ordered list of steps"
          },
          {
            "name": "currentIndex",
            "type": "number",
            "required": true,
            "description": "Index of the current step (0-based)"
          },
          {
            "name": "vertical",
            "description": "When true, lays the steps out vertically.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-accent",
          "--cascivo-color-accent-subtle",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-text-subtle",
          "--cascivo-color-text-on-accent",
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-radius-full"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Horizontal",
            "code": "<ProgressIndicator steps={[{ label: 'Cart' }, { label: 'Shipping' }, { label: 'Payment' }]} currentIndex={1} />"
          },
          {
            "title": "Vertical with descriptions",
            "code": "<ProgressIndicator vertical steps={[{ label: 'Account', description: 'Your details' }, { label: 'Confirm' }]} currentIndex={0} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["steps", "wizard", "stepper", "progress", "navigation"],
        "intent": {
          "whenToUse": [
            "Showing progress through the discrete steps of a multi-step flow (wizard, checkout)",
            "Communicating which step is complete, current, and upcoming",
            "Laying out steps horizontally or vertically with optional descriptions"
          ],
          "whenNotToUse": [
            "Continuous task progress with a percentage — use ProgressBar or ProgressCircle",
            "Indeterminate loading — use Spinner"
          ],
          "antiPatterns": [
            {
              "bad": "Using ProgressIndicator to show a download percentage",
              "good": "<ProgressBar value={pct}> for continuous progress",
              "why": "ProgressIndicator models discrete steps, not a continuous quantity"
            }
          ],
          "related": [
            {
              "name": "ProgressBar",
              "relationship": "alternative",
              "reason": "ProgressBar shows continuous progress; this shows discrete steps"
            }
          ],
          "a11yRationale": "role=\"list\" structures the steps in order; the current step is conveyed as text/state rather than color alone, so screen-reader users know where they are in the flow",
          "content": {
            "tone": "Short step labels; descriptions add detail",
            "notes": "Order matters — steps are read sequentially"
          },
          "flexibility": [
            {
              "area": "orientation",
              "level": "flexible",
              "note": "horizontal or vertical to fit the layout"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Step and connector colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "prompt-suggestions",
      "type": "component",
      "description": "Starter prompts as a wrap of pill buttons — the \"Try asking…\" row of an empty AI chat",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prompt-suggestions/prompt-suggestions.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prompt-suggestions/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prompt-suggestions/prompt-suggestions.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prompt-suggestions/prompt-suggestions.meta.ts"
      ],
      "fileHashes": {
        "prompt-suggestions.tsx": "sha256-d51ab685058a45cdae9c6f658070ccdd90ed3094c2d7d9b130b61f637355e84d",
        "index.ts": "sha256-870275e4199c791aaee6ee38f1bd8b894caa24a88ad12d9a14779b921831f2d3",
        "prompt-suggestions.module.css": "sha256-7685b53f86fca115916cdcdd510a667c7e0ae82e0171f464d873234d4afea04c",
        "prompt-suggestions.meta.ts": "sha256-ad18cb6eb76eb646afa7cda4707a8c7e8704668137feecfa4369d3d9beb4cd96"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Suggestions", "PromptStarters", "Prompts", "QuickReplies"],
      "tags": ["ai", "chat", "prompts", "suggestions", "starters", "chips"],
      "meta": {
        "name": "PromptSuggestions",
        "description": "Starter prompts as a wrap of pill buttons — the \"Try asking…\" row of an empty AI chat",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "suggestions",
            "role": "group",
            "aria": ["aria-label"],
            "children": ["chip"],
            "emit": "manual"
          },
          "parts": {
            "chip": {
              "element": "button",
              "children": ["$text"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "description": "The prompts, as the exact text each one sends.",
            "type": "string[]",
            "required": true
          },
          {
            "name": "onSelect",
            "description": "Called with the chosen prompt — send it, or put it in the composer.",
            "type": "(value: string) => void",
            "required": true
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n) — `group` names the group for screen readers.",
            "type": "{ group?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-color-ai-border",
          "--cascivo-color-ai-subtle",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space"],
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Starter prompts",
            "code": "<PromptSuggestions\n  items={['Summarise this week’s tickets', 'Draft a release note', 'What changed in v2?']}\n  onSelect={() => {}}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["ai", "chat", "prompts", "suggestions", "starters", "chips"],
        "intent": {
          "whenToUse": [
            "An empty conversation: offer a few concrete things to ask",
            "Follow-up suggestions under an assistant reply"
          ],
          "whenNotToUse": [
            "Filtering or selecting values — use ToggleGroup, Tag or SegmentedControl",
            "Autocomplete while typing — use Combobox"
          ],
          "antiPatterns": [
            {
              "bad": "Ten generic prompts (\"Ask me anything\")",
              "good": "Three or four specific, tappable prompts",
              "why": "Specific starters show what the assistant can actually do; a long generic list is skipped"
            }
          ],
          "related": [
            {
              "name": "MessageActions",
              "relationship": "pairs-with",
              "reason": "Both sit around an assistant message"
            },
            {
              "name": "Tag",
              "relationship": "alternative",
              "reason": "Tag is for labels and filters, not for sending a prompt"
            }
          ],
          "a11yRationale": "A named group of real buttons whose names are the prompt text, operable with Tab and Enter/Space. Pills meet the coarse-pointer target size and keep a visible focus ring",
          "content": {
            "tone": "Write each prompt as the person would type it, in the first person"
          },
          "flexibility": [
            {
              "area": "what selecting does",
              "level": "flexible",
              "note": "Send immediately, or fill the composer"
            },
            {
              "area": "item text",
              "level": "strict",
              "note": "The visible text is the prompt; do not show one thing and send another"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "prose",
      "type": "component",
      "description": "Wrapper that styles raw descendant HTML — headings, lists, code, quotes, tables",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prose/prose.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prose/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prose/prose.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/prose/prose.meta.ts"
      ],
      "fileHashes": {
        "prose.tsx": "sha256-ef323751d8e379be4084e50490b69ad2a84adf47a8492be06cb84069e9f22cae",
        "index.ts": "sha256-899110db1ed6609ee8c1ee9ad8558969c75c1b0a71ecbfe3661b0d99e78df5e2",
        "prose.module.css": "sha256-9c24ee67e3d05bf22d498c12ed55ae33de2146763e2381974a26208aebeabfb8",
        "prose.meta.ts": "sha256-acb8c037462ce8b2023810a129ca11e60fd08ea078851c3b5a500951f670dada"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["typography", "prose", "content", "markdown", "article"],
      "meta": {
        "name": "Prose",
        "description": "Wrapper that styles raw descendant HTML — headings, lists, code, quotes, tables",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "children": ["$slot"],
            "emit": "auto"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "Authored flow content (headings, paragraphs, lists, code, tables) to style.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "dangerouslySetInnerHTML",
            "description": "Rendered HTML you do not control (CMS, markdown pipelines). Sanitize first.",
            "type": "{ __html: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-accent-text-hover",
          "--cascivo-font-sans",
          "--cascivo-font-mono",
          "--cascivo-font-semibold",
          "--cascivo-leading-tight",
          "--cascivo-leading-relaxed",
          "--cascivo-tracking-tight",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-radius-indicator",
          "--cascivo-radius-surface"
        ],
        "accessibility": {
          "role": "generic",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Authored content",
            "code": "<Prose><h2>Install</h2><p>Run <code>npx cascivo init</code>.</p></Prose>"
          },
          {
            "title": "Rendered markdown",
            "code": "<Prose dangerouslySetInnerHTML={{ __html: html }} />",
            "description": "The use case: HTML you do not control (CMS, markdown pipelines)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["typography", "prose", "content", "markdown", "article"],
        "intent": {
          "whenToUse": [
            "Styling long-form authored content (articles, docs, CMS output)",
            "Applying readable typography to raw HTML you do not control (markdown pipelines)",
            "Getting consistent spacing for headings, lists, code, and quotes in one wrapper"
          ],
          "whenNotToUse": [
            "Single typographic elements in app UI — use Heading, Text, or List directly",
            "Interactive component layouts — Prose only styles flow content"
          ],
          "antiPatterns": [
            {
              "bad": "Wrapping app UI (buttons, forms) in <Prose> for spacing",
              "good": "Use layout primitives; reserve Prose for authored document content",
              "why": "Prose restyles all descendant HTML, which clobbers component styling and intent"
            }
          ],
          "related": [
            {
              "name": "Heading",
              "relationship": "alternative",
              "reason": "Use Heading/Text directly in app UI; Prose handles authored content"
            }
          ],
          "a11yRationale": "Adds no roles of its own — it styles descendant native elements, so the document semantics of the underlying HTML (headings, lists, code) are preserved for assistive tech",
          "content": {
            "contentPrimitive": true,
            "tone": "Long-form editorial; the wrapper does not constrain voice",
            "notes": "Source HTML should be sanitized before dangerouslySetInnerHTML"
          },
          "flexibility": [
            {
              "area": "source HTML",
              "level": "flexible",
              "note": "Accepts authored children or rendered markup"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "All typography and surface styling resolves to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "pull-to-refresh",
      "type": "component",
      "description": "Wraps a scrollable region and triggers a refresh when pulled down past a threshold at the top",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pull-to-refresh/pull-to-refresh.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pull-to-refresh/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pull-to-refresh/pull-to-refresh.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/pull-to-refresh/pull-to-refresh.meta.ts"
      ],
      "fileHashes": {
        "pull-to-refresh.tsx": "sha256-0f2abef6f4e1760b3a9ef8e5e27e3ad2747780b5cbe890b2c7dfa8d6ad2a7f81",
        "index.ts": "sha256-334002537933b435a4aeac9c766da60baa988c30219f6ffc25eaee21ea7fc7df",
        "pull-to-refresh.module.css": "sha256-b5fed18a205afb7b9e0b8c30acfaff1f9214b56afa4346413fd9e1422cc3d362",
        "pull-to-refresh.meta.ts": "sha256-a9cb8ebadac2470cf56d01d1caf45912ff533a8b159984fe49f52e5b46b93740"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["feedback", "pull-to-refresh", "mobile", "gesture", "scroll", "refresh"],
      "meta": {
        "name": "PullToRefresh",
        "description": "Wraps a scrollable region and triggers a refresh when pulled down past a threshold at the top",
        "category": "feedback",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["indicator", "srOnly", "viewport"]
          },
          "parts": {
            "indicator": {
              "element": "div",
              "data": {
                "data-dragging": "boolean"
              },
              "children": ["arrow", "@spinner"]
            },
            "arrow": {
              "element": "svg",
              "data": {
                "data-ready": "boolean"
              },
              "aria": ["aria-hidden"]
            },
            "srOnly": {
              "element": "span",
              "role": "status",
              "aria": ["aria-live"],
              "children": ["$text"]
            },
            "viewport": {
              "element": "div",
              "data": {
                "data-dragging": "boolean"
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["idle", "pulling", "ready", "refreshing"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "onRefresh",
            "type": "() => Promise<unknown> | unknown",
            "required": true,
            "description": "Called when the pull passes the threshold; the spinner shows until it settles"
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "threshold",
            "description": "Pull distance (px) required to trigger a refresh.",
            "type": "number",
            "required": false,
            "default": "64"
          },
          {
            "name": "disabled",
            "default": "false",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ pull?: string; release?: string; refreshing?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-color-text-muted", "--cascivo-motion-enter"],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<PullToRefresh onRefresh={() => refetch()}>\n  <FeedList items={items} />\n</PullToRefresh>",
            "description": "The spinner shows until the returned promise settles."
          },
          {
            "title": "Custom threshold",
            "code": "<PullToRefresh onRefresh={loadLatest} threshold={96}>\n  <MessageList />\n</PullToRefresh>",
            "description": "Requires a longer pull before a refresh is triggered."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["spinner"],
        "tags": ["feedback", "pull-to-refresh", "mobile", "gesture", "scroll", "refresh"],
        "intent": {
          "whenToUse": [
            "A scrollable list or feed on touch devices that the user refreshes by pulling down from the top",
            "Mobile screens where a dedicated refresh button would be redundant or out of reach",
            "Content that updates on demand and benefits from a familiar pull gesture"
          ],
          "whenNotToUse": [
            "Desktop, pointer-first surfaces — provide an explicit Refresh button",
            "Content that auto-refreshes or paginates on scroll — use infinite scroll instead",
            "Regions that are not the primary scroll container of the screen"
          ],
          "antiPatterns": [
            {
              "bad": "Wrapping a non-scrolling element and relying on pull as the only refresh path",
              "good": "Wrap the scroll container and also expose a Refresh control for non-touch users",
              "why": "Pull-to-refresh is touch-only; keyboard and pointer users need an explicit control"
            }
          ],
          "related": [
            {
              "name": "Spinner",
              "relationship": "contains",
              "reason": "Shows the Spinner while the refresh promise settles"
            },
            {
              "name": "ScrollArea",
              "relationship": "pairs-with",
              "reason": "Wraps a scrollable region; pair with the app’s scroll container"
            }
          ],
          "a11yRationale": "The gesture is a touch-only enhancement: it arms only at scrollTop 0 and uses touch-action/overscroll containment so normal scrolling and keyboard use are unaffected. A polite aria-live status region announces the pull, release, and refreshing states (strings from the i18n catalog), and the Spinner exposes role=\"status\" while loading. Because pull-to-refresh cannot be performed without a pointer, apps should also offer an explicit refresh control for keyboard users.",
          "flexibility": [
            {
              "area": "threshold",
              "level": "flexible",
              "note": "Pull distance required to trigger is configurable (default 64px)"
            },
            {
              "area": "onRefresh",
              "level": "flexible",
              "note": "May return a promise; the spinner persists until it settles"
            }
          ]
        }
      },
      "registryDependencies": ["spinner"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "qr-code",
      "type": "component",
      "description": "Encodes a URL or short text into a scannable SVG QR code",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/qr-code/qr-code.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/qr-code/encode.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/qr-code/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/qr-code/qr-code.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/qr-code/qr-code.meta.ts"
      ],
      "fileHashes": {
        "qr-code.tsx": "sha256-5f374e1391799cd2f37ad5f0d1e2c14febb5cf3fcea890adf86cfc015a8ae3d1",
        "encode.ts": "sha256-0b3c1ed5123bb178b9a580917b8bbe5cc01b5f00856a3b50f2e3c2ac7795fc86",
        "index.ts": "sha256-0ec0e504aca967fbf931224a7cb3e87e5976b73302561dd54ddacc3043c3c941",
        "qr-code.module.css": "sha256-8805c704330aebfc339530698a01899025c42998d1fcb428fb222c7a1bcf4ec3",
        "qr-code.meta.ts": "sha256-1f348b45e69ca568134657dfb4bb4050e42cc53abec56ef102d7f1eb9170af04"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["qr", "qr-code", "barcode", "encode", "display"],
      "meta": {
        "name": "QrCode",
        "description": "Encodes a URL or short text into a scannable SVG QR code",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "qrCode",
            "element": "div",
            "children": ["svg"],
            "emit": "manual"
          },
          "parts": {
            "svg": {
              "element": "svg",
              "role": "img",
              "aria": ["aria-label"]
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "string",
            "required": true,
            "description": "Text or URL to encode"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "number",
            "required": false,
            "default": "128"
          },
          {
            "name": "errorCorrection",
            "type": "'L' | 'M' | 'Q' | 'H'",
            "required": false,
            "default": "M",
            "description": "Higher levels tolerate more damage but hold less data"
          },
          {
            "name": "radius",
            "type": "string",
            "required": false,
            "description": "CSS length rounding the corners"
          },
          {
            "name": "fill",
            "description": "Foreground color of the QR modules.",
            "type": "string",
            "required": false,
            "default": "currentColor"
          },
          {
            "name": "background",
            "description": "Background color behind the QR code.",
            "type": "string",
            "required": false,
            "default": "transparent"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Accessible name for the QR image. Not rendered — screen readers only.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-color-text"],
        "accessibility": {
          "role": "img",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "URL",
            "code": "<QrCode value=\"https://cascivo.dev\" />"
          },
          {
            "title": "High error correction",
            "code": "<QrCode value=\"https://cascivo.dev\" errorCorrection=\"H\" size={200} />"
          },
          {
            "title": "Custom colors",
            "code": "<QrCode value=\"cascivo\" fill=\"var(--cascivo-color-accent)\" background=\"var(--cascivo-color-surface)\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["qr", "qr-code", "barcode", "encode", "display"],
        "intent": {
          "whenToUse": [
            "Letting users scan a URL, contact, or short token with a phone camera",
            "Bridging print or screen to a digital destination",
            "Sharing a link where typing it would be error-prone"
          ],
          "whenNotToUse": [
            "Encoding long or sensitive payloads — QR codes are public and capacity-limited",
            "Where a plain, copyable link or button is more accessible"
          ],
          "antiPatterns": [
            {
              "bad": "<QrCode value={veryLongString} />",
              "good": "<QrCode value=\"https://cascivo.dev/s/abc\" />",
              "why": "Long payloads force a dense, hard-to-scan code; encode a short URL that redirects instead"
            }
          ],
          "related": [
            {
              "name": "CopyButton",
              "relationship": "pairs-with",
              "reason": "Offer a copyable link alongside the QR code for non-camera contexts"
            }
          ],
          "a11yRationale": "Rendered as role=\"img\" with an accessible label so screen-reader users know a QR code is present; the underlying link should also be available as text since a QR code is not operable by assistive tech",
          "flexibility": [
            {
              "area": "errorCorrection",
              "level": "flexible",
              "note": "Raise to Q/H when the code may be printed small or partially obscured"
            },
            {
              "area": "colors",
              "level": "flexible",
              "note": "Defaults to currentColor; keep sufficient contrast between fill and background to stay scannable"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "radial-progress",
      "type": "component",
      "description": "Circular progress indicator using conic-gradient, with percentage label and variant colors",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radial-progress/radial-progress.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radial-progress/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radial-progress/radial-progress.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radial-progress/radial-progress.meta.ts"
      ],
      "fileHashes": {
        "radial-progress.tsx": "sha256-35c638284a9e80993e17eb179d2ffb34f074ed82544399014e03b059b0cb0f78",
        "index.ts": "sha256-72ec18fe41ebd9fd292d92da7fa3010ce4dd7404cc5de6d91898e4198c253137",
        "radial-progress.module.css": "sha256-14b34c799619dbe66ace841bb48cd9bdbb90b8976601b3ab45aa89c8b1f5fdc4",
        "radial-progress.meta.ts": "sha256-4203201a140e769bcb90e020f6e6dbd3cc8db0c775f6b68e202fc56d58c0c842"
      },
      "dependencies": [],
      "tags": ["progress", "circular", "gauge", "meter", "kpi", "dashboard"],
      "meta": {
        "name": "RadialProgress",
        "description": "Circular progress indicator using conic-gradient, with percentage label and variant colors",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "radialProgress",
            "element": "div",
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-variant": ["primary", "info", "success", "warning", "error"]
            },
            "role": "progressbar",
            "aria": [
              "aria-valuenow",
              "aria-valuemin",
              "aria-valuemax",
              "aria-labelledby",
              "aria-label"
            ],
            "children": ["label"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "span",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": ["primary", "info", "success", "warning", "error"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Invisible accessible name. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling."
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "number",
            "required": true
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "variant",
            "description": "Colour of the ring: `primary` (the accent) or a severity tone — `info`, `success`, `warning`, `error`.",
            "type": "'primary' | 'info' | 'success' | 'warning' | 'error'",
            "required": false,
            "default": "primary"
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "aria-label",
            "description": "Accessible label used when no visible label is present.",
            "type": "string",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-primary",
          "--cascivo-color-info",
          "--cascivo-color-success",
          "--cascivo-color-warning",
          "--cascivo-color-error",
          "--cascivo-color-surface",
          "--cascivo-color-surface-2",
          "--cascivo-color-text",
          "--cascivo-radius-full"
        ],
        "accessibility": {
          "role": "progressbar",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<RadialProgress value={72} />",
            "description": "Primary color, md size, auto percentage label"
          },
          {
            "title": "Success large",
            "code": "<RadialProgress value={100} size=\"lg\" variant=\"success\" />",
            "description": "Completed state with success color at large size"
          },
          {
            "title": "Custom label",
            "code": "<RadialProgress value={45} variant=\"warning\">45 GB</RadialProgress>",
            "description": "Override the default percentage label with custom content"
          }
        ],
        "dependencies": [],
        "tags": ["progress", "circular", "gauge", "meter", "kpi", "dashboard"],
        "intent": {
          "whenToUse": [
            "Dashboard KPI metrics showing completion percentage",
            "Skill or profile completion meters",
            "Storage or quota usage displays"
          ],
          "whenNotToUse": [
            "Unknown-length operations where completion is not measurable — use Spinner",
            "Linear progress where a bar is more readable — use Progress or ProgressBar",
            "Comparing multiple values against each other — use a chart component"
          ],
          "antiPatterns": [
            {
              "bad": "<RadialProgress value={indeterminate} /> with a fake cycling value",
              "good": "<Spinner /> for indeterminate loading states",
              "why": "RadialProgress implies a known completion percentage; fake cycling breaks the semantic contract"
            }
          ],
          "related": [
            {
              "name": "Spinner",
              "relationship": "alternative",
              "reason": "Use for indeterminate loading where total duration is unknown"
            },
            {
              "name": "Progress",
              "relationship": "alternative",
              "reason": "Use when a horizontal bar is more appropriate for the layout"
            },
            {
              "name": "ProgressCircle",
              "relationship": "alternative",
              "reason": "Similar shape but ProgressCircle uses SVG stroke; RadialProgress uses CSS conic-gradient"
            }
          ],
          "a11yRationale": "Renders a div with role=\"progressbar\", aria-valuenow (clamped 0–100), aria-valuemin=0, aria-valuemax=100. Provide aria-label when no visible label describes the metric being measured.",
          "flexibility": [
            {
              "area": "label",
              "level": "flexible",
              "note": "Default is the percentage string; pass children to override with any content"
            },
            {
              "area": "color",
              "level": "strict",
              "note": "Color resolves through --cascivo-color-* semantic tokens via data-variant"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "radio",
      "type": "component",
      "description": "Single choice from a set, grouped with RadioGroup",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio/radio.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio/radio.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio/radio.meta.ts"
      ],
      "fileHashes": {
        "radio.tsx": "sha256-c543888383fb470d694be74b7fbd199eae1ac5e774e84ce081b1a0519d943f71",
        "index.ts": "sha256-74ae77781c111fa60b4e604790bf463fec60c4a91b03d48965aa3c054eb91e79",
        "radio.module.css": "sha256-505ca3d7c8e242dcb0f3a7149db2857f09e5dff3d712fb8dcf9badb21ca009ab",
        "radio.meta.ts": "sha256-0335ef8a2517d2b45cef356f34e918e26049135484ae7c185d70dd25289a9842"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "choice", "group"],
      "meta": {
        "name": "Radio",
        "description": "Single choice from a set, grouped with RadioGroup",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "label",
            "local": "wrapper",
            "data": {
              "data-disabled": [""]
            },
            "children": ["input", "control", "label", "group"],
            "emit": "manual"
          },
          "parts": {
            "input": {
              "element": "input",
              "aria": ["aria-label"]
            },
            "control": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "label": {
              "element": "span",
              "children": ["$text"],
              "when": "label"
            },
            "group": {
              "element": "div",
              "role": "radiogroup",
              "data": {
                "data-orientation": ["horizontal", "vertical"]
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["unchecked", "checked"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": true
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "name",
            "description": "Form field name shared by the radio group.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-accent",
          "--cascivo-color-border-strong",
          "--cascivo-color-text-on-accent",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "radio",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Space"],
          "apgPattern": "radio",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Group",
            "code": "<RadioGroup name=\"plan\" defaultValue=\"pro\"><Radio value=\"pro\" label=\"Pro\" /><Radio value=\"team\" label=\"Team\" /></RadioGroup>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "choice", "group"],
        "intent": {
          "whenToUse": [
            "Choosing exactly one option from a small, mutually exclusive set (roughly 2–6) where all options should stay visible",
            "Form fields where the choices need plain text labels and a familiar radio affordance"
          ],
          "whenNotToUse": [
            "Selecting one of many options where showing them all is impractical — use Select",
            "Each option needs a title plus description or richer layout — use RadioCard",
            "A compact inline switch between a few views or modes — use SegmentedControl"
          ],
          "antiPatterns": [
            {
              "bad": "Multiple <Checkbox> where only one may be selected",
              "good": "<RadioGroup name=\"plan\"><Radio value=\"pro\" label=\"Pro\" /><Radio value=\"team\" label=\"Team\" /></RadioGroup>",
              "why": "Checkboxes imply multi-select; a radio group communicates and enforces single-choice semantics to assistive tech"
            }
          ],
          "related": [
            {
              "name": "RadioCard",
              "relationship": "alternative",
              "reason": "Use when each option needs a title, description, or card layout"
            },
            {
              "name": "SegmentedControl",
              "relationship": "alternative",
              "reason": "Use for a compact inline single choice among a few options"
            },
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Use when there are too many options to show inline"
            }
          ],
          "a11yRationale": "Each Radio is a native <input type=\"radio\"> wrapped in a <label>, and RadioGroup applies role=\"radiogroup\" with a shared name so the browser provides roving arrow-key navigation, single-selection, and label association for free.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Control and label styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "option labels and orientation",
              "level": "flexible",
              "note": "Labels are free text and the group supports horizontal or vertical orientation"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "radio-card",
      "type": "component",
      "description": "Selectable card backed by a native radio input. Use RadioCardGroup for single-select groups.",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio-card/radio-card.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio-card/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio-card/radio-card.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/radio-card/radio-card.meta.ts"
      ],
      "fileHashes": {
        "radio-card.tsx": "sha256-cd2f0c9509267d5bac6a9528dea6e8ab188eb67181bdb2dbdb6b0b1c5a8d02b5",
        "index.ts": "sha256-e4dd5ba5cd66d32e10c4578c2972a64decc5ce79f4f78a78d9eefe00248d6eb9",
        "radio-card.module.css": "sha256-6a959571c4a30f1f92c68a3909bfd474e69ad3b4b2b47af28b3dbf1e3e1576c2",
        "radio-card.meta.ts": "sha256-f44852574c3e88d138d70641b3fcd86021190317abef2d03a8699686a5ff03d3"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["radio", "card", "selectable", "form"],
      "meta": {
        "name": "RadioCard",
        "description": "Selectable card backed by a native radio input. Use RadioCardGroup for single-select groups.",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "group",
            "role": "radiogroup",
            "aria": ["aria-label"],
            "children": ["card"],
            "emit": "manual"
          },
          "parts": {
            "card": {
              "element": "label",
              "data": {
                "data-disabled": [""]
              },
              "children": ["input", "glyph", "body"]
            },
            "input": {
              "element": "input"
            },
            "glyph": {
              "element": "span",
              "aria": ["aria-hidden"],
              "when": "!hideIndicator"
            },
            "body": {
              "element": "span",
              "children": ["title", "description"]
            },
            "title": {
              "element": "span",
              "children": ["$slot"]
            },
            "description": {
              "element": "span",
              "children": ["$slot"],
              "when": "description"
            }
          }
        },
        "states": ["default", "checked", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "hideIndicator",
            "type": "boolean",
            "required": false,
            "description": "Hide the radio indicator glyph, showing only the card content."
          },
          {
            "name": "value",
            "type": "string",
            "required": true,
            "description": "Radio value. On RadioCardGroup: the controlled selected value"
          },
          {
            "name": "title",
            "type": "ReactNode",
            "required": true,
            "description": "Card title"
          },
          {
            "name": "description",
            "type": "ReactNode",
            "required": false,
            "description": "Optional description"
          },
          {
            "name": "disabled",
            "type": "boolean",
            "required": false,
            "description": "Disables the card"
          },
          {
            "name": "defaultValue",
            "type": "string",
            "required": false,
            "description": "RadioCardGroup only: the initially selected value when uncontrolled"
          },
          {
            "name": "onValueChange",
            "type": "(value: string) => void",
            "required": false,
            "description": "RadioCardGroup only: called with the value of the card the person selects"
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-border",
          "--cascivo-radius-surface",
          "--cascivo-color-active-bg"
        ],
        "accessibility": {
          "role": "radiogroup",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowDown", "ArrowUp", "Space"]
        },
        "examples": [
          {
            "title": "Plan selector",
            "code": "<RadioCardGroup name=\"plan\" defaultValue=\"pro\" label=\"Plan\">\n  <RadioCard value=\"free\" title=\"Free\" description=\"For hobbyists\" />\n  <RadioCard value=\"pro\" title=\"Pro\" description=\"For professionals\" />\n  <RadioCard value=\"team\" title=\"Team\" description=\"For teams\" />\n</RadioCardGroup>",
            "description": "Single-select plan picker"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["radio", "card", "selectable", "form"],
        "intent": {
          "whenToUse": [
            "Single-select from a few options where each choice needs a title plus supporting description (plans, tiers, shipping methods)",
            "Selection UIs where a larger, more prominent click target improves clarity over a plain radio"
          ],
          "whenNotToUse": [
            "Plain text options with no description — use Radio for a lighter footprint",
            "A compact inline switch between a few modes — use SegmentedControl",
            "Too many options to render as cards — use Select"
          ],
          "antiPatterns": [
            {
              "bad": "<RadioCard ... /> rendered standalone without RadioCardGroup",
              "good": "<RadioCardGroup name=\"plan\" label=\"Plan\"><RadioCard value=\"pro\" title=\"Pro\" /></RadioCardGroup>",
              "why": "RadioCard reads its name, selected value, and change handler from RadioCardGroup context; outside a group it has no shared name and cannot enforce single-selection"
            }
          ],
          "related": [
            {
              "name": "Radio",
              "relationship": "alternative",
              "reason": "Use for plain text options without descriptions"
            },
            {
              "name": "CheckboxCard",
              "relationship": "alternative",
              "reason": "Use the card pattern when multiple selections are allowed"
            },
            {
              "name": "SegmentedControl",
              "relationship": "alternative",
              "reason": "Use for a compact inline single choice"
            }
          ],
          "a11yRationale": "Each card is a <label> wrapping a native <input type=\"radio\"> and RadioCardGroup applies role=\"radiogroup\" with an aria-label, so selection, arrow-key navigation, and label association come from the platform rather than custom click handling.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Card and indicator styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "title and description",
              "level": "flexible",
              "note": "title and description accept arbitrary ReactNode content"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "rating-group",
      "type": "component",
      "description": "Star rating input with accessible radio group pattern",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/rating-group/rating-group.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/rating-group/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/rating-group/rating-group.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/rating-group/rating-group.meta.ts"
      ],
      "fileHashes": {
        "rating-group.tsx": "sha256-035c428c5752cef55f6d2e65f71ad2cf24102cd3ab9d6d5a96f3c92d54adfa85",
        "index.ts": "sha256-098b2f4d3f0184fffa742b8ff2098a64b1c9e6197cd21a89032858fd3633a04e",
        "rating-group.module.css": "sha256-e62a96251c881c34547e83349a315475b3ea7750aa944d971d0f45f1963b2155",
        "rating-group.meta.ts": "sha256-57a83d6854b61e13405792645e1bb4d7571c388b577bd6396614669a05e73217"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["Rating", "StarRating"],
      "tags": ["form", "rating", "stars", "input", "feedback"],
      "meta": {
        "name": "RatingGroup",
        "description": "Star rating input with accessible radio group pattern",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "role": "radiogroup",
            "data": {
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["star"],
            "emit": "manual"
          },
          "parts": {
            "star": {
              "element": "button",
              "role": "radio",
              "data": {
                "data-filled": [""],
                "data-value": "number"
              },
              "aria": ["aria-checked", "aria-label"]
            }
          }
        },
        "states": ["idle", "disabled", "readOnly"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "number",
            "required": true
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(v: number) => void",
            "required": false
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "readOnly",
            "description": "When true, the value is shown but cannot be edited.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "RatingGroupLabels",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-warning",
          "--cascivo-color-border-strong",
          "--cascivo-color-accent",
          "--cascivo-radius-sm"
        ],
        "accessibility": {
          "role": "radiogroup",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Space", "Enter"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<RatingGroup value={3} onValueChange={() => {}} />"
          },
          {
            "title": "Read only",
            "code": "<RatingGroup value={4} readOnly />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "rating", "stars", "input", "feedback"],
        "intent": {
          "whenToUse": [
            "Capturing a discrete subjective rating on a small fixed scale (e.g. 1–5 stars)",
            "Displaying an existing rating read-only as a compact star summary"
          ],
          "whenNotToUse": [
            "Choosing along a continuous or large numeric range — use Slider",
            "Entering an exact bounded number with steppers — use NumberInput",
            "A non-rating single choice among labeled options — use Radio or SegmentedControl"
          ],
          "antiPatterns": [
            {
              "bad": "<Slider min={1} max={5} step={1} /> labeled as a star rating",
              "good": "<RatingGroup value={rating} onValueChange={setRating} />",
              "why": "A slider communicates a continuous magnitude; RatingGroup uses radio semantics so each star is an exclusive discrete choice announced as \"N of M stars\""
            }
          ],
          "related": [
            {
              "name": "Slider",
              "relationship": "alternative",
              "reason": "Use for continuous or larger numeric ranges"
            },
            {
              "name": "NumberInput",
              "relationship": "alternative",
              "reason": "Use when an exact typed number is needed rather than a rating"
            }
          ],
          "a11yRationale": "Each star is a <button role=\"radio\"> inside a role=\"radiogroup\" with aria-checked on the selected value and an aria-label like \"3 of 5 stars\"; when readOnly or disabled the stars drop out of the tab order so a non-interactive rating is not announced as actionable.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Star styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "scale and labels",
              "level": "flexible",
              "note": "max sets the scale and labels.rating customizes the per-star announcement"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "reasoning",
      "type": "component",
      "description": "Collapsible panel for a model’s reasoning — opens and shimmers \"Thinking…\" while it streams, then settles to \"Thought for N seconds\"",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reasoning/reasoning.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reasoning/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reasoning/reasoning.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reasoning/reasoning.meta.ts"
      ],
      "fileHashes": {
        "reasoning.tsx": "sha256-adf49b8ea94588eeca131aadb4315b7325859921c1c79e647e8ece7eb2ba27c7",
        "index.ts": "sha256-b4d468e88b7040257e17f62cc3dbe92edd6f933ae237e63310daabe67da5fd38",
        "reasoning.module.css": "sha256-863db22231d79f5c6815344e3f69fce0c4f89fdb6237aa0b25c0acd4db44e4d1",
        "reasoning.meta.ts": "sha256-cd5bb0dff7c850aef4a51ba519b2a18ea148824dc2760c091d89d3936c4d297d"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Think", "ThinkingBlock", "ReasoningPanel"],
      "tags": ["ai", "reasoning", "thinking", "chain-of-thought", "disclosure", "collapsible"],
      "meta": {
        "name": "Reasoning",
        "description": "Collapsible panel for a model’s reasoning — opens and shimmers \"Thinking…\" while it streams, then settles to \"Thought for N seconds\"",
        "category": "display",
        "clientJs": "none",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "details",
            "data": {
              "data-streaming": [""]
            },
            "children": ["trigger", "content"],
            "emit": "manual"
          },
          "parts": {
            "trigger": {
              "element": "summary",
              "children": ["glyph", "$slot", "indicator"]
            },
            "glyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "indicator": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "content": {
              "element": "div",
              "aria": ["aria-busy"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["streaming", "settled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "The reasoning text or steps.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "streaming",
            "description": "True while reasoning is still arriving: the panel opens, the trigger shimmers \"Thinking…\" and the content is aria-busy. Turning it off closes the panel.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "duration",
            "description": "Seconds spent reasoning. Once streaming ends the trigger reads \"Thought for {duration} seconds\"; without it, \"Reasoning\". The caller owns the clock.",
            "type": "number",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Replaces the trigger text in every state.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n). `thoughtFor` may contain `{count}`.",
            "type": "{ thinking?: string; thoughtFor?: string; label?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-ai",
          "--cascivo-color-ai-border",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-focus-ring",
          "--cascivo-duration-200",
          "--cascivo-duration-loop-slow"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"],
          "apgPattern": "disclosure",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Streaming",
            "code": "<Reasoning streaming>The user wants a summary, so I will start with the totals…</Reasoning>"
          },
          {
            "title": "Settled",
            "code": "<Reasoning duration={12}>The user wants a summary, so I started with the totals and then compared regions.</Reasoning>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["shimmer-text"],
        "tags": ["ai", "reasoning", "thinking", "chain-of-thought", "disclosure", "collapsible"],
        "intent": {
          "whenToUse": [
            "Showing a model’s reasoning or thinking trace above its answer, collapsed once the answer arrives",
            "Giving readers an opt-in look at how an AI reached a result without cluttering the reply"
          ],
          "whenNotToUse": [
            "General show/hide content — use Collapsible or Accordion",
            "A sequence of discrete agent steps with their own status — use Steps or Timeline",
            "Reporting the phase of a request — use AiStatus"
          ],
          "antiPatterns": [
            {
              "bad": "Wrapping the reasoning text in aria-live so it is read as it streams",
              "good": "<Reasoning streaming> — the content is aria-busy and silent; pair it with AiStatus for the phase",
              "why": "Announcing every token of a reasoning trace drowns out everything else"
            }
          ],
          "related": [
            {
              "name": "ShimmerText",
              "relationship": "contains",
              "reason": "The streaming trigger label is ShimmerText"
            },
            {
              "name": "AiStatus",
              "relationship": "pairs-with",
              "reason": "AiStatus announces the phase while Reasoning holds the trace"
            },
            {
              "name": "Collapsible",
              "relationship": "alternative",
              "reason": "Collapsible is the general-purpose disclosure"
            }
          ],
          "a11yRationale": "Built on native <details>/<summary>, so the trigger is a keyboard-operable disclosure (Enter/Space) with its expanded state exposed by the browser, it works before hydration, and find-in-page can open it. The content carries aria-busy while streaming and is never a live region; the sparkle is decorative and pulses only under prefers-reduced-motion: no-preference",
          "content": {
            "tone": "The trigger names the state — \"Thinking…\" while working, \"Thought for 12 seconds\" after"
          },
          "flexibility": [
            {
              "area": "trigger text",
              "level": "flexible",
              "note": "Override with label, or localise each state through labels"
            },
            {
              "area": "open behaviour",
              "level": "strict",
              "note": "Opens when streaming starts and closes when it ends; do not force it open after the answer arrives"
            }
          ]
        }
      },
      "registryDependencies": ["shimmer-text"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "relative-time",
      "type": "component",
      "description": "Displays a date as a localized phrase relative to now, auto-updating",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/relative-time/relative-time.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/relative-time/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/relative-time/relative-time.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/relative-time/relative-time.meta.ts"
      ],
      "fileHashes": {
        "relative-time.tsx": "sha256-cb6ad20b2c1ee1818c6a84b87241de0243ddc98330fa10893bc15161f3b43b37",
        "index.ts": "sha256-af25381881a4d4f8a7d64989c40c2b037a1917740a07c529acf1de1bfe96bd64",
        "relative-time.module.css": "sha256-c25d05f5dceeb217bfc60eb61d6ba451c2c63e17843f853c46a0a925dbe185f1",
        "relative-time.meta.ts": "sha256-77e089bbc76e4976a05676500b9ea5f4cf295eb4e6ee9e09e8e48c0371110ec8"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["time", "date", "relative", "i18n", "display"],
      "meta": {
        "name": "RelativeTime",
        "description": "Displays a date as a localized phrase relative to now, auto-updating",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "local": "relativeTime",
            "element": "time",
            "children": ["$text"],
            "emit": "manual"
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "date",
            "description": "The date to render relative to now.",
            "type": "Date | number | string",
            "required": true
          },
          {
            "name": "sync",
            "description": "When true, updates the relative time as it elapses.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "now",
            "type": "number",
            "required": false,
            "description": "Override \"now\" (ms); disables the interval. Pass a serialized server timestamp under SSR for a byte-deterministic render."
          },
          {
            "name": "format",
            "description": "Intl.RelativeTimeFormat options controlling the output.",
            "type": "Intl.RelativeTimeFormatOptions",
            "required": false
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "time",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<RelativeTime date={post.createdAt} />"
          },
          {
            "title": "Natural language",
            "code": "<RelativeTime date={date} format={{ numeric: \"auto\" }} />"
          },
          {
            "title": "Static (no ticking)",
            "code": "<RelativeTime date={date} sync={false} />"
          },
          {
            "title": "SSR deterministic",
            "code": "<RelativeTime date={date} now={serverNow} />",
            "description": "Relative text is clock-dependent, so it is hydration-safe by default (the server text is kept and corrected on the client). Pass a serialized server timestamp via `now` when you need identical server/client output with no post-hydration correction."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["time", "date", "relative", "i18n", "display"],
        "intent": {
          "whenToUse": [
            "Showing how long ago something happened in human terms (\"3 minutes ago\")",
            "Timestamps in feeds, comments, and activity logs where recency matters more than precision",
            "Anywhere a self-updating relative time is friendlier than an absolute date"
          ],
          "whenNotToUse": [
            "Precise timestamps in tables or audit logs — use formatDate for an exact, sortable value",
            "Dates far in the past/future where \"2 years ago\" is less useful than the actual date"
          ],
          "antiPatterns": [
            {
              "bad": "<RelativeTime date={date} /> as the only representation of a legal/audit timestamp",
              "good": "<time>{formatDate(date)}</time> for exact records; RelativeTime for casual recency",
              "why": "Relative phrases lose precision; the exact date belongs in records (RelativeTime still exposes it via title/datetime)"
            }
          ],
          "related": [
            {
              "name": "Stat",
              "relationship": "pairs-with",
              "reason": "Use alongside Stat to timestamp a metric’s last update"
            }
          ],
          "a11yRationale": "Renders a native <time> element with a machine-readable datetime and the absolute date in the title, so the precise instant is available even though the visible text is relative",
          "flexibility": [
            {
              "area": "format",
              "level": "flexible",
              "note": "Pass Intl.RelativeTimeFormat options (e.g. numeric: \"auto\") to tune the wording"
            },
            {
              "area": "sync",
              "level": "flexible",
              "note": "Disable ticking for static contexts or long-past dates"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "reorder-list",
      "type": "component",
      "description": "List whose rows can be reordered by pointer drag or entirely by keyboard",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reorder-list/reorder-list.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reorder-list/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reorder-list/reorder-list.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/reorder-list/reorder-list.meta.ts"
      ],
      "fileHashes": {
        "reorder-list.tsx": "sha256-909deae4c875f2e26af2bb65247a33b8174a36fdc3e98ab1261abdac7091a554",
        "index.ts": "sha256-a41b79cd7f59d665cae7fc1a2253384d1721731e763fcedd42de97c404497a70",
        "reorder-list.module.css": "sha256-32dd557032e8204a00ba1b77f1efb5af87c6889d39173d5e7ead63516ff0e7c4",
        "reorder-list.meta.ts": "sha256-839210bfd1ea41b85119d8dc2f4f6d52cb125677bc54bd21c6a8ae244ce5373e"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["inputs", "reorder", "sortable", "drag", "list", "mobile", "keyboard"],
      "meta": {
        "name": "ReorderList",
        "description": "List whose rows can be reordered by pointer drag or entirely by keyboard",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["list", "srOnly"]
          },
          "parts": {
            "list": {
              "element": "ul",
              "children": ["row"]
            },
            "row": {
              "element": "li",
              "data": {
                "data-reorder-row": "string",
                "data-active": "boolean"
              },
              "children": ["handle", "label"]
            },
            "handle": {
              "element": "button",
              "aria": ["aria-label", "aria-pressed"],
              "children": ["grip"]
            },
            "grip": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "label": {
              "element": "span",
              "children": ["$slot"]
            },
            "srOnly": {
              "element": "span",
              "role": "status",
              "aria": ["aria-live"],
              "children": ["$text"]
            }
          }
        },
        "states": ["idle", "grabbed", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "ReorderItem[]",
            "required": true,
            "description": "The ordered items; the component is controlled"
          },
          {
            "name": "onValueChange",
            "type": "(value: ReorderItem[]) => void",
            "required": true,
            "description": "Called with the new order whenever a row moves"
          },
          {
            "name": "disabled",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "When true, disables the control and removes it from the tab order."
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ handle?: string; grabbed?: string; moved?: string; dropped?: string; cancelled?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "ReorderItem",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true,
                "description": "Stable identity for the row"
              },
              {
                "name": "label",
                "type": "React.ReactNode",
                "required": true,
                "description": "Row content"
              },
              {
                "name": "name",
                "type": "string",
                "required": false,
                "description": "Plain-text name used in announcements when label is not a string"
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-surface",
          "--cascivo-color-surface-2",
          "--cascivo-color-foreground",
          "--cascivo-color-text-muted",
          "--cascivo-border-subtle",
          "--cascivo-radius-sm",
          "--cascivo-ring-width",
          "--cascivo-ring-color",
          "--cascivo-disabled-opacity",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": ["Space", "Enter", "ArrowUp", "ArrowDown", "Escape", "Tab"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<ReorderList\n  value={items}\n  onValueChange={setItems}\n/>",
            "description": "Controlled — the caller owns the order."
          },
          {
            "title": "Locked",
            "code": "<ReorderList value={items} onValueChange={setItems} disabled />",
            "description": "Handles are disabled and drop out of the tab order."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["inputs", "reorder", "sortable", "drag", "list", "mobile", "keyboard"],
        "intent": {
          "whenToUse": [
            "A short, user-owned ordering such as playlist tracks, form fields, or dashboard cards",
            "Any list whose order is meaningful data the user is expected to change",
            "Touch surfaces where dragging a handle is the natural gesture"
          ],
          "whenNotToUse": [
            "Long or virtualized lists, where dragging to a far position is impractical — offer a \"move to position\" control",
            "Ordering that is derived rather than authored (sort by name, date, rank) — use a sortable DataTable",
            "Read-only lists — use List or StructuredList"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering a drag handle with no keyboard path",
              "good": "Keep the built-in handle, which is a real button with Space/Arrow/Escape support",
              "why": "Pointer-only reordering is unusable by keyboard and screen-reader users; it is the standing accessibility gap in pointer-only implementations"
            },
            {
              "bad": "Deriving row keys from array index",
              "good": "Give every item a stable `id`",
              "why": "Index keys make React reuse the wrong DOM nodes as rows move, so focus and animation land on the wrong row"
            }
          ],
          "related": [
            {
              "name": "List",
              "relationship": "alternative",
              "reason": "Plain list when the order is not user-editable"
            },
            {
              "name": "DataTable",
              "relationship": "alternative",
              "reason": "Column sorting when the order is derived rather than authored"
            },
            {
              "name": "SwipeItem",
              "relationship": "pairs-with",
              "reason": "Row-level swipe actions on the same touch list"
            }
          ],
          "a11yRationale": "Every row carries a real button as its drag handle, so the entire interaction is reachable by keyboard: Space or Enter picks a row up, ArrowUp/ArrowDown move it, Space or Enter drops it, and Escape restores the order captured at pick-up. The handle exposes aria-pressed so assistive technology can tell held from idle, and each transition — picked up, moved, dropped, cancelled — is announced through a polite role=\"status\" region using interpolated catalog strings that carry the item name and its position out of the total. The handle sets touch-action: none so a touch drag is not stolen by the scroller, and meets the coarse-pointer target floor. Item names for announcements come from `name` when the label is not plain text, so a rich label never produces an empty announcement.",
          "flexibility": [
            {
              "area": "value / onValueChange",
              "level": "strict",
              "note": "Always controlled — the component never holds the order itself"
            },
            {
              "area": "labels",
              "level": "flexible",
              "note": "Every announcement string is overridable and supports {name}, {position} and {total}"
            },
            {
              "area": "handle",
              "level": "strict",
              "note": "The handle is always a focusable button; there is no drag-anywhere mode"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "resizable",
      "type": "component",
      "description": "Two-pane splitter whose divider can be dragged or keyboard-nudged to reallocate space",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/resizable/resizable.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/resizable/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/resizable/resizable.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/resizable/resizable.meta.ts"
      ],
      "fileHashes": {
        "resizable.tsx": "sha256-3f400b035ecb1a5484e58e2f68c6894fdf3454d050434d38a519b27731fe8795",
        "index.ts": "sha256-eda26a8fac33c2fa86174845daec6e3c85bd41fc29c23cb1e2b97c4456d08aea",
        "resizable.module.css": "sha256-40a8a32bcfcb7794299bf966a0ac466cc2298613f00456046d88d861dea3a2ad",
        "resizable.meta.ts": "sha256-6f10db21ab547460d928f9a90f85cb6e63a40a506cc8415a0127af8f6f648a40"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["splitter", "panes", "layout", "resize", "divider"],
      "meta": {
        "name": "Resizable",
        "description": "Two-pane splitter whose divider can be dragged or keyboard-nudged to reallocate space",
        "category": "layout",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-orientation": ["horizontal", "vertical"]
            },
            "children": ["pane", "handle"]
          },
          "parts": {
            "pane": {
              "element": "div",
              "children": ["$slot"]
            },
            "handle": {
              "element": "div",
              "role": "separator",
              "aria": [
                "aria-orientation",
                "aria-label",
                "aria-valuenow",
                "aria-valuemin",
                "aria-valuemax"
              ],
              "children": ["grip"]
            },
            "grip": {
              "element": "span",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible label for the resize handle."
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "Exactly two panes"
          },
          {
            "name": "orientation",
            "description": "Axis the panes are split along. `horizontal` puts them side by side with a handle you drag left and right; `vertical` stacks them with a handle you drag up and down.",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "horizontal"
          },
          {
            "name": "defaultRatio",
            "description": "The initial split ratio when uncontrolled.",
            "type": "number",
            "required": false,
            "default": "0.5"
          },
          {
            "name": "ratio",
            "type": "number",
            "required": false,
            "description": "Controlled ratio (0–1)"
          },
          {
            "name": "minRatio",
            "description": "Minimum allowed split ratio.",
            "type": "number",
            "required": false,
            "default": "0.1"
          },
          {
            "name": "maxRatio",
            "description": "Maximum allowed split ratio.",
            "type": "number",
            "required": false,
            "default": "0.9"
          },
          {
            "name": "onRatioChange",
            "description": "Called with the new split ratio when it changes.",
            "type": "(ratio: number) => void",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "separator",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"],
          "apgPattern": "windowsplitter",
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Horizontal split",
            "code": "<Resizable>\n  <Editor />\n  <Preview />\n</Resizable>"
          },
          {
            "title": "Vertical with bounds",
            "code": "<Resizable orientation=\"vertical\" defaultRatio={0.3} minRatio={0.2} maxRatio={0.8}>\n  <Toolbar />\n  <Canvas />\n</Resizable>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["splitter", "panes", "layout", "resize", "divider"],
        "intent": {
          "whenToUse": [
            "Letting users reallocate space between two adjacent regions, e.g. an editor and a preview",
            "Side panels or inspectors whose width the user should control",
            "Master/detail layouts where one pane may need more room than the default"
          ],
          "whenNotToUse": [
            "Fixed layouts where the split should never change — use plain flex/grid",
            "More than two siblings need independent resizing — compose nested splitters instead"
          ],
          "antiPatterns": [
            {
              "bad": "<Resizable> wrapping three panes",
              "good": "Nest two Resizable splitters so each divider controls exactly one boundary",
              "why": "A single separator can only mediate one boundary between two panes"
            }
          ],
          "related": [
            {
              "name": "Slider",
              "relationship": "alternative",
              "reason": "Use a slider when picking a value, not when allocating layout space"
            }
          ],
          "a11yRationale": "The divider is a focusable role=\"separator\" with aria-orientation and aria-valuenow/min/max reflecting the percentage split; arrow keys nudge the ratio and Home/End snap to the configured bounds, matching the APG window-splitter pattern.",
          "flexibility": [
            {
              "area": "sizing",
              "level": "strict",
              "note": "Pane sizes derive from a single --cascivo-resizable-ratio custom property via flex"
            },
            {
              "area": "min/max ratio",
              "level": "flexible",
              "note": "Consumer-defined clamp range"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "scroll-area",
      "type": "component",
      "description": "A scroll container with styled, slim scrollbars and overflow shadows",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/scroll-area/scroll-area.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/scroll-area/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/scroll-area/scroll-area.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/scroll-area/scroll-area.meta.ts"
      ],
      "fileHashes": {
        "scroll-area.tsx": "sha256-36d03ef3f48cb6aad42186164fafd7e7a278fd0d67947d3daa734bccc187b24f",
        "index.ts": "sha256-cbd82b3816201dfafe7f11dacfb8758e7572b63dbafbf497ecbe37450093c5e1",
        "scroll-area.module.css": "sha256-4f1145d981d3b79884bf1ab18c7007e1d02c5207c8fd72db5f78214b6aa07660",
        "scroll-area.meta.ts": "sha256-79f23657f4348195cb45f676a4536ad95a6d7587c2e33c0e7a7fcd8d4fe7520b"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["scroll", "overflow", "scrollbar", "container", "layout"],
      "meta": {
        "name": "ScrollArea",
        "description": "A scroll container with styled, slim scrollbars and overflow shadows",
        "category": "layout",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "data": {
              "data-orientation": ["vertical", "horizontal", "both"],
              "data-edges": ["shadow", "mask", "none"],
              "data-scroll-top": "boolean",
              "data-scroll-bottom": "boolean",
              "data-scroll-start": "boolean",
              "data-scroll-end": "boolean"
            },
            "children": ["$slot"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "height",
            "type": "string",
            "required": false,
            "description": "Max block size of the container (any CSS length)"
          },
          {
            "name": "width",
            "type": "string",
            "required": false,
            "description": "Max inline size of the container (any CSS length)"
          },
          {
            "name": "orientation",
            "type": "'vertical' | 'horizontal' | 'both'",
            "required": false,
            "default": "vertical",
            "description": "Which axes may scroll"
          },
          {
            "name": "edges",
            "type": "'shadow' | 'mask' | 'none'",
            "required": false,
            "default": "shadow",
            "description": "Edge affordance: box-shadow, a mask-image fade, or none"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Scrollable content"
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-radius-control",
          "--cascivo-scroll-area-height",
          "--cascivo-scroll-area-width"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowUp", "ArrowDown", "PageUp", "PageDown", "Home", "End"]
        },
        "examples": [
          {
            "title": "Vertical scroll",
            "code": "<ScrollArea height=\"12rem\">\n  <p>Long content…</p>\n</ScrollArea>"
          },
          {
            "title": "Both axes",
            "code": "<ScrollArea height=\"12rem\" width=\"20rem\" orientation=\"both\">\n  <table>…</table>\n</ScrollArea>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["scroll", "overflow", "scrollbar", "container", "layout"],
        "intent": {
          "whenToUse": [
            "Constraining a region to a fixed height/width with overflow scrolling",
            "Giving long lists, tables, or code blocks consistent slim scrollbars across browsers",
            "Signalling more content with subtle top/bottom scroll shadows"
          ],
          "whenNotToUse": [
            "Whole-page scrolling — let the document scroll naturally",
            "Content that should determine its own height — do not cap it"
          ],
          "antiPatterns": [
            {
              "bad": "Nesting many ScrollAreas so the user faces competing scrollbars",
              "good": "Scroll one region; let the rest size to content",
              "why": "Nested scroll regions trap focus and confuse pointer and keyboard scrolling"
            }
          ],
          "related": [
            {
              "name": "Separator",
              "relationship": "pairs-with",
              "reason": "Often divides items inside a scrolled list"
            }
          ],
          "a11yRationale": "Native overflow keeps the container keyboard-scrollable and focusable per browser defaults; styling never removes the scroll affordance, only restyles it",
          "flexibility": [
            {
              "area": "orientation",
              "level": "flexible",
              "note": "vertical, horizontal, or both depending on content"
            },
            {
              "area": "scroll behaviour",
              "level": "strict",
              "note": "Relies on native overflow scrolling — never replace with JS scrolling"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "search",
      "type": "component",
      "description": "Search input with debounced search callback and clear button",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/search/search.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/search/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/search/search.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/search/search.meta.ts"
      ],
      "fileHashes": {
        "search.tsx": "sha256-31e25bbd7476b91a8ad6b42e7db417e6618f0f851a967aab5c0dbb7a1f357d0f",
        "index.ts": "sha256-47249a52c6a441ee459d54591b48acc65feafdc50ecb7e6ab3eb3a05e292b8a7",
        "search.module.css": "sha256-bb8b8f5650d1f3623aed5b21b05f5bc6894a82c8399ed8ab7ce53cd213b7c709",
        "search.meta.ts": "sha256-e0ad30cc7c9d8ff539688cfbca0a8190db21092f09ffa55eabc0ce0d29f48071"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["search", "input", "filter", "form"],
      "meta": {
        "name": "Search",
        "description": "Search input with debounced search callback and clear button",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-state": ["empty", "filled"]
            },
            "children": ["label", "icon", "input", "clear"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"],
              "when": "label"
            },
            "icon": {
              "element": "span",
              "children": ["$slot"]
            },
            "input": {
              "element": "input",
              "aria": ["aria-labelledby", "aria-label", "aria-describedby", "aria-invalid"]
            },
            "clear": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$slot"],
              "when": "filled"
            }
          }
        },
        "states": ["empty", "filled"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false,
            "default": "''"
          },
          {
            "name": "onValueChange",
            "description": "Called with the current text on every keystroke.",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "onSearch",
            "description": "Called with the query, debounced, as the user types.",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "debounceMs",
            "description": "Debounce delay (ms) before onSearch fires.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false,
            "default": "Search"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Accessible name for the control. Rendered as a real `<label>` that is **visually hidden** by design — it changes the accessible name, not the visible UI. If you can see it, the component stylesheet did not load (import `@cascivo/react/styles.css` or the per-component CSS).",
            "type": "string",
            "required": false,
            "default": "Search"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "clearLabel",
            "description": "Accessible label for the clear button.",
            "type": "string",
            "required": false,
            "default": "Clear search"
          },
          {
            "name": "id",
            "description": "Id for the input, wired to the label. Auto-generated with useId when omitted — SSR-safe and stable across hydration.",
            "type": "string",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-labelledby",
            "description": "Wired automatically by a wrapping `Field` — its label id, forwarded to the focusable control so the Field's label names it.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-describedby",
            "description": "Wired automatically by a wrapping `Field` — the ids of its hint/error text, forwarded to the focusable control so the supporting text is announced.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-invalid",
            "description": "Wired automatically by a wrapping `Field` when it is in an error state.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Accessible name set through `aria-label` instead of a rendered `<label>` element. ⚠ On Search **both** props give an invisible name — `label` renders a real `<label>` the stylesheet visually hides. They differ in mechanism, not in what you see: use `ariaLabel` when a visible element outside the component already names the field, `label` otherwise. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-accent",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-input",
          "--cascivo-focus-ring",
          "--cascivo-search-width"
        ],
        "accessibility": {
          "role": "searchbox",
          "wcag": "2.2-AA",
          "keyboard": ["Enter"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Search onSearch={(q) => runQuery(q)} />"
          },
          {
            "title": "Controlled",
            "code": "<Search value={query} onValueChange={setQuery} onSearch={runQuery} debounceMs={500} />"
          },
          {
            "title": "Large",
            "code": "<Search size=\"lg\" placeholder=\"Search products…\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["search", "input", "filter", "form"],
        "intent": {
          "whenToUse": [
            "A query field that filters or searches content, with a built-in clear button and debounced onSearch",
            "Free-text search where results update as the user types (debounced) or on Enter"
          ],
          "whenNotToUse": [
            "General non-search text entry — use Input",
            "Search that presents an inline list of suggestions/results to pick from — use Combobox",
            "A bounded numeric value — use NumberInput"
          ],
          "antiPatterns": [
            {
              "bad": "<Input placeholder=\"Search\" onChange={(e) => runQuery(e.target.value)} />",
              "good": "<Search onSearch={(q) => runQuery(q)} debounceMs={300} />",
              "why": "Search provides type=\"search\" semantics, a magnifier affordance, a clear button, and built-in debouncing so you avoid firing a query on every keystroke"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use for general text entry that is not a search query"
            },
            {
              "name": "Combobox",
              "relationship": "alternative",
              "reason": "Use when the query should surface a selectable list of suggestions"
            }
          ],
          "a11yRationale": "Renders a native <input type=\"search\"> associated with a <label> (defaulting from the i18n catalog) so the field is announced as a searchbox; the clear control is a labeled <button> and moves focus back to the input after clearing.",
          "content": {
            "tone": "Concise placeholder and labels",
            "notes": "placeholder, label, and clearLabel default from the i18n catalog; keep placeholder a short noun phrase like \"Search products\""
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Field and control styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "debounce and copy",
              "level": "flexible",
              "note": "debounceMs and the placeholder/label/clear copy are free to suit the context"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "segmented-control",
      "type": "component",
      "description": "Mutually exclusive toggle group",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/segmented-control/segmented-control.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/segmented-control/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/segmented-control/segmented-control.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/segmented-control/segmented-control.meta.ts"
      ],
      "fileHashes": {
        "segmented-control.tsx": "sha256-d1bc6374ea6bffb5fd6069be73af6f398f4ed97dfa1c104a759a261cc6286b0e",
        "index.ts": "sha256-6bd3417b2a023b81f9df64462b5d9e7b3dd42f6c6728c0f4e222adfdfa677417",
        "segmented-control.module.css": "sha256-75f43302c357675012e3a15115355fe07dd9030bb61f7193f595cb92c27a3cb0",
        "segmented-control.meta.ts": "sha256-8a7f724b8ec478c5b7ba563eea2a71942d98412eb9424853a1763dbcfe21d3ac"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["SegmentedButton"],
      "tags": ["form", "toggle", "group", "segmented", "input"],
      "meta": {
        "name": "SegmentedControl",
        "description": "Mutually exclusive toggle group",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "role": "group",
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-disabled": "boolean"
            },
            "aria": ["aria-label"],
            "children": ["segment"]
          },
          "parts": {
            "segment": {
              "element": "button",
              "role": "radio",
              "data": {
                "data-selected": "boolean",
                "data-size": ["sm", "md", "lg"]
              },
              "aria": ["aria-checked"],
              "children": ["$text"]
            }
          }
        },
        "states": ["idle", "selected", "disabled"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "options",
            "description": "The selectable options.",
            "type": "SegmentedControlOption[]",
            "required": true
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": true
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(v: string) => void",
            "required": true
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Accessible name for the group. Invisible — it names the role=\"group\" and renders nothing. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — same invisible accessible name, the other spelling. Not rendered.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-color-text",
          "--cascivo-radius-md",
          "--cascivo-radius-sm",
          "--cascivo-shadow-sm"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowLeft", "ArrowRight"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<SegmentedControl options={[{label:'Day',value:'day'},{label:'Week',value:'week'},{label:'Month',value:'month'}]} value=\"day\" onValueChange={() => {}} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "toggle", "group", "segmented", "input"],
        "intent": {
          "whenToUse": [
            "A compact inline single choice among a few mutually exclusive options (2–5) such as view modes or time ranges",
            "Switching between alternatives where all options should stay visible in a tight horizontal space"
          ],
          "whenNotToUse": [
            "Switching between full panels of page content — use Tabs",
            "A single binary on/off state — use Toggle",
            "More options than comfortably fit inline, or options needing descriptions — use Select or RadioCard"
          ],
          "antiPatterns": [
            {
              "bad": "Two <Button> elements toggling which is \"active\" via app state",
              "good": "<SegmentedControl options={[{label:\"Day\",value:\"day\"},{label:\"Week\",value:\"week\"}]} value={range} onValueChange={setRange} />",
              "why": "A pair of buttons does not convey exclusive selection; SegmentedControl uses radio semantics with aria-checked and arrow-key navigation so the single-choice state is announced"
            }
          ],
          "related": [
            {
              "name": "Toggle",
              "relationship": "alternative",
              "reason": "Use for a single binary on/off state, not a multi-option choice"
            },
            {
              "name": "Radio",
              "relationship": "alternative",
              "reason": "Use for a vertical or longer single-choice list with plain labels"
            },
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Use when there are too many options to show inline"
            }
          ],
          "a11yRationale": "Wraps role=\"radio\" buttons in a role=\"group\" with aria-checked marking the selected segment, and ArrowLeft/ArrowRight move selection across enabled segments (skipping disabled ones) so keyboard users get standard single-choice navigation.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Segment styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "option labels",
              "level": "flexible",
              "note": "option label and value are free, and individual options may be disabled"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "select",
      "type": "component",
      "description": "Native select menu styled to match the design system",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/select/select.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/select/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/select/select.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/select/select.meta.ts"
      ],
      "fileHashes": {
        "select.tsx": "sha256-adadade2900bcd1442ec0654a386561d6fac8938634273da9022f5f18ebd40c5",
        "index.ts": "sha256-235ea0185749f2cb4189ae1b24a38d86a81db4eb78c313421322a99dd6f6fb56",
        "select.module.css": "sha256-8ca4c52fb34be14d6c8fbe1d6e7f7eb5732117eabffef18f0967b942f0eac7f8",
        "select.meta.ts": "sha256-a2e496006715d386ffeafccc6a2f23315ef5549541ff30df4c5d29d84c3abe4e"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "dropdown", "menu"],
      "meta": {
        "name": "Select",
        "description": "Native select menu styled to match the design system",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["idle", "focused", "error"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["label", "field", "error", "hint"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"],
              "when": "label"
            },
            "field": {
              "element": "div",
              "children": ["select", "chevron"]
            },
            "select": {
              "element": "select",
              "aria": ["aria-invalid", "aria-describedby", "aria-label"]
            },
            "chevron": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "children": ["$text"],
              "when": "error"
            },
            "hint": {
              "element": "span",
              "children": ["$text"],
              "when": "!error && hint"
            }
          }
        },
        "states": ["idle", "focused", "error"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "agent": {
          "actions": [
            {
              "name": "select",
              "prop": "value",
              "args": "string"
            }
          ]
        },
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "hint",
            "description": "Supplementary hint text shown with the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "error",
            "description": "Error message shown when the value is invalid.",
            "type": "string",
            "required": false
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "options",
            "description": "The selectable options.",
            "type": "{ value: string; label: string; disabled?: boolean }[]",
            "required": true
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "onChange",
            "description": "Called with the change event; read the new value from `event.target.value`.",
            "type": "React.ChangeEventHandler<HTMLSelectElement>",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-text-muted",
          "--cascivo-radius-input",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "listbox",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowUp", "ArrowDown", "Space"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Select label=\"Role\" options={[{ value: \"admin\", label: \"Admin\" }]} />"
          },
          {
            "title": "With placeholder",
            "code": "<Select label=\"Country\" placeholder=\"Choose…\" options={countries} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "dropdown", "menu"],
        "intent": {
          "whenToUse": [
            "Choosing exactly one value from a known, finite list inside a form",
            "A compact single-value picker where the native OS dropdown UX is acceptable",
            "You want zero-JS reliability and built-in mobile/keyboard handling from a real <select>"
          ],
          "whenNotToUse": [
            "Users need to filter/search a long list — use Combobox",
            "Multiple values must be selectable — use MultiSelect",
            "Triggering actions or commands rather than picking a form value — use Dropdown or Menu"
          ],
          "antiPatterns": [
            {
              "bad": "<Select options={fiftyCountries} placeholder=\"Search country\" />",
              "good": "<Combobox options={fiftyCountries} />",
              "why": "A long unfiltered native list is hard to scan; Combobox adds type-ahead filtering"
            }
          ],
          "related": [
            {
              "name": "Combobox",
              "relationship": "alternative",
              "reason": "Use when the list is long and needs filtering/search"
            },
            {
              "name": "MultiSelect",
              "relationship": "alternative",
              "reason": "Use when more than one value can be chosen"
            },
            {
              "name": "Dropdown",
              "relationship": "alternative",
              "reason": "Use for action menus, not single-value form selection"
            }
          ],
          "a11yRationale": "Renders a native <select> so options, type-ahead, and arrow-key navigation come from the platform; error text is linked via aria-describedby and role=\"alert\" with aria-invalid on the control.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Visual props must resolve to --cascivo-color-* / radius / focus-ring tokens"
            },
            {
              "area": "option labels",
              "level": "flexible",
              "note": "Free, supplied by the consumer via the options array"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "separator",
      "type": "component",
      "description": "Visual or semantic divider between content",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/separator/separator.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/separator/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/separator/separator.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/separator/separator.meta.ts"
      ],
      "fileHashes": {
        "separator.tsx": "sha256-628c69291cf24f57c97e18dd1561aaaf11091d4d7be5d90fae92bc3a6882a1df",
        "index.ts": "sha256-d8d2d5d13aa10c6e2b3dac0c7a33c25e530fb4b005a68aa80b18705a2dbfd44d",
        "separator.module.css": "sha256-d17fbd02899fe563a5e28fad65cad951e84d8bbbdafe30931fad3de8722d1ef4",
        "separator.meta.ts": "sha256-6c4c02c2690d92043e8f6e5b50691a7f15163bd2188fb09ee4bc269966febb82"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["divider", "rule", "layout"],
      "meta": {
        "name": "Separator",
        "description": "Visual or semantic divider between content",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["hr", "div"],
            "data": {
              "data-orientation": ["horizontal", "vertical"]
            },
            "aria": ["aria-orientation"],
            "role": "separator",
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "orientation",
            "description": "Direction the rule runs: `horizontal` draws a full-width line, `vertical` a full-height one that stretches to its flex row.",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "horizontal"
          },
          {
            "name": "decorative",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "When true, the separator is purely visual and hidden from assistive tech"
          }
        ],
        "tokens": ["--cascivo-color-border"],
        "accessibility": {
          "role": "separator",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Horizontal",
            "code": "<Separator />"
          },
          {
            "title": "Vertical",
            "code": "<Separator orientation=\"vertical\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["divider", "rule", "layout"],
        "intent": {
          "whenToUse": [
            "Dividing groups of content within a section or menu",
            "Adding a vertical rule between inline items (orientation=\"vertical\")",
            "Marking a meaningful thematic break (decorative=false)"
          ],
          "whenNotToUse": [
            "Adding spacing only — use margin/padding, not a separator",
            "Bordering a container — use the container border, not a separator"
          ],
          "antiPatterns": [
            {
              "bad": "Multiple separators stacked to create whitespace",
              "good": "Use spacing tokens for gaps; one separator for a real break",
              "why": "Separators imply a content division; using them for spacing misleads assistive tech"
            }
          ],
          "related": [
            {
              "name": "Card",
              "relationship": "contained-by",
              "reason": "Often used to divide regions inside a Card"
            }
          ],
          "a11yRationale": "role=\"separator\" when meaningful so screen readers announce the division; setting decorative hides it from the accessibility tree when it is purely visual",
          "flexibility": [
            {
              "area": "decorative",
              "level": "flexible",
              "note": "Mark decorative when the break carries no meaning beyond visuals"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Color must resolve to --cascivo-color-border"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "share-menu",
      "type": "component",
      "description": "A Share button opening intent links for Bluesky, Mastodon, Threads, LinkedIn and X, plus copy link and the system share sheet",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/share-menu/share-menu.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/share-menu/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/share-menu/share-menu.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/share-menu/share-menu.meta.ts"
      ],
      "fileHashes": {
        "share-menu.tsx": "sha256-6876ec6b4148a7f5585f34e3bfa70046e9c99efa736f7f263f57b28bbb6f39f8",
        "index.ts": "sha256-f2bbd12eca6401487be5fa0c8ea16a9bb9345f831440d1fe5f0720fa514e5b4f",
        "share-menu.module.css": "sha256-35304f51b33ec632bf44c27a15d8cd4008669c00131501c0d54e5b035cfbb9dd",
        "share-menu.meta.ts": "sha256-813816f41dbb293dda43db628b210890d9b861118eb42b3e60fbf1bd6accbde9"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["share", "social", "bluesky", "mastodon", "threads", "linkedin", "popover", "link"],
      "meta": {
        "name": "ShareMenu",
        "description": "A Share button opening intent links for Bluesky, Mastodon, Threads, LinkedIn and X, plus copy link and the system share sheet",
        "category": "overlay",
        "clientJs": "enhancement",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "root",
            "children": ["trigger", "panel"]
          },
          "parts": {
            "trigger": {
              "element": "button",
              "data": {
                "data-size": ["sm", "md"]
              },
              "aria": ["aria-expanded"],
              "children": ["icon", "$text"]
            },
            "icon": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "panel": {
              "element": "div",
              "aria": ["aria-label"],
              "children": ["list"]
            },
            "list": {
              "element": "ul",
              "children": ["server", "item", "divided"]
            },
            "server": {
              "element": "form",
              "children": ["serverLabel", "serverRow"]
            },
            "serverLabel": {
              "element": "label",
              "children": ["$text"]
            },
            "serverRow": {
              "element": "span",
              "children": ["serverInput", "item"]
            },
            "serverInput": {
              "element": "input"
            },
            "item": {
              "element": ["a", "button"],
              "data": {
                "data-network": ["bluesky", "mastodon", "threads", "linkedin", "x"],
                "data-state": ["idle", "copied"]
              },
              "children": ["$text"]
            },
            "divided": {
              "element": "li",
              "children": ["item"]
            }
          }
        },
        "states": ["closed", "open", "copied"],
        "variants": [],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "url",
            "type": "string",
            "required": true,
            "description": "The page being shared"
          },
          {
            "name": "text",
            "type": "string",
            "required": false,
            "description": "Text to post alongside the link (LinkedIn takes none; it reads the page)"
          },
          {
            "name": "items",
            "type": "Array<'bluesky' | 'mastodon' | 'threads' | 'linkedin' | 'x'>",
            "required": false,
            "default": "['bluesky', 'mastodon', 'threads', 'linkedin', 'x']",
            "description": "The networks offered, in order"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "labels",
            "type": "{ share?: string; copyLink?: string; copied?: string; more?: string; server?: string; shareOn?: (network: string) => string }",
            "required": false,
            "description": "Overrides the built-in i18n labels per instance"
          },
          {
            "name": "className",
            "type": "string",
            "required": false,
            "description": "Class added to the root element"
          }
        ],
        "tokens": [
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-success",
          "--cascivo-color-surface",
          "--cascivo-color-surface-overlay",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-control-height-md",
          "--cascivo-control-height-sm",
          "--cascivo-focus-ring",
          "--cascivo-font-medium",
          "--cascivo-font-sans",
          "--cascivo-motion-enter",
          "--cascivo-radius-control",
          "--cascivo-radius-item",
          "--cascivo-radius-overlay",
          "--cascivo-shadow-overlay",
          "--cascivo-space-1",
          "--cascivo-space-2",
          "--cascivo-space-3",
          "--cascivo-space-4",
          "--cascivo-target-min-coarse",
          "--cascivo-text-sm",
          "--cascivo-text-xs"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space", "Escape", "Tab"],
          "forcedColors": true,
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Default",
            "code": "<ShareMenu url=\"https://cascivo.com/blog/launch\" text=\"cascivo 1.0 is out\" />"
          },
          {
            "title": "Chosen networks",
            "code": "<ShareMenu url={url} items={['bluesky', 'mastodon']} size=\"sm\" />",
            "description": "Offer only the networks your readers use, in your order"
          },
          {
            "title": "Just the link",
            "code": "import { shareIntentUrl } from './share-menu'\n\n<a href={shareIntentUrl('bluesky', { url, text }) ?? undefined}>Post to Bluesky</a>",
            "description": "shareIntentUrl builds the same compose link for your own markup; it returns null for Mastodon without a server"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": [
          "share",
          "social",
          "bluesky",
          "mastodon",
          "threads",
          "linkedin",
          "popover",
          "link"
        ],
        "intent": {
          "whenToUse": [
            "Letting readers share a page to a social network without any account, token or API on your side",
            "Article, release-note and product pages where sharing is a secondary action"
          ],
          "whenNotToUse": [
            "Posting on the user’s behalf from your app — connect their account and use the publishers in @cascivo/app/social",
            "Copying a single value — use CopyButton"
          ],
          "antiPatterns": [
            {
              "bad": "Loading each network’s share widget script to get a share button",
              "good": "Use ShareMenu, whose entries are plain links to each network’s composer",
              "why": "Intent links need no third-party script, set no tracking cookies, and work before hydration"
            }
          ],
          "related": [
            {
              "name": "CopyButton",
              "relationship": "alternative",
              "reason": "Use when copying the link is the only sharing you need"
            },
            {
              "name": "MenuButton",
              "relationship": "alternative",
              "reason": "Use for a list of in-app actions rather than outbound links"
            }
          ],
          "a11yRationale": "The trigger is a native <button popovertarget>, so the browser supplies aria-expanded, Escape and outside-click dismissal, and focus return without script. The panel is a labelled disclosure of ordinary links and buttons in Tab order rather than an ARIA menu, so no arrow-key contract is implied. Each link names its network in text (\"Share on Bluesky\"), and the copy confirmation is announced through a polite live region.",
          "content": {
            "tone": "Short action labels naming the network",
            "notes": "Network names are proper nouns and stay untranslated; the \"Share on {network}\" frame comes from the i18n catalog or labels.shareOn"
          },
          "flexibility": [
            {
              "area": "networks",
              "level": "flexible",
              "note": "items picks and orders the networks; shareIntentUrl builds the same links for custom markup"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Styling resolves to the listed semantic --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "sheet",
      "type": "component",
      "description": "Slide-in panel from any edge, using popover=manual and @starting-style animations",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sheet/sheet.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sheet/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sheet/sheet.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sheet/sheet.meta.ts"
      ],
      "fileHashes": {
        "sheet.tsx": "sha256-046306aa566f459a5938a9844b0ee87b4359d4b9346723ead906df7201f11237",
        "index.ts": "sha256-e12119ec5b08534d729985a0f5454b6b0dfafd1a7e0615fa8ab9a8efb3f10604",
        "sheet.module.css": "sha256-c61931317af5a3c08d8af91223f8e05f358295258143b92ca18326d644fde4c2",
        "sheet.meta.ts": "sha256-63a2744d6d22eae0a0d8f11748940acbac74f1157d98f87c42d3de6fae0d1293"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["SideSheet", "SlideOver", "slide-over"],
      "tags": ["overlay", "drawer", "panel", "slide"],
      "meta": {
        "name": "Sheet",
        "description": "Slide-in panel from any edge, using popover=manual and @starting-style animations",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "sheet",
            "role": "dialog",
            "data": {
              "data-state": ["open", "closed"],
              "data-side": ["start", "end", "top", "bottom"]
            },
            "aria": ["aria-modal", "aria-labelledby"],
            "children": ["header", "body"]
          },
          "parts": {
            "header": {
              "element": "div",
              "children": ["title", "close"]
            },
            "title": {
              "element": "span",
              "children": ["$slot"]
            },
            "close": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            },
            "body": {
              "element": "div",
              "data": {
                "data-cascivo-sheet-body": "string"
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "open",
            "description": "Whether the component is open (controlled).",
            "type": "boolean",
            "required": true
          },
          {
            "name": "onClose",
            "description": "Called when the component is closed.",
            "type": "() => void",
            "required": true
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "side",
            "description": "Edge the sheet slides in from: `end` (the inline end — right in LTR), `start`, `top` or `bottom`.",
            "type": "'start' | 'end' | 'top' | 'bottom'",
            "required": false,
            "default": "end"
          }
        ],
        "tokens": [
          "--cascivo-dialog-body-gap",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-lg",
          "--cascivo-shadow-xl",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "dialog",
          "wcag": "2.2-AA",
          "keyboard": ["Escape", "Tab", "Shift+Tab"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Sheet open={isOpen} onClose={() => setIsOpen(false)} title=\"Filters\">\n  <FilterForm />\n</Sheet>"
          },
          {
            "title": "Bottom sheet",
            "code": "<Sheet open={isOpen} onClose={close} side=\"bottom\" title=\"Share\">\n  <ShareOptions />\n</Sheet>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "styleHooks": ["data-cascivo-sheet-body"],
        "tags": ["overlay", "drawer", "panel", "slide"],
        "intent": {
          "whenToUse": [
            "Showing secondary content or a form in a panel that slides in from a screen edge",
            "Navigation, filters, or detail views that benefit from full-height side space without leaving the page",
            "Mobile-friendly drawers where a centered modal would feel cramped"
          ],
          "whenNotToUse": [
            "A short confirmation or focused decision — use Modal or AlertDialog",
            "Small contextual content anchored to a trigger — use Popover"
          ],
          "antiPatterns": [
            {
              "bad": "<Sheet title=\"Delete item?\">Are you sure?</Sheet>",
              "good": "<AlertDialog title=\"Delete item?\" />",
              "why": "A full edge-to-edge panel is overkill for a yes/no decision; AlertDialog is the right scale and semantics"
            }
          ],
          "related": [
            {
              "name": "Modal",
              "relationship": "alternative",
              "reason": "Use for centered, focused dialogs rather than edge panels"
            },
            {
              "name": "Popover",
              "relationship": "alternative",
              "reason": "Use for small content anchored to a trigger element"
            }
          ],
          "a11yRationale": "Uses popover=\"manual\" with role=\"dialog\" and aria-modal so it is announced as a modal surface; when a title is provided it labels the dialog via aria-labelledby (so rich title nodes stay accessible), and Escape/Tab handling comes from the popover platform behavior.",
          "flexibility": [
            {
              "area": "side",
              "level": "strict",
              "note": "Limited to start | end | top | bottom — drives the slide direction and animation"
            },
            {
              "area": "body content",
              "level": "flexible",
              "note": "Any children; consumer owns the panel contents"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "shell-header",
      "type": "component",
      "description": "Console application header: brand with prefix, dropdown nav menus, global icon actions, hamburger, skip-to-content",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shell-header/shell-header.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shell-header/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shell-header/shell-header.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shell-header/shell-header.meta.ts"
      ],
      "fileHashes": {
        "shell-header.tsx": "sha256-872dddd01d68a07a0fd992068f942fb67fb533d051b18196573f02ba64228281",
        "index.ts": "sha256-331ae306f93610807dbedf315036e545e7d6c49358dda073d71cfcc19b4a8e7e",
        "shell-header.module.css": "sha256-ee0e31b3507cb8d60ade32f73f62f4b3bb0fd31db8d1714e4ebfd453f727d02f",
        "shell-header.meta.ts": "sha256-1b8bf8d8f51971a7e8646c302b5496daeff01868704ca4eaae8bf99ac2f16d83"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["navigation", "header", "shell", "console", "menu", "app-shell"],
      "meta": {
        "name": "ShellHeader",
        "description": "Console application header: brand with prefix, dropdown nav menus, global icon actions, hamburger, skip-to-content",
        "category": "navigation",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "header",
            "local": "header",
            "role": "banner",
            "children": [
              "skipLink",
              "menuButton",
              "brand",
              "nav",
              "center",
              "spacer",
              "actions",
              "end"
            ]
          },
          "parts": {
            "skipLink": {
              "element": "a",
              "children": ["$text"]
            },
            "menuButton": {
              "element": "button",
              "aria": ["aria-label", "aria-expanded"],
              "children": ["$slot"]
            },
            "brand": {
              "element": ["a", "div"],
              "aria": ["aria-label"],
              "children": ["brandPrefix", "brandName", "$slot"]
            },
            "brandPrefix": {
              "element": "span",
              "children": ["$text"]
            },
            "brandName": {
              "element": "span",
              "children": ["$text"]
            },
            "nav": {
              "element": "nav",
              "aria": ["aria-label"],
              "children": ["navList"]
            },
            "navList": {
              "element": "ul",
              "children": ["navLink", "navMenuWrapper"]
            },
            "navLink": {
              "element": "a",
              "data": {
                "data-state": ["active"]
              },
              "aria": ["aria-current"],
              "children": ["$text"]
            },
            "navMenuWrapper": {
              "element": "li",
              "children": ["navMenuTrigger", "navMenuPanel"]
            },
            "navMenuTrigger": {
              "element": "button",
              "data": {
                "data-state": ["active"]
              },
              "aria": ["aria-haspopup", "aria-expanded"],
              "children": ["$text", "chevron"]
            },
            "chevron": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "navMenuPanel": {
              "element": "div",
              "role": "menu",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-label"],
              "children": ["navMenuItem"]
            },
            "navMenuItem": {
              "element": "a",
              "role": "menuitem",
              "data": {
                "data-state": ["active"]
              },
              "aria": ["aria-current"],
              "children": ["$text"]
            },
            "center": {
              "element": "div",
              "children": ["$slot"]
            },
            "spacer": {
              "element": "div"
            },
            "actions": {
              "element": "div",
              "children": ["action"]
            },
            "action": {
              "element": "button",
              "data": {
                "data-state": ["active"]
              },
              "aria": ["aria-label", "aria-pressed"],
              "children": ["actionIcon"]
            },
            "actionIcon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "end": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "brand",
            "type": "ShellHeaderBrand | ReactNode",
            "required": false,
            "description": "Brand: { prefix?, name, href? } or free-form node"
          },
          {
            "name": "nav",
            "type": "ShellHeaderNavItem[]",
            "required": false,
            "description": "Top nav: links ({ label, href, active?, onClick? }) or dropdown menus ({ label, items })"
          },
          {
            "name": "center",
            "type": "ReactNode",
            "required": false,
            "description": "Free-form slot between the nav and the right-hand cluster, taking the header’s spare width — where a command-palette or search trigger belongs"
          },
          {
            "name": "actions",
            "type": "ShellHeaderAction[]",
            "required": false,
            "description": "Right-aligned global icon actions with aria-pressed"
          },
          {
            "name": "end",
            "type": "ReactNode",
            "required": false,
            "description": "Free-form trailing slot (user menu, theme switcher)"
          },
          {
            "name": "onMenuClick",
            "type": "() => void",
            "required": false,
            "description": "Renders the hamburger button; call shell.toggleSideNav"
          },
          {
            "name": "menuExpanded",
            "type": "boolean",
            "required": false,
            "description": "aria-expanded for the hamburger button"
          },
          {
            "name": "skipToContentHref",
            "type": "string | false",
            "required": false,
            "default": "'#cascade-main'",
            "description": "Skip-link target; false disables the link"
          },
          {
            "name": "labels",
            "type": "ShellHeaderLabels",
            "required": false,
            "description": "i18n overrides for built-in strings"
          }
        ],
        "typeDefs": [
          {
            "name": "ShellHeaderAction",
            "description": "A right-aligned global icon action. `actions` is a typed array of these — pass an `icon` node per item, not free-form JSX. For non-action trailing content (user menu, theme switcher) use the `end` slot instead.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true,
                "description": "Stable key for the action."
              },
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Accessible label (aria-label / tooltip)."
              },
              {
                "name": "icon",
                "type": "ReactNode",
                "required": true,
                "description": "Icon node, e.g. an @cascivo/icons glyph."
              },
              {
                "name": "active",
                "type": "boolean",
                "required": false,
                "description": "Renders aria-pressed for a toggle action."
              },
              {
                "name": "onClick",
                "type": "() => void",
                "required": false,
                "description": "Invoked when the action is activated."
              }
            ]
          },
          {
            "name": "ShellHeaderBrand",
            "description": "Structured brand for the `brand` prop (or pass any ReactNode instead).",
            "fields": [
              {
                "name": "prefix",
                "type": "string",
                "required": false,
                "description": "Muted text before the name (e.g. an org)."
              },
              {
                "name": "name",
                "type": "string",
                "required": true,
                "description": "Product/app name."
              },
              {
                "name": "href",
                "type": "string",
                "required": false,
                "description": "Link target for the brand (routed via setLinkComponent)."
              }
            ]
          },
          {
            "name": "ShellHeaderNavItem",
            "description": "A top-nav entry: either a link (`{ label, href, active?, onClick? }`) or a dropdown menu (`{ label, items: { label, href, active? }[] }`).",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Visible nav label."
              },
              {
                "name": "href",
                "type": "string",
                "required": false,
                "description": "Link target (link items). Routed via setLinkComponent."
              },
              {
                "name": "items",
                "type": "{ label: string; href: string; active?: boolean }[]",
                "required": false,
                "description": "Dropdown menu entries (menu items)."
              },
              {
                "name": "active",
                "type": "boolean",
                "required": false,
                "description": "Marks the current nav entry (aria-current)."
              },
              {
                "name": "onClick",
                "type": "(e: MouseEvent<HTMLAnchorElement>) => void",
                "required": false,
                "description": "Intercept navigation (e.g. a SPA section switch)."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-shell-header-block-size",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-accent",
          "--cascivo-radius-control"
        ],
        "accessibility": {
          "role": "banner",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space", "ArrowDown", "ArrowUp", "Escape"]
        },
        "examples": [
          {
            "title": "Console header",
            "code": "import { Bell } from '@cascivo/icons'\n\n<ShellHeader\n  brand={{ prefix: 'cascivo', name: 'Console', href: '/' }}\n  nav={[\n    { label: 'Dashboard', href: '/dash', active: true },\n    { label: 'Manage', items: [{ label: 'Users', href: '/users' }] },\n  ]}\n  actions={[{ id: 'notifications', label: 'Notifications', icon: <Bell /> }]}\n/>",
            "description": "Brand with prefix, dropdown nav, global icon action"
          },
          {
            "title": "Command-palette trigger in the centre slot",
            "code": "<ShellHeader\n  brand={{ name: 'Console', href: '/' }}\n  center={\n    <Button variant=\"ghost\" onClick={openPalette}>\n      Search incidents, alerts, services… <Kbd>⌘K</Kbd>\n    </Button>\n  }\n  end={<UserMenu />}\n/>",
            "description": "center takes the header’s spare width, so the trigger grows and shrinks with the viewport instead of being pinned right like end"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["popover"],
        "tags": ["navigation", "header", "shell", "console", "menu", "app-shell"],
        "intent": {
          "whenToUse": [
            "Building console/admin app chrome with brand, dropdown nav, and global icon actions",
            "Providing a hamburger that toggles a SideNav and a skip-to-content link",
            "Hosting global controls (notifications, switcher, user menu) in one top bar"
          ],
          "whenNotToUse": [
            "A simple marketing or app top bar — use Header",
            "In-page section headings — use Heading"
          ],
          "antiPatterns": [
            {
              "bad": "Reaching for ShellHeader on a basic landing page",
              "good": "<Header> for simple top bars",
              "why": "ShellHeader carries console machinery (dropdowns, icon actions, hamburger) that is overkill for simple sites"
            }
          ],
          "related": [
            {
              "name": "SideNav",
              "relationship": "pairs-with",
              "reason": "The hamburger toggles a SideNav in the app shell"
            },
            {
              "name": "HeaderPanel",
              "relationship": "pairs-with",
              "reason": "Icon actions open HeaderPanels (notifications, switcher)"
            },
            {
              "name": "Header",
              "relationship": "alternative",
              "reason": "Header is the simpler top bar for non-console apps"
            }
          ],
          "a11yRationale": "role=\"banner\" landmarks the header; nav dropdowns expose aria-expanded, icon actions use aria-pressed, the hamburger reports aria-expanded, and a skip-to-content link lets keyboard users bypass the chrome",
          "flexibility": [
            {
              "area": "nav / actions / end slots",
              "level": "flexible",
              "note": "Brand, nav, actions, and end are composable and optional"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Surfaces, sizing, and accent must resolve to --cascivo-* shell tokens"
            }
          ]
        }
      },
      "registryDependencies": ["popover"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "shimmer-text",
      "type": "component",
      "description": "Text with a bright band sweeping through it — the \"Thinking…\" look for a label that marks work in progress",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shimmer-text/shimmer-text.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shimmer-text/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shimmer-text/shimmer-text.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/shimmer-text/shimmer-text.meta.ts"
      ],
      "fileHashes": {
        "shimmer-text.tsx": "sha256-e02cd5a123716a7b0b88b8470bead9ecdc5e454912bc9f7b90d88c634f71236b",
        "index.ts": "sha256-a5768baddb403e68386a219e113f3406da433379eb8c61a6b1172dffa8622348",
        "shimmer-text.module.css": "sha256-7901a2420bba33695d46891cdfa5f6028133a1c01adbf344a1ab03f15154d073",
        "shimmer-text.meta.ts": "sha256-d24c26cccbca5e72c8f89091d8611ad2a2e088670e8883816e69e47bb8b30cc7"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["TextShimmer", "ShimmeringText"],
      "tags": ["ai", "loading", "shimmer", "thinking", "text", "progress"],
      "meta": {
        "name": "ShimmerText",
        "description": "Text with a bright band sweeping through it — the \"Thinking…\" look for a label that marks work in progress",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["span", "p", "div"],
            "children": ["$slot"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "as",
            "description": "`span` for inline text, `p` for a paragraph, `div` for a block that imposes no semantics of its own.",
            "type": "'span' | 'p' | 'div'",
            "required": false,
            "default": "span"
          },
          {
            "name": "children",
            "description": "The label text the shimmer sweeps through.",
            "type": "ReactNode",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-shimmer-text-color",
          "--cascivo-shimmer-text-highlight",
          "--cascivo-color-text-muted",
          "--cascivo-color-ai",
          "--cascivo-duration-loop-slow"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Thinking label",
            "code": "<ShimmerText>Thinking…</ShimmerText>"
          },
          {
            "title": "As a paragraph",
            "code": "<ShimmerText as=\"p\">Searching 12 documents…</ShimmerText>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["ai", "loading", "shimmer", "thinking", "text", "progress"],
        "intent": {
          "whenToUse": [
            "Styling a short label that names work in progress — \"Thinking…\", \"Searching the docs…\"",
            "The trigger or heading of an AI surface while a response is being produced"
          ],
          "whenNotToUse": [
            "Announcing status to assistive tech on its own — it is a visual treatment; wrap it in AiStatus or another role=\"status\" region",
            "Body copy or anything longer than a line — the sweep is meant for a glanceable label",
            "Placeholder for content whose shape is known — use Skeleton"
          ],
          "antiPatterns": [
            {
              "bad": "<ShimmerText>Done</ShimmerText> left in place after the work finishes",
              "good": "Render plain text once the work completes",
              "why": "The shimmer means \"in progress\"; leaving it on a finished label tells the reader something is still happening"
            }
          ],
          "related": [
            {
              "name": "AiStatus",
              "relationship": "contained-by",
              "reason": "AiStatus renders its in-progress label in ShimmerText inside a role=\"status\" region"
            },
            {
              "name": "Reasoning",
              "relationship": "contained-by",
              "reason": "Reasoning shimmers its \"Thinking…\" trigger while streaming"
            },
            {
              "name": "Skeleton",
              "relationship": "alternative",
              "reason": "Skeleton previews the shape of pending content; ShimmerText styles a label that names the work"
            }
          ],
          "a11yRationale": "Purely visual: the text stays real text, so it is read normally and never announced on its own. The sweep runs only under prefers-reduced-motion: no-preference (otherwise plain muted text), and forced colours render it as CanvasText. The highlight band is the AI hue, which clears AA on every shipped theme and is never weaker than the muted base it sweeps over, so the sweep never lowers contrast",
          "content": {
            "tone": "Present progressive and specific — \"Thinking…\", \"Reading 3 files…\"",
            "notes": "One line; end with an ellipsis to reinforce that the work is ongoing"
          },
          "flexibility": [
            {
              "area": "colours",
              "level": "flexible",
              "note": "Override --cascivo-shimmer-text-color and --cascivo-shimmer-text-highlight per instance"
            },
            {
              "area": "motion",
              "level": "strict",
              "note": "The sweep must stay inside the reduced-motion opt-in; never animate it unconditionally"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "side-nav",
      "type": "component",
      "description": "Collapsible sidebar navigation with optional icons and one level of grouping",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/side-nav/side-nav.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/side-nav/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/side-nav/side-nav.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/side-nav/side-nav.meta.ts"
      ],
      "fileHashes": {
        "side-nav.tsx": "sha256-0e2a7608ebce25e7c3e5909a08367c3d3729b4cd21c97ddd07d3a1113c73a242",
        "index.ts": "sha256-2c4c28ca1ec620b0e05a118ce458eed465026fa548102eebd4f450c260d7e157",
        "side-nav.module.css": "sha256-be7981a930bdf3a19250c229e96db1bd9ad1cd282970ca22b53b6dbfb0cd189a",
        "side-nav.meta.ts": "sha256-213bc8564600abd117c19fae9983b16985ca04d65fa58ef6280ba5b09890f7b0"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Sidebar", "NavigationRail", "SideBar"],
      "tags": ["navigation", "sidebar", "app-shell", "collapsible"],
      "meta": {
        "name": "SideNav",
        "description": "Collapsible sidebar navigation with optional icons and one level of grouping",
        "category": "navigation",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "nav",
            "local": "sideNav",
            "data": {
              "data-state": ["expanded", "collapsed"],
              "data-expand-on-hover": "string"
            },
            "aria": ["aria-label"],
            "children": ["header", "list", "footer", "collapseToggle"]
          },
          "parts": {
            "header": {
              "element": "div",
              "children": ["$slot"]
            },
            "list": {
              "element": "ul",
              "children": ["group"]
            },
            "group": {
              "element": "li",
              "children": ["groupLabel", "groupItems"]
            },
            "groupLabel": {
              "element": "h3",
              "children": ["$text"]
            },
            "groupItems": {
              "element": "ul",
              "children": ["link", "groupTrigger", "railFlyout", "sublist", "customItem"]
            },
            "link": {
              "element": ["a", "button"],
              "role": "menuitem",
              "modifiers": {
                "sublink": "sub item",
                "flyoutItem": "in rail flyout"
              },
              "data": {
                "data-state": ["active"],
                "data-tone": ["danger", "warning", "success"],
                "data-selected": "boolean"
              },
              "aria": ["aria-current", "aria-label", "aria-disabled"],
              "children": ["icon", "fallbackIcon", "label", "trailing", "checkMark"]
            },
            "groupTrigger": {
              "element": "button",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-expanded", "aria-controls", "aria-haspopup", "aria-label"],
              "children": ["icon", "fallbackIcon", "label", "groupIndicator"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "fallbackIcon": {
              "element": "span",
              "data": {
                "data-fallback-icon": "boolean"
              },
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "label": {
              "element": "span",
              "data": {
                "data-rail-hidden": "boolean"
              },
              "children": ["$text"]
            },
            "trailing": {
              "element": "span",
              "data": {
                "data-rail-hidden": "boolean"
              },
              "children": ["$slot"]
            },
            "checkMark": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "groupIndicator": {
              "element": "svg",
              "aria": ["aria-hidden"]
            },
            "sublist": {
              "element": "div",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["sublistInner"]
            },
            "sublistInner": {
              "element": "ul",
              "children": ["subSeparator", "subGroupLabel", "link"]
            },
            "subSeparator": {
              "element": "li",
              "role": "separator"
            },
            "subGroupLabel": {
              "element": "li",
              "children": ["$text"]
            },
            "railFlyout": {
              "element": "div",
              "role": "menu",
              "aria": ["aria-label"],
              "children": ["railFlyoutCaption", "flyoutSeparator", "link"]
            },
            "railFlyoutCaption": {
              "element": "div",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "flyoutSeparator": {
              "element": "div",
              "role": "separator"
            },
            "customItem": {
              "element": "li",
              "children": ["$slot"]
            },
            "footer": {
              "element": "div",
              "children": ["$slot"]
            },
            "collapseToggle": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["collapseIcon"]
            },
            "collapseIcon": {
              "element": "svg",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": ["expanded", "collapsed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "groups",
            "type": "SideNavGroup[]",
            "required": false,
            "description": "Grouped navigation items rendered under optional group labels."
          },
          {
            "name": "showCollapseToggle",
            "default": "true",
            "type": "boolean",
            "required": false,
            "description": "Show the collapse/expand toggle control."
          },
          {
            "name": "items",
            "type": "SideNavItem[]",
            "required": false,
            "description": "{ label, href?, icon?, active?, items?, onClick?, disabled?, tone?, trailing?, render? } — an onClick-only item renders a focusable <button>; nested items render expandable menus (links, action sub-items with onSelect/selected, separators, labels); render() is an alignment-preserving escape hatch"
          },
          {
            "name": "collapsed",
            "type": "boolean",
            "required": false,
            "description": "Controlled collapsed state (rail mode)"
          },
          {
            "name": "defaultCollapsed",
            "description": "Whether the rail is collapsed on first render (uncontrolled).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onCollapsedChange",
            "description": "Called with the new collapsed state when it changes.",
            "type": "(collapsed: boolean) => void",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Accessible label for the component.",
            "type": "string",
            "required": false,
            "default": "Side navigation"
          },
          {
            "name": "collapseLabel",
            "description": "Accessible label for the collapse control.",
            "type": "string",
            "required": false,
            "default": "Collapse navigation"
          },
          {
            "name": "expandLabel",
            "description": "Accessible label for the expand control.",
            "type": "string",
            "required": false,
            "default": "Expand navigation"
          },
          {
            "name": "expandOnHover",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Widens the rail as an overlay on hover/focus-within; suppresses tooltips/flyouts"
          },
          {
            "name": "header",
            "type": "ReactNode | ((ctx: SideNavSlotContext) => ReactNode)",
            "required": false,
            "description": "Content rendered above the items, inside the item padding context (e.g. app-context pickers). Pass a `({ collapsed }) => …` function to shrink it to a rail icon."
          },
          {
            "name": "footer",
            "type": "ReactNode | ((ctx: SideNavSlotContext) => ReactNode)",
            "required": false,
            "description": "Content rendered above the collapse toggle, inside the item padding context so it lines up with the nav items (e.g. version string, user info). Pass a `({ collapsed }) => …` function to shrink it to a rail icon."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-sidenav-inline-size",
          "--cascivo-sidenav-rail-inline-size",
          "--cascivo-sidenav-bg",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-accent",
          "--cascivo-color-accent-subtle",
          "--cascivo-color-destructive",
          "--cascivo-color-warning",
          "--cascivo-color-success",
          "--cascivo-focus-ring",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit",
          "--cascivo-motion-emphasis"
        ],
        "accessibility": {
          "role": "navigation",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space", "ArrowDown", "ArrowUp", "Escape"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<SideNav items={[{ label: 'Home', href: '/', active: true }, { label: 'Reports', href: '/reports' }]} />"
          },
          {
            "title": "With a group",
            "code": "<SideNav items={[{ label: 'Settings', items: [{ label: 'Profile', href: '/profile' }] }]} />"
          },
          {
            "title": "Icon rail",
            "code": "import { Home } from '@cascivo/icons'\n\n<SideNav collapsed items={[{ label: 'Home', href: '/', icon: <Home size={16} /> }]} />",
            "description": "Collapsed rail: icons-only with tooltips, grapheme fallback for icon-less items, flyout menus for groups"
          },
          {
            "title": "Expand on hover",
            "code": "<SideNav collapsed expandOnHover items={items} />",
            "description": "Rail widens as CSS overlay on hover without reflowing adjacent content"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["popover", "tooltip"],
        "tags": ["navigation", "sidebar", "app-shell", "collapsible"],
        "intent": {
          "whenToUse": [
            "Persistent primary navigation along the side of an app shell",
            "Grouping nav items one level deep with collapsible groups",
            "Saving space with a collapsible icon rail (collapsed / expandOnHover)"
          ],
          "whenNotToUse": [
            "Top-level horizontal navigation — use Header or ShellHeader nav",
            "A transient contextual menu — use Dropdown"
          ],
          "antiPatterns": [
            {
              "bad": "Nesting nav groups more than one level deep",
              "good": "Flatten to a single level of grouping, or split into sections",
              "why": "Deep nesting in a sidebar is hard to scan and the component supports only one level by design"
            }
          ],
          "related": [
            {
              "name": "ShellHeader",
              "relationship": "pairs-with",
              "reason": "The header hamburger toggles SideNav collapse"
            }
          ],
          "a11yRationale": "role=\"navigation\" with an aria-label names the region; the collapse toggle has an explicit expand/collapse label, groups expose aria-expanded, and the collapsed rail provides tooltips/flyouts so icon-only items remain identifiable",
          "flexibility": [
            {
              "area": "collapsed / expandOnHover",
              "level": "flexible",
              "note": "Rail behavior is configurable for density needs"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Sizing, surfaces, and motion must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "registryDependencies": ["popover", "tooltip"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "skeleton",
      "type": "component",
      "description": "Animated loading placeholder that mirrors the shape of pending content",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skeleton/skeleton.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skeleton/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skeleton/skeleton.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skeleton/skeleton.meta.ts"
      ],
      "fileHashes": {
        "skeleton.tsx": "sha256-69117ac755da771dc17fa2fb89893e7706bcfe289a16e021a41ac6cdc248cbe3",
        "index.ts": "sha256-3cd143d51d5ab40488226dc7ff2e562643f869b469171fcd7fdb8a36d7e02951",
        "skeleton.module.css": "sha256-fcced5328d1417de96aaf2d7477f34bf9d0ae4e06ce9d8a96d5533291981b850",
        "skeleton.meta.ts": "sha256-78da6231f50de7cc731057599b5db05a55b99256a27e37e941320de8b34c4574"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["Placeholder", "Shimmer", "AiSkeleton", "AISkeleton"],
      "tags": ["loading", "placeholder", "shimmer", "ai"],
      "meta": {
        "name": "Skeleton",
        "description": "Animated loading placeholder that mirrors the shape of pending content",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-variant": ["text", "circle", "rect"],
              "data-ai": "boolean"
            },
            "aria": ["aria-hidden"],
            "children": ["line"],
            "emit": "manual"
          },
          "parts": {
            "line": {
              "element": "span",
              "when": "variant === 'text'"
            }
          }
        },
        "states": [],
        "variants": ["text", "circle", "rect"],
        "sizes": [],
        "props": [
          {
            "name": "variant",
            "description": "Shape of the placeholder: `text` (stacked lines), `circle` (an avatar), `rect` (a block).",
            "type": "'text' | 'circle' | 'rect'",
            "required": false,
            "default": "text"
          },
          {
            "name": "width",
            "type": "string",
            "required": false,
            "description": "CSS length applied as an inline custom property"
          },
          {
            "name": "height",
            "type": "string",
            "required": false,
            "description": "CSS length applied as an inline custom property"
          },
          {
            "name": "lines",
            "type": "number",
            "required": false,
            "default": "1",
            "description": "Number of bars for the text variant; the last bar renders shorter"
          },
          {
            "name": "ai",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Tints the placeholder and its sheen with the AI hue, marking content that an AI is generating (Carbon’s AI skeleton)."
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-sm",
          "--cascivo-radius-full",
          "--cascivo-radius-component",
          "--cascivo-color-ai-subtle",
          "--cascivo-color-ai-sheen"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Text",
            "code": "<Skeleton lines={3} />"
          },
          {
            "title": "Avatar",
            "code": "<Skeleton variant=\"circle\" width=\"3rem\" height=\"3rem\" />"
          },
          {
            "title": "Image",
            "code": "<Skeleton variant=\"rect\" height=\"12rem\" />"
          },
          {
            "title": "AI-generated content",
            "code": "<Skeleton ai lines={3} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["loading", "placeholder", "shimmer", "ai"],
        "intent": {
          "whenToUse": [
            "Indicating loading by mirroring the shape of the content that will appear",
            "Reducing layout shift while data for a known structure is fetching",
            "Loading larger content regions where shape preview reassures the user",
            "Holding the place of a response an AI is still generating — set `ai`"
          ],
          "whenNotToUse": [
            "Indeterminate work with no known content shape — use Spinner",
            "A view that is empty rather than loading — use EmptyState"
          ],
          "antiPatterns": [
            {
              "bad": "Leaving Skeleton mounted after data has loaded",
              "good": "Swap Skeleton for the real content once data resolves",
              "why": "A persistent skeleton signals perpetual loading and traps assistive tech in a pending state"
            }
          ],
          "related": [
            {
              "name": "Spinner",
              "relationship": "alternative",
              "reason": "Spinner suits indeterminate work with no content shape to preview"
            },
            {
              "name": "EmptyState",
              "relationship": "alternative",
              "reason": "Use EmptyState when the result is empty, not loading"
            }
          ],
          "a11yRationale": "Presentational by role — the placeholder shapes carry no meaning; the surrounding region should expose busy/loading state so assistive tech is not left guessing",
          "flexibility": [
            {
              "area": "variant and dimensions",
              "level": "flexible",
              "note": "Shape, width, height, and line count match the pending content"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Background and radius must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "skip-nav",
      "type": "component",
      "description": "Skip link that jumps keyboard users past the navigation to the main content",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skip-nav/skip-nav.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skip-nav/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skip-nav/skip-nav.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/skip-nav/skip-nav.meta.ts"
      ],
      "fileHashes": {
        "skip-nav.tsx": "sha256-545eb2b2b0f47a75cf905d477e984296448e84846f06f23aad8817333115dadb",
        "index.ts": "sha256-afb98f95fab167ddf48651bb1dac87d72b9989ba47aea2ae64015f25b3a6a328",
        "skip-nav.module.css": "sha256-be8d00fd4d27de2595d3cd85e16c70cdfda3d3d6ab81c15fa5cf536aa27c3025",
        "skip-nav.meta.ts": "sha256-f23d6feaf77f33ca7b74deaa523322427e70283d60db7f400e73976b851347d8"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["accessibility", "skip-link", "keyboard", "navigation"],
      "meta": {
        "name": "SkipNav",
        "importSymbols": "SkipNavLink, SkipNavTarget",
        "description": "Skip link that jumps keyboard users past the navigation to the main content",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "a",
            "local": "link",
            "children": ["$text"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "targetId",
            "type": "string",
            "required": false,
            "default": "cascade-skip-target",
            "description": "SkipNavLink: id of the SkipNavTarget to jump to"
          },
          {
            "name": "labels",
            "type": "{ label?: string }",
            "required": false,
            "description": "SkipNavLink: overrides the built-in i18n label per instance"
          },
          {
            "name": "id",
            "type": "string",
            "required": false,
            "default": "cascade-skip-target",
            "description": "SkipNavTarget: anchor id — must match the link targetId"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-text",
          "--cascivo-radius-control",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "link",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter"]
        },
        "examples": [
          {
            "title": "Default pair",
            "code": "<><SkipNavLink /><nav>…</nav><SkipNavTarget /><main>…</main></>",
            "description": "SkipNavLink must be the first focusable element on the page"
          },
          {
            "title": "Custom target",
            "code": "<><SkipNavLink targetId=\"main-content\" /><SkipNavTarget id=\"main-content\" /></>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["accessibility", "skip-link", "keyboard", "navigation"],
        "intent": {
          "whenToUse": [
            "Letting keyboard users jump past repeated navigation to the main content",
            "Meeting WCAG bypass-blocks by providing a skip link as the first focusable element",
            "Targeting a custom main-content anchor (targetId / matching SkipNavTarget id)"
          ],
          "whenNotToUse": [
            "General in-page navigation — use anchor links or a table of contents",
            "Visible persistent navigation — this link is hidden until focused"
          ],
          "antiPatterns": [
            {
              "bad": "Placing SkipNavLink after the navigation in the DOM",
              "good": "Make SkipNavLink the first focusable element on the page",
              "why": "A skip link only works if the user reaches it before tabbing through the nav it bypasses"
            }
          ],
          "related": [
            {
              "name": "ShellHeader",
              "relationship": "alternative",
              "reason": "ShellHeader has a built-in skip-to-content link for console shells"
            }
          ],
          "a11yRationale": "Renders an anchor that is visually hidden until focused, then becomes visible so sighted keyboard users see where focus is; activating it moves focus to the matching target past the navigation",
          "content": {
            "tone": "Plain instruction (\"Skip to content\")",
            "notes": "Label is i18n-driven and overridable per instance"
          },
          "flexibility": [
            {
              "area": "target id",
              "level": "flexible",
              "note": "targetId/id may be customized as long as they match"
            },
            {
              "area": "first-focusable placement",
              "level": "strict",
              "note": "SkipNavLink must be the first focusable element to function"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"],
      "importableSymbols": [
        "SkipNavLink",
        "SkipNavLinkProps",
        "SkipNavTarget",
        "SkipNavTargetProps"
      ]
    },
    {
      "name": "slider",
      "type": "component",
      "description": "Range input for selecting a value within bounds",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/slider/slider.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/slider/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/slider/slider.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/slider/slider.meta.ts"
      ],
      "fileHashes": {
        "slider.tsx": "sha256-c49476378ead6c842e27d4ae0078cc8900de23b4f66f7239fe88fb17a38a3e72",
        "index.ts": "sha256-8dc2b339ea4246a3740ab8294c12e2b5405113ee0bae262e794ffb0771157b6f",
        "slider.module.css": "sha256-4bff460e358e21d6595f9e3d4472642bcd9f9ee2826b810c76387c712d5c8632",
        "slider.meta.ts": "sha256-4ca24b728a16dd55c363c1c4f110a7b8717c56d57eb4fee9e3d7e6d4c9db9625"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "range", "input"],
      "meta": {
        "name": "Slider",
        "description": "Range input for selecting a value within bounds",
        "category": "inputs",
        "clientJs": "none",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-disabled": [""]
            },
            "children": ["label", "slider"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"],
              "when": "label"
            },
            "slider": {
              "element": "input",
              "aria": ["aria-label"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "min",
            "description": "Minimum allowed value.",
            "type": "number",
            "required": false,
            "default": "0"
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false,
            "default": "100"
          },
          {
            "name": "step",
            "description": "Increment between allowed values.",
            "type": "number",
            "required": false,
            "default": "1"
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "number",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "number",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onChange",
            "description": "Called with the change event; read the new value from `event.target.value`.",
            "type": "React.ChangeEventHandler<HTMLInputElement>",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-border-strong",
          "--cascivo-color-surface",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "slider",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"],
          "apgPattern": "slider",
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Slider label=\"Volume\" defaultValue={50} />"
          },
          {
            "title": "Stepped",
            "code": "<Slider label=\"Rating\" min={0} max={5} step={1} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "range", "input"],
        "intent": {
          "whenToUse": [
            "Selecting a value within a continuous or stepped numeric range where approximate adjustment is fine",
            "Settings like volume, brightness, or opacity where dragging gives instant feedback",
            "When the bounds (min/max) matter more than entering an exact figure"
          ],
          "whenNotToUse": [
            "A precise numeric value must be typed — use NumberInput",
            "Picking a discrete rating on a small scale where stars/icons read better — use RatingGroup"
          ],
          "antiPatterns": [
            {
              "bad": "<Slider label=\"Price\" min={0} max={1000000} />",
              "good": "<NumberInput label=\"Price\" />",
              "why": "A huge range makes a single value impossible to hit by dragging; type the exact number instead"
            }
          ],
          "related": [
            {
              "name": "NumberInput",
              "relationship": "alternative",
              "reason": "Use when an exact, typed numeric value is required"
            },
            {
              "name": "RatingGroup",
              "relationship": "alternative",
              "reason": "Use for small discrete rating scales rather than a continuous range"
            }
          ],
          "a11yRationale": "Renders a native <input type=\"range\"> so the slider role, value announcements, and full arrow/Home/End keyboard support come from the platform without custom ARIA.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Track and thumb colors must resolve to --cascivo-color-* / radius / focus-ring tokens"
            },
            {
              "area": "min/max/step",
              "level": "flexible",
              "note": "Consumer-defined bounds and increment"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "sources",
      "type": "component",
      "description": "Collapsible, numbered list of the sources an AI answer drew on — \"Used 3 sources\" — whose numbers match InlineCitation",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sources/sources.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sources/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sources/sources.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/sources/sources.meta.ts"
      ],
      "fileHashes": {
        "sources.tsx": "sha256-058acf2025f1a1925a6993295e82506a4cb486f0586f15bf66c8f424d18888db",
        "index.ts": "sha256-23f571560f79f390af6ea5bce00096602ed32f74eb627e3d3608127241e724bc",
        "sources.module.css": "sha256-70163937865d10812d1378a9943edfe43159a3330ecd2bc9a593fbbca1eba819",
        "sources.meta.ts": "sha256-811fab6ab765b44eccccdf65951fe914ceb78c9f177204bda901a2666dede217"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["SourceList", "References", "SourcesCard"],
      "tags": ["ai", "sources", "citations", "references", "provenance", "links"],
      "meta": {
        "name": "Sources",
        "description": "Collapsible, numbered list of the sources an AI answer drew on — \"Used 3 sources\" — whose numbers match InlineCitation",
        "category": "display",
        "clientJs": "none",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "details",
            "local": "sources",
            "children": ["summary", "list"],
            "emit": "manual"
          },
          "parts": {
            "summary": {
              "element": "summary",
              "children": ["$text", "indicator"]
            },
            "indicator": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "list": {
              "element": "ol",
              "children": ["item"]
            },
            "item": {
              "element": "li",
              "children": ["title", "host", "description"]
            },
            "title": {
              "element": ["a", "span"],
              "children": ["$text"]
            },
            "host": {
              "element": "span",
              "children": ["$text"]
            },
            "description": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "description": "The sources, in citation order. Each has `title`, `url` and an optional `description`. Only absolute http(s) URLs become links; anything else (e.g. `javascript:`) renders as text.",
            "type": "AiSource[]",
            "required": true
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n). `summary` may contain `{count}`.",
            "type": "{ summary?: string }",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "AiSource",
            "description": "One source an answer cites.",
            "fields": [
              {
                "name": "title",
                "type": "string",
                "required": true,
                "description": "The source’s title."
              },
              {
                "name": "url",
                "type": "string",
                "required": true,
                "description": "Where it lives. Treated as untrusted: only absolute http(s) URLs are linked."
              },
              {
                "name": "description",
                "type": "ReactNode",
                "required": false,
                "description": "An excerpt or note shown under the title."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-link-color",
          "--cascivo-color-accent-text",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"],
          "apgPattern": "disclosure",
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Answer sources",
            "code": "<Sources\n  items={[\n    { title: 'Refund policy', url: 'https://example.com/refunds' },\n    { title: 'Terms of service', url: 'https://example.com/terms', description: '§4 covers cancellations.' },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["ai", "sources", "citations", "references", "provenance", "links"],
        "intent": {
          "whenToUse": [
            "Listing what an AI answer was based on, below the answer",
            "Giving numbered targets for the InlineCitation markers inside the answer"
          ],
          "whenNotToUse": [
            "Ordinary navigation links — use List or Link",
            "An agent’s process (searched, read, wrote) — use ChainOfThought"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering model-supplied URLs straight into href",
              "good": "Pass them to Sources / InlineCitation, which only link absolute http(s) URLs",
              "why": "A model can emit javascript: or data: URLs; linking them is script injection"
            }
          ],
          "related": [
            {
              "name": "InlineCitation",
              "relationship": "pairs-with",
              "reason": "InlineCitation numbers in the text point at the same rows"
            },
            {
              "name": "AiBadge",
              "relationship": "pairs-with",
              "reason": "AiBadge marks the answer as AI-generated; Sources says what it rests on"
            }
          ],
          "a11yRationale": "A native <details>/<summary> disclosure (Enter/Space) whose summary states the count (\"Used 3 sources\"), so it works before hydration and find-in-page can open it. The list is an <ol>, so each source is announced with its number, matching the InlineCitation markers. Refused URLs render as plain text, never as a link that does nothing",
          "content": {
            "tone": "Use the source’s own title; keep descriptions to a short excerpt"
          },
          "flexibility": [
            {
              "area": "summary text",
              "level": "flexible",
              "note": "Localise or reword via labels.summary (with {count})"
            },
            {
              "area": "URL handling",
              "level": "strict",
              "note": "Do not bypass sourceHref() — model output is untrusted"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "spinner",
      "type": "component",
      "description": "Indeterminate loading indicator",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/spinner/spinner.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/spinner/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/spinner/spinner.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/spinner/spinner.meta.ts"
      ],
      "fileHashes": {
        "spinner.tsx": "sha256-b8181467e642cb7dd358502beb02782783eca4a2442921e3b28536e8a612475b",
        "index.ts": "sha256-289926314e31ebc055e6646d2c4f3734b89b35e64f64029a52229f0de0b016e5",
        "spinner.module.css": "sha256-0b30409351e2118f18b66ac857adafd22b18eecd786ac4b201331c28ad94ca72",
        "spinner.meta.ts": "sha256-6abe2a7b11f692d139701b5671ceada7b7881c1673c12421b771c564bb6b7527"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["CircularProgress", "Loader", "loading-spinner"],
      "tags": ["loading", "progress", "feedback"],
      "meta": {
        "name": "Spinner",
        "description": "Indeterminate loading indicator",
        "category": "feedback",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "data": {
              "data-size": ["sm", "md", "lg"]
            },
            "role": "status",
            "aria": ["aria-label"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "default": "Loading",
            "description": "Accessible label announced by screen readers"
          }
        ],
        "tokens": ["--cascivo-radius-full"],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": false
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Spinner />"
          },
          {
            "title": "Large",
            "code": "<Spinner size=\"lg\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["loading", "progress", "feedback"],
        "intent": {
          "whenToUse": [
            "Indicating indeterminate work where duration and progress are unknown",
            "Loading a small region or inline control where a shape preview is unnecessary",
            "Showing busy state in buttons or compact UI"
          ],
          "whenNotToUse": [
            "Progress with a known percentage — use ProgressBar or ProgressCircle",
            "Loading content with a known structure — use Skeleton"
          ],
          "antiPatterns": [
            {
              "bad": "A full-page spinner for content whose layout is known",
              "good": "<Skeleton> mirroring the content shape to reduce perceived wait and layout shift",
              "why": "Skeletons preview structure and feel faster; spinners are best for short, shapeless waits"
            }
          ],
          "related": [
            {
              "name": "Skeleton",
              "relationship": "alternative",
              "reason": "Skeleton suits content with a known shape"
            },
            {
              "name": "ProgressBar",
              "relationship": "alternative",
              "reason": "ProgressBar suits determinate progress"
            }
          ],
          "a11yRationale": "role=\"status\" with an accessible label (default \"Loading\", i18n-driven) so assistive tech announces the busy state rather than leaving the spin silent",
          "flexibility": [
            {
              "area": "size",
              "level": "flexible",
              "note": "sm/md/lg to fit inline vs standalone use"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Radius must resolve to --cascivo-radius-full"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "stack",
      "type": "component",
      "description": "Overlaps children in a CSS grid stack with a configurable offset to create a card-pile effect",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stack/stack.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stack/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stack/stack.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stack/stack.meta.ts"
      ],
      "fileHashes": {
        "stack.tsx": "sha256-c8cf24d3b4ab6e3f2e404b3bb266c32151311ae2cac47f6e030382d4044174a3",
        "index.ts": "sha256-c553c41416aefb335037f4634e8dfa1435dd619295df3b09160dbf8d9fc3455c",
        "stack.module.css": "sha256-b6dfb65ef871476c58e3ee646b2a4e63ad68c9b954996fa182ff4118d1625974",
        "stack.meta.ts": "sha256-77e2eda4574910243d702bf67da8228b29d0536f37843f803aef731406413cbc"
      },
      "dependencies": [],
      "tags": ["stack", "pile", "overlap", "layered", "z-axis", "card-pile", "layout"],
      "meta": {
        "name": "Stack",
        "description": "Overlaps children in a CSS grid stack with a configurable offset to create a card-pile effect",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "children": ["layer"],
            "emit": "manual"
          },
          "parts": {
            "layer": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "offset",
            "type": "number",
            "required": false,
            "default": "4",
            "description": "Pixel offset applied per overlapped layer in both axes. This is NOT a spacing `gap` — for gap-based vertical/horizontal layout use `Flex`/`Grid` and their `gap` prop."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Card pile",
            "code": "<Stack offset={6}><Card>First</Card><Card>Second</Card><Card>Third</Card></Stack>",
            "description": "Three cards stacked with a 6px offset to show depth"
          },
          {
            "title": "Tight stack",
            "code": "<Stack offset={2}><Avatar src=\"/a.jpg\" /><Avatar src=\"/b.jpg\" /><Avatar src=\"/c.jpg\" /></Stack>",
            "description": "Overlapping avatar group with minimal offset"
          }
        ],
        "dependencies": [],
        "tags": ["stack", "pile", "overlap", "layered", "z-axis", "card-pile", "layout"],
        "intent": {
          "whenToUse": [
            "Card pile UI where depth and layering should be visible",
            "Overlapping avatar groups",
            "Notification stack visualisations"
          ],
          "whenNotToUse": [
            "Gap-based vertical/horizontal layout — that is a DIFFERENT component, `Flex` (`layout/flex`). This `Stack` only overlaps children with an offset.",
            "Independent positioned elements — use CSS position directly"
          ],
          "related": [
            {
              "name": "layout/flex",
              "relationship": "alternative",
              "reason": "The flex layout primitive `Flex`, for gap-based vertical/horizontal stacking — a different component from this card-pile Stack."
            },
            {
              "name": "Avatar",
              "relationship": "pairs-with",
              "reason": "Overlapping avatar groups are a primary use case for Stack"
            },
            {
              "name": "Card",
              "relationship": "pairs-with",
              "reason": "Card pile visualisations are a common Stack pattern"
            }
          ],
          "antiPatterns": [
            {
              "bad": "import { Stack } from '@cascivo/react' to space items vertically",
              "good": "For flex layout use Flex (import { Flex } from \"@cascivo/react\"); use this Stack only for a visual card-pile",
              "why": "The npm `Stack` overlaps its children by an offset — it does not do gap-based layout. Reach for `Flex` when you want gap-based flex layout."
            }
          ],
          "a11yRationale": "Stack is a layout-only container (role=\"none\"). Each child must carry its own accessible semantics. Stacked cards that are interactive should each have a focusable element and a descriptive label.",
          "flexibility": [
            {
              "area": "offset",
              "level": "flexible",
              "note": "The pixel offset is fully configurable; set to 0 for a pure overlap with no shift"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "stat",
      "type": "component",
      "description": "Displays a key metric with optional delta, trend direction and help text",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stat/stat.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stat/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stat/stat.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/stat/stat.meta.ts"
      ],
      "fileHashes": {
        "stat.tsx": "sha256-b98769afb7bb644f5490872cdf84a8804ddc2ef491544e2861f1e6f5fe14a8bb",
        "index.ts": "sha256-1a01e5db5791b875486076c8c753ab42c16151d8679a793e414880274ce73d29",
        "stat.module.css": "sha256-9ed322b9a80279a9ade2de1940f925ccc6741141ff95c9d164b54c19b7ca7874",
        "stat.meta.ts": "sha256-4e209124b739570bf47dc4fb20222199e503d7ef09dea6845e87703cf4079272"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["stat", "kpi", "metric", "number"],
      "meta": {
        "name": "Stat",
        "description": "Displays a key metric with optional delta, trend direction and help text",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-card": ["true"]
            },
            "children": ["label", "value", "delta", "help", "visual"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "span",
              "children": ["$text"]
            },
            "value": {
              "element": "span",
              "children": ["$text"]
            },
            "delta": {
              "element": "span",
              "data": {
                "data-trend": ["up", "down", "flat"],
                "data-sentiment": ["good", "bad", "neutral"]
              },
              "children": ["arrow", "$text"],
              "when": "delta"
            },
            "arrow": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"]
            },
            "help": {
              "element": "span",
              "children": ["$text"],
              "when": "helpText"
            },
            "visual": {
              "element": "span",
              "children": ["$slot"],
              "when": "visual"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "card",
            "description": "Wrap the tile in the same card chrome `@cascivo/charts`' `Kpi` ships (surface, border, radius, padding), so a `Stat` row and a `Kpi` row in one dashboard read as one system. Off by default: `Stat` is layout-only so it can sit inside a `Card` you control.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "string",
            "required": true,
            "description": "What the metric measures — rendered visibly above the value."
          },
          {
            "name": "value",
            "type": "string | number",
            "required": true,
            "description": "The metric value"
          },
          {
            "name": "delta",
            "type": "string",
            "required": false,
            "description": "Change indicator rendered next to the trend arrow"
          },
          {
            "name": "trend",
            "description": "Direction of the trend indicator ('up' | 'down' | 'flat').",
            "type": "'up' | 'down' | 'flat'",
            "required": false,
            "default": "flat"
          },
          {
            "name": "goodDirection",
            "description": "Which direction is *good* for this metric — the colour, independent of the arrow. 'up' (default) is the classic revenue tile; use 'down' for errors, latency, cost or churn, where a rise is bad news; 'neutral' keeps the arrow and drops the sentiment colour.",
            "type": "'up' | 'down' | 'neutral'",
            "required": false,
            "default": "up"
          },
          {
            "name": "helpText",
            "type": "string",
            "required": false,
            "description": "Fine print below the value (methodology, time range)"
          },
          {
            "name": "visual",
            "type": "React.ReactNode",
            "required": false,
            "description": "Trailing decorative visual, e.g. a Sparkline from the separate @cascivo/charts package (not exported from @cascivo/react), rendered below the value/delta/helpText"
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-text-muted",
          "--cascivo-color-success",
          "--cascivo-color-destructive"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Stat label=\"Components\" value={106} />"
          },
          {
            "title": "With trend",
            "code": "<Stat label=\"Bundle size\" value=\"12.4 kB\" delta=\"-1.2 kB\" trend=\"up\" />"
          },
          {
            "title": "With help text",
            "code": "<Stat label=\"Axe violations\" value={0} helpText=\"WCAG 2.1 AA, 4 app states\" />"
          },
          {
            "title": "With a trailing sparkline",
            "code": "<Stat label=\"Requests / min\" value=\"1.2k\" delta=\"+4.3%\" trend=\"up\" visual={<Sparkline data={requestsPerMinute} label=\"Requests per minute trend\" />} />",
            "description": "Sparkline is from @cascivo/charts"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["stat", "kpi", "metric", "number"],
        "intent": {
          "whenToUse": [
            "Highlighting a single key metric with a clear label",
            "Showing change over time with a delta and trend direction",
            "Annotating a metric with methodology or time-range help text"
          ],
          "whenNotToUse": [
            "Multiple comparable rows of data — use DataTable",
            "A non-numeric status label — use Badge or Status"
          ],
          "antiPatterns": [
            {
              "bad": "A grid of Stats used to fake a data table",
              "good": "DataTable when the values are rows to compare and sort",
              "why": "Stat optimizes for one headline number, not tabular comparison"
            }
          ],
          "related": [
            {
              "name": "Card",
              "relationship": "contained-by",
              "reason": "Stats commonly sit inside a Card tile on dashboards"
            }
          ],
          "a11yRationale": "Presentational by role; the label-value pairing is real text so the metric and its meaning are read in order, and trend direction is conveyed by text/glyph, not color alone",
          "content": {
            "tone": "Factual; label names the metric, help text gives context",
            "notes": "Keep labels short; put caveats in helpText"
          },
          "flexibility": [
            {
              "area": "delta and trend",
              "level": "flexible",
              "note": "Optional — include only when change is meaningful"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Trend colors must resolve to --cascivo-color-success/destructive"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "status",
      "type": "component",
      "description": "Colored dot with a label communicating the state of a system or entity",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/status/status.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/status/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/status/status.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/status/status.meta.ts"
      ],
      "fileHashes": {
        "status.tsx": "sha256-989cb60e66eb3f639d5c6bc6fe89ac268b574f23b1047d775020b9453c44daac",
        "index.ts": "sha256-4a631f54851ecd0f6a6ad2a844e14127cd568d53945c871e40f070c16029c05e",
        "status.module.css": "sha256-d8657ec17a1e9cb339d8b86ebda034bae0de7cd591a15a859fc5853d2665c54a",
        "status.meta.ts": "sha256-9f1ec8aac809f76b024d52fa35fb667553aee108d2b8f35ce091accc238ef3ee"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["status", "indicator", "dot", "badge"],
      "meta": {
        "name": "Status",
        "description": "Colored dot with a label communicating the state of a system or entity",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "data": {
              "data-status": ["success", "warning", "error", "info", "neutral"],
              "data-pulse": "boolean"
            },
            "children": ["dot", "$slot"],
            "emit": "manual"
          },
          "parts": {
            "dot": {
              "element": "span",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": [],
        "variants": ["success", "warning", "error", "info", "neutral"],
        "sizes": [],
        "props": [
          {
            "name": "status",
            "description": "Status state.",
            "type": "'success' | 'warning' | 'error' | 'info' | 'neutral'",
            "required": false,
            "default": "neutral"
          },
          {
            "name": "pulse",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Pulses the dot — gated behind prefers-reduced-motion: no-preference"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Status label"
          }
        ],
        "tokens": [
          "--cascivo-color-success",
          "--cascivo-color-warning",
          "--cascivo-color-error",
          "--cascivo-color-info",
          "--cascivo-color-text-muted",
          "--cascivo-color-text",
          "--cascivo-radius-full"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Status>Unknown</Status>"
          },
          {
            "title": "Success",
            "code": "<Status status=\"success\">Operational</Status>"
          },
          {
            "title": "Pulsing",
            "code": "<Status status=\"info\" pulse>Deploying</Status>",
            "description": "The pulse animation respects prefers-reduced-motion"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["status", "indicator", "dot", "badge"],
        "intent": {
          "whenToUse": [
            "Communicating the live state of a system or entity (operational, deploying, down)",
            "Pairing a colored dot with a text label for an at-a-glance state",
            "Drawing attention to an active/changing state with an optional pulse"
          ],
          "whenNotToUse": [
            "A static category or count label — use Badge",
            "An identity thumbnail with presence — use Avatar with its status prop"
          ],
          "antiPatterns": [
            {
              "bad": "<Status status=\"success\" /> with no label",
              "good": "<Status status=\"success\">Operational</Status>",
              "why": "A bare colored dot conveys nothing to color-blind or screen-reader users; always pair with text"
            }
          ],
          "related": [
            {
              "name": "Badge",
              "relationship": "alternative",
              "reason": "Badge labels categories; Status reflects live state with a dot"
            },
            {
              "name": "Avatar",
              "relationship": "alternative",
              "reason": "Avatar embeds presence status on an identity"
            }
          ],
          "a11yRationale": "Meaning is carried by the text label, never by the dot color alone; the pulse animation is gated behind prefers-reduced-motion: no-preference so it never animates for users who opt out",
          "content": {
            "tone": "Short state words (Operational, Degraded, Down)",
            "notes": "Label the state, not the color"
          },
          "flexibility": [
            {
              "area": "pulse",
              "level": "flexible",
              "note": "Enable pulse only for actively-changing states"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "State colors must resolve to --cascivo-color-success/warning/error/info"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "steps",
      "type": "component",
      "description": "Visual progress indicator for multi-step flows with horizontal and vertical orientations",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/steps/steps.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/steps/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/steps/steps.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/steps/steps.meta.ts"
      ],
      "fileHashes": {
        "steps.tsx": "sha256-b28b40428a5bd54f077b33fadc077f7b201a68c4df000651fac0d124bf1a100f",
        "index.ts": "sha256-de99ebe3956fa14cba66f2bdc5fb0b72587f5c5be170769d426f8df1e63a499a",
        "steps.module.css": "sha256-a3830cd6d4b61391207ed2f4d9b9b132742c37cbaaa6a3f8fdbcec1eec0747a0",
        "steps.meta.ts": "sha256-98cfe0a014b88bc9d57778800ffa7760d3fb05448c5fd89fabedb23497557598"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["steps", "wizard", "stepper", "progress", "navigation", "onboarding", "checkout"],
      "meta": {
        "name": "Steps",
        "description": "Visual progress indicator for multi-step flows with horizontal and vertical orientations",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "ol",
            "data": {
              "data-orientation": ["horizontal", "vertical"]
            },
            "aria": ["aria-label"],
            "children": ["step"],
            "emit": "manual"
          },
          "parts": {
            "step": {
              "element": "li",
              "data": {
                "data-state": ["pending", "active", "complete", "error"]
              },
              "aria": ["aria-current"],
              "children": ["circle", "label"]
            },
            "circle": {
              "element": "div",
              "children": ["$text"]
            },
            "label": {
              "element": "span",
              "children": ["$text"]
            }
          }
        },
        "states": ["pending", "active", "complete", "error"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible label for the steps navigation; defaults to the built-in i18n string."
          },
          {
            "name": "items",
            "description": "Alias of `steps` — the catalog-wide name for a config-driven collection. Exactly one of the two is required.",
            "type": "Step[]",
            "required": false
          },
          {
            "name": "steps",
            "type": "Step[]",
            "required": false,
            "description": "Array of step objects with label and optional explicit state"
          },
          {
            "name": "activeStep",
            "type": "number",
            "required": false,
            "default": "0",
            "description": "Index of the currently active step (0-based)"
          },
          {
            "name": "orientation",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "'horizontal'",
            "description": "Axis the steps flow along: `horizontal` runs them across with connectors between, `vertical` stacks them down the page."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "Step",
            "description": "Shape of an entry in `steps` / `items`.",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Visible step label."
              },
              {
                "name": "id",
                "type": "string",
                "required": false,
                "description": "Stable identity, used as the React key so reordering keeps DOM nodes."
              },
              {
                "name": "state",
                "type": "StepState | ProgressInput",
                "required": false,
                "description": "Step status. `StepState` ('pending' | 'active' | 'complete' | 'error') is canonical; `ProgressInput` also accepts Timeline's `current` / `upcoming` aliases."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-accent-content",
          "--cascivo-color-success",
          "--cascivo-color-success-content",
          "--cascivo-color-error",
          "--cascivo-color-error-content",
          "--cascivo-color-surface",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-text-muted",
          "--cascivo-border-default",
          "--cascivo-radius-full",
          "--cascivo-ease-out"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Horizontal (default)",
            "description": "Standard checkout or onboarding progress tracker",
            "code": "<Steps\n  steps={[\n    { label: 'Cart' },\n    { label: 'Shipping' },\n    { label: 'Payment' },\n    { label: 'Confirm' },\n  ]}\n  activeStep={1}\n/>"
          },
          {
            "title": "Vertical",
            "description": "Sidebar-style progress for tall forms",
            "code": "<Steps\n  orientation=\"vertical\"\n  steps={[\n    { label: 'Account info' },\n    { label: 'Profile details' },\n    { label: 'Preferences' },\n  ]}\n  activeStep={0}\n/>"
          },
          {
            "title": "With explicit error state",
            "description": "Override derived state on a specific step",
            "code": "<Steps\n  steps={[\n    { label: 'Upload' },\n    { label: 'Validate', state: 'error' },\n    { label: 'Process' },\n  ]}\n  activeStep={1}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["steps", "wizard", "stepper", "progress", "navigation", "onboarding", "checkout"],
        "intent": {
          "whenToUse": [
            "Checkout flows where the user moves through a fixed sequence of screens",
            "Onboarding wizards with a known number of steps",
            "Multi-step forms where showing overall progress reduces abandonment"
          ],
          "whenNotToUse": [
            "General section navigation — use Tabs instead",
            "Simple back/next controls without step labels — use Pagination instead",
            "More than 7 steps where the connector lines become unreadable on mobile"
          ],
          "antiPatterns": [
            {
              "bad": "Using Steps as a replacement for Tabs for non-sequential navigation",
              "good": "<Tabs> for switching between independent views",
              "why": "Steps imply a linear sequence and derive complete/pending state from position"
            }
          ],
          "related": [
            {
              "name": "Pagination",
              "relationship": "alternative",
              "reason": "Pagination is for paged data sets, Steps is for guided task sequences"
            },
            {
              "name": "Tabs",
              "relationship": "alternative",
              "reason": "Tabs are for non-sequential section switching, not ordered task flows"
            }
          ],
          "a11yRationale": "Rendered as an ordered list (<ol>) with aria-label; the active item carries aria-current=\"step\" to communicate progress to screen readers",
          "flexibility": [
            {
              "area": "step state",
              "level": "flexible",
              "note": "Each step can override derived pending/active/complete state via step.state"
            },
            {
              "area": "orientation",
              "level": "flexible",
              "note": "Horizontal for top progress bars, vertical for sidebar wizards"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "streaming-text",
      "type": "component",
      "description": "Reveals text character by character with a blinking cursor, catching up as a streamed reply grows",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/streaming-text/streaming-text.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/streaming-text/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/streaming-text/streaming-text.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/streaming-text/streaming-text.meta.ts"
      ],
      "fileHashes": {
        "streaming-text.tsx": "sha256-a4b4d499af219901352c6614f6fbf72f2979a14a114b0387f68a884584f000f9",
        "index.ts": "sha256-b0bf06655f2c8f2cf5c87c7247de970a61b8ed27e0f37c106d25642b88b46f29",
        "streaming-text.module.css": "sha256-2c0cbcd212bb53f8f8e6df266ce307cb20b3ae6051411a004c522a93ea581064",
        "streaming-text.meta.ts": "sha256-c9b034651980b4161a6f5c617162070f82732af90d1ea473191b8b49d0767222"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["Typewriter", "TypingText"],
      "tags": ["ai", "streaming", "typewriter", "text", "chat"],
      "meta": {
        "name": "StreamingText",
        "description": "Reveals text character by character with a blinking cursor, catching up as a streamed reply grows",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "root",
            "children": ["$text", "cursor"]
          },
          "parts": {
            "cursor": {
              "element": "span",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "text",
            "description": "The target text. Pass the accumulating reply as it streams; typing catches up as it grows, and restarts if it is replaced by a shorter string.",
            "type": "string",
            "required": true
          },
          {
            "name": "speed",
            "description": "Characters revealed per animation frame.",
            "type": "number",
            "required": false,
            "default": "2"
          },
          {
            "name": "onComplete",
            "description": "Called when the displayed text has caught up with `text`.",
            "type": "() => void",
            "required": false
          }
        ],
        "tokens": ["--cascivo-duration-loop-fast"],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Typing",
            "code": "<StreamingText text=\"Hello, I am cascivo.\" speed={3} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["ai", "streaming", "typewriter", "text", "chat"],
        "intent": {
          "whenToUse": [
            "Rendering an assistant reply as it streams in, smoothing bursty token arrival into steady typing"
          ],
          "whenNotToUse": [
            "Static text — render it directly",
            "Announcing the reply to screen readers — StreamingText is never a live region; announce completion with announce() or AiStatus"
          ],
          "antiPatterns": [
            {
              "bad": "Wrapping StreamingText in aria-live",
              "good": "Leave it silent and announce the finished reply once",
              "why": "A live region around typing text announces fragments on every frame"
            }
          ],
          "related": [
            {
              "name": "AiStatus",
              "relationship": "pairs-with",
              "reason": "AiStatus announces the phase while StreamingText renders the words"
            },
            {
              "name": "TypingIndicator",
              "relationship": "alternative",
              "reason": "Before the first token arrives, show TypingIndicator instead"
            }
          ],
          "a11yRationale": "Plain text, never a live region, so a screen reader reads it on demand rather than being fed every character; the cursor is aria-hidden and blinks only under prefers-reduced-motion: no-preference",
          "flexibility": [
            {
              "area": "speed",
              "level": "flexible",
              "note": "Characters per frame"
            },
            {
              "area": "announcements",
              "level": "strict",
              "note": "Do not add aria-live; announce completion separately"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "structured-list",
      "type": "component",
      "description": "Tabular row list for scannable data, optionally single-selectable",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/structured-list/structured-list.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/structured-list/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/structured-list/structured-list.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/structured-list/structured-list.meta.ts"
      ],
      "fileHashes": {
        "structured-list.tsx": "sha256-5e41094a53b296d0f1026fd0fcf2353001350abb08c4b425f919d2cec6f97680",
        "index.ts": "sha256-f1b4da0f483c2389c17ba7d01c4c2bcd7764ad284bc18b01faeeaf4a907d206b",
        "structured-list.module.css": "sha256-6d70d2d5b53f472098236450775c8847cfe86e4b380f5f40ecee475955cc1d90",
        "structured-list.meta.ts": "sha256-87163fe6b3619b144dbb9c9ebe28c1bfdac72b1d05f6712b02fbec109d34533b"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["display", "list", "table", "data"],
      "meta": {
        "name": "StructuredList",
        "description": "Tabular row list for scannable data, optionally single-selectable",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "list",
            "aria": ["aria-label"],
            "modifiers": {
              "selectable": "selectable"
            },
            "children": ["headerRow", "body"],
            "emit": "manual"
          },
          "parts": {
            "headerRow": {
              "element": "div",
              "children": ["headerCell"],
              "when": "headers"
            },
            "headerCell": {
              "element": "div",
              "children": ["$slot"]
            },
            "body": {
              "element": "div",
              "children": ["row"]
            },
            "row": {
              "element": "div",
              "data": {
                "data-selected": "boolean"
              },
              "aria": ["aria-checked", "aria-labelledby"],
              "children": ["cell"]
            },
            "cell": {
              "element": "div",
              "children": ["$slot", "indicator"]
            },
            "indicator": {
              "element": "span",
              "when": "selectable"
            }
          }
        },
        "states": ["default", "selected"],
        "variants": ["static", "selectable"],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Invisible accessible name. The catalog convention; the DOM spelling `aria-label` is accepted as an alias so either guess compiles.",
            "type": "string",
            "required": false
          },
          {
            "name": "aria-label",
            "type": "string",
            "required": false,
            "description": "Accessible label for the list table."
          },
          {
            "name": "items",
            "description": "The items to render.",
            "type": "{ id: string; cells: ReactNode[]; selected?: boolean }[]",
            "required": true
          },
          {
            "name": "headers",
            "description": "The column header cells.",
            "type": "ReactNode[]",
            "required": false
          },
          {
            "name": "selectable",
            "description": "When true, rows can be selected.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "onSelect",
            "description": "Called with the selected value.",
            "type": "(id: string) => void",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-primary",
          "--cascivo-color-surface",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "table",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowDown", "ArrowUp", "Home", "End", "Enter", "Space"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Static",
            "code": "<StructuredList headers={[\"Name\", \"Role\"]} items={[{ id: \"a\", cells: [\"Ada\", \"Engineer\"] }]} />"
          },
          {
            "title": "Selectable",
            "code": "<StructuredList selectable defaultValue=\"a\" items={[{ id: \"a\", cells: [\"Ada\"] }, { id: \"b\", cells: [\"Grace\"] }]} onSelect={(id) => set(id)} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["display", "list", "table", "data"],
        "intent": {
          "whenToUse": [
            "Presenting a set of related records in aligned columns the user scans top to bottom",
            "Letting the user pick exactly one row from a short, readable list (selectable)",
            "Carbon-style structured content where a full data table is heavier than needed"
          ],
          "whenNotToUse": [
            "Sorting, filtering, pagination, or multi-select over many rows — use DataTable",
            "Free-form vertical content without column alignment — use List"
          ],
          "antiPatterns": [
            {
              "bad": "selectable with multiple rows marked selected",
              "good": "A single selected id (value/defaultValue) — selection is single-choice",
              "why": "The selectable variant is a radiogroup; multiple selected rows break the radio semantics"
            }
          ],
          "related": [
            {
              "name": "DataTable",
              "relationship": "alternative",
              "reason": "DataTable adds sorting, filtering, and pagination; StructuredList stays static and lightweight"
            },
            {
              "name": "List",
              "relationship": "alternative",
              "reason": "List is single-column vertical content; StructuredList aligns multiple cells per row"
            }
          ],
          "a11yRationale": "Static lists use table/row/cell roles so columns are announced; selectable lists become a radiogroup of role=radio rows with roving tabindex, so arrow keys move focus and Enter/Space check a row exactly like native radios",
          "flexibility": [
            {
              "area": "selectable",
              "level": "flexible",
              "note": "Toggle selectable based on whether the list is interactive or purely presentational"
            },
            {
              "area": "roles",
              "level": "strict",
              "note": "Static uses table semantics; selectable uses radiogroup — do not mix"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "swap",
      "type": "component",
      "description": "Animated toggle between two icon/content states with rotate or flip transition",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swap/swap.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swap/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swap/swap.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swap/swap.meta.ts"
      ],
      "fileHashes": {
        "swap.tsx": "sha256-b13e19f86c777e6bb0d65119af816894f90eceb89039d1b739ae016ed0333c95",
        "index.ts": "sha256-95c7a8c5b037db337aec24ba3316cf77dc780a37d95a73ed36d1a3f757a53b71",
        "swap.module.css": "sha256-01270034915dc8cb322deaa7f74d71777a4f87b9c152fd8d4d051a6ef736a9d1",
        "swap.meta.ts": "sha256-53636605b138a4955d895586522b1f0281d386cff8842207cb3148fe3e638fd4"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["toggle", "icon", "animate", "switch", "flip", "rotate"],
      "meta": {
        "name": "Swap",
        "description": "Animated toggle between two icon/content states with rotate or flip transition",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "button",
            "local": "swap",
            "role": "switch",
            "data": {
              "data-checked": "boolean",
              "data-mode": ["rotate", "flip"]
            },
            "aria": ["aria-checked", "aria-label"],
            "children": ["on", "off"]
          },
          "parts": {
            "on": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "off": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["unchecked", "checked"],
        "variants": ["rotate", "flip"],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Invisible accessible name. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling."
          },
          {
            "name": "on",
            "description": "Content shown in the active (on) state.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "off",
            "description": "Content shown in the inactive (off) state.",
            "type": "React.ReactNode",
            "required": true
          },
          {
            "name": "checked",
            "description": "Whether the control is checked (controlled).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onValueChange",
            "description": "Called with the new checked state when the swap is toggled.",
            "type": "(checked: boolean) => void",
            "required": false
          },
          {
            "name": "mode",
            "description": "Transition between states ('rotate' | 'flip').",
            "type": "'rotate' | 'flip'",
            "required": false,
            "default": "rotate"
          },
          {
            "name": "aria-label",
            "description": "Accessible label used when no visible label is present.",
            "type": "string",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-ring-width",
          "--cascivo-ring-color",
          "--cascivo-radius-control",
          "--cascivo-ease-out"
        ],
        "accessibility": {
          "role": "switch",
          "wcag": "2.2-AA",
          "keyboard": ["Space", "Enter"]
        },
        "examples": [
          {
            "title": "Theme toggle (rotate)",
            "code": "<Swap on={<SunIcon />} off={<MoonIcon />} mode=\"rotate\" aria-label=\"Toggle theme\" />",
            "description": "Sun/moon icon that rotates between two states"
          },
          {
            "title": "Flip mode",
            "code": "<Swap on={<HeartFilledIcon />} off={<HeartIcon />} mode=\"flip\" aria-label=\"Favorite\" />",
            "description": "Heart icon that flips to filled on activation"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["toggle", "icon", "animate", "switch", "flip", "rotate"],
        "intent": {
          "whenToUse": [
            "Theme toggles where an icon animates between two states (sun/moon)",
            "Favorite or bookmark toggles that flip between outlined and filled icons",
            "Any scenario where exactly two icons swap places with a transition"
          ],
          "whenNotToUse": [
            "Form toggles with a visible label — use Toggle",
            "Checkbox-style inputs that are part of a submitted form — use Checkbox",
            "When a text label must always be visible alongside the control"
          ],
          "antiPatterns": [
            {
              "bad": "<Swap on=\"Enable\" off=\"Disable\" /> (text content)",
              "good": "<Toggle label=\"Enable notifications\" />",
              "why": "Swap is designed for icon transitions; for labeled on/off controls use Toggle"
            }
          ],
          "related": [
            {
              "name": "Toggle",
              "relationship": "alternative",
              "reason": "Use when a visible text label is required alongside the switch control"
            },
            {
              "name": "Checkbox",
              "relationship": "alternative",
              "reason": "Use for form selections that are submitted rather than applied immediately"
            }
          ],
          "a11yRationale": "Renders a <button role=\"switch\"> with aria-checked reflecting state. Both on/off slots are aria-hidden so screen readers announce the button state, not the icon content.",
          "flexibility": [
            {
              "area": "content",
              "level": "flexible",
              "note": "on/off slots accept any ReactNode — icons, text, images"
            },
            {
              "area": "animation mode",
              "level": "flexible",
              "note": "rotate (default) or flip — choose based on the visual metaphor of the icons"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "swipe-item",
      "type": "component",
      "description": "List row whose leading/trailing actions are revealed by a horizontal swipe, with keyboard parity",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swipe-item/swipe-item.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swipe-item/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swipe-item/swipe-item.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/swipe-item/swipe-item.meta.ts"
      ],
      "fileHashes": {
        "swipe-item.tsx": "sha256-cf0cd20c370083007e000170ae844b90891d13c56f8303b560b08fdf8805247b",
        "index.ts": "sha256-32b0fb14b330161a028ad512fe46ba3d99e9c2d3631e241c433789d8aa146b90",
        "swipe-item.module.css": "sha256-fc199d4832bb8a5a909aa84c5c6e474644c39bff94352802b0a45f04bc3b4100",
        "swipe-item.meta.ts": "sha256-ca59c5c04b6397c45080a9a914b7d487c7eeb793ccc0ce8e42b386c4ce9ff4b8"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["display", "swipe", "list", "mobile", "gesture", "actions"],
      "meta": {
        "name": "SwipeItem",
        "description": "List row whose leading/trailing actions are revealed by a horizontal swipe, with keyboard parity",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "data": {
              "data-state": ["closed", "leading", "trailing"]
            },
            "children": ["panel", "content"]
          },
          "parts": {
            "panel": {
              "element": "div",
              "modifiers": {
                "leading": "side === 'leading'",
                "trailing": "side === 'trailing'"
              },
              "children": ["action"]
            },
            "action": {
              "element": "button",
              "data": {
                "data-destructive": "boolean"
              },
              "children": ["actionIcon", "actionLabel"]
            },
            "actionIcon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "actionLabel": {
              "element": "span",
              "children": ["$text"]
            },
            "content": {
              "element": "div",
              "data": {
                "data-dragging": "boolean"
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["closed", "leading", "trailing"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "React.ReactNode",
            "required": true,
            "description": "The row content"
          },
          {
            "name": "leadingActions",
            "default": "[]",
            "type": "SwipeAction[]",
            "required": false,
            "description": "Actions revealed by dragging toward the end edge (shown on the start edge)"
          },
          {
            "name": "trailingActions",
            "default": "[]",
            "type": "SwipeAction[]",
            "required": false,
            "description": "Actions revealed by dragging toward the start edge (shown on the end edge)"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-accent",
          "--cascivo-color-accent-content",
          "--cascivo-color-destructive",
          "--cascivo-color-text-on-destructive",
          "--cascivo-target-min-coarse",
          "--cascivo-motion-enter"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space", "Escape"]
        },
        "examples": [
          {
            "title": "Trailing actions",
            "code": "<SwipeItem\n  trailingActions={[\n    { label: 'Archive', onSelect: archive },\n    { label: 'Delete', onSelect: remove, destructive: true },\n  ]}\n>\n  <MessageRow message={message} />\n</SwipeItem>"
          },
          {
            "title": "Leading and trailing",
            "code": "<SwipeItem\n  leadingActions={[{ label: 'Pin', icon: <PinIcon />, onSelect: pin }]}\n  trailingActions={[{ label: 'Delete', onSelect: remove, destructive: true }]}\n>\n  <TaskRow task={task} />\n</SwipeItem>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["display", "swipe", "list", "mobile", "gesture", "actions"],
        "intent": {
          "whenToUse": [
            "List rows on touch surfaces where secondary actions (archive, delete) should hide until swiped",
            "Mail/inbox-style rows that reveal contextual actions behind the content",
            "Compact lists where always-visible action buttons would crowd each row"
          ],
          "whenNotToUse": [
            "A single primary action per row — render it inline as a Button",
            "Destructive actions that need confirmation — pair with an AlertDialog instead of swipe-only",
            "Non-list, free-form content — swipe-to-reveal is a list-row affordance"
          ],
          "antiPatterns": [
            {
              "bad": "Relying on the swipe gesture as the only way to reach Delete",
              "good": "Action buttons stay in the DOM and a11y tree; focusing one reveals its side",
              "why": "Gesture-only actions are unreachable by keyboard and screen-reader users"
            }
          ],
          "related": [
            {
              "name": "ActionSheet",
              "relationship": "alternative",
              "reason": "Use an ActionSheet when a row tap should present a fuller list of actions"
            },
            {
              "name": "List",
              "relationship": "contained-by",
              "reason": "SwipeItem wraps individual rows within a list"
            }
          ],
          "a11yRationale": "The action buttons are always rendered in the DOM and the accessibility tree, never gesture-only. Focusing an action (via keyboard) reveals its side so it is visible, Enter/Space activate it, and Escape closes the row — giving full keyboard and screen-reader parity with the swipe gesture. The drag uses touch-action: pan-y so vertical scrolling is unaffected.",
          "flexibility": [
            {
              "area": "actions",
              "level": "flexible",
              "note": "Any number of leading and/or trailing actions; each may be destructive"
            },
            {
              "area": "reveal direction",
              "level": "strict",
              "note": "Leading reveals on the start edge, trailing on the end edge (physical-axis drag)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "switcher",
      "type": "component",
      "description": "Always-visible app/product switcher LIST — every entry is rendered at once, it does not collapse. Lives inside HeaderPanel; renders links with an active indicator and optional dividers. For a collapsed trigger with a menu, use Dropdown.",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/switcher/switcher.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/switcher/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/switcher/switcher.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/switcher/switcher.meta.ts"
      ],
      "fileHashes": {
        "switcher.tsx": "sha256-2320332df10d4e6d22a0c696a8eecc63de2bb13992aee25dd81ec8e0c4056570",
        "index.ts": "sha256-bf2d6126c51803c98f31369be62b1331b931450062b79c313e0c937ad8f313f1",
        "switcher.module.css": "sha256-adea723dafdd4ac47541a428dd11720141bc897bb9c3758d8382bfc282d98b26",
        "switcher.meta.ts": "sha256-f45d212b2556e5f309598cf3d1a08320f86707af61eceaaea0906365e0e962d6"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["navigation", "switcher", "shell", "console", "app-switcher"],
      "meta": {
        "name": "Switcher",
        "description": "Always-visible app/product switcher LIST — every entry is rendered at once, it does not collapse. Lives inside HeaderPanel; renders links with an active indicator and optional dividers. For a collapsed trigger with a menu, use Dropdown.",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "ul",
            "aria": ["aria-label"],
            "children": ["item", "divider"],
            "emit": "manual"
          },
          "parts": {
            "item": {
              "element": "a",
              "data": {
                "data-state": ["active"]
              },
              "aria": ["aria-current"],
              "children": ["icon", "$text"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"],
              "when": "icon"
            },
            "divider": {
              "element": "span",
              "role": "separator",
              "aria": ["aria-orientation"]
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "type": "SwitcherEntry[]",
            "required": true,
            "description": "SwitcherLink ({ label, href, active?, icon? }) or divider ({ divider: true })"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Accessible name for the switcher list. Not rendered — screen readers only.",
            "type": "string",
            "required": false,
            "default": "Switch application"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-accent",
          "--cascivo-color-accent-subtle",
          "--cascivo-color-border",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter"]
        },
        "examples": [
          {
            "title": "App switcher",
            "code": "<Switcher\n  items={[\n    { label: 'Console', href: '/console', active: true },\n    { label: 'Billing', href: '/billing' },\n    { divider: true },\n    { label: 'Docs', href: 'https://docs.example.com' },\n  ]}\n/>",
            "description": "Place inside a HeaderPanel opened by a Grid action in ShellHeader"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["navigation", "switcher", "shell", "console", "app-switcher"],
        "intent": {
          "whenToUse": [
            "Listing sibling apps/products the user can switch between",
            "Rendering switch destinations inside a HeaderPanel opened from the shell header",
            "Grouping switch targets with dividers and marking the active one"
          ],
          "whenNotToUse": [
            "Primary in-app navigation — use SideNav",
            "A small action menu attached to a control — use Dropdown",
            "A COLLAPSED workspace/team switcher with one visible row and a menu on click — use Dropdown. Switcher renders every entry, permanently: it is an always-visible list, not a collapsing control, and the name misleads (2026-08-21 report item 5)"
          ],
          "antiPatterns": [
            {
              "bad": "Using Switcher as the main page navigation",
              "good": "<SideNav> for primary navigation; Switcher only for app/product switching",
              "why": "Switcher models cross-app jumps, not navigation within the current app"
            }
          ],
          "related": [
            {
              "name": "HeaderPanel",
              "relationship": "contained-by",
              "reason": "Switcher is placed inside a HeaderPanel opened by a ShellHeader action"
            }
          ],
          "a11yRationale": "role=\"list\" structures the entries; each switch target is a real link with the active destination marked, so keyboard and screen-reader users can identify and reach the current app",
          "flexibility": [
            {
              "area": "dividers",
              "level": "flexible",
              "note": "Dividers group entries as needed"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Accent and surface colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "tabs",
      "type": "component",
      "description": "Switch between related panels of content",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tabs/tabs.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tabs/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tabs/tabs.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tabs/tabs.meta.ts"
      ],
      "fileHashes": {
        "tabs.tsx": "sha256-960ca688258e019ee9c1b0246896dd3886ad869fb15d6f9182f41cd66ff85034",
        "index.ts": "sha256-9dd19a218ef88f01cab5cbe7d82fa98b8b6e87ed5992b3eb6cb25735f2d94cc1",
        "tabs.module.css": "sha256-2fddde0a67406287926c5f6c0cabd1c5e81896e2fe4414b4224dc6dbc9963872",
        "tabs.meta.ts": "sha256-699efaec903d681c74f6afe50db1048b666dff0cef1856ce998a00dbe599cbdb"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["navigation", "tabs", "sections"],
      "meta": {
        "name": "Tabs",
        "description": "Switch between related panels of content",
        "category": "navigation",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "children": ["list", "content"]
          },
          "parts": {
            "list": {
              "element": "div",
              "role": "tablist",
              "children": ["trigger"]
            },
            "trigger": {
              "element": ["button", "a"],
              "role": "tab",
              "data": {
                "data-state": ["active", "inactive"],
                "data-value": "string"
              },
              "aria": ["aria-selected", "aria-controls", "aria-disabled"],
              "children": ["$slot"]
            },
            "content": {
              "element": "div",
              "role": "tabpanel",
              "data": {
                "data-state": ["active", "inactive"]
              },
              "aria": ["aria-labelledby"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["active", "inactive"],
        "variants": [],
        "sizes": [],
        "agent": {
          "actions": [
            {
              "name": "select",
              "prop": "value",
              "args": "string"
            }
          ]
        },
        "props": [
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "TabsList and TabsContent elements"
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-border",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "tablist",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowLeft", "ArrowRight", "Home", "End"],
          "apgPattern": "tabs",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Tabs defaultValue=\"account\"><TabsList><TabsTrigger value=\"account\">Account</TabsTrigger></TabsList><TabsContent value=\"account\">…</TabsContent></Tabs>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["navigation", "tabs", "sections"],
        "intent": {
          "whenToUse": [
            "Switching between peer panels of related content in the same context",
            "Showing one section at a time when all sections are equally important"
          ],
          "whenNotToUse": [
            "Stacked sequential content the user reads top to bottom — use Accordion",
            "Changing a setting or view parameter — use a SegmentedControl",
            "Navigating between pages — use links"
          ],
          "antiPatterns": [
            {
              "bad": "Using Tabs to toggle a single display option (e.g. grid/list view)",
              "good": "<SegmentedControl> for view/setting toggles",
              "why": "Tabs imply switching content panels; toggling a parameter is a control, not navigation"
            }
          ],
          "related": [
            {
              "name": "Accordion",
              "relationship": "alternative",
              "reason": "Accordion stacks sequential sections; Tabs switch between peers"
            },
            {
              "name": "SegmentedControl",
              "relationship": "alternative",
              "reason": "SegmentedControl changes a setting/parameter rather than swapping panels"
            }
          ],
          "a11yRationale": "Implements the WAI-ARIA tabs pattern: tablist/tab/tabpanel roles with arrow-key navigation and Home/End, so the active tab and its panel are correctly associated for assistive tech",
          "flexibility": [
            {
              "area": "controlled vs uncontrolled",
              "level": "flexible",
              "note": "Use value or defaultValue depending on control needs"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Accent, borders, and focus ring must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "tag",
      "type": "component",
      "description": "Compact chip for labeling, categorizing, or filtering content",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tag/tag.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tag/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tag/tag.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tag/tag.meta.ts"
      ],
      "fileHashes": {
        "tag.tsx": "sha256-d5181e4992515c8db248ac404fe4d52c0d1e6a9db8571955e302f0e62bc157bb",
        "index.ts": "sha256-ea279eb14cb03c2a5e50f0ce5ece93f82b2f0a64ec522aebdfd908b10aabfcfe",
        "tag.module.css": "sha256-b675515cee8562e789a8943932f256280fe06abb235bf9cdfa68e0bf3447cb4b",
        "tag.meta.ts": "sha256-016dd27cab96d7d3ab38977bba41666f4994ff79bcce7ccf25be9d700d5f1412"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Chip", "chip", "Pill"],
      "tags": ["chip", "label", "filter", "category"],
      "meta": {
        "name": "Tag",
        "description": "Compact chip for labeling, categorizing, or filtering content",
        "category": "display",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "data": {
              "data-variant": ["default", "info", "success", "warning", "error"],
              "data-size": ["sm", "md"]
            },
            "children": ["$slot", "dismiss"],
            "emit": "auto"
          },
          "parts": {
            "dismiss": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"],
              "when": "onDismiss"
            }
          }
        },
        "states": [],
        "variants": ["default", "info", "success", "warning", "error"],
        "sizes": ["sm", "md"],
        "props": [
          {
            "name": "variant",
            "description": "Severity tone. Accepts the catalog-wide `Tone` vocabulary (`neutral | info | success | warning | danger`) plus Tag's historical spellings (`default` → neutral, `error`/`destructive` → danger).",
            "type": "'default' | 'info' | 'success' | 'warning' | 'error'",
            "required": false,
            "default": "default"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "onDismiss",
            "type": "() => void",
            "required": false,
            "description": "When provided, renders a trailing remove button inside the chip"
          },
          {
            "name": "dismissLabel",
            "description": "Accessible label for the dismiss button.",
            "type": "string",
            "required": false,
            "default": "Remove"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Tag label"
          }
        ],
        "tokens": [
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text-subtle",
          "--cascivo-color-info",
          "--cascivo-color-info-subtle",
          "--cascivo-color-success",
          "--cascivo-color-success-subtle",
          "--cascivo-color-warning",
          "--cascivo-color-warning-subtle",
          "--cascivo-color-destructive",
          "--cascivo-color-destructive-subtle",
          "--cascivo-radius-badge",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"]
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Tag>Design</Tag>"
          },
          {
            "title": "Success",
            "code": "<Tag variant=\"success\">Approved</Tag>"
          },
          {
            "title": "Dismissible",
            "code": "<Tag onDismiss={() => removeFilter()}>Filter: Active</Tag>",
            "description": "Renders a trailing remove button labeled by dismissLabel"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["chip", "label", "filter", "category"],
        "intent": {
          "whenToUse": [
            "Labeling, categorizing, or filtering content with a compact chip",
            "Representing a removable selection or active filter (onDismiss)",
            "Showing a set of keywords or attributes on an item"
          ],
          "whenNotToUse": [
            "A static, non-interactive status label — use Badge",
            "A live system state with a dot — use Status"
          ],
          "antiPatterns": [
            {
              "bad": "Using Badge with a custom close button to make it removable",
              "good": "<Tag onDismiss={remove}> which renders a proper labeled remove button",
              "why": "Tag provides accessible dismiss semantics; bolting interactivity onto Badge skips that"
            }
          ],
          "related": [
            {
              "name": "Badge",
              "relationship": "alternative",
              "reason": "Badge is the static, non-interactive counterpart"
            },
            {
              "name": "TagsInput",
              "relationship": "contained-by",
              "reason": "TagsInput renders Tags for each entered value"
            }
          ],
          "a11yRationale": "When dismissible, the remove control is a real button with a label (dismissLabel) so keyboard users can remove it via Enter/Space; color variants are reinforced by text, not hue alone",
          "content": {
            "tone": "Short noun labels",
            "notes": "dismissLabel should name what is removed"
          },
          "flexibility": [
            {
              "area": "variant and dismissibility",
              "level": "flexible",
              "note": "onDismiss is optional; variant matches semantic meaning"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Variant colors must resolve to --cascivo-color-*-subtle tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "tags-input",
      "type": "component",
      "description": "Free-form multi-value chip input",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tags-input/tags-input.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tags-input/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tags-input/tags-input.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tags-input/tags-input.meta.ts"
      ],
      "fileHashes": {
        "tags-input.tsx": "sha256-4afe6a0d4369018919dfb152428288904951df9ac84b69ff9a9ce4ae2697c266",
        "index.ts": "sha256-59dc7fabc3ea98e7182a3a3c6a5096105900c4f0db4a5d26b75e9806f5d8786c",
        "tags-input.module.css": "sha256-3d8a0a5e33fbe066e7e4855d7a7d9260c98b08f0e16b65c8ccf85f837a1866df",
        "tags-input.meta.ts": "sha256-ea0392cf017b8fd523f9259acb85b7f0046e53db01395c8f9e403fcabd09442d"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["ChipInput", "TokenInput"],
      "tags": ["form", "tags", "chips", "multi", "input"],
      "meta": {
        "name": "TagsInput",
        "description": "Free-form multi-value chip input",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-disabled": "boolean"
            },
            "children": ["tag", "input"]
          },
          "parts": {
            "tag": {
              "element": "span",
              "data": {
                "data-state": ["invalid"]
              },
              "children": ["$text", "dismiss"]
            },
            "dismiss": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            },
            "input": {
              "element": "input",
              "aria": ["aria-labelledby", "aria-describedby", "aria-invalid", "aria-label"]
            }
          }
        },
        "states": ["idle", "focused", "disabled"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string[]",
            "required": true
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(v: string[]) => void",
            "required": true
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "validate",
            "description": "Returns whether a candidate tag is allowed.",
            "type": "(tag: string) => boolean",
            "required": false
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "id",
            "description": "Id for the **inner text input** — the focusable control, so a `<label for>` names the thing that actually takes focus. `Field` supplies this automatically.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name for the tag entry field. Use when no visible label names it; inside a `Field` it is not needed, as the Field label is wired through automatically.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          },
          {
            "name": "label",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Not rendered.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-input",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "textbox",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", ",", "Backspace"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<TagsInput value={['react', 'vue']} onValueChange={() => {}} placeholder=\"Add tag…\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["form", "tags", "chips", "multi", "input"],
        "intent": {
          "whenToUse": [
            "Collecting an open-ended set of free-text values the user types themselves (keywords, emails, labels)",
            "Each entry should appear as a removable chip and there is no fixed list to pick from",
            "You need per-tag validation or a cap on how many entries are allowed"
          ],
          "whenNotToUse": [
            "Values come from a fixed, known list — use MultiSelect",
            "Only a single line of free text is needed — use Input"
          ],
          "antiPatterns": [
            {
              "bad": "<TagsInput value={selectedRoles} ... /> // roles are a fixed enum",
              "good": "<MultiSelect options={roleOptions} />",
              "why": "Free-text entry invites typos and inconsistent values when the set is actually constrained; pick from options instead"
            }
          ],
          "related": [
            {
              "name": "MultiSelect",
              "relationship": "alternative",
              "reason": "Use when values come from a fixed list rather than free text"
            },
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use for a single free-text value with no chips"
            }
          ],
          "a11yRationale": "The typing surface is a real <input> and each tag exposes a dedicated remove button with an aria-label naming the tag, so screen-reader users can both add (Enter/comma) and delete (Backspace or the button) without ambiguity.",
          "content": {
            "tone": "Short, lowercase tag tokens; placeholder is an invite to add",
            "notes": "Placeholder defaults from the i18n catalog and only shows while empty"
          },
          "flexibility": [
            {
              "area": "tag values",
              "level": "flexible",
              "note": "Free text, optionally constrained by the validate predicate and max count"
            },
            {
              "area": "commit keys",
              "level": "strict",
              "note": "Enter and comma commit a tag; Backspace on empty removes the last — fixed interaction contract"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "terminal",
      "type": "component",
      "description": "An animated terminal that types out a script of commands and output — for demos, onboarding and agent transcripts",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/terminal/terminal.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/terminal/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/terminal/terminal.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/terminal/terminal.meta.ts"
      ],
      "fileHashes": {
        "terminal.tsx": "sha256-f8ece3da6f93b53c172b2cdf9efed0aa7aaa0ff9134d36cccd0e91d97a1e4c4c",
        "index.ts": "sha256-4248c468da2943496ebc51e267d2d07636837516c6361de62ffab714d00dfadf",
        "terminal.module.css": "sha256-a796d62be2f33a1f3830cb1bd943271bca98928f27a589a8982af587c5c19b1e",
        "terminal.meta.ts": "sha256-db54b2a52f557194ba4e7b69c9515d668421fd214a557d2624a5c6df3b302c0a"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["TerminalWindow", "CommandLine"],
      "tags": ["ai", "terminal", "cli", "demo", "typewriter", "agent", "transcript"],
      "meta": {
        "name": "Terminal",
        "description": "An animated terminal that types out a script of commands and output — for demos, onboarding and agent transcripts",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "role": "group",
            "aria": ["aria-label"],
            "children": ["line"]
          },
          "parts": {
            "line": {
              "element": "div",
              "data": {
                "data-type": ["command", "output", "error", "comment"]
              },
              "children": ["prefix", "text", "cursor"]
            },
            "prefix": {
              "element": "span",
              "children": ["$text"]
            },
            "text": {
              "element": "span",
              "children": ["$text"]
            },
            "cursor": {
              "element": "span"
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "lines",
            "description": "The script. Each line has `text`, an optional `prefix` (e.g. `$`) and a `type` (`command | output | error | comment`, default `output`).",
            "type": "TerminalLine[]",
            "required": true
          },
          {
            "name": "speed",
            "description": "Characters typed per animation frame.",
            "type": "number",
            "required": false,
            "default": "3"
          },
          {
            "name": "loop",
            "description": "Restart from the first line after the last one.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onComplete",
            "description": "Called each time the last line finishes typing.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n) — `label` names the terminal for screen readers.",
            "type": "{ label?: string }",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "TerminalLine",
            "description": "One line of the script.",
            "fields": [
              {
                "name": "text",
                "type": "string",
                "required": true,
                "description": "What the line says."
              },
              {
                "name": "prefix",
                "type": "string",
                "required": false,
                "description": "A prompt marker such as `$`, styled and not selectable."
              },
              {
                "name": "type",
                "type": "'command' | 'output' | 'error' | 'comment'",
                "required": false,
                "description": "Colours the line. Defaults to `output`."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-terminal-bg",
          "--cascivo-terminal-fg",
          "--cascivo-editor-bg",
          "--cascivo-editor-fg",
          "--cascivo-editor-border",
          "--cascivo-editor-syntax-keyword",
          "--cascivo-editor-syntax-string",
          "--cascivo-editor-syntax-comment",
          "--cascivo-color-destructive",
          "--cascivo-font-mono"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Install transcript",
            "code": "<Terminal\n  lines={[\n    { text: 'npx cascivo add button', prefix: '$', type: 'command' },\n    { text: 'Added button to src/components.', type: 'output' },\n    { text: '# done in 1.2s', type: 'comment' },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["visually-hidden"],
        "tags": ["ai", "terminal", "cli", "demo", "typewriter", "agent", "transcript"],
        "intent": {
          "whenToUse": [
            "Demonstrating a CLI or agent run on a marketing or onboarding page",
            "Replaying a short agent transcript as it happened"
          ],
          "whenNotToUse": [
            "Real, long-running logs — use LogViewer",
            "Copyable code — use CodeSnippet"
          ],
          "antiPatterns": [
            {
              "bad": "Putting aria-live on the typing lines",
              "good": "Keep the animation aria-hidden and the full script as text, as Terminal does",
              "why": "A live region on per-character typing announces fragments on every frame"
            }
          ],
          "related": [
            {
              "name": "LogViewer",
              "relationship": "alternative",
              "reason": "LogViewer is for real, streaming logs with search and follow"
            },
            {
              "name": "CodeSnippet",
              "relationship": "alternative",
              "reason": "CodeSnippet is for static, copyable commands"
            }
          ],
          "a11yRationale": "A named group whose full script is present as visually hidden text from the first render, read once in order; the typing animation is aria-hidden, so a screen reader is never fed per-character fragments. The cursor blinks only under prefers-reduced-motion: no-preference; colours come from the editor tokens and fall back to CanvasText in forced colours",
          "flexibility": [
            {
              "area": "colours",
              "level": "flexible",
              "note": "Follows the editor tokens; override --cascivo-terminal-bg / -fg for an always-dark look"
            },
            {
              "area": "speed and looping",
              "level": "flexible",
              "note": "speed, loop, onComplete"
            }
          ]
        }
      },
      "registryDependencies": ["visually-hidden"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "text",
      "type": "component",
      "description": "Body text with size, weight, and muted variants",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/text/text.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/text/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/text/text.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/text/text.meta.ts"
      ],
      "fileHashes": {
        "text.tsx": "sha256-efd00d23f509cf7152cd5ce71a5638abd34341a2f8363428016fdbb4752a0ed5",
        "index.ts": "sha256-f95252720c83969d779056af603457df6ee0ebf5aaf9707cede576035ddcf3e4",
        "text.module.css": "sha256-f1cccbe7e621fc0592d3e07553d7ae2bba6c35e694ef74822b1c19b75d61a6ce",
        "text.meta.ts": "sha256-a8681ae8e57fd51080498e0560cc36a3b7263e577a5edb1102216bb0ec51b04b"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["typography", "text", "paragraph", "body"],
      "meta": {
        "name": "Text",
        "description": "Body text with size, weight, and muted variants",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": ["p", "span", "div"],
            "data": {
              "data-size": ["sm", "md", "lg"],
              "data-weight": ["normal", "medium", "semibold"],
              "data-muted": "boolean"
            },
            "children": ["$slot"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": ["normal", "medium", "semibold"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "as",
            "description": "`p` for a paragraph, `span` for inline text, `div` for a block that imposes no semantics of its own.",
            "type": "'p' | 'span' | 'div'",
            "required": false,
            "default": "p"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "weight",
            "description": "Font weight ('normal' | 'medium' | 'semibold').",
            "type": "'normal' | 'medium' | 'semibold'",
            "required": false,
            "default": "normal"
          },
          {
            "name": "muted",
            "description": "When true, renders in a muted/subtle color. `Text` has no `tone` prop: `tone` is the severity vocabulary (Status, Badge, Timeline, SideNav); text emphasis is `muted`.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Text content"
          }
        ],
        "tokens": [
          "--cascivo-font-sans",
          "--cascivo-font-normal",
          "--cascivo-font-medium",
          "--cascivo-font-semibold",
          "--cascivo-leading-normal",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-text-sm",
          "--cascivo-text-base",
          "--cascivo-text-lg"
        ],
        "accessibility": {
          "role": "paragraph",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<Text>Body copy reads at the base size.</Text>"
          },
          {
            "title": "Muted helper",
            "code": "<Text size=\"sm\" muted>Secondary information</Text>"
          },
          {
            "title": "Inline span",
            "code": "<Text as=\"span\" weight=\"semibold\">emphasis</Text>",
            "description": "Use as=\"span\" inside other flow content"
          },
          {
            "title": "Icon beside text",
            "code": "<Text>\n  <CheckIcon aria-hidden />\n  <Text as=\"span\" weight=\"semibold\">Deployed</Text>\n</Text>",
            "description": "Text renders a <p> by default, so a nested Text needs as=\"span\" — a <p> inside a <p> is invalid HTML and the browser silently closes the outer one, breaking the layout."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["typography", "text", "paragraph", "body"],
        "intent": {
          "whenToUse": [
            "Rendering body copy, paragraphs, and inline text in app UI",
            "Applying size/weight/muted treatment to secondary or emphasized text",
            "Inline emphasis inside flow content (as=\"span\")"
          ],
          "whenNotToUse": [
            "Section or page titles — use Heading for the document outline",
            "Long-form authored/markdown content — use Prose"
          ],
          "antiPatterns": [
            {
              "bad": "<Text size=\"lg\" weight=\"semibold\"> used as a page title",
              "good": "<Heading level={1}>",
              "why": "Visually-large Text has no heading semantics, so it is missing from the document outline"
            }
          ],
          "related": [
            {
              "name": "Heading",
              "relationship": "alternative",
              "reason": "Heading carries outline semantics; Text is plain body copy"
            }
          ],
          "a11yRationale": "Renders the chosen native element (p/span/div) without imposing roles; muted styling keeps contrast within AA so secondary text stays readable",
          "content": {
            "contentPrimitive": true,
            "tone": "Plain body voice; the component does not constrain copy",
            "notes": "Use muted sparingly for genuinely secondary information"
          },
          "flexibility": [
            {
              "area": "as / size / weight",
              "level": "flexible",
              "note": "Choose element and treatment to fit context"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Font, leading, and color must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "textarea",
      "type": "component",
      "description": "Multi-line text input with optional label, hint, and error state",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/textarea/textarea.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/textarea/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/textarea/textarea.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/textarea/textarea.meta.ts"
      ],
      "fileHashes": {
        "textarea.tsx": "sha256-74f851b2888d4f8691effa629663ef65a5579f74f43c26da7225c6a2b36772b2",
        "index.ts": "sha256-faa6e1544725eaeb285606e523d371b45b46d79cf0ab71ab9d5fe4e09ef244b7",
        "textarea.module.css": "sha256-a9ab00f28d9c14d5024b89fa25dab5a8ca13991ec1fe0a3bd68ce12cf01c8f63",
        "textarea.meta.ts": "sha256-00a0d7208a19d11137eb797b8dba8b7e6aaca21bf63ea1b33ba064d2daae5ae4"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["form", "text", "multiline", "ai"],
      "meta": {
        "name": "Textarea",
        "description": "Multi-line text input with optional label, hint, and error state",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["idle", "focused", "error"],
              "data-resize": ["none", "vertical", "both"],
              "data-autosize": [""],
              "data-ai": [""]
            },
            "children": ["label", "textarea", "error", "hint"],
            "emit": "manual"
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"],
              "when": "label"
            },
            "textarea": {
              "element": "textarea",
              "aria": ["aria-multiline", "aria-invalid", "aria-describedby", "aria-label"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "children": ["$text"],
              "when": "error"
            },
            "hint": {
              "element": "span",
              "children": ["$text"],
              "when": "!error && hint"
            }
          }
        },
        "states": ["idle", "focused", "error"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control (standalone use). Omit it when wrapping the Textarea in a Field — the Field owns the label, and setting both double-labels the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "hint",
            "description": "Supplementary hint text shown with the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "error",
            "description": "Error message shown when the value is invalid.",
            "type": "string",
            "required": false
          },
          {
            "name": "rows",
            "description": "Number of visible text rows.",
            "type": "number",
            "required": false,
            "default": "4"
          },
          {
            "name": "resize",
            "description": "Which directions the textarea can be resized ('none' | 'vertical' | 'both').",
            "type": "'none' | 'vertical' | 'both'",
            "required": false,
            "default": "vertical"
          },
          {
            "name": "autosize",
            "description": "Grow the control with its content instead of holding the fixed rows height. rows becomes the minimum and --cascivo-textarea-max-block-size (default 20lh) the ceiling. Pure CSS (field-sizing: content) — no measurement and no listener; where unsupported the fixed rows height is kept.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "onChange",
            "description": "Called with the change event; read the new value from `event.target.value`.",
            "type": "React.ChangeEventHandler<HTMLTextAreaElement>",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          },
          {
            "name": "ai",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "AI presence: an AI-tinted border and a soft aura, marking a value AI produced or suggested. Visual only — put an AiBadge in the label so the provenance is also text, and clear `ai` once the person edits the value."
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-radius-input",
          "--cascivo-focus-ring",
          "--cascivo-textarea-max-block-size"
        ],
        "accessibility": {
          "role": "textbox",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Shift+Tab"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "With label",
            "code": "<Textarea label=\"Message\" placeholder=\"Type here…\" />"
          },
          {
            "title": "With error",
            "code": "<Textarea label=\"Bio\" error=\"Bio is required\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["form", "text", "multiline", "ai"],
        "intent": {
          "whenToUse": [
            "Capturing multi-line free text such as messages, descriptions, or comments",
            "Input where line breaks are meaningful and the content may wrap to several rows",
            "Form fields that benefit from a visible hint or validation error beneath the control"
          ],
          "whenNotToUse": [
            "A single short value like a name or email — use Input",
            "A constrained numeric value — use NumberInput"
          ],
          "antiPatterns": [
            {
              "bad": "<Textarea label=\"Email\" rows={1} />",
              "good": "<Input type=\"email\" label=\"Email\" />",
              "why": "A one-line value belongs in Input; a textarea invites unwanted line breaks and submits via Enter differently"
            }
          ],
          "related": [
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use for single-line values"
            },
            {
              "name": "Form",
              "relationship": "contained-by",
              "reason": "Typically grouped with other fields inside a form"
            }
          ],
          "a11yRationale": "Renders a native <textarea> with aria-multiline; hint and error text are associated via aria-describedby and errors use role=\"alert\" with aria-invalid so assistive tech announces validation state.",
          "content": {
            "tone": "Neutral placeholder hinting at expected content",
            "notes": "Error copy should state what to fix, not just that something is wrong"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Border/focus/error colors must resolve to --cascivo-color-* / focus-ring tokens"
            },
            {
              "area": "resize and rows",
              "level": "flexible",
              "note": "Consumer chooses initial rows and whether the field can resize"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "tile",
      "type": "component",
      "description": "A selectable card with radio (single) or checkbox (multi) semantics, toggled by click or keyboard",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tile/tile.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tile/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tile/tile.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tile/tile.meta.ts"
      ],
      "fileHashes": {
        "tile.tsx": "sha256-afe1b42722f4f9020a0bcb81b5c1cdf1e7a1d257d13244ad2a71927523195dee",
        "index.ts": "sha256-e31afc5f655e3356f62a383f13e5525b8bc94df1065afa4ce7b6f6c1117b5c7e",
        "tile.module.css": "sha256-58499954e5cf1fcca4d408ecb9d58eccbf31324446569bf84c76cd43c8921e58",
        "tile.meta.ts": "sha256-57d22510be02f4e6c87df4577198a60c1ea6b70a7cfa1517954ce50029b933c9"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["inputs", "tile", "card", "selectable", "choice"],
      "meta": {
        "name": "Tile",
        "description": "A selectable card with radio (single) or checkbox (multi) semantics, toggled by click or keyboard",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "tile",
            "role": "checkbox",
            "data": {
              "data-selected": "boolean",
              "data-disabled": "boolean"
            },
            "aria": ["aria-checked", "aria-disabled"],
            "children": ["icon", "body"]
          },
          "parts": {
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "body": {
              "element": "span",
              "children": ["$slot"]
            }
          }
        },
        "states": ["default", "selected", "focus", "disabled"],
        "variants": ["single", "multi"],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "description": "Identifies this tile within a group.",
            "type": "string",
            "required": true
          },
          {
            "name": "selected",
            "description": "Controlled selected state.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "defaultSelected",
            "description": "Initial selected state for uncontrolled use.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "onSelect",
            "description": "Called with this tile's value whenever it is toggled on (or off for multi).",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "selectable",
            "description": "Single = radio semantics (toggle on); multi = checkbox semantics (toggle on/off).",
            "type": "'single' | 'multi'",
            "required": false,
            "default": "single"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "icon",
            "description": "Optional leading icon/visual.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "asChild",
            "description": "When true, renders the child element as the root via Slot, merging props (polymorphic rendering).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "React.ReactNode",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-color-bg",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-accent",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-radius-surface",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "radio",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space"]
        },
        "examples": [
          {
            "title": "Single-select group",
            "code": "<div role=\"radiogroup\" aria-label=\"Plan\">\n  <Tile value=\"starter\" selected={plan === 'starter'} onSelect={setPlan}>Starter</Tile>\n  <Tile value=\"pro\" selected={plan === 'pro'} onSelect={setPlan}>Pro</Tile>\n</div>"
          },
          {
            "title": "Multi-select with icon",
            "code": "<Tile value=\"notifications\" selectable=\"multi\" icon={<BellIcon />} defaultSelected>\n  Email notifications\n</Tile>",
            "description": "Multi tiles toggle on and off like a checkbox."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["inputs", "tile", "card", "selectable", "choice"],
        "intent": {
          "whenToUse": [
            "A visually rich, clickable choice card in a single- or multi-select group",
            "Plan/option pickers where each option needs an icon and supporting content",
            "A larger touch target than a plain radio or checkbox"
          ],
          "whenNotToUse": [
            "A simple inline boolean — use Checkbox or Toggle",
            "A dense list of text-only options — use RadioGroup or a Select"
          ],
          "antiPatterns": [
            {
              "bad": "<Tile value=\"on\">Enable</Tile> // used as a standalone on/off control",
              "good": "<Tile value=\"on\" selectable=\"multi\">Enable</Tile> // multi allows deselect",
              "why": "Single (radio) tiles cannot be unselected by clicking; use multi for toggleable behavior"
            }
          ],
          "related": [
            {
              "name": "RadioCard",
              "relationship": "alternative",
              "reason": "RadioCard wraps a native input in a group; Tile is a standalone ARIA radio/checkbox"
            },
            {
              "name": "CheckboxCard",
              "relationship": "alternative",
              "reason": "Use CheckboxCard when native checkbox form semantics are required"
            }
          ],
          "a11yRationale": "Exposes role=\"radio\" (single) or role=\"checkbox\" (multi) with aria-checked reflecting selection, is focusable, and toggles on Space/Enter. aria-disabled and a -1 tabindex remove disabled tiles from interaction.",
          "flexibility": [
            {
              "area": "selectable",
              "level": "strict",
              "note": "single (radio, select-only) | multi (checkbox, toggle)"
            },
            {
              "area": "selected state",
              "level": "flexible",
              "note": "Controlled (selected/onSelect) or uncontrolled (defaultSelected)"
            },
            {
              "area": "element",
              "level": "flexible",
              "note": "asChild renders onto a custom element via Slot"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "time-picker",
      "type": "component",
      "description": "Native time input wrapper with label, hint, error, and size variants",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/time-picker/time-picker.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/time-picker/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/time-picker/time-picker.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/time-picker/time-picker.meta.ts"
      ],
      "fileHashes": {
        "time-picker.tsx": "sha256-bf6412370e876f9c4dc67e8a3eda093e07fa239852e97bc2f1118af5286050eb",
        "index.ts": "sha256-d5e5a07b40ae6720075ed633b7cc1b9de694807b7dc9f594dc5673f1555ea603",
        "time-picker.module.css": "sha256-84aacb74f566e0c5082a48a3b73194981ab1bc9c17bafc5c7d43bd27bfc6f480",
        "time-picker.meta.ts": "sha256-6ae69180358274edea272085ef411b4231c6442c68f2cd7a4f1ba8c0c7a56c2d"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["time", "input", "form"],
      "meta": {
        "name": "TimePicker",
        "description": "Native time input wrapper with label, hint, error, and size variants",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "wrapper",
            "data": {
              "data-state": ["idle", "focused", "error"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["label", "input", "error", "hint"]
          },
          "parts": {
            "label": {
              "element": "label",
              "children": ["$text"]
            },
            "input": {
              "element": "input",
              "aria": ["aria-invalid", "aria-describedby", "aria-label"]
            },
            "error": {
              "element": "span",
              "role": "alert",
              "children": ["$text"]
            },
            "hint": {
              "element": "span",
              "children": ["$text"]
            }
          }
        },
        "states": ["idle", "focused", "error"],
        "variants": [],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "value",
            "type": "string",
            "required": false,
            "description": "Controlled value (HH:mm)"
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string",
            "required": false
          },
          {
            "name": "onValueChange",
            "description": "Called with the new HH:MM time string when the value changes.",
            "type": "(value: string) => void",
            "required": false
          },
          {
            "name": "min",
            "description": "Minimum allowed value.",
            "type": "string",
            "required": false
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "string",
            "required": false
          },
          {
            "name": "step",
            "description": "Increment between allowed values.",
            "type": "number",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "hint",
            "description": "Supplementary hint text shown with the control.",
            "type": "string",
            "required": false
          },
          {
            "name": "error",
            "description": "Error message shown when the value is invalid.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "'md'"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-radius-input",
          "--cascivo-radius-md"
        ],
        "accessibility": {
          "role": "textbox",
          "wcag": "2.2-AA",
          "keyboard": ["Tab"]
        },
        "examples": [
          {
            "title": "Basic time picker",
            "code": "<TimePicker label=\"Meeting time\" onValueChange={(v) => console.log(v)} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["time", "input", "form"],
        "intent": {
          "whenToUse": [
            "Capturing a time of day (HH:mm) in a form, such as a meeting or reminder time",
            "You want the native OS time entry UX with built-in formatting and validation",
            "A time field that needs a label, hint, error, or min/max bounds"
          ],
          "whenNotToUse": [
            "Picking a calendar date — use DatePicker",
            "A free-form or non-time text value — use Input"
          ],
          "antiPatterns": [
            {
              "bad": "<Input placeholder=\"HH:mm\" /> // hand-rolled time field",
              "good": "<TimePicker label=\"Start\" />",
              "why": "A plain Input cannot enforce time format or offer the native time UI; TimePicker gives parsing and locale handling for free"
            }
          ],
          "related": [
            {
              "name": "DatePicker",
              "relationship": "alternative",
              "reason": "Use when a calendar date is needed instead of a time"
            },
            {
              "name": "Input",
              "relationship": "alternative",
              "reason": "Use for non-time free-text values"
            }
          ],
          "a11yRationale": "Renders a native <input type=\"time\"> so segmented HH/mm entry, format enforcement, and keyboard support come from the platform; error text is linked via aria-describedby with aria-invalid.",
          "flexibility": [
            {
              "area": "value format",
              "level": "strict",
              "note": "Value is a 24-hour HH:mm string driven by the native time input"
            },
            {
              "area": "min/max/step",
              "level": "flexible",
              "note": "Consumer-defined bounds and step granularity"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "timeline",
      "type": "component",
      "description": "Ordered sequence of events with status markers and a connector line",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/timeline/timeline.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/timeline/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/timeline/timeline.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/timeline/timeline.meta.ts"
      ],
      "fileHashes": {
        "timeline.tsx": "sha256-bb56033fb22e5be821a87121581fa501958e0f386f3aeb965c8648276884dccc",
        "index.ts": "sha256-c1dbeba0b3d5eca2bb8dc0d1da7f38131fcadc5ed4fdad997215203a22910086",
        "timeline.module.css": "sha256-e25b0e5a351adbca5eefa99c8328407006497c51cf44d0f020294b4e9cbda34a",
        "timeline.meta.ts": "sha256-dae973167f174dabf3e85d829b93f452adbb02a7a13a7e1433e0edb283d7512d"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["timeline", "steps", "history", "progress", "events"],
      "meta": {
        "name": "Timeline",
        "description": "Ordered sequence of events with status markers and a connector line",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "ol",
            "local": "list",
            "data": {
              "data-orientation": ["vertical", "horizontal"]
            },
            "children": ["item"],
            "emit": "manual"
          },
          "parts": {
            "item": {
              "element": "li",
              "data": {
                "data-status": ["complete", "current", "upcoming", "error"],
                "data-tone": ["neutral", "info", "success", "warning", "danger"]
              },
              "aria": ["aria-current"],
              "children": ["marker", "content"]
            },
            "marker": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "content": {
              "element": "div",
              "children": ["title", "time", "description"]
            },
            "title": {
              "element": "div",
              "children": ["$slot"]
            },
            "time": {
              "element": "time",
              "children": ["$text"],
              "when": "time"
            },
            "description": {
              "element": "div",
              "children": ["$slot"],
              "when": "description"
            }
          }
        },
        "states": ["complete", "current", "upcoming"],
        "variants": ["vertical", "horizontal"],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "description": "The items to render.",
            "type": "{ id: string; title: ReactNode; description?: ReactNode; time?: string; icon?: ReactNode; status?: \"complete\" | \"current\" | \"upcoming\"; tone?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\" }[]",
            "required": true
          },
          {
            "name": "orientation",
            "description": "Axis the entries flow along: `vertical` stacks them down the page (the usual reading order), `horizontal` runs them across.",
            "type": "'vertical' | 'horizontal'",
            "required": false,
            "default": "vertical"
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-border-strong",
          "--cascivo-color-surface",
          "--cascivo-color-success",
          "--cascivo-color-primary",
          "--cascivo-color-info",
          "--cascivo-color-warning",
          "--cascivo-color-destructive",
          "--cascivo-radius-full"
        ],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Vertical timeline with statuses",
            "code": "<Timeline\n  items={[\n    { id: '1', title: 'Order placed', time: '09:00', status: 'complete' },\n    { id: '2', title: 'Shipped', time: '12:30', status: 'current' },\n    { id: '3', title: 'Delivered', status: 'upcoming' },\n  ]}\n/>"
          },
          {
            "title": "Activity feed coloured by entry type",
            "description": "In a feed every entry is equally done, so `tone` — not `status` — is what separates them. Keep the meaning in the text too; colour alone is not perceivable.",
            "code": "<Timeline\n  items={[\n    { id: '1', title: 'p99 latency 4.2s', description: 'ALERT · monitor', time: '14:28', tone: 'danger' },\n    { id: '2', title: 'Rolling back deploy 4821', description: 'NOTE · bo', time: '14:49', tone: 'neutral' },\n    { id: '3', title: 'Status changed to monitoring', description: 'STATUS · ana', time: '15:12', tone: 'info' },\n    { id: '4', title: 'Merged 2 edits from kim', description: 'MERGE · sync', time: '15:14', tone: 'success' },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["timeline", "steps", "history", "progress", "events"],
        "intent": {
          "whenToUse": [
            "Showing an ordered sequence of events over time (activity feeds, order tracking)",
            "Communicating progress through discrete stages with complete/current/upcoming status",
            "Presenting a chronological history where order is meaningful"
          ],
          "whenNotToUse": [
            "Interactive multi-step navigation the user controls — use Tabs or a Stepper",
            "Unordered lists where sequence carries no meaning — use List"
          ],
          "antiPatterns": [
            {
              "bad": "Marking several items as status=\"current\" at once",
              "good": "Exactly one current item so aria-current=\"step\" points to a single position",
              "why": "Multiple current markers make the active position ambiguous for assistive tech"
            }
          ],
          "related": [
            {
              "name": "List",
              "relationship": "alternative",
              "reason": "List is for unordered prose; Timeline conveys ordered, time-stamped events"
            }
          ],
          "a11yRationale": "Rendered as an ordered list (ol/li) to convey sequence; the active item carries aria-current=\"step\" and decorative markers are aria-hidden so screen readers read only the text",
          "flexibility": [
            {
              "area": "orientation",
              "level": "flexible",
              "note": "vertical for feeds, horizontal for compact progress strips"
            },
            {
              "area": "status semantics",
              "level": "strict",
              "note": "Use a single current item; status drives marker colour via data-status"
            },
            {
              "area": "tone semantics",
              "level": "flexible",
              "note": "tone marks what kind of entry it is and overrides status on the marker; use it for feeds, status for trackers, and keep the meaning in the text as well as the colour"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "toast",
      "type": "component",
      "description": "Transient notification surfaced via the useToast hook",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toast/toast.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toast/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toast/toast.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toast/toast.meta.ts"
      ],
      "fileHashes": {
        "toast.tsx": "sha256-d2ff78b1b173e3e6bcad6e57ae73c109a49c1431c3c348b349651311ab2b71ce",
        "index.ts": "sha256-f319e929c6cb58790531af9d33494a66a659eceb9c44c44e0d4c41ded593293b",
        "toast.module.css": "sha256-064d28f13920ad5834584c3a610a60d130275b0c27b251d81be61dd523454405",
        "toast.meta.ts": "sha256-c53f2a0f6aed0b6abab3fc5fd9d5cf9f973289512ac9b2135c189b07bf0c33e4"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Snackbar", "snackbar", "ToastMessage", "Notistack"],
      "tags": ["overlay", "notification", "feedback"],
      "meta": {
        "name": "Toast",
        "importSymbols": "ToastProvider, useToast",
        "description": "Transient notification surfaced via the useToast hook",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "viewport",
            "role": "region",
            "aria": ["aria-label"],
            "children": ["toast"]
          },
          "parts": {
            "toast": {
              "element": "div",
              "role": "status",
              "data": {
                "data-variant": ["default", "success", "warning", "destructive"],
                "data-state": ["visible", "dismissing", "gone"]
              },
              "aria": ["aria-live"],
              "children": ["icon", "body", "close"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$text"],
              "when": "variant !== 'default'"
            },
            "body": {
              "element": "div",
              "children": ["title", "description"]
            },
            "title": {
              "element": "div",
              "children": ["$text"]
            },
            "description": {
              "element": "div",
              "children": ["$text"],
              "when": "description"
            },
            "close": {
              "element": "button",
              "aria": ["aria-label"],
              "children": ["$text"]
            }
          }
        },
        "states": ["visible", "dismissing", "gone"],
        "variants": ["default", "success", "warning", "destructive"],
        "sizes": [],
        "props": [
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "variant",
            "description": "Severity tone: `default` (neutral), `success`, `warning` or `destructive`. Sets the icon and the accent colour. Unlike Badge/Tag/Notification this is a private union, not `ToneInput` — the canonical `danger`/`neutral` spellings are not accepted here.",
            "type": "'default' | 'success' | 'warning' | 'destructive'",
            "required": false,
            "default": "default"
          },
          {
            "name": "duration",
            "description": "How long (ms) the toast stays visible before auto-dismiss.",
            "type": "number",
            "required": false,
            "default": "5000"
          }
        ],
        "tokens": [
          "--cascivo-color-surface-overlay",
          "--cascivo-color-success",
          "--cascivo-color-warning",
          "--cascivo-color-destructive",
          "--cascivo-radius-md",
          "--cascivo-z-toast"
        ],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": ["Tab"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Trigger",
            "code": "const { toast } = useToast()\ntoast({ title: \"Saved\", variant: \"success\" })"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["overlay", "notification", "feedback"],
        "intent": {
          "whenToUse": [
            "Confirming that a background or just-completed action succeeded or failed (e.g. \"Saved\")",
            "Brief, transient feedback that should auto-dismiss without interrupting the task",
            "Non-blocking notifications that can stack and disappear on their own"
          ],
          "whenNotToUse": [
            "A persistent, inline message tied to a specific region of the page — use Alert",
            "Feedback that requires the user to acknowledge or decide before continuing — use Modal or AlertDialog"
          ],
          "antiPatterns": [
            {
              "bad": "toast({ title: \"Delete this account?\", duration: 0 })",
              "good": "<AlertDialog title=\"Delete this account?\" />",
              "why": "Toasts auto-dismiss and are easy to miss; a destructive decision needs a blocking dialog the user must confirm"
            }
          ],
          "related": [
            {
              "name": "Alert",
              "relationship": "alternative",
              "reason": "Use for persistent inline status that stays until resolved"
            },
            {
              "name": "Modal",
              "relationship": "alternative",
              "reason": "Use when the user must acknowledge before proceeding"
            }
          ],
          "a11yRationale": "Toasts render into a labelled region; non-critical ones use role=\"status\" with aria-live=\"polite\", while destructive variants escalate to role=\"alert\" with aria-live=\"assertive\" so urgency is conveyed without stealing focus.",
          "content": {
            "tone": "Short, past-tense outcome for the title; optional one-line detail in the description",
            "notes": "Title should read on its own (e.g. \"Saved\"); avoid stuffing actions into a transient toast"
          },
          "flexibility": [
            {
              "area": "variant",
              "level": "strict",
              "note": "Limited to default | success | warning | destructive — drives color and live-region urgency"
            },
            {
              "area": "duration",
              "level": "flexible",
              "note": "Consumer can tune auto-dismiss timing (default 5000ms)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"],
      "importableSymbols": [
        "ToastOptions",
        "ToastProvider",
        "ToastVariant",
        "dismissAllToasts",
        "useToast"
      ]
    },
    {
      "name": "toc",
      "type": "component",
      "description": "Table of contents with scroll-spy highlighting of the active section",
      "category": "navigation",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toc/toc.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toc/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toc/use-toc-from-region.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toc/toc.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toc/toc.meta.ts"
      ],
      "fileHashes": {
        "toc.tsx": "sha256-7e0ab136c0ae29ae4a988c3f994df31dd9bf80f41c34237e8d6c1d2991838747",
        "index.ts": "sha256-d56b23f5d0760540dd1cd9ec3c6f05d8ba7177103da1a7a76b3f02cac75a43a6",
        "use-toc-from-region.ts": "sha256-c5c7455a80e1e4584579ae548bd7447904f7ca6f4ac8ac577b805ce95bd42c56",
        "toc.module.css": "sha256-aef5206295497175017139527fb2285cc1c6daea5f3b3360e2abf6e02ccd9504",
        "toc.meta.ts": "sha256-aba66874313e775cc023df4d0ea77048c9ce5211d379640d127d6b248a69690a"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["toc", "table-of-contents", "navigation", "scroll-spy", "anchor"],
      "meta": {
        "name": "Toc",
        "description": "Table of contents with scroll-spy highlighting of the active section",
        "category": "navigation",
        "clientJs": "enhancement",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "nav",
            "aria": ["aria-label"],
            "emit": "manual"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "description": "The items to render.",
            "type": "{ id: string; label: string; level?: number }[]",
            "required": true
          },
          {
            "name": "activeId",
            "type": "string",
            "required": false,
            "description": "Controlled active item id; disables built-in scroll-spy when set"
          },
          {
            "name": "onActiveChange",
            "description": "Called with the id of the active section when it changes.",
            "type": "(id: string) => void",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ nav?: string }",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent-text",
          "--cascivo-font-sans",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-color-accent",
          "--cascivo-focus-ring",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "navigation",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Toc items={[{ id: 'intro', label: 'Introduction' }, { id: 'usage', label: 'Usage' }, { id: 'api', label: 'API', level: 3 }]} />"
          },
          {
            "title": "Controlled active item",
            "code": "<Toc activeId=\"usage\" items={[{ id: 'intro', label: 'Introduction' }, { id: 'usage', label: 'Usage' }]} />",
            "description": "Pass activeId to drive the highlight yourself; scroll-spy is disabled."
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["toc", "table-of-contents", "navigation", "scroll-spy", "anchor"],
        "intent": {
          "whenToUse": [
            "Long-form pages (docs, articles) that benefit from in-page jump links",
            "Highlighting which section is currently in view as the reader scrolls"
          ],
          "whenNotToUse": [
            "Top-level site navigation between pages — use NavigationMenu or SideNav",
            "Showing hierarchy depth of the current page — use Breadcrumb"
          ],
          "antiPatterns": [
            {
              "bad": "Using Toc as the primary site navigation between routes",
              "good": "<NavigationMenu> / <SideNav> for cross-page navigation",
              "why": "Toc links to sections within the current document, not to other pages"
            }
          ],
          "related": [
            {
              "name": "SideNav",
              "relationship": "alternative",
              "reason": "SideNav navigates between pages; Toc navigates within one page"
            },
            {
              "name": "Breadcrumb",
              "relationship": "alternative",
              "reason": "Breadcrumb shows ancestor hierarchy; Toc shows in-page sections"
            }
          ],
          "a11yRationale": "Rendered as a <nav> landmark with a label; entries are real anchor links and the active one is marked aria-current=\"location\" so assistive tech announces the current section",
          "content": {
            "tone": "Short labels matching the section headings",
            "notes": "Labels should mirror the on-page heading text"
          },
          "flexibility": [
            {
              "area": "activeId",
              "level": "flexible",
              "note": "Control the highlight externally, or omit it for built-in scroll-spy"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Colors, focus ring, and touch target must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "toggle",
      "type": "component",
      "description": "On/off switch built as an accessible button",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle/toggle.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle/toggle.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle/toggle.meta.ts"
      ],
      "fileHashes": {
        "toggle.tsx": "sha256-bd245f7bca569b26f79f65ae6b9215cf2d2d3cf65ebe1c0f2cdae40680782c13",
        "index.ts": "sha256-8463627930eb060c1e8f834f86d9ff94171978a893046b6f9c28fe7b76ba25fe",
        "toggle.module.css": "sha256-9c452a066e05bdcf11ffe10f5245ec08d99a4eb36d00bada9fa53de0460572bf",
        "toggle.meta.ts": "sha256-04008fa0d7798b335b95cffaadb2de8437b9c7a2c42171c50d8860015325cca6"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["Switch", "switch", "ToggleSwitch"],
      "tags": ["switch", "form", "boolean"],
      "meta": {
        "name": "Toggle",
        "description": "On/off switch built as an accessible button",
        "category": "inputs",
        "clientJs": "enhancement",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "button",
            "local": "toggle",
            "role": "switch",
            "data": {
              "data-state": ["off", "on"],
              "data-size": ["sm", "md"]
            },
            "aria": ["aria-checked", "aria-label"],
            "children": ["track", "label"]
          },
          "parts": {
            "track": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["thumb"]
            },
            "thumb": {
              "element": "span"
            },
            "label": {
              "element": "span",
              "children": ["$text"]
            }
          }
        },
        "states": ["off", "on"],
        "variants": [],
        "sizes": ["sm", "md"],
        "agent": {
          "actions": [
            {
              "name": "setChecked",
              "prop": "checked",
              "args": "boolean"
            }
          ]
        },
        "props": [
          {
            "name": "checked",
            "description": "Whether the control is checked (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "defaultChecked",
            "description": "Whether the control is checked on first render (uncontrolled).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "onValueChange",
            "description": "Called with the new checked state when the switch is toggled.",
            "type": "(checked: boolean) => void",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Visible text label beside the switch; it also becomes the accessible name. When a heading already labels the control, omit this and pass aria-label instead to avoid duplicated text.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md'",
            "required": false,
            "default": "md"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "ariaLabel",
            "description": "Invisible accessible name, for when a visible element outside this component already labels it and `label` would render that text a second time. ⚠ `label` on this component is **visible**; `IconButton.label`/`Sparkline.label` are invisible names, which is the prior that costs adopters a duplicated label. The raw DOM `aria-label` still wins over this.",
            "type": "string",
            "required": false,
            "nameVisibility": "invisible"
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-border-strong",
          "--cascivo-color-surface",
          "--cascivo-radius-full",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "switch",
          "wcag": "2.2-AA",
          "keyboard": ["Space", "Enter"],
          "apgPattern": "switch",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Uncontrolled",
            "code": "<Toggle label=\"Notifications\" defaultChecked />"
          },
          {
            "title": "Controlled",
            "code": "<Toggle checked={enabled} onValueChange={setEnabled} label=\"Dark mode\" />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["switch", "form", "boolean"],
        "intent": {
          "whenToUse": [
            "Flipping a single binary setting that takes effect immediately (e.g. notifications on/off)",
            "On/off state where a physical switch metaphor reads better than a checkmark",
            "Settings screens where the change applies live without a separate submit"
          ],
          "whenNotToUse": [
            "Selecting items in a form that is submitted later — use Checkbox",
            "Choosing one option among several mutually exclusive labels — use SegmentedControl or Radio"
          ],
          "antiPatterns": [
            {
              "bad": "<Toggle label=\"I accept the terms\" /> inside a submitted form",
              "good": "<Checkbox label=\"I accept the terms\" />",
              "why": "A switch implies an instant on/off setting; agreement that is submitted with the form is a checkbox"
            },
            {
              "bad": "<h3>Dark mode</h3><Toggle label=\"Dark mode\" /> — the label repeats the heading",
              "good": "<h3>Dark mode</h3><Toggle aria-label=\"Dark mode\" />",
              "why": "The `label` prop renders visible text and is the accessible name; when a heading already names the control, use aria-label so the name is not shown (and read) twice"
            }
          ],
          "related": [
            {
              "name": "Checkbox",
              "relationship": "alternative",
              "reason": "Use for form selections submitted later rather than instant settings"
            },
            {
              "name": "SegmentedControl",
              "relationship": "alternative",
              "reason": "Use when choosing among several exclusive options, not just on/off"
            }
          ],
          "a11yRationale": "Renders a <button role=\"switch\"> with aria-checked reflecting state, so assistive tech announces it as a switch and Space/Enter toggle it via native button activation.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Track and thumb colors must resolve to --cascivo-color-* / radius / focus-ring tokens"
            },
            {
              "area": "label copy",
              "level": "flexible",
              "note": "Optional label describing the setting being toggled"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "toggle-group",
      "type": "component",
      "description": "A set of toggle buttons for single or multiple selection",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle-group/toggle-group.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle-group/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle-group/toggle-group.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggle-group/toggle-group.meta.ts"
      ],
      "fileHashes": {
        "toggle-group.tsx": "sha256-5233331cb67794260e9a86facc7f9794f138e87c829d7472829277e64e14e8d9",
        "index.ts": "sha256-98315b7e46fe461822997e67c9f4ec6589987640a7552098f1781e0afec01b36",
        "toggle-group.module.css": "sha256-971ab0ac7fc68a484b1871621339784f48f372fe78b57db1b57c370721ac50b3",
        "toggle-group.meta.ts": "sha256-b644606d9bc8753a42d6463475a4270570e11c081d98cf0d504e331ea8713ca9"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "aliases": ["ToggleButtonGroup", "ButtonToggleGroup"],
      "tags": ["selection", "segmented", "toolbar", "choice"],
      "meta": {
        "name": "ToggleGroup",
        "description": "A set of toggle buttons for single or multiple selection",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "toggleGroup",
            "role": "group",
            "data": {
              "data-orientation": ["horizontal", "vertical"],
              "data-size": ["sm", "md", "lg"]
            },
            "children": ["item"]
          },
          "parts": {
            "item": {
              "element": "button",
              "data": {
                "data-state": ["on", "off"]
              },
              "aria": ["aria-checked", "aria-pressed", "aria-label"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["on", "off"],
        "variants": ["single", "multiple"],
        "sizes": ["sm", "md", "lg"],
        "props": [
          {
            "name": "type",
            "description": "Whether one or multiple items can be pressed at once ('single' | 'multiple').",
            "type": "'single' | 'multiple'",
            "required": true
          },
          {
            "name": "value",
            "description": "The controlled value.",
            "type": "string | string[]",
            "required": false
          },
          {
            "name": "defaultValue",
            "description": "The initial value when uncontrolled.",
            "type": "string | string[]",
            "required": false
          },
          {
            "name": "onValueChange",
            "description": "Called with the new value when it changes.",
            "type": "(value: string | string[]) => void",
            "required": false
          },
          {
            "name": "items",
            "description": "The items to render.",
            "type": "{ value: string; label?: string; icon?: React.ReactNode; disabled?: boolean }[]",
            "required": true
          },
          {
            "name": "orientation",
            "description": "Axis the options flow along: `horizontal` for a segmented row, `vertical` for a stacked column.",
            "type": "'horizontal' | 'vertical'",
            "required": false,
            "default": "horizontal"
          },
          {
            "name": "size",
            "description": "Visual size of the component (e.g. 'sm', 'md', 'lg').",
            "type": "'sm' | 'md' | 'lg'",
            "required": false,
            "default": "md"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          }
        ],
        "tokens": [
          "--cascivo-control-height-sm",
          "--cascivo-control-height-md",
          "--cascivo-control-height-lg",
          "--cascivo-radius-control",
          "--cascivo-radius-item",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-surface",
          "--cascivo-color-text",
          "--cascivo-shadow-sm",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "radiogroup",
          "wcag": "2.2-AA",
          "keyboard": [
            "ArrowRight",
            "ArrowLeft",
            "ArrowUp",
            "ArrowDown",
            "Home",
            "End",
            "Enter",
            "Space"
          ],
          "apgPattern": "radiogroup",
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Single selection",
            "code": "<ToggleGroup type=\"single\" defaultValue=\"left\" items={[{ value: \"left\", label: \"Left\" }, { value: \"center\", label: \"Center\" }, { value: \"right\", label: \"Right\" }]} />"
          },
          {
            "title": "Multiple selection",
            "code": "<ToggleGroup type=\"multiple\" defaultValue={[\"bold\"]} items={[{ value: \"bold\", label: \"Bold\" }, { value: \"italic\", label: \"Italic\" }]} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["selection", "segmented", "toolbar", "choice"],
        "intent": {
          "whenToUse": [
            "Choosing one value from a small, mutually exclusive set that should stay visible (type=\"single\")",
            "Toggling several independent options in a compact segmented control (type=\"multiple\")"
          ],
          "whenNotToUse": [
            "The options are independent actions, not a selection — use ButtonGroup",
            "There are many options or they need labels and descriptions — use Radio or Checkbox groups"
          ],
          "antiPatterns": [
            {
              "bad": "<ToggleGroup type=\"single\" items={items} onValueChange={save} />",
              "good": "<ToggleGroup type=\"single\" value={align} onValueChange={setAlign} items={items} />",
              "why": "Single-select used as a controlled value should be driven by value/onValueChange so the source of truth lives with the parent"
            }
          ],
          "related": [
            {
              "name": "ButtonGroup",
              "relationship": "alternative",
              "reason": "Use when the buttons fire independent actions rather than select a value"
            },
            {
              "name": "Toggle",
              "relationship": "alternative",
              "reason": "Use a single Toggle for one standalone binary option"
            }
          ],
          "a11yRationale": "Single mode renders role=\"radiogroup\" with role=\"radio\" + aria-checked items; multiple mode uses a plain group of buttons with aria-pressed. Roving tabindex makes the set one tab stop and arrow keys move between items, matching the APG radiogroup/toolbar patterns",
          "content": {
            "tone": "Short noun or icon per option",
            "notes": "Keep item labels parallel and concise; provide a label or icon meaningful out of context"
          },
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Item height must resolve to --cascivo-control-height-* to align with other controls"
            },
            {
              "area": "item content",
              "level": "flexible",
              "note": "Items may use a text label, an icon, or both; consumer owns the icon set"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "toggletip",
      "type": "component",
      "description": "A click-triggered info popover for supplementary, selectable content",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggletip/toggletip.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggletip/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggletip/toggletip.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/toggletip/toggletip.meta.ts"
      ],
      "fileHashes": {
        "toggletip.tsx": "sha256-4633ffac020be5717bbe3b01d54bd92f370b371ea5a2d34113bafc18cd084589",
        "index.ts": "sha256-999e0b64ef7580cfe978915fadb2d1791a3c6c08c5d984f7c7a708aae0aaea18",
        "toggletip.module.css": "sha256-32a210dcd77c90bc4c28b7c794b1b9240460996efff65d386837a8feab71343e",
        "toggletip.meta.ts": "sha256-f07cca48a194a321bcc5234ee8735ddad14a24691b1e7862dfe109d9e29185ad"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["overlay", "toggletip", "info", "popover", "floating"],
      "meta": {
        "name": "Toggletip",
        "description": "A click-triggered info popover for supplementary, selectable content",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "root",
            "children": ["trigger", "bubble"]
          },
          "parts": {
            "trigger": {
              "element": "button",
              "aria": ["aria-expanded", "aria-controls", "aria-label"],
              "children": ["$slot"]
            },
            "bubble": {
              "element": "div",
              "role": "status",
              "data": {
                "data-state": ["open"],
                "data-placement": "string"
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["open", "closed"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "trigger",
            "type": "ReactNode",
            "required": true,
            "description": "Trigger content, rendered inside a button (e.g. an info icon)"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "The popover content — interactive and selectable"
          },
          {
            "name": "placement",
            "type": "'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'",
            "required": false,
            "default": "'top'",
            "description": "Side and alignment of the bubble relative to the trigger"
          },
          {
            "name": "defaultOpen",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Initial open state when uncontrolled"
          },
          {
            "name": "open",
            "type": "boolean",
            "required": false,
            "description": "Controlled open state"
          },
          {
            "name": "onOpenChange",
            "type": "(open: boolean) => void",
            "required": false,
            "description": "Called whenever the open state should change"
          },
          {
            "name": "labels",
            "type": "{ label?: string }",
            "required": false,
            "description": "Override the trigger accessible name"
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-text",
          "--cascivo-color-bg-subtle",
          "--cascivo-radius-control",
          "--cascivo-radius-overlay",
          "--cascivo-shadow-md",
          "--cascivo-focus-ring",
          "--cascivo-motion-enter",
          "--cascivo-z-tooltip"
        ],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": ["Enter", "Space", "Escape"],
          "forcedColors": true,
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Info toggletip",
            "description": "An info button that reveals supplementary text on click",
            "code": "<Toggletip trigger={<InfoIcon />}>\n  Your password must contain at least 12 characters.\n</Toggletip>"
          },
          {
            "title": "Controlled",
            "description": "Drive the open state from the parent",
            "code": "<Toggletip\n  trigger={<InfoIcon />}\n  open={open}\n  onOpenChange={setOpen}\n  placement=\"bottom-start\"\n>\n  <a href=\"/docs\">Learn more</a>\n</Toggletip>"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["overlay", "toggletip", "info", "popover", "floating"],
        "intent": {
          "whenToUse": [
            "Revealing brief supplementary information on demand when the user clicks an info affordance",
            "Content that must be selectable or contain a link, where a hover Tooltip would be unreachable",
            "Touch-friendly hint surfaces where hover is unavailable"
          ],
          "whenNotToUse": [
            "A passive label that should appear on hover/focus without a click — use Tooltip",
            "A blocking, focus-trapping dialog for a task — use Modal",
            "Rich forms or pickers anchored to a trigger — use Popover",
            "A list of one-shot actions behind a button — use MenuButton"
          ],
          "antiPatterns": [
            {
              "bad": "Using a hover Tooltip to hold a link or text the user needs to read or copy",
              "good": "Use a Toggletip so the content stays open on click and remains reachable and selectable",
              "why": "Hover tooltips disappear on pointer-out and are not keyboard- or touch-reachable for interaction, so interactive or copyable content needs a click-toggled bubble"
            },
            {
              "bad": "Giving the trigger an icon with no text and no labels.label override",
              "good": "Provide labels.label or rely on the built-in i18n accessible name",
              "why": "An icon-only button with no accessible name cannot be operated by screen-reader or voice users"
            }
          ],
          "related": [
            {
              "name": "Tooltip",
              "relationship": "alternative",
              "reason": "Use Tooltip for non-interactive hints shown on hover/focus rather than click"
            },
            {
              "name": "Popover",
              "relationship": "alternative",
              "reason": "Use Popover for richer interactive content like forms or pickers"
            },
            {
              "name": "MenuButton",
              "relationship": "alternative",
              "reason": "Use MenuButton when the trigger should reveal a list of actions"
            }
          ],
          "a11yRationale": "The trigger is a real <button> with aria-expanded reflecting open state and aria-controls pointing at the bubble; an icon-only trigger gets an accessible name from labels.label or the built-in i18n catalog. The bubble is role=\"status\" so its content is announced when it opens, and unlike a hover tooltip the content remains visible and reachable for selection and links. DismissableLayer provides Escape and outside-pointer dismissal, and high-contrast and reduced-motion preferences are honored in CSS.",
          "flexibility": [
            {
              "area": "token names",
              "level": "strict",
              "note": "Trigger and bubble styling must resolve to the listed --cascivo-* tokens"
            },
            {
              "area": "content",
              "level": "flexible",
              "note": "trigger and children accept arbitrary ReactNode supplied by the consumer"
            },
            {
              "area": "open state ownership",
              "level": "flexible",
              "note": "Use uncontrolled (defaultOpen) or controlled (open + onOpenChange) as needed"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "tool-call",
      "type": "component",
      "description": "Card for one AI tool invocation — the tool name, its lifecycle status, collapsible input/output, and approval actions",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tool-call/tool-call.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tool-call/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tool-call/tool-call.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tool-call/tool-call.meta.ts"
      ],
      "fileHashes": {
        "tool-call.tsx": "sha256-490d479a2c9419420b33b641c7fdd38f48f73afaa98c61d105cbcad8da741c84",
        "index.ts": "sha256-4b4c3203d170de1a944dbf00d2322350afa8eb82b8602add9a8714a61bf0dbb9",
        "tool-call.module.css": "sha256-1bac6c0bd4250babc7188bedfdcb54d0fda393a91f03018807be15e03904f5de",
        "tool-call.meta.ts": "sha256-c80b96ab75d86db6882b6c2bd8bdb183a4af6bdc072c257d28cc2e34cabbb694"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["Tool", "ToolInvocation", "FunctionCall", "ToolUse"],
      "tags": ["ai", "agent", "tool", "function-call", "approval", "mcp", "status"],
      "meta": {
        "name": "ToolCall",
        "description": "Card for one AI tool invocation — the tool name, its lifecycle status, collapsible input/output, and approval actions",
        "category": "display",
        "clientJs": "none",
        "contractTier": "native",
        "anatomy": {
          "root": {
            "element": "div",
            "data": {
              "data-status": [
                "pending",
                "running",
                "awaiting-approval",
                "complete",
                "error",
                "denied"
              ]
            },
            "children": ["disclosure", "summary", "actions"],
            "emit": "manual"
          },
          "parts": {
            "disclosure": {
              "element": "details",
              "children": ["summary", "body"]
            },
            "summary": {
              "element": ["summary", "div"],
              "children": ["glyph", "name", "badge", "indicator"]
            },
            "glyph": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "name": {
              "element": "code",
              "children": ["$text"]
            },
            "badge": {
              "element": "span",
              "children": ["$text"]
            },
            "indicator": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "body": {
              "element": "div",
              "children": ["section"]
            },
            "section": {
              "element": "div",
              "data": {
                "data-kind": ["error"]
              },
              "children": ["section-label", "code"]
            },
            "section-label": {
              "element": "div",
              "children": ["$text"]
            },
            "code": {
              "element": "pre",
              "children": ["$text"]
            },
            "actions": {
              "element": "div",
              "children": ["$slot"],
              "when": "actions"
            }
          }
        },
        "states": ["pending", "running", "awaiting-approval", "complete", "error", "denied"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "name",
            "description": "The tool’s name, shown in monospace (e.g. `search_web`).",
            "type": "string",
            "required": true
          },
          {
            "name": "status",
            "description": "Lifecycle, matching the AI SDK tool-part states: `pending` (input streaming), `running`, `awaiting-approval`, `complete`, `error`, `denied`.",
            "type": "'pending' | 'running' | 'awaiting-approval' | 'complete' | 'error' | 'denied'",
            "required": true
          },
          {
            "name": "input",
            "description": "The call’s arguments. A string (e.g. `JSON.stringify(args, null, 2)`) renders preformatted; any other node renders as given.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "output",
            "description": "The tool’s result — a string renders preformatted, a node as given.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "error",
            "description": "Why the call failed. The panel opens itself when status is `error`.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "actions",
            "description": "Rich slot below the card — typically Approve / Deny buttons while `awaiting-approval`. Always visible, never inside the collapsible panel.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "{ pending?: string; running?: string; awaitingApproval?: string; complete?: string; error?: string; denied?: string; input?: string; output?: string; errorHeading?: string }",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-ai",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text-muted",
          "--cascivo-color-warning",
          "--cascivo-color-destructive",
          "--cascivo-radius-surface",
          "--cascivo-font-mono",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Enter", "Space"],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Running",
            "code": "<ToolCall name=\"search_web\" status=\"running\" input={'{ \"query\": \"cascivo pricing\" }'} />"
          },
          {
            "title": "Complete",
            "code": "<ToolCall\n  name=\"get_weather\"\n  status=\"complete\"\n  input={'{ \"city\": \"Berlin\" }'}\n  output={'{ \"tempC\": 18, \"sky\": \"clear\" }'}\n/>"
          },
          {
            "title": "Awaiting approval",
            "code": "<ToolCall\n  name=\"send_email\"\n  status=\"awaiting-approval\"\n  input={'{ \"to\": \"team@example.com\", \"subject\": \"Weekly report\" }'}\n  actions={\n    <>\n      <Button variant=\"ghost\" size=\"sm\">Deny</Button>\n      <Button size=\"sm\">Approve</Button>\n    </>\n  }\n/>"
          },
          {
            "title": "Error",
            "code": "<ToolCall name=\"fetch_page\" status=\"error\" error=\"The page returned 404.\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "registryDependencies": ["badge"],
        "tags": ["ai", "agent", "tool", "function-call", "approval", "mcp", "status"],
        "intent": {
          "whenToUse": [
            "Showing an AI tool or function call in a conversation, with what it was given and what it returned",
            "Asking the reader to approve or deny a call before it runs (human-in-the-loop)"
          ],
          "whenNotToUse": [
            "A list of agent steps without payloads — use ChainOfThought",
            "Announcing that the assistant is working — use AiStatus",
            "Showing arbitrary code — use CodeSnippet"
          ],
          "antiPatterns": [
            {
              "bad": "Putting Approve / Deny inside the collapsible input panel",
              "good": "Pass them to `actions`, which always renders below the card",
              "why": "A pending approval must be visible and reachable without first opening a disclosure"
            }
          ],
          "related": [
            {
              "name": "ChainOfThought",
              "relationship": "contained-by",
              "reason": "A ToolCall can sit in a ChainOfThought step’s detail"
            },
            {
              "name": "Badge",
              "relationship": "contains",
              "reason": "The status is a Badge whose tone follows the lifecycle"
            },
            {
              "name": "AiStatus",
              "relationship": "pairs-with",
              "reason": "AiStatus announces progress; ToolCall is never a live region"
            }
          ],
          "a11yRationale": "The header is a native <summary>, so the disclosure is keyboard-operable (Enter/Space) and works before hydration; its accessible name is the tool name plus the status text, never colour alone. Approval actions live outside the disclosure so they are always reachable. The card is not a live region — announce progress with AiStatus. Only the tool glyph pulses while running, under prefers-reduced-motion: no-preference",
          "content": {
            "tone": "Show the tool’s real name; keep error text specific (\"The page returned 404.\")"
          },
          "flexibility": [
            {
              "area": "payloads",
              "level": "flexible",
              "note": "Strings render preformatted; pass a node (a table, a CodeSnippet) for richer output"
            },
            {
              "area": "status vocabulary",
              "level": "strict",
              "note": "Map your framework’s tool states onto the six statuses; do not invent more"
            }
          ]
        }
      },
      "registryDependencies": ["badge"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "tooltip",
      "type": "component",
      "description": "Contextual label shown on hover or focus",
      "category": "overlay",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tooltip/tooltip.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tooltip/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tooltip/tooltip.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tooltip/tooltip.meta.ts"
      ],
      "fileHashes": {
        "tooltip.tsx": "sha256-989e3c7608d70ef63dca33b6f20375c10947785cb7a3a57b49ae9df519fedcf3",
        "index.ts": "sha256-7a22da0b386ca62ce49c66c79a2c13d3ca95e0f922482d8d4805533c7ab1adad",
        "tooltip.module.css": "sha256-faefd5d1ef9ccc0a2325835a7d8450c654e69c979e4c7299070f7548b25690b6",
        "tooltip.meta.ts": "sha256-ef4ca803338cfd732af042786cb7b28ed1f502f1267f05695af37c5f3b6fd824"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["overlay", "hint", "popover"],
      "meta": {
        "name": "Tooltip",
        "description": "Contextual label shown on hover or focus",
        "category": "overlay",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "root",
            "children": ["$slot", "tooltip"]
          },
          "parts": {
            "tooltip": {
              "element": "span",
              "role": "tooltip",
              "data": {
                "data-state": ["visible", "hidden"],
                "data-placement": "string",
                "data-anchor": "string"
              },
              "children": ["$slot"]
            }
          }
        },
        "states": ["hidden", "visible"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "content",
            "description": "The tooltip content shown on hover/focus.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "placement",
            "description": "Side of the trigger the tip opens on: `top`, `right`, `bottom` or `left`.",
            "type": "'top' | 'right' | 'bottom' | 'left'",
            "required": false,
            "default": "top"
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "ReactElement",
            "required": true
          },
          {
            "name": "delay",
            "type": "number",
            "required": false,
            "default": "200",
            "description": "Milliseconds to wait before showing"
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-on-accent",
          "--cascivo-radius-sm",
          "--cascivo-z-tooltip"
        ],
        "accessibility": {
          "role": "tooltip",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "Escape"],
          "apgPattern": "tooltip",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<Tooltip content=\"Copy to clipboard\"><Button>Copy</Button></Tooltip>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["overlay", "hint", "popover"],
        "intent": {
          "whenToUse": [
            "Labeling an icon-only control or clarifying a terse element on hover or focus",
            "Showing brief, supplementary text that is non-essential to completing the task",
            "Progressive disclosure of a short hint anchored to a trigger element"
          ],
          "whenNotToUse": [
            "The content is interactive (links, buttons, inputs) — use Popover",
            "Richer non-interactive preview content is needed — use HoverCard",
            "The information is essential and must always be visible — render it inline instead"
          ],
          "antiPatterns": [
            {
              "bad": "<Tooltip content={<button>Undo</button>}><Icon /></Tooltip>",
              "good": "<Popover><button>Undo</button></Popover>",
              "why": "Tooltips are hover/focus hints and cannot reliably hold focusable content; interactive content belongs in a Popover"
            }
          ],
          "related": [
            {
              "name": "Popover",
              "relationship": "alternative",
              "reason": "Use when the floating content is interactive"
            },
            {
              "name": "HoverCard",
              "relationship": "alternative",
              "reason": "Use for richer non-interactive preview content"
            },
            {
              "name": "Button",
              "relationship": "pairs-with",
              "reason": "Commonly wraps an icon button to explain its action"
            }
          ],
          "a11yRationale": "The floating element uses role=\"tooltip\" and is linked to the trigger via aria-describedby only while visible; it shows on both hover and keyboard focus so it is reachable without a pointer.",
          "content": {
            "tone": "Very short, plain phrase — a label or one-line hint",
            "notes": "No essential-only information; keep it to a few words and avoid full sentences"
          },
          "flexibility": [
            {
              "area": "placement",
              "level": "strict",
              "note": "Limited to top | right | bottom | left, positioned via CSS anchor"
            },
            {
              "area": "delay",
              "level": "flexible",
              "note": "Consumer can tune the show delay (default 200ms)"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "tree-view",
      "type": "component",
      "description": "Hierarchical, expandable tree of nodes with keyboard navigation and selection",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tree-view/tree-view.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tree-view/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tree-view/tree-view.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/tree-view/tree-view.meta.ts"
      ],
      "fileHashes": {
        "tree-view.tsx": "sha256-45eb53de933d7348cd4b98ee6d9760eff5d6ff571e26255e7e97d5ab09683e73",
        "index.ts": "sha256-a8f9ad6089ec199ec174465a1867f5731056f5ce6ba4dda2e41e2c75370b3951",
        "tree-view.module.css": "sha256-2f64952ac258cb23ed44f61c74cb94818ec6fc2e3ead845c8d6a911941df2ef0",
        "tree-view.meta.ts": "sha256-8ba685bb95d71a8bc3a003901b6ab7aa597e4fcea52e564321438524ebb69a14"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["display", "tree", "hierarchy", "navigation", "files"],
      "meta": {
        "name": "TreeView",
        "description": "Hierarchical, expandable tree of nodes with keyboard navigation and selection",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "ul",
            "local": "tree",
            "role": "tree",
            "aria": ["aria-multiselectable", "aria-label"],
            "children": ["item"]
          },
          "parts": {
            "item": {
              "element": "li",
              "role": "treeitem",
              "data": {
                "data-state": ["open", "closed"],
                "data-selected": "boolean",
                "data-disabled": "boolean"
              },
              "aria": [
                "aria-labelledby",
                "aria-level",
                "aria-posinset",
                "aria-setsize",
                "aria-selected",
                "aria-expanded",
                "aria-disabled"
              ],
              "children": ["row", "groupWrap"]
            },
            "row": {
              "element": "span",
              "children": ["twisty", "twistySpacer", "icon", "label"]
            },
            "twisty": {
              "element": "span",
              "data": {
                "data-state": ["open", "closed"]
              },
              "aria": ["aria-hidden"]
            },
            "twistySpacer": {
              "element": "span",
              "aria": ["aria-hidden"]
            },
            "icon": {
              "element": "span",
              "aria": ["aria-hidden"],
              "children": ["$slot"]
            },
            "label": {
              "element": "span",
              "children": ["$text"]
            },
            "groupWrap": {
              "element": "div",
              "role": "presentation",
              "data": {
                "data-state": ["open", "closed"]
              },
              "children": ["group"]
            },
            "group": {
              "element": "ul",
              "role": "group",
              "children": ["$slot"]
            }
          }
        },
        "states": ["default", "expanded", "collapsed", "selected"],
        "variants": ["single", "multi"],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Invisible accessible name. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling."
          },
          {
            "name": "aria-label",
            "type": "string",
            "required": false,
            "description": "Accessible label for the tree."
          },
          {
            "name": "items",
            "description": "The items to render.",
            "type": "{ id: string; label: ReactNode; icon?: ReactNode; children?: TreeNode[] }[]",
            "required": true
          },
          {
            "name": "selectionMode",
            "description": "Whether one or multiple nodes can be selected ('single' | 'multi').",
            "type": "'single' | 'multi'",
            "required": false,
            "default": "single"
          },
          {
            "name": "selected",
            "description": "The controlled selected node id(s).",
            "type": "string | string[]",
            "required": false
          },
          {
            "name": "defaultSelected",
            "description": "The initially selected node id(s) when uncontrolled.",
            "type": "string | string[]",
            "required": false
          },
          {
            "name": "onSelectChange",
            "description": "Called with the new selection when it changes.",
            "type": "(selected: string | string[]) => void",
            "required": false
          },
          {
            "name": "onValueChange",
            "description": "Called with the new selection. Preferred over `onSelectChange`, which is the catalog’s only value-carrying handler not named onValueChange and is deprecated.",
            "type": "(selected: string | string[]) => void",
            "required": false
          },
          {
            "name": "expanded",
            "description": "The controlled set of expanded node ids.",
            "type": "string[]",
            "required": false
          },
          {
            "name": "defaultExpanded",
            "description": "The initially expanded node ids when uncontrolled.",
            "type": "string[]",
            "required": false
          },
          {
            "name": "onExpandedChange",
            "description": "Called with the new expanded set when it changes.",
            "type": "(expanded: string[]) => void",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-tree-indent",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-radius-control",
          "--cascivo-focus-ring",
          "--cascivo-duration-200",
          "--cascivo-ease-out"
        ],
        "accessibility": {
          "role": "tree",
          "wcag": "2.2-AA",
          "keyboard": [
            "*",
            "ArrowDown",
            "ArrowUp",
            "ArrowRight",
            "ArrowLeft",
            "Home",
            "End",
            "Enter",
            "Space",
            "Typeahead"
          ],
          "apgPattern": "tree-view",
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Single select",
            "code": "<TreeView defaultExpanded={[\"src\"]} items={[{ id: \"src\", label: \"src\", children: [{ id: \"index\", label: \"index.ts\" }] }]} />"
          },
          {
            "title": "Multi select",
            "code": "<TreeView selectionMode=\"multi\" items={nodes} onSelectChange={(ids) => set(ids)} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["display", "tree", "hierarchy", "navigation", "files"],
        "intent": {
          "whenToUse": [
            "Showing nested, parent/child data the user expands and collapses (file trees, org charts, nav)",
            "Letting the user pick one or several nodes from a hierarchy",
            "Navigating deep structures where indentation communicates depth"
          ],
          "whenNotToUse": [
            "A flat, non-nested list of choices — use List or StructuredList",
            "A small set of mutually exclusive sections of prose — use Accordion"
          ],
          "antiPatterns": [
            {
              "bad": "A single-level TreeView with no children on any node",
              "good": "A List or StructuredList",
              "why": "A tree with no hierarchy adds twisties and ARIA tree semantics for content that is flat"
            }
          ],
          "related": [
            {
              "name": "Accordion",
              "relationship": "alternative",
              "reason": "Accordion stacks a few sequential disclosure sections; TreeView models arbitrary-depth hierarchy"
            },
            {
              "name": "StructuredList",
              "relationship": "alternative",
              "reason": "StructuredList is flat tabular rows; TreeView is nested with expand/collapse"
            }
          ],
          "a11yRationale": "A role=\"tree\" of role=\"treeitem\" nodes carrying aria-level, aria-posinset, aria-setsize, aria-selected and aria-expanded, with aria-multiselectable on the tree in multi mode — multi-select was previously unannounced. Each item is named by aria-labelledby pointing at its own label: the <li> also contains the child <ul>, so without it an expanded node's accessible name absorbed its entire subtree. A roving tabindex keeps one node focusable, and the candidate is validated against the *visible* set — the old build never invalidated the focused id when its node stopped being visible, so collapsing a branch after focusing a child left the only tabIndex=0 on a hidden node and Tab skipped the whole widget. Collapsed subtrees are not rendered, which is what the clientJs justification has always claimed and was not true: recursion ran on hasChildren alone and CSS merely hid the result. Enter and Space perform the same action as a click (toggle a branch, then select) rather than only selecting; arrows, Home/End and type-to-select all skip disabled nodes; and * expands every sibling at the level. Type-to-select uses the shared useTypeahead primitive and matches a node's textValue, so a JSX label no longer makes it silently inert.",
          "flexibility": [
            {
              "area": "selectionMode",
              "level": "flexible",
              "note": "single vs multi is the consumer’s choice based on the interaction"
            },
            {
              "area": "keyboard model",
              "level": "strict",
              "note": "Arrow/Home/End/typeahead behavior follows the APG tree pattern and must not be re-mapped"
            },
            {
              "area": "indent token",
              "level": "flexible",
              "note": "Per-level indent is driven by --cascivo-tree-indent and may be overridden"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "typing-indicator",
      "type": "component",
      "description": "Three bouncing dots that hold a chat message slot while an assistant (or a person) is composing a reply",
      "category": "feedback",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/typing-indicator/typing-indicator.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/typing-indicator/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/typing-indicator/typing-indicator.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/typing-indicator/typing-indicator.meta.ts"
      ],
      "fileHashes": {
        "typing-indicator.tsx": "sha256-4bb155c9291fd8feaade2a515d270b414c131a8a9cc9bd923e76d3518b531ef1",
        "index.ts": "sha256-fb31cc1f8bc3bc90695a366e4185f1bc0f47bb6f6c5a2768eed9240299089040",
        "typing-indicator.module.css": "sha256-999f80f44c36b261ef58e89e6ff9bb750bd73beb009af207bf0ffe997b965071",
        "typing-indicator.meta.ts": "sha256-0023789edd4f120defd5e944a5396a6a35b5f493cbca4e381174a988371e527e"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "aliases": ["TypingDots", "MessageLoading", "LoadingDots"],
      "tags": ["ai", "chat", "typing", "loading", "dots", "thinking"],
      "meta": {
        "name": "TypingIndicator",
        "description": "Three bouncing dots that hold a chat message slot while an assistant (or a person) is composing a reply",
        "category": "feedback",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "role": "status",
            "aria": ["aria-label"],
            "children": ["dot", "dot", "dot"],
            "emit": "manual"
          },
          "parts": {
            "dot": {
              "element": "span",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Accessible name announced by the status region.",
            "type": "string",
            "required": false,
            "default": "Assistant is typing"
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name. Neither is deprecated.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-typing-indicator-color",
          "--cascivo-color-text-muted",
          "--cascivo-radius-full",
          "--cascivo-space-1",
          "--cascivo-space-2",
          "--cascivo-duration-loop-fast",
          "--cascivo-ease-in-out"
        ],
        "accessibility": {
          "role": "status",
          "wcag": "2.2-AA",
          "keyboard": [],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Default",
            "code": "<TypingIndicator />"
          },
          {
            "title": "In a chat bubble",
            "code": "<ChatBubble name=\"Assistant\"><TypingIndicator /></ChatBubble>"
          },
          {
            "title": "A person typing",
            "code": "<TypingIndicator ariaLabel=\"Ada is typing\" />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["ai", "chat", "typing", "loading", "dots", "thinking"],
        "intent": {
          "whenToUse": [
            "Holding the place of an assistant reply between sending a prompt and the first token arriving",
            "Showing that another participant in a conversation is composing a message"
          ],
          "whenNotToUse": [
            "Naming what the AI is doing (\"Searching…\", \"Generating…\") or offering Stop — use AiStatus",
            "Once text has started streaming — render the text; the dots mean nothing has arrived yet",
            "Non-conversational loading — use Spinner or Skeleton"
          ],
          "antiPatterns": [
            {
              "bad": "Keeping TypingIndicator below a reply that is already streaming",
              "good": "Swap TypingIndicator for the message content when the first token arrives",
              "why": "Two progress signals at once compete, and the status region would keep claiming nothing has been written"
            }
          ],
          "related": [
            {
              "name": "ChatBubble",
              "relationship": "contained-by",
              "reason": "Rendered as the content of a pending assistant ChatBubble"
            },
            {
              "name": "AiStatus",
              "relationship": "alternative",
              "reason": "AiStatus names the phase (thinking / generating) and can offer a Stop button"
            },
            {
              "name": "Spinner",
              "relationship": "alternative",
              "reason": "Spinner suits loading outside a conversation"
            }
          ],
          "a11yRationale": "role=\"status\" with an accessible name (\"Assistant is typing\") is announced once when the indicator mounts; the dots are aria-hidden. They bounce only under prefers-reduced-motion: no-preference and otherwise rest as a static ellipsis; forced colours paint them CanvasText",
          "content": {
            "tone": "Name who is typing — \"Assistant is typing\", \"Ada is typing\""
          },
          "flexibility": [
            {
              "area": "colour",
              "level": "flexible",
              "note": "Override --cascivo-typing-indicator-color (defaults to muted text)"
            },
            {
              "area": "accessible name",
              "level": "strict",
              "note": "Keep the status name — the dots alone carry no meaning for assistive tech"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "user",
      "type": "component",
      "description": "Identity composite: an avatar with a name, description, and optional action slot",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/user/user.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/user/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/user/user.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/user/user.meta.ts"
      ],
      "fileHashes": {
        "user.tsx": "sha256-1ab8caa807fd142f03162f0c64b74789d5195b21bdd386512681715192a2b8d2",
        "index.ts": "sha256-7475c7033df87db07079eba5837d30d1be780f034166064dca76ae434509cc69",
        "user.module.css": "sha256-d94f57f12e1784e025f85c00e31de446bd532de9f13e49b14928d72d8053a8f7",
        "user.meta.ts": "sha256-fd0b2e2fce8fcd262b7bfa6ebd7e59be7cb0ce57c5fe32d70ba13a3c08dae35f"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["user", "avatar", "identity", "display"],
      "meta": {
        "name": "User",
        "description": "Identity composite: an avatar with a name, description, and optional action slot",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "role": "group",
            "children": ["@avatar", "text", "action"],
            "emit": "manual"
          },
          "parts": {
            "text": {
              "element": "span",
              "children": ["name", "description"]
            },
            "name": {
              "element": "span",
              "children": ["$slot"]
            },
            "description": {
              "element": "span",
              "children": ["$slot"],
              "when": "description"
            },
            "action": {
              "element": "span",
              "children": ["$slot"],
              "when": "children"
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "name",
            "description": "The user’s display name.",
            "type": "ReactNode",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "avatarProps",
            "type": "AvatarProps",
            "required": false,
            "description": "Forwarded to the composed <Avatar>"
          }
        ],
        "tokens": [
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-space-3",
          "--cascivo-text-sm",
          "--cascivo-text-xs"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<User name=\"Jane Doe\" description=\"jane@acme.com\" avatarProps={{ src: \"/jane.jpg\", alt: \"Jane Doe\" }} />"
          },
          {
            "title": "With action",
            "code": "<User name=\"Jane Doe\" description=\"Admin\"><IconButton aria-label=\"More\" /></User>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["avatar"],
        "tags": ["user", "avatar", "identity", "display"],
        "intent": {
          "whenToUse": [
            "Showing a person with their name and a secondary line (email, role) next to an avatar",
            "Identity rows inside menus, tables, navbars, and account switchers",
            "A compact, labelled identity primitive too granular for a page-section block"
          ],
          "whenNotToUse": [
            "Just an image with no name/description — use Avatar directly",
            "A full profile card with rich content — compose a Card instead"
          ],
          "antiPatterns": [
            {
              "bad": "<User name=\"\" avatarProps={{ src: \"/jane.jpg\" }} />",
              "good": "<User name=\"Jane Doe\" avatarProps={{ src: \"/jane.jpg\", alt: \"Jane Doe\" }} />",
              "why": "The name is the accessible identity label; an empty name leaves the avatar unlabelled"
            }
          ],
          "related": [
            {
              "name": "Avatar",
              "relationship": "contains",
              "reason": "User wraps Avatar and forwards avatarProps to it"
            },
            {
              "name": "AvatarGroup",
              "relationship": "alternative",
              "reason": "Use AvatarGroup to show several identities as an overlapping stack"
            }
          ],
          "a11yRationale": "The composite is a labelled group; the name provides the accessible identity and the avatar carries its own role=\"img\"/alt — no redundant roles",
          "flexibility": [
            {
              "area": "description",
              "level": "flexible",
              "note": "Any ReactNode — email, role, or a status line"
            },
            {
              "area": "token names",
              "level": "strict",
              "note": "Name and description colors must resolve to --cascivo-* tokens"
            }
          ]
        }
      },
      "registryDependencies": ["avatar"],
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "virtual-list",
      "type": "component",
      "description": "Renders only the rows inside the viewport, so list length costs no extra DOM",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/virtual-list/virtual-list.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/virtual-list/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/virtual-list/virtual-list.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/virtual-list/virtual-list.meta.ts"
      ],
      "fileHashes": {
        "virtual-list.tsx": "sha256-fefe24ef409572160d54bb48ce7f7c085ecc168230c664bb28fbc53887fdd7b0",
        "index.ts": "sha256-c4dcaa8f1a8e89c18ec095cef12791e4820aeaa9008f48c97ad24f7c081170ed",
        "virtual-list.module.css": "sha256-0fac8d394a090c81e595e35b324dda87405f18bcfe335a4825fae481a4013549",
        "virtual-list.meta.ts": "sha256-6cbab2c301bc48e237ac404156f9a861a4fe3a46f0f0c53b7a7163608bf553aa"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["display", "virtual", "virtualization", "list", "performance", "scroll"],
      "meta": {
        "name": "VirtualList",
        "description": "Renders only the rows inside the viewport, so list length costs no extra DOM",
        "category": "display",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "viewport",
            "role": "list",
            "aria": ["aria-label"],
            "children": ["canvas"]
          },
          "parts": {
            "canvas": {
              "element": "div",
              "children": ["row"]
            },
            "row": {
              "element": "div",
              "role": "listitem",
              "aria": ["aria-setsize", "aria-posinset"],
              "children": ["$slot"]
            }
          }
        },
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "type": "Item[]",
            "required": true,
            "description": "The full collection; only the visible window is rendered"
          },
          {
            "name": "itemHeight",
            "type": "number",
            "required": true,
            "description": "Fixed row height in px — every row must be this tall"
          },
          {
            "name": "height",
            "type": "number",
            "required": true,
            "description": "Height of the scrolling viewport, in px — not a CSS length, because the visible row count is computed from it"
          },
          {
            "name": "renderItem",
            "type": "(item: Item, index: number) => React.ReactNode",
            "required": true,
            "description": "Renders one row"
          },
          {
            "name": "overscan",
            "type": "number",
            "required": false,
            "default": "3",
            "description": "Extra rows rendered above and below the visible window, to cover fast scrolling."
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible label for the list; label it when the list stands alone"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-color-accent"],
        "accessibility": {
          "role": "list",
          "wcag": "2.2-AA",
          "keyboard": ["Tab", "ArrowUp", "ArrowDown", "PageUp", "PageDown", "Home", "End"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<VirtualList\n  items={Array.from({ length: 10000 }, (_, i) => i)}\n  itemHeight={40}\n  height={320}\n  ariaLabel=\"Results\"\n  renderItem={(n) => <span>Row {n + 1}</span>}\n/>",
            "description": "Ten thousand rows cost the same DOM as ten."
          },
          {
            "title": "Smoother fast scrolling",
            "code": "<VirtualList items={rows} itemHeight={40} height={320} overscan={10} renderItem={renderRow} />",
            "description": "A larger overscan trades DOM nodes for fewer blank frames when flinging."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["display", "virtual", "virtualization", "list", "performance", "scroll"],
        "intent": {
          "whenToUse": [
            "Lists long enough that rendering every row costs noticeable time or memory (roughly a thousand rows and up)",
            "Log, result and feed views where the collection is already fully in memory",
            "Any list whose length is unbounded and rows are a uniform height"
          ],
          "whenNotToUse": [
            "Short lists — the machinery costs more than it saves; use List",
            "Rows of varying height, which this component cannot position without measuring",
            "Content that must be findable with the browser’s in-page search, which cannot see unrendered rows"
          ],
          "antiPatterns": [
            {
              "bad": "Passing rows whose real height differs from `itemHeight`",
              "good": "Fix the row height in CSS to match `itemHeight` exactly",
              "why": "Positions are arithmetic, not measured, so a mismatch makes rows overlap or leave gaps that grow with scroll depth"
            },
            {
              "bad": "Reaching for a percentage or `dvh` viewport height",
              "good": "Measure the container and pass a px number",
              "why": "`height` drives the visible row count, which cannot be derived from a relative length without measuring"
            },
            {
              "bad": "Fetching the next page inside `renderItem`",
              "good": "Pair with InfiniteScroll, or load before passing `items`",
              "why": "renderItem runs for every row entering the window, including on scroll-back, so a fetch there fires repeatedly"
            }
          ],
          "related": [
            {
              "name": "List",
              "relationship": "alternative",
              "reason": "Plain list when the collection is small enough to render whole"
            },
            {
              "name": "InfiniteScroll",
              "relationship": "pairs-with",
              "reason": "Loads further pages into the collection this list renders"
            },
            {
              "name": "DataTable",
              "relationship": "alternative",
              "reason": "Columnar data with sorting and selection rather than a flat row list"
            }
          ],
          "a11yRationale": "The viewport is a role=\"list\" and each rendered row is a role=\"listitem\" carrying aria-setsize and aria-posinset for the entire collection, so assistive technology announces \"row 3 of 10000\" rather than the size of the rendered window — the defect that makes naive virtualization unusable with a screen reader. The viewport is also in the tab order, because rows hold plain content rather than focusable controls and a scroll container with nothing focusable inside it is otherwise unreachable without a pointer; once focused it takes the browser’s native arrow, Page and Home/End scrolling. Rows are placed with transform rather than by mutating layout, so scrolling stays on the compositor. Because unrendered rows are absent from the DOM, browser in-page search cannot reach them; provide a real filter or search control alongside any virtualized list, and prefer a non-virtualized list when the collection is small.",
          "flexibility": [
            {
              "area": "overscan",
              "level": "flexible",
              "note": "Rows rendered beyond the window (default 3)"
            },
            {
              "area": "itemHeight",
              "level": "strict",
              "note": "Fixed and uniform — variable row heights are not supported"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "visually-hidden",
      "type": "component",
      "description": "Hides content visually while keeping it available to screen readers",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/visually-hidden/visually-hidden.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/visually-hidden/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/visually-hidden/visually-hidden.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/visually-hidden/visually-hidden.meta.ts"
      ],
      "fileHashes": {
        "visually-hidden.tsx": "sha256-e467a933b5a75882b10d60721ead662720796634e4a72d5d73ddf41c74636cca",
        "index.ts": "sha256-22b6c70015882d91addb1a32bc72dec9f8ddb691cd587d685300294fdde18e57",
        "visually-hidden.module.css": "sha256-c48abbc8b2078546467ccb9d4ff08191ae2efdd11cca35207cd746b55abcc347",
        "visually-hidden.meta.ts": "sha256-dcb50cfd4e42b4c2f43d13c1be0cafac6997e7215d4759ea950ad73b7cf9c88e"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["accessibility", "screen-reader", "sr-only", "hidden"],
      "meta": {
        "name": "VisuallyHidden",
        "description": "Hides content visually while keeping it available to screen readers",
        "category": "display",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "span",
            "local": "visuallyHidden",
            "children": ["$slot"],
            "emit": "auto"
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "Content announced by assistive technology but not painted"
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "none",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Icon button label",
            "code": "<button type=\"button\"><CloseIcon /><VisuallyHidden>Close dialog</VisuallyHidden></button>",
            "description": "Gives an icon-only control an accessible name"
          },
          {
            "title": "Table context",
            "code": "<th>Price <VisuallyHidden>(in euros)</VisuallyHidden></th>"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["accessibility", "screen-reader", "sr-only", "hidden"],
        "intent": {
          "whenToUse": [
            "Giving an icon-only control an accessible name without showing text",
            "Adding screen-reader-only context that would be redundant visually",
            "Providing off-screen labels for tables, links, or form controls"
          ],
          "whenNotToUse": [
            "Hiding content from everyone — use hidden or display:none",
            "Temporarily hiding then revealing UI — use conditional rendering"
          ],
          "antiPatterns": [
            {
              "bad": "Wrapping decorative content in VisuallyHidden to \"clean up\" the layout",
              "good": "aria-hidden on decorative elements; VisuallyHidden only for content screen readers need",
              "why": "VisuallyHidden keeps content in the accessibility tree — using it to hide noise pollutes screen-reader output"
            }
          ],
          "related": [
            {
              "name": "SkipNav",
              "relationship": "alternative",
              "reason": "SkipNav uses a similar hidden-until-focused technique for skip links"
            }
          ],
          "a11yRationale": "Applies the standard clip technique so content stays in the DOM and accessibility tree while being painted off-screen — assistive tech reads it, sighted users do not see it",
          "content": {
            "contentPrimitive": true,
            "tone": "Concise supplementary context for screen readers",
            "notes": "Write what a screen-reader user needs that visuals already convey"
          },
          "flexibility": [
            {
              "area": "children",
              "level": "flexible",
              "note": "Any text/content meant for assistive tech"
            },
            {
              "area": "visibility technique",
              "level": "strict",
              "note": "Must keep content in the a11y tree — never display:none"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "wheel-picker",
      "type": "component",
      "description": "iOS-style drum picker — a column of options that scrolls and snaps to a selection",
      "category": "inputs",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/wheel-picker/wheel-picker.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/wheel-picker/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/wheel-picker/wheel-picker.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/wheel-picker/wheel-picker.meta.ts"
      ],
      "fileHashes": {
        "wheel-picker.tsx": "sha256-52d8e4b68c4a3a40c7967727b045732ab181b80dcb93e4b6f7fb90188d79ebe5",
        "index.ts": "sha256-492329d0d11a80376d18a739410cdd07392f949bce3840e6050fc812e91383f2",
        "wheel-picker.module.css": "sha256-de0aa94cde8a3c89a9731966a703ac64de3c9789d9dbf5f257b569e6ddfaa23b",
        "wheel-picker.meta.ts": "sha256-d0d2e4f9d83552fcfe812b3d3cfb7e54badf8e65a44e6d9ac5d0691c9545c46e"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["inputs", "picker", "wheel", "drum", "scroll-snap", "mobile", "ios"],
      "meta": {
        "name": "WheelPicker",
        "description": "iOS-style drum picker — a column of options that scrolls and snaps to a selection",
        "category": "inputs",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "root",
            "children": ["column", "band"]
          },
          "parts": {
            "column": {
              "element": "div",
              "role": "listbox",
              "aria": ["aria-label", "aria-activedescendant"],
              "children": ["option"]
            },
            "option": {
              "element": "div",
              "role": "option",
              "aria": ["aria-selected"],
              "children": ["$text"]
            },
            "band": {
              "element": "div",
              "aria": ["aria-hidden"]
            }
          }
        },
        "states": ["idle", "focused", "scrolling"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "options",
            "type": "WheelPickerOption[]",
            "required": true,
            "description": "The rows of the wheel, in order"
          },
          {
            "name": "value",
            "type": "string",
            "required": true,
            "description": "The selected option value; the component is controlled"
          },
          {
            "name": "onValueChange",
            "type": "(value: string) => void",
            "required": true,
            "description": "Called with the new value when the wheel settles or a key moves the selection"
          },
          {
            "name": "visibleCount",
            "type": "number",
            "required": false,
            "default": "5",
            "description": "How many rows are visible. Odd numbers keep the selection centred."
          },
          {
            "name": "itemHeight",
            "type": "number",
            "required": false,
            "default": "36",
            "description": "Row height in px."
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible label for the wheel — required when it has no visible label"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "WheelPickerOption",
            "fields": [
              {
                "name": "value",
                "type": "string",
                "required": true,
                "description": "Value reported on change"
              },
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Visible row text"
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-foreground",
          "--cascivo-color-text-muted",
          "--cascivo-border-subtle",
          "--cascivo-text-ui",
          "--cascivo-font-semibold",
          "--cascivo-radius-md",
          "--cascivo-ring-width",
          "--cascivo-ring-color"
        ],
        "accessibility": {
          "role": "listbox",
          "wcag": "2.2-AA",
          "keyboard": ["ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown", "Tab"],
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<WheelPicker\n  ariaLabel=\"Hour\"\n  value={hour}\n  onValueChange={setHour}\n  options={[\n    { value: '09', label: '09' },\n    { value: '10', label: '10' },\n    { value: '11', label: '11' },\n  ]}\n/>",
            "description": "Controlled — the caller owns the value."
          },
          {
            "title": "Taller wheel",
            "code": "<WheelPicker ariaLabel=\"Minute\" value={minute} onValueChange={setMinute} options={minutes} visibleCount={7} />",
            "description": "Shows more rows around the selection."
          },
          {
            "title": "Several columns",
            "code": "<Flex gap=\"0\">\n  <WheelPicker ariaLabel=\"Hour\" value={hour} onValueChange={setHour} options={hours} />\n  <WheelPicker ariaLabel=\"Minute\" value={minute} onValueChange={setMinute} options={minutes} />\n</Flex>",
            "description": "Compose one wheel per field; each column is independently operable."
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["inputs", "picker", "wheel", "drum", "scroll-snap", "mobile", "ios"],
        "intent": {
          "whenToUse": [
            "Touch surfaces picking one value from a short, ordered, homogeneous range — an hour, a minute, a unit",
            "Mobile forms following the platform convention of a drum rather than a dropdown",
            "Inside a BottomSheet or ActionSheet, where a native select would open a competing overlay"
          ],
          "whenNotToUse": [
            "Long or unordered option lists, where scrolling to a value is slower than typing — use Combobox",
            "Desktop, pointer-first forms — use Select or NativeSelect",
            "Dates, which have their own affordances — use DatePicker or Calendar"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering it uncontrolled and reading the value from the DOM",
              "good": "Pass `value` and `onValueChange`",
              "why": "The component is controlled; without a `value` it cannot scroll to the current selection or reflect an external change"
            },
            {
              "bad": "Leaving `ariaLabel` off a wheel with no visible label",
              "good": "Label every column — \"Hour\", \"Minute\"",
              "why": "A listbox with no accessible name is announced only as a list, so the user cannot tell which field they are in"
            }
          ],
          "related": [
            {
              "name": "Select",
              "relationship": "alternative",
              "reason": "Pointer-first single selection on desktop"
            },
            {
              "name": "TimePicker",
              "relationship": "alternative",
              "reason": "Purpose-built time entry rather than a generic wheel"
            },
            {
              "name": "BottomSheet",
              "relationship": "pairs-with",
              "reason": "The usual host for a wheel on a phone screen"
            }
          ],
          "a11yRationale": "The column is a role=\"listbox\" with role=\"option\" rows, is focusable, and points aria-activedescendant at the selected row, so assistive technology tracks the selection without moving DOM focus per row. Selection follows focus — ArrowUp/ArrowDown, Home/End and PageUp/PageDown move the selection and scroll to match — which is the APG single-select listbox variant that needs no explicit commit; the pattern is deliberately not declared as `apgPattern: listbox` because that guard requires an Enter key this variant has nothing to bind. The wheel itself is CSS scroll-snap, so touch momentum and rubber-banding are the platform's own and remain correct under assistive gestures. Smooth scrolling is applied only under prefers-reduced-motion: no-preference. The selection band is decorative and aria-hidden.",
          "flexibility": [
            {
              "area": "visibleCount / itemHeight",
              "level": "flexible",
              "note": "Wheel geometry is caller-controlled (defaults 5 rows of 36px)"
            },
            {
              "area": "value / onValueChange",
              "level": "strict",
              "note": "Always controlled — the component never holds the value itself"
            },
            {
              "area": "wheel mechanism",
              "level": "strict",
              "note": "Always CSS scroll-snap; there is no JavaScript-driven transform mode"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "brand/logo",
      "type": "component",
      "description": "The cascivo mark and its sanctioned lockups, as inline SVG",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/brand/logo/logo.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/brand/logo/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/brand/logo/logo.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/brand/logo/logo.meta.ts"
      ],
      "fileHashes": {
        "logo.tsx": "sha256-e55be9d5f6bbfe0ebc099591c101e517778e1a23738b5ae8c4991b2181a5ce02",
        "index.ts": "sha256-d96bd720abe05d153f6caf300b934ecc0e9a54dde348a5714bad674569a04b42",
        "logo.module.css": "sha256-66a443177445428da9b97937a2e651eafade40e9dc5dc5b10d51ed009859f433",
        "logo.meta.ts": "sha256-be49c27f5bd839514fdd279a33b961fe8b1546a7f387af309a511814a3ba48ac"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["logo", "brand", "mark", "wordmark", "lockup", "identity"],
      "meta": {
        "name": "Logo",
        "description": "The cascivo mark and its sanctioned lockups, as inline SVG",
        "category": "display",
        "clientJs": "none",
        "states": [],
        "variants": ["mark", "mark-accent", "horizontal", "stacked", "nav"],
        "sizes": [],
        "props": [
          {
            "name": "variant",
            "description": "`mark` and `mark-accent` render the square alone; `horizontal`, `stacked` and `nav` add the wordmark. `nav` is the only lockup permitted below 24px.",
            "type": "'mark' | 'mark-accent' | 'horizontal' | 'stacked' | 'nav'",
            "required": false,
            "default": "mark"
          },
          {
            "name": "size",
            "description": "Mark height in px. Clamped to a 16px floor — below that the notch closes optically.",
            "type": "number",
            "required": false,
            "default": "18 for `nav`, 32 otherwise"
          }
        ],
        "tokens": ["--cascivo-color-accent", "--cascivo-font-display"],
        "styleHooks": ["data-cascivo-logo"],
        "accessibility": {
          "role": "img",
          "wcag": "2.2-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Mark",
            "code": "<Logo />"
          },
          {
            "title": "Two colour",
            "code": "<Logo variant=\"mark-accent\" />",
            "description": "The accent fills the notch. Decoration — the mark is complete without it."
          },
          {
            "title": "Horizontal lockup",
            "code": "<Logo variant=\"horizontal\" />"
          },
          {
            "title": "Nav lockup",
            "code": "<Logo variant=\"nav\" />",
            "description": "18px mark, 16px wordmark, 10px gap — the only lockup allowed below 24px."
          },
          {
            "title": "Stacked",
            "code": "<Logo variant=\"stacked\" size={48} />"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["logo", "brand", "mark", "wordmark", "lockup", "identity"],
        "intent": {
          "whenToUse": [
            "Placing the cascivo logo in a header, footer, auth screen or splash",
            "Needing the mark to repaint with the surrounding data-theme instead of shipping a per-theme image",
            "Any spot that would otherwise hand-roll the logo SVG or point an <img> at logo.svg"
          ],
          "whenNotToUse": [
            "Rendering an adopter's own brand — this is the cascivo mark, not a generic logo slot; pass your own node to AuthLayout's `logo` or ShellHeader's `brand` instead",
            "Below 16px — the notch closes optically; use the wordmark alone",
            "Favicons and app icons, which are static files with their own optical centring (see https://cascivo.com/docs/brand)"
          ],
          "antiPatterns": [
            {
              "bad": "<img src=\"/logo.svg\" alt=\"cascivo\" />",
              "good": "<Logo variant=\"horizontal\" />",
              "why": "currentColor and --cascivo-color-accent only resolve when the SVG is inline, so an <img> cannot follow the theme"
            },
            {
              "bad": "<Logo variant=\"mark\" style={{ transform: \"scaleX(1.4)\" }} />",
              "good": "<Logo variant=\"mark\" size={48} />",
              "why": "The mark is always 1:1 and never scales on one axis"
            },
            {
              "bad": "Wrapping the logo in chrome that sets text-transform: uppercase",
              "good": "Leave the wordmark lowercase — the component pins text-transform: none",
              "why": "The wordmark is lowercase cascivo; uppercasing it is a misuse of the mark"
            }
          ],
          "related": [
            {
              "name": "ShellHeader",
              "relationship": "contained-by",
              "reason": "The nav lockup is what the header brand slot takes"
            }
          ],
          "a11yRationale": "The bare mark carries role=\"img\" and a <title> so it is announced as \"cascivo\"; in a lockup the wordmark is real text, so the mark goes aria-hidden rather than announcing the name twice",
          "flexibility": [
            {
              "area": "size",
              "level": "flexible",
              "note": "Any size at or above the 16px floor; the wordmark and gap scale from it"
            },
            {
              "area": "variant",
              "level": "strict",
              "note": "A closed set of five. Do not invent a lockup — clear space, gaps and ratios are specified at https://cascivo.com/docs/brand"
            },
            {
              "area": "colour",
              "level": "strict",
              "note": "Ink is currentColor and the notch is --cascivo-color-accent. Never recolour the ink off-token or fill the notch with anything else"
            }
          ]
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/app-shell",
      "type": "layout",
      "description": "Full-page application shell with persisted collapsible sidebar. Includes a signal-driven top progress bar with determinate progress, error state, and dismissible error strip.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/app-shell/app-shell.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/app-shell/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/app-shell/shell-state.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/app-shell/app-shell.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/app-shell/app-shell.meta.ts"
      ],
      "fileHashes": {
        "app-shell.tsx": "sha256-4ac0a0cfff63e663926485bf1ed7ab208017b8faf8df6618f0cdc7c1f291645e",
        "index.ts": "sha256-aedf3cc75d2b78886fd32b1122379d2849c6393adc12ac1f195c4a10a363ea4d",
        "shell-state.ts": "sha256-126741ee8e54f784c6df83819c87936b90d85df5a10149c62076305ebef789ca",
        "app-shell.module.css": "sha256-beedab940d75a6a03180b9bd135b356eeca9b28c761250be7f30d88ed643cd5a",
        "app-shell.meta.ts": "sha256-6778ee8fc193c25d4b2bc4b1970d3074089c89640225ae3d88b3cb0e0f78f771"
      },
      "dependencies": ["@cascivo/core", "@cascivo/i18n", "@cascivo/storage"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1",
        "@cascivo/storage": ">=1.12.1"
      },
      "tags": ["layout", "shell", "sidebar", "navigation"],
      "meta": {
        "name": "AppFrame",
        "description": "Full-page application shell with persisted collapsible sidebar. Includes a signal-driven top progress bar with determinate progress, error state, and dismissible error strip.",
        "category": "layout",
        "clientJs": "enhancement",
        "states": ["expanded", "collapsed", "loading", "error"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "footer",
            "type": "ReactNode",
            "required": false,
            "description": "Optional sticky footer rendered below the content area."
          },
          {
            "name": "sideNavMode",
            "type": "'push' | 'overlay'",
            "required": false,
            "description": "push (default): sidebar takes grid space; overlay: sidebar floats over content.",
            "default": "push"
          },
          {
            "name": "header",
            "type": "ReactNode",
            "required": true,
            "description": "Top header slot"
          },
          {
            "name": "sideNav",
            "type": "ReactNode",
            "required": false,
            "description": "Side navigation slot"
          },
          {
            "name": "aside",
            "type": "ReactNode",
            "required": false,
            "description": "Right aside slot"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "Main content"
          },
          {
            "name": "persistKey",
            "default": "cascade.appshell",
            "type": "string | false",
            "required": false,
            "description": "localStorage key prefix. Pass false to disable persistence."
          },
          {
            "name": "state",
            "type": "ShellState",
            "required": false,
            "description": "External shell state from createShellState(). Created internally when omitted."
          }
        ],
        "tokens": [
          "--cascivo-space-3",
          "--cascivo-space-4",
          "--cascivo-space-6",
          "--cascivo-duration-200",
          "--cascivo-ease-out",
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-text-xs",
          "--cascivo-color-accent",
          "--cascivo-color-destructive",
          "--cascivo-color-destructive-subtle",
          "--cascivo-focus-ring"
        ],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<AppFrame header={<Header />} sideNav={<Nav />}>content</AppFrame>",
            "description": "App shell with collapsible nav"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n", "@cascivo/storage"],
        "tags": ["layout", "shell", "sidebar", "navigation"],
        "intent": {
          "whenToUse": [
            "A full-page application frame with header, collapsible sidebar, and content",
            "You need a bare shell to compose your own navigation into"
          ],
          "whenNotToUse": [
            "You want opinionated, prewired sidebar navigation — use SidebarApp",
            "A simple centered content page — use Section or Center",
            "You just need a drop-in header + toggleable nav with no persistence — use the published `AppShell` from @cascivo/react (a `nav` prop, no copy-paste), not this richer copy-paste shell."
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AppShell (@cascivo/react)",
              "relationship": "alternative",
              "reason": "The published, self-contained AppShell: header + a single `nav` slot with an animated accessible drawer, no persistence/progress/aside. Simpler prop surface (`nav` vs this frame’s `sideNav`/`aside`/`persistKey`/`state`). Use it for a quick drop-in; use this copy-paste frame when you need persisted collapse, a progress bar, or a right aside. This entry used to be called `AppShell` too — one name for two incompatible prop surfaces — and was renamed to `AppFrame` so an import can only mean one thing."
            },
            {
              "name": "SidebarApp",
              "relationship": "alternative",
              "reason": "Use the opinionated block when you want prewired sidebar nav"
            },
            {
              "name": "DashboardLayout",
              "relationship": "alternative",
              "reason": "Use for a stats-strip dashboard page rather than a bare shell"
            }
          ],
          "a11yRationale": "Provides landmark structure with header and navigation regions for screen reader orientation.",
          "flexibility": []
        }
      },
      "channels": ["copy"]
    },
    {
      "name": "layout/auth-layout",
      "type": "layout",
      "description": "Centered card layout for authentication pages (login, register, forgot password).",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auth-layout/auth-layout.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auth-layout/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auth-layout/auth-layout.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auth-layout/auth-layout.meta.ts"
      ],
      "fileHashes": {
        "auth-layout.tsx": "sha256-99abe9286affc10554c0ecbb96c5bfa60813ed85eae07405bcd80719da83cd42",
        "index.ts": "sha256-b91beec446eccad3a2a0ab93256e74e2298315a0b911f155847bfbfc10dac77e",
        "auth-layout.module.css": "sha256-5a80937a55aa6a462469214dcfd5f90ca86ba97478b4b5d6557ad1837bc181ec",
        "auth-layout.meta.ts": "sha256-5d7ef644f9487269b5a515c61aae5ecf554dbf5ce135686e15fef07fd7a7759f"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "auth", "login", "page"],
      "meta": {
        "name": "AuthLayout",
        "description": "Centered card layout for authentication pages (login, register, forgot password).",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "layout",
            "children": ["card"],
            "emit": "manual"
          },
          "parts": {
            "card": {
              "element": "div",
              "children": ["logo", "$slot"]
            },
            "logo": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "Auth form content"
          },
          {
            "name": "logo",
            "type": "ReactNode",
            "required": false,
            "description": "Optional logo displayed above the form"
          }
        ],
        "tokens": [
          "--cascivo-color-bg-subtle",
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-radius-lg",
          "--cascivo-space-4",
          "--cascivo-space-6",
          "--cascivo-space-8"
        ],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Login",
            "code": "<AuthLayout logo={<img src=\"/logo.svg\" alt=\"Logo\" />}><form>...</form></AuthLayout>",
            "description": "Centered auth card with logo"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "auth", "login", "page"],
        "intent": {
          "whenToUse": [
            "Centered card layout for authentication pages — login, register, reset",
            "Focused single-task pages with an optional logo and minimal chrome"
          ],
          "whenNotToUse": [
            "General centered content — use Center",
            "A full app frame after sign-in — use AppShell or SidebarApp"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "LoginPage",
              "relationship": "contains",
              "reason": "The login page block renders inside this layout"
            },
            {
              "name": "Center",
              "relationship": "alternative",
              "reason": "Use for plain centering without the auth card framing"
            }
          ],
          "a11yRationale": "Provides a main landmark wrapping the focused auth content.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/auto-grid",
      "type": "layout",
      "description": "Media-query-free responsive grid — columns auto-fill based on available space.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auto-grid/auto-grid.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auto-grid/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auto-grid/auto-grid.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/auto-grid/auto-grid.meta.ts"
      ],
      "fileHashes": {
        "auto-grid.tsx": "sha256-eec15cbad7e4f3dce0856caa7a356ceb18afe5b80df61fcde82a8bfa7e77c9e7",
        "index.ts": "sha256-40c91b2a311dc816749ccf4b196cefdf65f775abf12e41d14869581461626120",
        "auto-grid.module.css": "sha256-c4ddabc261c6f0ae4292d463dd92647c5bb91a67bc137bf56cfcfd47e9603082",
        "auto-grid.meta.ts": "sha256-c609754c872cad1e6ab639ece273b13b7a5e8b07ccd838cd73ac5461b9709cee"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "grid", "responsive"],
      "meta": {
        "name": "AutoGrid",
        "description": "Media-query-free responsive grid — columns auto-fill based on available space.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "auto-grid",
            "children": ["$slot"],
            "emit": "manual"
          },
          "parts": {}
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Grid items"
          },
          {
            "name": "min",
            "type": "string",
            "required": false,
            "default": "\"16rem\"",
            "description": "Minimum track width before items wrap to fewer columns"
          },
          {
            "name": "gap",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "default": "4",
            "description": "Spacing token step. Maps to the --cascivo-space-* scale, which intentionally skips 7/9/11 — use 6 or 8."
          }
        ],
        "tokens": ["--cascivo-space-*"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Auto-filling grid",
            "code": "<AutoGrid min=\"12rem\" gap={4}><div>Card 1</div><div>Card 2</div><div>Card 3</div></AutoGrid>",
            "description": "Items fill available space and wrap when narrower than 12rem"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "grid", "responsive"],
        "intent": {
          "whenToUse": [
            "Responsive card or tile grids that auto-fit columns to available width",
            "Avoiding media queries — tracks wrap based on a minimum track width"
          ],
          "whenNotToUse": [
            "A fixed, known column count — use Grid",
            "Single-direction stacking — use Stack"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Grid",
              "relationship": "alternative",
              "reason": "Use when an explicit column count is required"
            }
          ],
          "a11yRationale": "Pure layout primitive with no semantic role; does not affect the accessibility tree.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/center",
      "type": "layout",
      "description": "Horizontally centered container with a configurable max-width.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/center/center.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/center/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/center/center.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/center/center.meta.ts"
      ],
      "fileHashes": {
        "center.tsx": "sha256-4249debc191fd25381bc529b746fe1bc33e12f213e2304cc4e9f0e3e6784e9b6",
        "index.ts": "sha256-bba794649e15e7705b1c1fd800e7a1a9fc39af4383018c5f385b1c83a3711156",
        "center.module.css": "sha256-179d9de5d56624bc88d2a8218f297d75501842258032767fe1c289fc38522a7f",
        "center.meta.ts": "sha256-fa719141d2cc2c585d643a15a43147fbc915e091e906db81ac1a581ee983dc25"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "center", "wrapper"],
      "meta": {
        "name": "Center",
        "description": "Horizontally centered container with a configurable max-width.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "center",
            "children": ["$slot"],
            "emit": "manual"
          },
          "parts": {}
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Content to center"
          },
          {
            "name": "maxWidth",
            "default": "48rem",
            "type": "string",
            "required": false,
            "description": "CSS max-width value"
          }
        ],
        "tokens": ["--cascivo-space-4"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Centered content",
            "code": "<Center maxWidth=\"60rem\"><p>Content</p></Center>",
            "description": "Centered container with custom max-width"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "center", "wrapper"],
        "intent": {
          "whenToUse": [
            "Horizontally centering content within a configurable max-width",
            "Constraining page or section content to a readable measure"
          ],
          "whenNotToUse": [
            "Stacking children with consistent gaps — use Flex",
            "Multi-column or grid arrangements — use Columns or Grid"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Section",
              "relationship": "contained-by",
              "reason": "Sections use a centered inner width built on the same idea"
            },
            {
              "name": "Flex",
              "relationship": "pairs-with",
              "reason": "Stack the centered content vertically inside it with Flex"
            }
          ],
          "a11yRationale": "Pure layout wrapper with no semantic role; does not affect the accessibility tree.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/columns",
      "type": "layout",
      "description": "Equal-width multi-column layout that collapses to single column on narrow viewports.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/columns/columns.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/columns/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/columns/columns.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/columns/columns.meta.ts"
      ],
      "fileHashes": {
        "columns.tsx": "sha256-baa9f6e95ab46188587f2d1e57d0228cb2e99e7bef14f98bd8405ab0b9321704",
        "index.ts": "sha256-50393c929c531bafea79b38c0c6f0c113439fddaf17c973ddb45df0ebeb9db1d",
        "columns.module.css": "sha256-b13c6d5993a498e14b560c09bcc02cb2139deadf3ef47ff44bb83f0cfcef2ad1",
        "columns.meta.ts": "sha256-9e9811e0104bf97bb6522db2eae1e499aef254f13194511c562798759486ed12"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "grid", "columns"],
      "meta": {
        "name": "Columns",
        "description": "Equal-width multi-column layout that collapses to single column on narrow viewports.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "columns-container",
            "children": ["columns"],
            "emit": "manual"
          },
          "parts": {
            "columns": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "count",
            "default": "2",
            "type": "2|3|4",
            "required": false,
            "description": "Number of equal columns"
          },
          {
            "name": "gap",
            "default": "4",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "description": "Spacing token step"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Column content"
          }
        ],
        "tokens": ["--cascivo-space-*"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Three columns",
            "code": "<Columns count={3}><div>A</div><div>B</div><div>C</div></Columns>",
            "description": "Three equal columns"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "grid", "columns"],
        "intent": {
          "whenToUse": [
            "Equal-width multi-column content that collapses to one column when narrow",
            "Side-by-side text or content blocks at a fixed column count"
          ],
          "whenNotToUse": [
            "Card grids that auto-fit to width — use AutoGrid",
            "Single-direction stacking — use Flex"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Grid",
              "relationship": "alternative",
              "reason": "Use for general two-dimensional grid placement"
            },
            {
              "name": "AutoGrid",
              "relationship": "alternative",
              "reason": "Use when column count should adapt to available width"
            }
          ],
          "a11yRationale": "Pure layout primitive with no semantic role; does not affect the accessibility tree.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/dashboard-layout",
      "type": "layout",
      "description": "Dashboard page layout with stats strip, main content area, and optional aside.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/dashboard-layout/dashboard-layout.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/dashboard-layout/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/dashboard-layout/dashboard-layout.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/dashboard-layout/dashboard-layout.meta.ts"
      ],
      "fileHashes": {
        "dashboard-layout.tsx": "sha256-23e79b32a35ccd89ffbfa80e327d06aa62dfbf58df7ea15eaf03575663060fd1",
        "index.ts": "sha256-8ee37612388c6c5a8914706d7442147739caf5ce9801679e1067406956efdb30",
        "dashboard-layout.module.css": "sha256-89cadb02ecead74e8062237f501c7865882c5569f30ceec04bfae58c33473997",
        "dashboard-layout.meta.ts": "sha256-790703e5bafe234195e80ca6ee9f79277fc4a3dc9fd942ed219247a0b80b8f00"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "dashboard", "page"],
      "meta": {
        "name": "DashboardLayout",
        "description": "Dashboard page layout with stats strip, main content area, and optional aside.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "layout",
            "children": ["stats", "body"],
            "emit": "manual"
          },
          "parts": {
            "stats": {
              "element": "div",
              "children": ["$slot"]
            },
            "body": {
              "element": "div",
              "children": ["main", "aside"]
            },
            "main": {
              "element": "div",
              "children": ["$slot"]
            },
            "aside": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "stats",
            "type": "ReactNode",
            "required": false,
            "description": "Stats/KPI row (auto-fit grid)"
          },
          {
            "name": "main",
            "type": "ReactNode",
            "required": true,
            "description": "Main content area"
          },
          {
            "name": "aside",
            "type": "ReactNode",
            "required": false,
            "description": "Optional aside panel (20rem)"
          }
        ],
        "tokens": ["--cascivo-space-4", "--cascivo-space-6"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "With stats",
            "code": "<DashboardLayout stats={<div>KPIs</div>} main={<div>Content</div>} />",
            "description": "Stats + main layout"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "dashboard", "page"],
        "intent": {
          "whenToUse": [
            "A dashboard page with a stats strip, main content area, and optional aside",
            "Composing KPI tiles and charts into a standard analytics layout"
          ],
          "whenNotToUse": [
            "A bare app frame without dashboard structure — use AppShell",
            "A simple form or content page — use Section or SettingsLayout"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AppShell",
              "relationship": "alternative",
              "reason": "Use the bare shell when you do not need dashboard structure"
            },
            {
              "name": "StatsCards",
              "relationship": "contains",
              "reason": "KPI cards commonly fill the stats strip"
            }
          ],
          "a11yRationale": "Provides landmark regions for main content and complementary aside.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/flex",
      "type": "layout",
      "description": "Flex layout primitive for vertical or horizontal stacking with gap control. ⚠ Unlike CSS `flex-direction`, `direction` defaults to `vertical` — pass `direction=\"horizontal\"` for a row.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/flex/flex.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/flex/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/flex/flex.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/flex/flex.meta.ts"
      ],
      "fileHashes": {
        "flex.tsx": "sha256-5e7b831f678ef3ff6c3652ef9db9dd21d5927f3f6440773e54ce30d8ffe971d2",
        "index.ts": "sha256-866e136d307ce28ddd698039d7c2234f14aeadeaa877ec2afaaf40b9634bed94",
        "flex.module.css": "sha256-cb5c86471738605bfa5fc3e043e84b4ac8f93bc9f4096e7a3542d4c72130d5df",
        "flex.meta.ts": "sha256-ede1cc3fd781a8e05f67b413331a4f80bd18a7909456845081a5d191223dd634"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "flex", "stack", "spacing"],
      "meta": {
        "name": "Flex",
        "description": "Flex layout primitive for vertical or horizontal stacking with gap control. ⚠ Unlike CSS `flex-direction`, `direction` defaults to `vertical` — pass `direction=\"horizontal\"` for a row.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "flex",
            "data": {
              "data-direction": ["vertical", "horizontal"],
              "data-wrap": [""]
            },
            "children": ["flex-item", "$slot"],
            "emit": "manual"
          },
          "parts": {
            "flex-item": {
              "element": "div",
              "data": {
                "data-size": "string",
                "data-truncate": [""]
              },
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Items laid out along the flex axis"
          },
          {
            "name": "direction",
            "default": "vertical",
            "type": "'vertical' | 'horizontal'",
            "required": false,
            "description": "Flex direction. ⚠ Defaults to `vertical`, unlike CSS `flex-direction` (and unlike Chakra/MUI/Radix `Flex`, which default to a row) — `<Flex justify=\"between\">` alone produces a centered vertical stack."
          },
          {
            "name": "gap",
            "default": "4",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "description": "Spacing token step"
          },
          {
            "name": "align",
            "type": "'start'|'center'|'end'|'stretch'",
            "required": false,
            "description": "align-items"
          },
          {
            "name": "justify",
            "type": "'start'|'center'|'end'|'between'",
            "required": false,
            "description": "justify-content"
          },
          {
            "name": "wrap",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "Allow wrapping"
          },
          {
            "name": "size",
            "default": "auto",
            "type": "'auto' | 'fixed' | 'grow' | 'shrink'",
            "required": false,
            "description": "FlexItem: main-axis sizing. 'fixed' (flex: 0 0 auto) is what a fixed-width child like Sparkline needs; 'grow' takes the leftover width without shrinking; 'shrink' gives way but never grows."
          },
          {
            "name": "basis",
            "type": "string",
            "required": false,
            "description": "FlexItem: flex-basis — the child's size before free space is distributed. Any CSS length."
          },
          {
            "name": "truncate",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "FlexItem: allow the child to shrink below its content width (releases the flex item's `min-width: auto` floor and ellipsizes). Without it a long unbreakable string pushes its siblings out of the row."
          }
        ],
        "tokens": ["--cascivo-space-*"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Vertical",
            "code": "<Flex gap={4}><div>A</div><div>B</div></Flex>",
            "description": "Default vertical stack"
          },
          {
            "title": "Horizontal",
            "code": "<Flex direction=\"horizontal\" gap={2}><div>A</div><div>B</div></Flex>",
            "description": "Row layout"
          },
          {
            "title": "Toolbar: one field absorbs the row, the rest keep their width",
            "code": "<Flex direction=\"horizontal\" gap={2}>\n  <FlexItem size=\"grow\" basis=\"0\"><Search ariaLabel=\"Filter deployments\" /></FlexItem>\n  <FlexItem size=\"fixed\"><Select options={states} ariaLabel=\"State\" /></FlexItem>\n</Flex>",
            "description": "Without FlexItem the Search takes the whole row and pushes the Select onto the next line"
          },
          {
            "title": "Protecting a fixed-width child",
            "code": "<Flex direction=\"horizontal\" gap={3} align=\"center\">\n  <FlexItem truncate>{deployment.url}</FlexItem>\n  <FlexItem size=\"fixed\"><Sparkline data={points} label=\"Requests\" /></FlexItem>\n</Flex>",
            "description": "Sparkline is fixed-width and will not shrink; `size=\"fixed\"` keeps it out of flex sizing, `truncate` lets the URL beside it ellipsize instead of pushing it out"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "flex", "stack", "spacing"],
        "intent": {
          "whenToUse": [
            "Arranging children vertically or horizontally with a consistent gap",
            "The default primitive for spacing a small set of elements in one direction"
          ],
          "whenNotToUse": [
            "Two-dimensional layouts — use Grid",
            "Responsive auto-wrapping card collections — use AutoGrid",
            "A visual card-pile / overlapping avatars — that is `Stack` in @cascivo/react (an `offset` prop), a different component."
          ],
          "antiPatterns": [
            {
              "bad": "Expecting import { Stack } from '@cascivo/react' to gap items",
              "good": "Use Flex for gap-based layout (import { Flex } from \"@cascivo/react\", or `npx cascivo add flex`)",
              "why": "The published `Stack` export is a card-pile that overlaps children by an offset — it does not do gap-based layout. Flex is the flex container."
            }
          ],
          "related": [
            {
              "name": "Stack",
              "relationship": "alternative",
              "reason": "The `@cascivo/react` `Stack` overlaps children with an offset (card-pile) — a different component for visual overlap, not gap-based layout."
            },
            {
              "name": "Grid",
              "relationship": "alternative",
              "reason": "Use for two-dimensional row-and-column layouts"
            },
            {
              "name": "Columns",
              "relationship": "alternative",
              "reason": "Use for equal-width multi-column content"
            }
          ],
          "a11yRationale": "Pure layout primitive with no semantic role; does not affect the accessibility tree.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/grid",
      "type": "layout",
      "description": "CSS grid layout primitive with responsive column collapsing. Establishes its own containment, so responsive `cols` adapt to the grid’s own slot width with no wrapper or container ancestor required.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/grid/grid.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/grid/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/grid/grid.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/grid/grid.meta.ts"
      ],
      "fileHashes": {
        "grid.tsx": "sha256-3e207a75575d4c265c1e07db335913e0f33f26c37215fbfdda2905c7d5ee5b18",
        "index.ts": "sha256-21d70762c13307b349141181d6df3e8f53a4015d21a169fcb559c7b7ada19b99",
        "grid.module.css": "sha256-9ade6558652f06b75760f19832bac02eee37e255d0fe78de2665a987adba01e3",
        "grid.meta.ts": "sha256-3579a4e7367dff9cc23a074fbc2883ad7389b3a904c66d0add492df8be0e9085"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "grid", "columns"],
      "meta": {
        "name": "Grid",
        "description": "CSS grid layout primitive with responsive column collapsing. Establishes its own containment, so responsive `cols` adapt to the grid’s own slot width with no wrapper or container ancestor required.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "grid-container",
            "children": ["grid"],
            "emit": "manual"
          },
          "parts": {
            "grid": {
              "element": "div",
              "data": {
                "data-responsive": [""],
                "data-align-rows": [""]
              },
              "children": ["grid-item", "$slot"]
            },
            "grid-item": {
              "element": "div",
              "data": {
                "data-responsive": [""]
              },
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "cols",
            "default": "12",
            "type": "number | { base?: number; sm?: number; md?: number; lg?: number; xl?: number }",
            "required": false,
            "description": "Column count — a number, or a per-breakpoint object (base/sm/md/lg/xl) for responsive columns"
          },
          {
            "name": "gap",
            "default": "4",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "description": "Spacing token step. Maps to the --cascivo-space-* scale, which intentionally skips 7/9/11 — use 6 or 8."
          },
          {
            "name": "align",
            "type": "'start' | 'center' | 'end' | 'stretch'",
            "required": false,
            "description": "Block-axis alignment of items within their cells (align-items); default stretch"
          },
          {
            "name": "justify",
            "type": "'start' | 'center' | 'end' | 'stretch'",
            "required": false,
            "description": "Inline-axis alignment of items within their cells (justify-items); default stretch"
          },
          {
            "name": "alignRows",
            "default": "false",
            "type": "boolean",
            "required": false,
            "description": "Align the internal bands of adjacent children via CSS subgrid — every CardHeader in a row shares one row track, every CardContent the next, every CardFooter the last. Where subgrid is unsupported the grid renders as it does without this prop."
          },
          {
            "name": "span",
            "type": "number | { base?: number; sm?: number; md?: number; lg?: number; xl?: number }",
            "required": false,
            "description": "GridItem: column span — a number, or a per-breakpoint object"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "GridItem elements or any grid children"
          }
        ],
        "tokens": ["--cascivo-space-*"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic grid",
            "code": "<Grid cols={3} gap={4}><GridItem span={1}>A</GridItem><GridItem span={2}>B</GridItem></Grid>",
            "description": "3-column grid with spanning item"
          },
          {
            "title": "Row-aligned card grid",
            "code": "<Grid cols={3} gap={4} alignRows><Card><CardHeader title=\"A\" /><CardContent>Short</CardContent></Card><Card><CardHeader title=\"A much longer title that wraps\" /><CardContent>Long</CardContent></Card></Grid>",
            "description": "Both cards put their content band on the same row track, so the headers align even though one wraps"
          },
          {
            "title": "Responsive dashboard grid",
            "code": "<Grid cols={{ base: 1, md: 2, lg: 3 }} gap={4}><GridItem span={{ base: 1, lg: 2 }}>Wide</GridItem></Grid>",
            "description": "1 column on mobile, 2 on tablet, 3 on desktop; the first item spans 2 on desktop"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "grid", "columns"],
        "intent": {
          "whenToUse": [
            "Two-dimensional layouts with an explicit column count",
            "Arranging cards or tiles that should align in rows and columns"
          ],
          "whenNotToUse": [
            "Single-direction stacking — use Stack",
            "Columns that auto-fit to available width — use AutoGrid"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AutoGrid",
              "relationship": "alternative",
              "reason": "Use when columns should auto-fill without fixed counts"
            },
            {
              "name": "Columns",
              "relationship": "alternative",
              "reason": "Use for equal-width text columns that collapse on narrow viewports"
            }
          ],
          "a11yRationale": "Pure layout primitive with no semantic role; does not affect the accessibility tree.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/masonry",
      "type": "layout",
      "description": "Masonry layout — native CSS masonry where supported, multi-column fallback elsewhere (fallback orders items top-to-bottom per column).",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/masonry/masonry.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/masonry/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/masonry/masonry.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/masonry/masonry.meta.ts"
      ],
      "fileHashes": {
        "masonry.tsx": "sha256-8eabd0f5f6dcad61a8dd12a713f1d90f844f4c4cdfd9d74e83188546dc1af07d",
        "index.ts": "sha256-2e66a720d725c5e293aad353e1d22f3fc7527dd0085dee4a2d59e744a214737b",
        "masonry.module.css": "sha256-6d4dff2b18d3b3db045e24372c7cfa352a4fecb930bd9f94a2364c025d775793",
        "masonry.meta.ts": "sha256-4066b5ceb7545678424c0a513d0cead05458bb1961a9c9ec288bf6910b27c6da"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "masonry", "gallery"],
      "meta": {
        "name": "Masonry",
        "description": "Masonry layout — native CSS masonry where supported, multi-column fallback elsewhere (fallback orders items top-to-bottom per column).",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "masonry",
            "children": ["$slot"],
            "emit": "manual"
          },
          "parts": {}
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "cols",
            "type": "number",
            "required": false,
            "default": "3",
            "description": "Number of columns"
          },
          {
            "name": "gap",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "default": "4",
            "description": "Spacing token step"
          }
        ],
        "tokens": ["--cascivo-space-*"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Masonry gallery",
            "code": "<Masonry cols={3} gap={4}>{items.map(item => <Card key={item.id}>{item.content}</Card>)}</Masonry>",
            "description": "Variable-height cards laid out in a masonry pattern; falls back to CSS columns"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "masonry", "gallery"],
        "intent": {
          "whenToUse": [
            "Galleries of variable-height items packed into balanced columns",
            "Pinterest-style image or card walls"
          ],
          "whenNotToUse": [
            "Items that must align in rows — use Grid",
            "Uniform-height cards — use AutoGrid"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AutoGrid",
              "relationship": "alternative",
              "reason": "Use when items are uniform height and should align in rows"
            },
            {
              "name": "MediaMasonry",
              "relationship": "alternative",
              "reason": "Use the section-level masonry for full-width media galleries"
            }
          ],
          "a11yRationale": "Pure layout primitive with no semantic role; does not affect the accessibility tree.",
          "flexibility": []
        }
      },
      "channels": ["copy"]
    },
    {
      "name": "layout/page-header",
      "type": "layout",
      "description": "Page-level header with title, description, breadcrumb, and actions slots.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/page-header/page-header.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/page-header/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/page-header/page-header.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/page-header/page-header.meta.ts"
      ],
      "fileHashes": {
        "page-header.tsx": "sha256-1c1eab61ce2a39a30cf5237d5eacb434e78cd354d7ef8511632cdc18533f07df",
        "index.ts": "sha256-79937b347d022425887d682b658169f648e0a39b3190daea7f60d34310de1936",
        "page-header.module.css": "sha256-f5a39930488fb3107318f673616818dbc750556b756df9328d0e830bed65d646",
        "page-header.meta.ts": "sha256-2c22220da91dc2b84f9a107fa337e501f6dcf7d4c1b54218e1d02dcc7fdba6a7"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "header", "page"],
      "meta": {
        "name": "PageHeader",
        "description": "Page-level header with title, description, breadcrumb, and actions slots.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "header",
            "local": "header",
            "children": ["breadcrumb", "row", "description"],
            "emit": "manual"
          },
          "parts": {
            "breadcrumb": {
              "element": "div",
              "children": ["$slot"]
            },
            "row": {
              "element": "div",
              "children": ["title", "actions"]
            },
            "title": {
              "element": "h1",
              "children": ["$text"]
            },
            "actions": {
              "element": "div",
              "children": ["$slot"]
            },
            "description": {
              "element": "p",
              "children": ["$text"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "title",
            "type": "ReactNode",
            "required": true,
            "description": "Page title, rendered as the `<h1>`. Accepts nodes, not just a string, so you can put a status Badge or a linked domain beside the name — the canonical project-header shape. Keep it inline-level: it is an `<h1>`."
          },
          {
            "name": "description",
            "type": "ReactNode",
            "required": false,
            "description": "Supporting line under the title, rendered as a `<p>`. Accepts nodes."
          },
          {
            "name": "breadcrumb",
            "type": "ReactNode",
            "required": false,
            "description": "Breadcrumb slot"
          },
          {
            "name": "actions",
            "type": "ReactNode",
            "required": false,
            "description": "Action buttons slot"
          },
          {
            "name": "className",
            "type": "string",
            "required": false,
            "description": "Additional CSS class"
          }
        ],
        "tokens": [
          "--cascivo-space-2",
          "--cascivo-space-4",
          "--cascivo-text-2xl",
          "--cascivo-font-bold",
          "--cascivo-color-text",
          "--cascivo-color-text-muted",
          "--cascivo-text-sm"
        ],
        "accessibility": {
          "role": "banner",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<PageHeader title=\"Dashboard\" description=\"Welcome back\" />",
            "description": "Title with description"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "header", "page"],
        "intent": {
          "whenToUse": [
            "A page-level header with title, description, breadcrumb, and action slots",
            "Establishing consistent page tops across an application"
          ],
          "whenNotToUse": [
            "A marketing hero with large media — use Hero",
            "A full app top bar with navigation — use AppShell"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Hero",
              "relationship": "alternative",
              "reason": "Use the marketing hero for landing-page tops"
            },
            {
              "name": "Section",
              "relationship": "pairs-with",
              "reason": "Place sections below the header to build out the page"
            }
          ],
          "a11yRationale": "Renders a header region with a top-level heading for screen reader page structure.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/section",
      "type": "layout",
      "description": "Page-section shell with block padding, centered inner width, and stack gap.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/section/section.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/section/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/section/section.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/section/section.meta.ts"
      ],
      "fileHashes": {
        "section.tsx": "sha256-ec58e0ecd90562b5cb63c9e91b396e788f091c9848a1cb6e05032b4b82175a12",
        "index.ts": "sha256-eebabcd2850dfaac91c227ba00f29411109795e0f262df79532d5b46541b5955",
        "section.module.css": "sha256-94d60eef5a1a659f3455da858f1dd311a1524c06565cd718c65e1f616b5b2001",
        "section.meta.ts": "sha256-f904266e36bd5e21809eeb7dfda7ed7827dcd971ae6bb44c886a7c78fa13c1a8"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "section", "page"],
      "meta": {
        "name": "Section",
        "description": "Page-section shell with block padding, centered inner width, and stack gap.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "section",
            "local": "section",
            "children": ["inner"],
            "emit": "manual"
          },
          "parts": {
            "inner": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "width",
            "type": "\"content\" | \"wide\" | \"full\"",
            "required": false,
            "default": "\"content\"",
            "description": "Max inline size: content=72rem, wide=90rem, full=none"
          },
          {
            "name": "gap",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "default": "8",
            "description": "Stack gap between children (spacing token step)"
          }
        ],
        "tokens": ["--cascivo-space-*"],
        "accessibility": {
          "role": "region",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Content section",
            "code": "<Section width=\"content\" gap={8}><h2>Heading</h2><p>Body copy.</p></Section>",
            "description": "Centered 72rem content column with 2rem block padding"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "section", "page"],
        "intent": {
          "whenToUse": [
            "Wrapping a page region with block padding and a centered inner width",
            "The default container for stacking content within a page"
          ],
          "whenNotToUse": [
            "Just centering a single element — use Center",
            "A marketing band with built-in CTA content — use Cta or Hero"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Center",
              "relationship": "contains",
              "reason": "Uses centered inner width internally"
            },
            {
              "name": "PageHeader",
              "relationship": "pairs-with",
              "reason": "Pair sections below a page header"
            }
          ],
          "a11yRationale": "Renders a section element to group related content for screen readers.",
          "flexibility": []
        }
      },
      "channels": ["copy"]
    },
    {
      "name": "layout/settings-layout",
      "type": "layout",
      "description": "Two-column settings page layout with a fixed-width menu and fluid content area.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/settings-layout/settings-layout.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/settings-layout/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/settings-layout/settings-layout.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/settings-layout/settings-layout.meta.ts"
      ],
      "fileHashes": {
        "settings-layout.tsx": "sha256-9b235035eeb48c862bcf0fb4957ba9f0e1ab037f6874ec133173621f4f95c649",
        "index.ts": "sha256-c6fd1ae92240641a3c96cd1a6758a74abb60dfcba6db489dbf09293dc9add607",
        "settings-layout.module.css": "sha256-f8056bc2aa0d3ba25fca1b4834a6261b3c54d2c719a4253c885d131f07f283c4",
        "settings-layout.meta.ts": "sha256-3081c18ce0d376999a4e9fd8fd53509029502ff7d604a7357ed751404e462415"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "settings", "page"],
      "meta": {
        "name": "SettingsLayout",
        "description": "Two-column settings page layout with a fixed-width menu and fluid content area.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "layout-container",
            "children": ["layout"],
            "emit": "manual"
          },
          "parts": {
            "layout": {
              "element": "div",
              "children": ["menu", "content"]
            },
            "menu": {
              "element": "div",
              "children": ["$slot"]
            },
            "content": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "menu",
            "type": "ReactNode",
            "required": true,
            "description": "Side navigation menu"
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "Settings content area"
          }
        ],
        "tokens": ["--cascivo-space-8"],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<SettingsLayout menu={<nav>Menu</nav>}><div>Settings</div></SettingsLayout>",
            "description": "Menu + content layout"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "settings", "page"],
        "intent": {
          "whenToUse": [
            "A two-column settings page with a fixed-width menu and fluid content",
            "Account, preferences, or admin pages with sectioned navigation"
          ],
          "whenNotToUse": [
            "A general resizable two-pane layout — use SplitView",
            "A full app frame — use AppShell or SidebarApp"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "SettingsFormPage",
              "relationship": "contained-by",
              "reason": "The settings form block composes this layout"
            },
            {
              "name": "SplitView",
              "relationship": "alternative",
              "reason": "Use when the two panes should be user-resizable"
            }
          ],
          "a11yRationale": "Provides a navigation region for the menu and a main region for content.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/spacer",
      "type": "layout",
      "description": "Fixed-height spacing block using design token steps.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/spacer/spacer.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/spacer/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/spacer/spacer.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/spacer/spacer.meta.ts"
      ],
      "fileHashes": {
        "spacer.tsx": "sha256-3a8ea7a1b0f9b76add1ca8493b77a0146dd7cd1a047469bd48abadea3132159d",
        "index.ts": "sha256-cba7197e853d0b3156df64107a9f000e9307a80837cf257d4c65ac2ac9c0edea",
        "spacer.module.css": "sha256-b958a185559596febc9b8f7be84fea0da37cba494e8e096eb24cefce645836ca",
        "spacer.meta.ts": "sha256-6138e89ad159b98f02c52444b5cfa4872b14f2a381400e0915ee9b47c4695961"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "spacer", "spacing"],
      "meta": {
        "name": "Spacer",
        "description": "Fixed-height spacing block using design token steps.",
        "category": "layout",
        "clientJs": "none",
        "contractTier": "static",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "spacer",
            "emit": "manual"
          },
          "parts": {}
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "size",
            "default": "4",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "description": "Spacing token step"
          }
        ],
        "tokens": ["--cascivo-space-*"],
        "accessibility": {
          "role": "none",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Spacer",
            "code": "<Spacer size={8} />",
            "description": "Adds vertical space between elements"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "spacer", "spacing"],
        "intent": {
          "whenToUse": [
            "Inserting a fixed vertical gap between blocks using spacing token steps",
            "Adding deliberate breathing room where margins are awkward"
          ],
          "whenNotToUse": [
            "Spacing a series of siblings — use Flex with a gap instead",
            "Arbitrary one-off spacing — prefer token-based gap props"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Flex",
              "relationship": "alternative",
              "reason": "Use gap on Flex to space multiple siblings consistently"
            }
          ],
          "a11yRationale": "Empty presentational spacer with no semantic role; ignored by assistive tech.",
          "flexibility": []
        }
      },
      "channels": ["npm:@cascivo/react", "copy"]
    },
    {
      "name": "layout/split-view",
      "type": "layout",
      "description": "Resizable two-pane split layout with keyboard and pointer drag support.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/split-view/split-view.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/split-view/index.ts",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/split-view/split-view.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/split-view/split-view.meta.ts"
      ],
      "fileHashes": {
        "split-view.tsx": "sha256-22be3e5d3d72c53b6253d41b434ba999a65e073d2095286396687235eb7555d1",
        "index.ts": "sha256-7f4c4c9c676f1b8c7875f7f91a3343af12b245bf851bb2ae7692059ea50a5bcb",
        "split-view.module.css": "sha256-6abe3492b40fa6bfe00e0f5d4d65829f269c3f6565b9e929af7b2705e178f6e9",
        "split-view.meta.ts": "sha256-ff7909605b667a868c49b3b39be9702031c7a49ad5a6cea45db2220d540a37fe"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["layout", "split", "resizable", "pane"],
      "meta": {
        "name": "SplitView",
        "description": "Resizable two-pane split layout with keyboard and pointer drag support.",
        "category": "layout",
        "clientJs": "required",
        "contractTier": "behaviour",
        "anatomy": {
          "root": {
            "element": "div",
            "local": "split",
            "children": ["pane-start", "divider", "pane-end"]
          },
          "parts": {
            "pane-start": {
              "element": "div",
              "children": ["$slot"]
            },
            "divider": {
              "element": "div",
              "role": "separator",
              "children": []
            },
            "pane-end": {
              "element": "div",
              "children": ["$slot"]
            }
          }
        },
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Invisible accessible name. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling."
          },
          {
            "name": "start",
            "type": "ReactNode",
            "required": true,
            "description": "Left pane content"
          },
          {
            "name": "end",
            "type": "ReactNode",
            "required": true,
            "description": "Right pane content"
          },
          {
            "name": "defaultRatio",
            "default": "0.3",
            "type": "number",
            "required": false,
            "description": "Initial split ratio (0–1)"
          },
          {
            "name": "min",
            "default": "0.2",
            "type": "number",
            "required": false,
            "description": "Minimum ratio for start pane"
          },
          {
            "name": "max",
            "default": "0.8",
            "type": "number",
            "required": false,
            "description": "Maximum ratio for start pane"
          },
          {
            "name": "aria-label",
            "type": "string",
            "required": false,
            "description": "Label for the separator"
          }
        ],
        "tokens": ["--cascivo-color-border", "--cascivo-color-accent", "--cascivo-duration-150"],
        "accessibility": {
          "role": "separator",
          "wcag": "2.1-AA",
          "keyboard": ["ArrowLeft", "ArrowRight"]
        },
        "examples": [
          {
            "title": "Basic",
            "code": "<SplitView start={<FileTree />} end={<Editor />} />",
            "description": "Two-pane split with draggable divider"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["layout", "split", "resizable", "pane"],
        "intent": {
          "whenToUse": [
            "Two side-by-side panes the user can resize via pointer or keyboard",
            "Master/detail, editor/preview, or list/content layouts"
          ],
          "whenNotToUse": [
            "Static two-column content — use Columns",
            "A full app frame with persistent navigation — use AppShell or SidebarApp"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Columns",
              "relationship": "alternative",
              "reason": "Use for static, non-resizable two-column content"
            }
          ],
          "a11yRationale": "Exposes a keyboard-operable separator with role=\"separator\" and aria-valuenow for the split ratio.",
          "flexibility": []
        }
      },
      "channels": ["copy"]
    },
    {
      "name": "block/console-app",
      "type": "block",
      "description": "Carbon-parity console shell: ShellHeader + icon-rail SideNav + HeaderPanel notifications/switcher + collapsible aside + main content.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/console-app/console-app.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/console-app/console-app.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/console-app/console-app.meta.ts"
      ],
      "fileHashes": {
        "console-app.tsx": "sha256-65876951318d114476d0e737688112197d82495c9f93fdf8868274ff6fae9448",
        "console-app.module.css": "sha256-19f2b03d57de531b64acf059e9e04f3378cb4b43f0c9f13a1d78854d55ad7048",
        "console-app.meta.ts": "sha256-ba6794acde565495988af76a5ba5530bde110f73423c450e58e0f24587ee55d7"
      },
      "dependencies": ["@cascivo/react", "@cascivo/icons"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1",
        "@cascivo/icons": ">=1.1.1"
      },
      "tags": ["block", "console", "shell", "navigation", "carbon-parity"],
      "meta": {
        "name": "ConsoleApp",
        "description": "Carbon-parity console shell: ShellHeader + icon-rail SideNav + HeaderPanel notifications/switcher + collapsible aside + main content.",
        "category": "display",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [],
        "tokens": [
          "--cascivo-shell-header-block-size",
          "--cascivo-shell-panel-inline-size",
          "--cascivo-shell-aside-inline-size",
          "--cascivo-color-border",
          "--cascivo-color-surface",
          "--cascivo-color-scrim",
          "--cascivo-motion-enter",
          "--cascivo-motion-exit"
        ],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": ["Escape", "Tab"]
        },
        "examples": [
          {
            "title": "Default",
            "code": "<ConsoleApp />",
            "description": "Full console shell demo"
          }
        ],
        "dependencies": ["@cascivo/react", "@cascivo/icons"],
        "registryDependencies": ["layout/app-shell", "layout/page-header"],
        "tags": ["block", "console", "shell", "navigation", "carbon-parity"],
        "intent": {
          "whenToUse": [
            "A Carbon-parity console shell with icon-rail nav, header panels, and aside",
            "Admin or operations consoles needing dense, app-like navigation"
          ],
          "whenNotToUse": [
            "A simpler sidebar app — use SidebarApp",
            "A bare shell to fully customise — use AppShell"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "SidebarApp",
              "relationship": "alternative",
              "reason": "Use for a lighter, less dense sidebar app frame"
            },
            {
              "name": "AppShell",
              "relationship": "alternative",
              "reason": "Use the bare shell to compose custom console chrome"
            }
          ],
          "a11yRationale": "Provides header, navigation, and complementary landmarks for screen reader orientation.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/app-shell", "layout/page-header"],
      "channels": ["copy"]
    },
    {
      "name": "block/dashboard-charts",
      "type": "block",
      "description": "Dashboard layout with KPI tiles, line chart, bar chart, and pie chart.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/dashboard-charts/dashboard-charts.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/dashboard-charts/dashboard-charts.meta.ts"
      ],
      "fileHashes": {
        "dashboard-charts.tsx": "sha256-78d7faecc7d1fa0a39f093c8943956af2c5394fe082453a0c4d8ca53b28bb6e1",
        "dashboard-charts.meta.ts": "sha256-a698f4ba65b862ec7288dfa40fb49aae99efc63fc8c97342fe951a07248c80fc"
      },
      "dependencies": ["@cascivo/charts", "@cascivo/react"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1",
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "dashboard", "charts", "kpi"],
      "meta": {
        "name": "DashboardCharts",
        "description": "Dashboard layout with KPI tiles, line chart, bar chart, and pie chart.",
        "category": "display",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root DashboardLayout element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<DashboardCharts />",
            "description": "Charts dashboard demo"
          }
        ],
        "dependencies": ["@cascivo/charts", "@cascivo/react"],
        "registryDependencies": ["layout/dashboard-layout"],
        "tags": ["block", "dashboard", "charts", "kpi"],
        "intent": {
          "whenToUse": [
            "A prebuilt dashboard with KPI tiles, line, bar, and pie charts",
            "Quickly demonstrating or scaffolding an analytics overview"
          ],
          "whenNotToUse": [
            "You only need the layout frame — use DashboardLayout",
            "A single metric display — use a Kpi card"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "DashboardLayout",
              "relationship": "contained-by",
              "reason": "Composes the dashboard layout frame"
            },
            {
              "name": "StatsCards",
              "relationship": "alternative",
              "reason": "Use when you only need the KPI tile row"
            }
          ],
          "a11yRationale": "Charts within render with role=\"img\" and titled labels for screen readers.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/dashboard-layout"],
      "channels": ["copy"]
    },
    {
      "name": "block/empty-dashboard",
      "type": "block",
      "description": "Dashboard page showing an empty state with a call-to-action button.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/empty-dashboard/empty-dashboard.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/empty-dashboard/empty-dashboard.meta.ts"
      ],
      "fileHashes": {
        "empty-dashboard.tsx": "sha256-8fb276557cda1c5298c496bb94fb69a261c15a67d6579dde0332c5b17b32b4b1",
        "empty-dashboard.meta.ts": "sha256-38e53b1dc6d1d68f1e5bca9cc4f29cdd2bb81f9b82d1811429c3d7f8507ead47"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "dashboard", "empty-state", "page"],
      "meta": {
        "name": "EmptyDashboard",
        "description": "Dashboard page showing an empty state with a call-to-action button.",
        "category": "display",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "onCreateItem",
            "type": "() => void",
            "required": false,
            "description": "Create item button handler"
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<EmptyDashboard />",
            "description": "Empty dashboard"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "registryDependencies": ["layout/dashboard-layout"],
        "tags": ["block", "dashboard", "empty-state", "page"],
        "intent": {
          "whenToUse": [
            "A first-run or zero-data dashboard with an empty state and primary CTA",
            "Guiding users to create their first item"
          ],
          "whenNotToUse": [
            "Data already exists — use DashboardCharts or DashboardLayout",
            "A generic empty state inside a component — use an inline EmptyState"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "DashboardCharts",
              "relationship": "alternative",
              "reason": "Use once the dashboard has data to display"
            }
          ],
          "a11yRationale": "Provides a main landmark with a clear heading and actionable CTA.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/dashboard-layout"],
      "channels": ["copy"]
    },
    {
      "name": "block/login-page",
      "type": "block",
      "description": "Authentication login page with email and password form.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/login-page/login-page.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/login-page/login-page.meta.ts"
      ],
      "fileHashes": {
        "login-page.tsx": "sha256-a2778539cc582f27fe1f76effa711530a41df781d2b4ae397fbf45d25b6995bd",
        "login-page.meta.ts": "sha256-d076786ad4bcf5171a540c65df25cc493cc15b915950702ae5ebfaa5f60d192d"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "login", "auth", "form", "page"],
      "meta": {
        "name": "LoginPage",
        "description": "Authentication login page with email and password form.",
        "category": "display",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "onSubmit",
            "type": "(values: LoginValues) => void",
            "required": false,
            "description": "Called with valid form values on submit"
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<LoginPage />",
            "description": "Login page"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "registryDependencies": ["layout/auth-layout"],
        "tags": ["block", "login", "auth", "form", "page"],
        "intent": {
          "whenToUse": [
            "A complete login page with email and password form",
            "Standing up authentication quickly with validation built in"
          ],
          "whenNotToUse": [
            "You only need the centered auth frame — use AuthLayout",
            "A multi-step signup or onboarding flow"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AuthLayout",
              "relationship": "contained-by",
              "reason": "Renders inside the centered auth layout"
            }
          ],
          "a11yRationale": "Form fields are labeled and validation messages are associated for screen readers.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/auth-layout"],
      "channels": ["copy"]
    },
    {
      "name": "block/notification-center",
      "type": "block",
      "description": "A list of notification alerts with a mark-all-read action.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/notification-center/notification-center.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/notification-center/notification-center.meta.ts"
      ],
      "fileHashes": {
        "notification-center.tsx": "sha256-7f04e7eca0f68df4362982a775fc53d45b3802edd73509a93c9743b8fb8597f9",
        "notification-center.meta.ts": "sha256-cb6d4a4d1ad4ce66cae4f9b79e2f72e348246bf5215935ba682044347d0dbc41"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "notifications", "alerts"],
      "meta": {
        "name": "NotificationCenter",
        "description": "A list of notification alerts with a mark-all-read action.",
        "category": "display",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "notifications",
            "default": "demoNotifications",
            "type": "Notification[]",
            "required": false,
            "description": "Notification items to display"
          },
          {
            "name": "onMarkAllRead",
            "type": "() => void",
            "required": false,
            "description": "Mark all read button handler"
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<NotificationCenter />",
            "description": "Notification center"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "registryDependencies": ["layout/flex"],
        "tags": ["block", "notifications", "alerts"],
        "intent": {
          "whenToUse": [
            "A list of notification alerts with a mark-all-read action",
            "An inbox or activity panel surfaced from a header bell"
          ],
          "whenNotToUse": [
            "Transient feedback after an action — use a Toast",
            "A single inline status message — use an Alert"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Alert",
              "relationship": "contains",
              "reason": "Each notification is rendered as an alert item"
            }
          ],
          "a11yRationale": "Notification items use alert semantics so screen readers announce new entries.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/flex"],
      "channels": ["copy"]
    },
    {
      "name": "block/page-with-breadcrumb",
      "type": "block",
      "description": "A centered content page with a breadcrumb navigation and page header.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/page-with-breadcrumb/page-with-breadcrumb.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/page-with-breadcrumb/page-with-breadcrumb.meta.ts"
      ],
      "fileHashes": {
        "page-with-breadcrumb.tsx": "sha256-6254bb736f4cb1163338b35021fc7e6863a7907bae99407dfd4a67017d379bb5",
        "page-with-breadcrumb.meta.ts": "sha256-73dd9f589fb376035fa643536a350733510d11a9aae3eeadbceef96032ab6ecc"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "breadcrumb", "page", "navigation"],
      "meta": {
        "name": "PageWithBreadcrumb",
        "description": "A centered content page with a breadcrumb navigation and page header.",
        "category": "display",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<PageWithBreadcrumb />",
            "description": "Page with breadcrumb"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "registryDependencies": ["layout/page-header", "layout/center"],
        "tags": ["block", "breadcrumb", "page", "navigation"],
        "intent": {
          "whenToUse": [
            "A centered content page with breadcrumb navigation and a page header",
            "Deep pages where users need hierarchical context"
          ],
          "whenNotToUse": [
            "Top-level pages with no hierarchy to express",
            "You only need the header without breadcrumbs — use PageHeader"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "PageHeader",
              "relationship": "contains",
              "reason": "Uses a page header with a breadcrumb slot"
            }
          ],
          "a11yRationale": "Breadcrumb renders as a labeled navigation region for screen reader orientation.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/page-header", "layout/center"],
      "channels": ["copy"]
    },
    {
      "name": "block/settings-form-page",
      "type": "block",
      "description": "Settings page with profile form inside a two-column settings layout.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/settings-form-page/settings-form-page.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/settings-form-page/settings-form-page.meta.ts"
      ],
      "fileHashes": {
        "settings-form-page.tsx": "sha256-1cae9975686581076eae9b7ef3a60dbe6b4e511fe5216c5704fd7d1b7c5a8414",
        "settings-form-page.meta.ts": "sha256-6faa6abc6516ddfb5a1e9ee1193c123f74a041d713ec050a920759991d09c6b5"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "settings", "form", "page"],
      "meta": {
        "name": "SettingsFormPage",
        "description": "Settings page with profile form inside a two-column settings layout.",
        "category": "display",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "onSave",
            "type": "(values: SettingsValues) => void",
            "required": false,
            "description": "Called with valid form values on submit"
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<SettingsFormPage />",
            "description": "Settings form page"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "registryDependencies": ["layout/settings-layout"],
        "tags": ["block", "settings", "form", "page"],
        "intent": {
          "whenToUse": [
            "A settings page with a profile form inside a two-column settings layout",
            "Account or preferences pages with a save action"
          ],
          "whenNotToUse": [
            "You only need the layout frame — use SettingsLayout",
            "A focused single-field edit — use an inline form"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "SettingsLayout",
              "relationship": "contained-by",
              "reason": "Composes the two-column settings layout"
            }
          ],
          "a11yRationale": "Form fields are labeled and validation messages are associated for screen readers.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/settings-layout"],
      "channels": ["copy"]
    },
    {
      "name": "block/sidebar-app",
      "type": "block",
      "description": "Full app shell with collapsible side navigation and top header.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/sidebar-app/sidebar-app.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/sidebar-app/sidebar-app.meta.ts"
      ],
      "fileHashes": {
        "sidebar-app.tsx": "sha256-02c2ac1a262dc4ab627a496de5fbb0b9b8a233441f7f0a94a952a9ddaa5215fa",
        "sidebar-app.meta.ts": "sha256-1e25c73c00583802cb8a0619f42c980fd089933fcc28b0ba09319ece1537c7ac"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "sidebar", "navigation", "app-shell"],
      "meta": {
        "name": "SidebarApp",
        "description": "Full app shell with collapsible side navigation and top header.",
        "category": "display",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<SidebarApp />",
            "description": "App with sidebar navigation"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "registryDependencies": ["layout/app-shell"],
        "tags": ["block", "sidebar", "navigation", "app-shell"],
        "intent": {
          "whenToUse": [
            "A ready-made app shell with opinionated collapsible sidebar and top header",
            "Standing up an authenticated app frame quickly"
          ],
          "whenNotToUse": [
            "You want a bare shell to compose your own nav — use AppShell",
            "A dashboard-specific layout — use DashboardLayout"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AppShell",
              "relationship": "alternative",
              "reason": "Use the bare layout primitive for custom navigation"
            },
            {
              "name": "ConsoleApp",
              "relationship": "alternative",
              "reason": "Use the Carbon-parity console shell for icon-rail navigation"
            }
          ],
          "a11yRationale": "Provides header and navigation landmarks for screen reader orientation.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/app-shell"],
      "channels": ["copy"]
    },
    {
      "name": "block/stats-cards",
      "type": "block",
      "description": "Grid of KPI stat cards with trend badges.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/stats-cards/stats-cards.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/stats-cards/stats-cards.meta.ts"
      ],
      "fileHashes": {
        "stats-cards.tsx": "sha256-6caef62d371111a928b2798e5792f8dd551d762938482317d8b1c8af84af64ba",
        "stats-cards.meta.ts": "sha256-8f47ec0fce7394c03c8955d5a5ae36f1c690126016309661d2d8f4ab879c0402"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "stats", "kpi", "cards"],
      "meta": {
        "name": "StatsCards",
        "description": "Grid of KPI stat cards with trend badges.",
        "category": "display",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "stats",
            "default": "demoStats",
            "type": "Stat[]",
            "required": false,
            "description": "KPI stat data"
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<StatsCards />",
            "description": "Demo KPI stats"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "tags": ["block", "stats", "kpi", "cards"],
        "intent": {
          "whenToUse": [
            "A grid of KPI stat cards with trend badges",
            "Summarising headline metrics at the top of a dashboard"
          ],
          "whenNotToUse": [
            "A full charts dashboard — use DashboardCharts",
            "A single metric — use a Kpi card"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Kpi",
              "relationship": "contains",
              "reason": "Each card displays a KPI metric with a delta"
            },
            {
              "name": "DashboardLayout",
              "relationship": "contained-by",
              "reason": "Commonly fills the dashboard stats strip"
            }
          ],
          "a11yRationale": "Each stat card is a labeled figure for screen reader context.",
          "flexibility": []
        }
      },
      "channels": ["copy"]
    },
    {
      "name": "block/users-table-page",
      "type": "block",
      "description": "Full users management page with table, search, and invite action.",
      "category": "display",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/users-table-page/users-table-page.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/blocks/users-table-page/users-table-page.meta.ts"
      ],
      "fileHashes": {
        "users-table-page.tsx": "sha256-3fee4bea6fad113b0bb8825971714d9e70c60b58e4caf35ccb2a75fc3cff6c6b",
        "users-table-page.meta.ts": "sha256-4421eee98d88584b8805938faa9043053e4c271daae2c7b1c820725a91c5c8ed"
      },
      "dependencies": ["@cascivo/react"],
      "peerVersions": {
        "@cascivo/react": ">=1.12.1"
      },
      "tags": ["block", "users", "table", "page"],
      "meta": {
        "name": "UsersTablePage",
        "description": "Full users management page with table, search, and invite action.",
        "category": "display",
        "clientJs": "required",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "users",
            "default": "demoUsers",
            "type": "User[]",
            "required": false,
            "description": "User data"
          },
          {
            "name": "onInvite",
            "type": "() => void",
            "required": false,
            "description": "Invite button handler"
          }
        ],
        "tokens": [],
        "accessibility": {
          "role": "generic",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Default",
            "code": "<UsersTablePage />",
            "description": "Demo users table"
          }
        ],
        "dependencies": ["@cascivo/react"],
        "registryDependencies": ["layout/page-header", "layout/flex"],
        "tags": ["block", "users", "table", "page"],
        "intent": {
          "whenToUse": [
            "A full user-management page with table, search, and invite action",
            "Admin list views over a collection of records"
          ],
          "whenNotToUse": [
            "A read-only data display — use a plain Table",
            "A dashboard overview — use DashboardCharts"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "PageHeader",
              "relationship": "contains",
              "reason": "Uses a page header with title and invite action"
            }
          ],
          "a11yRationale": "Table uses proper row/column semantics and the search field is labeled.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/page-header", "layout/flex"],
      "channels": ["copy"]
    },
    {
      "name": "chart/area-chart",
      "type": "chart",
      "description": "Area chart with optional stacking, multi-series support, and hover tooltip.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "area", "data-viz"],
      "meta": {
        "name": "AreaChart",
        "description": "Area chart with optional stacking, multi-series support, and hover tooltip.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "series",
            "type": "AreaChartSeries<Datum>[]",
            "required": true,
            "description": "Array of data series"
          },
          {
            "name": "x",
            "type": "(d: Datum) => number | Date",
            "required": true,
            "description": "X-value accessor. Return a number for a numeric axis or a Date for a time axis (ticks format as dates, parity with LineChart). This is a continuous scale — unlike BarChart, whose `x` returns a category `string` (band scale). For discrete categories, use BarChart."
          },
          {
            "name": "y",
            "type": "(d: Datum) => number",
            "required": true,
            "description": "Y-value accessor, applied to every series unless a series sets its own `y`. One x-domain per chart, so `x` is chart-level only; give each series a `y` to plot different fields from one shared data row."
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "stacked",
            "type": "boolean",
            "required": false,
            "description": "Stack series areas"
          },
          {
            "name": "curve",
            "type": "'linear' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | 'natural' | 'basis' | 'cardinal' | 'catmullRom'",
            "required": false,
            "default": "monotone",
            "description": "Line/area interpolation curve."
          },
          {
            "name": "fill",
            "type": "'solid' | 'gradient' | 'pattern'",
            "required": false,
            "default": "gradient for one non-stacked series, solid otherwise",
            "description": "Area fill style — solid, a top→bottom gradient, or a pattern. A single non-stacked series defaults to `gradient` (a lone solid area reads as a heavy block); stacked and overlapping series default to `solid`."
          },
          {
            "name": "patternKind",
            "type": "'dots' | 'lines' | 'cross'",
            "required": false,
            "description": "Pattern motif when fill=\"pattern\"."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "xTicks",
            "description": "Approximate number of ticks on the x-axis.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "yTicks",
            "description": "Approximate number of ticks on the y-axis.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "legend",
            "description": "Whether to show the legend.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover/keyboard tooltip"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "annotations",
            "type": "Annotation[]",
            "required": false,
            "description": "Reference lines, shaded bands, and markers drawn over the plot (e.g. a target/threshold line)."
          },
          {
            "name": "labels",
            "type": "boolean | { format?: (v: number) => string; position?: string }",
            "required": false,
            "description": "Print each value as a label on the mark (collision-aware, decorative/aria-hidden)."
          },
          {
            "name": "onSelect",
            "type": "(point: ChartPoint) => void",
            "required": false,
            "description": "Fired when a point is clicked or activated (Enter/Space) — for drill-down."
          },
          {
            "name": "brush",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Show a keyboard-operable Brush below the plot to subset the series to a window."
          },
          {
            "name": "dataZoom",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Show a DataZoom slider below the plot — a Brush whose body also pans the window."
          },
          {
            "name": "zoom",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Enable in-plot wheel/drag/keyboard zoom-pan (+/-/0) over the series index window, with a reset control and re-ticked axes."
          },
          {
            "name": "syncId",
            "type": "string",
            "required": false,
            "description": "Connect this chart to others sharing the same id — they mirror the zoom window and hovered x."
          },
          {
            "name": "tooltipMode",
            "type": "'item' | 'axis'",
            "required": false,
            "default": "item",
            "description": "Tooltip trigger — item (nearest point) or axis (a crosshair + a shared tooltip listing every series at the hovered x)."
          },
          {
            "name": "decimate",
            "type": "boolean | { method?: 'lttb' | 'minmax'; threshold?: number }",
            "required": false,
            "description": "Downsample dense non-stacked series before drawing (LTTB or min-max). Visual only — the fallback table keeps the full data."
          },
          {
            "name": "toolbox",
            "type": "boolean | ToolboxOptions",
            "required": false,
            "description": "Render a keyboard-reachable toolbox — PNG/SVG export, a data-view table toggle, and restore (reset zoom)."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each X-axis tick label."
          },
          {
            "name": "secondAxis",
            "type": "{ label?: string; format?: (value: number) => string }",
            "required": false,
            "description": "Add a right-hand y-axis for series with `axis: 'right'` (non-stacked only)."
          }
        ],
        "typeDefs": [
          {
            "name": "AreaChartSeries",
            "description": "One series. Pass via the `series` prop; set `type: 'line'` to draw it unfilled.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "data",
                "type": "readonly Datum[]",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "Series colour."
              },
              {
                "name": "axis",
                "type": "'left' | 'right'",
                "required": false,
                "description": "Which y-axis this series is measured against (ignored when `stacked`)."
              },
              {
                "name": "y",
                "type": "(d: Datum) => number",
                "required": false,
                "description": "Per-series Y accessor."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate points)",
            "Home/End (first/last point)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Basic area chart",
            "code": "import { AreaChart } from '@cascivo/charts'\n\nconst series = [{ id: 'a', label: 'Revenue', data: [{x:1,y:10},{x:2,y:20}] }]\n<AreaChart series={series} x={d => d.x} y={d => d.y} title=\"Revenue\" />"
          },
          {
            "title": "Multiple fields from one row (per-series y)",
            "description": "The chart-level x/y apply to every series. To plot two fields from the same rows, give each series its own y — no need to reshape the data into separate {x,y} arrays.",
            "code": "import { AreaChart } from '@cascivo/charts'\n\nconst rows = [{ t: 0, requests: 100, errors: 5 }, { t: 1, requests: 120, errors: 9 }]\n<AreaChart\n  title=\"Traffic\"\n  series={[\n    { id: 'req', label: 'Requests', data: rows, y: d => d.requests },\n    { id: 'err', label: 'Errors', data: rows, y: d => d.errors },\n  ]}\n  x={d => d.t}\n  y={d => d.requests}\n/>"
          },
          {
            "title": "Time axis (Date x)",
            "description": "Return a Date from x for a time axis — ticks render as dates (e.g. \"Jul 10\"), no need to encode day-of-month as an integer.",
            "code": "import { AreaChart } from '@cascivo/charts'\n\nconst data = [\n  { day: new Date('2026-07-10'), y: 120 },\n  { day: new Date('2026-07-20'), y: 180 },\n  { day: new Date('2026-07-30'), y: 150 },\n]\n<AreaChart\n  title=\"Daily signups\"\n  series={[{ id: 's', label: 'Signups', data }]}\n  x={d => d.day}\n  y={d => d.y}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "area", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing cumulative volume or magnitude of a trend over continuous time",
            "Emphasising the total of stacked multi-series values across a range"
          ],
          "whenNotToUse": [
            "Reading precise individual values — use LineChart",
            "Comparing discrete categories — use BarChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "LineChart",
              "relationship": "alternative",
              "reason": "Use when precise values matter more than filled volume"
            },
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use for discrete categorical comparison"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/bar-chart",
      "type": "chart",
      "description": "Bar chart with vertical/horizontal orientation, grouped or stacked modes, and multi-series support.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "bar", "data-viz"],
      "meta": {
        "name": "BarChart",
        "description": "Bar chart with vertical/horizontal orientation, grouped or stacked modes, and multi-series support.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": ["grouped", "stacked", "percent"],
        "sizes": [],
        "props": [
          {
            "name": "series",
            "type": "BarChartSeries<Datum>[]",
            "required": true,
            "description": "Series array. Each series accepts an optional `color` (any CSS color) overriding the positional palette for that series/stacked layer."
          },
          {
            "name": "x",
            "description": "Accessor returning the **category label** for a datum. BarChart uses a categorical **band** scale, so `x` returns a `string` — this differs from LineChart/AreaChart, whose `x` returns `number | Date` for a continuous/time scale. For a time-based bar chart, format the date to a label in the accessor (e.g. `x={(d) => d.day.toLocaleDateString()}`). For continuous or time-series data, prefer LineChart/AreaChart.",
            "type": "(d: Datum) => string",
            "required": true
          },
          {
            "name": "y",
            "description": "Accessor returning the numeric value for a datum, applied to every series unless a series sets its own `y`. One category (x) domain per chart; give each series a `y` to plot different fields from one shared data row.",
            "type": "(d: Datum) => number",
            "required": true
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "orientation",
            "description": "Direction the bars grow. `vertical` puts the categories on the x-axis and grows bars upward (columns); `horizontal` puts them on the y-axis and grows bars rightward — the better choice for long category names.",
            "type": "'vertical' | 'horizontal'",
            "required": false,
            "default": "vertical"
          },
          {
            "name": "mode",
            "type": "'grouped' | 'stacked' | 'percent'",
            "required": false,
            "default": "grouped",
            "description": "'percent' stacks each category and normalizes it to 100%."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "valueAxisTicks",
            "description": "Approximate number of ticks on the VALUE axis, on both orientations. Prefer this over xTicks/yTicks, which are named for where the axis is drawn and therefore swap meaning when orientation=\"horizontal\".",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "categoryAxisTicks",
            "description": "Approximate number of ticks on the CATEGORY axis, on both orientations. Role-named twin of valueAxisTicks.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "categoryLabelEvery",
            "type": "number",
            "required": false,
            "description": "Show every Nth category label (always the last) to thin a crowded axis. Role-named twin of xLabelEvery; always strides the category axis on both orientations."
          },
          {
            "name": "xLabelEvery",
            "type": "number",
            "required": false,
            "description": "Show every Nth category label (always the last) to thin a crowded axis. Unlike xTicks/yTicks this does NOT swap with orientation — it always strides the category axis. categoryLabelEvery is the unambiguous name."
          },
          {
            "name": "legend",
            "description": "Whether to show the legend.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "tooltip",
            "description": "Whether to show tooltips on hover.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "tooltipFormat",
            "type": "(p: ChartPoint) => string",
            "required": false,
            "description": "Custom tooltip formatter. The stacked default lists \"label · total\" + each non-zero layer in its color."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "annotations",
            "type": "Annotation[]",
            "required": false,
            "description": "Reference lines, shaded bands, and markers drawn over the plot (e.g. a target/threshold line)."
          },
          {
            "name": "labels",
            "type": "boolean | { format?: (v: number) => string; position?: string }",
            "required": false,
            "description": "Print each value as a label on the mark (collision-aware, decorative/aria-hidden)."
          },
          {
            "name": "onSelect",
            "type": "(point: ChartPoint) => void",
            "required": false,
            "description": "Fired when a point is clicked or activated (Enter/Space) — for drill-down."
          },
          {
            "name": "fill",
            "type": "'solid' | 'gradient' | 'pattern'",
            "required": false,
            "default": "solid",
            "description": "Bar fill style — solid, a gradient, or a pattern."
          },
          {
            "name": "patternKind",
            "type": "'dots' | 'lines' | 'cross'",
            "required": false,
            "description": "Pattern motif when fill=\"pattern\"."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each category/x-axis tick label."
          }
        ],
        "typeDefs": [
          {
            "name": "BarChartSeries<Datum>",
            "description": "One series (a set of bars). Pass an array via the `series` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true,
                "description": "Stable series identity."
              },
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Legend + tooltip label."
              },
              {
                "name": "data",
                "type": "readonly Datum[]",
                "required": true,
                "description": "Row data read by the `x`/`y` accessors."
              },
              {
                "name": "color",
                "type": "string | ((datum: Datum, index: number) => string)",
                "required": false,
                "description": "Any CSS color overriding the positional palette (--cascivo-chart-N) for this series / stacked layer. Pass a FUNCTION to color each bar from its own datum — the single-series categorical case (incidents by severity, where SEV1 reads as danger regardless of which bar is tallest). Each bar is also stamped with data-x for CSS targeting."
              }
            ]
          },
          {
            "name": "StackedRow",
            "description": "Row-oriented input to the `toStackedSeries(rows)` pivot helper.",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Category (one bar)."
              },
              {
                "name": "segments",
                "type": "StackedSegment[]",
                "required": true,
                "description": "Per-layer values: { key, value, color? }. First non-undefined color per key wins."
              }
            ]
          },
          {
            "name": "StackedSegment",
            "description": "One layer of a stacked bar within a StackedRow.",
            "fields": [
              {
                "name": "key",
                "type": "string",
                "required": true,
                "description": "Layer key — becomes the series id/label (e.g. \"Done\")."
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "Optional CSS color for this layer."
              }
            ]
          },
          {
            "name": "ChartPoint",
            "description": "Argument passed to the `tooltipFormat` callback.",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Category label."
              },
              {
                "name": "value",
                "type": "number | string",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "Resolved mark color (the default tooltip tints its text with this)."
              },
              {
                "name": "segments",
                "type": "readonly { label: string; value: number; color?: string }[]",
                "required": false,
                "description": "Per-layer breakdown for a stacked category; the default stacked tooltip lists these."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8",
          "--cascivo-chart-bar-radius"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic bar chart",
            "code": "import { BarChart } from '@cascivo/charts'\n\nconst series = [{ id: 'a', label: 'Sales', data: [{x:'Jan',y:100},{x:'Feb',y:150}] }]\n<BarChart series={series} x={d => d.x} y={d => d.y} title=\"Sales\" />"
          },
          {
            "title": "Date-based categories (format the Date in the accessor)",
            "description": "BarChart's x is a category string, not a Date. When your data is date-keyed, format the Date to a label string inside the x accessor — do NOT return the Date itself (that is a type error; only LineChart/AreaChart take a Date x).",
            "code": "import { BarChart } from '@cascivo/charts'\n\nconst series = [{ id: 'signups', label: 'Signups', data: [\n  { day: new Date('2026-07-01'), count: 12 },\n  { day: new Date('2026-07-02'), count: 18 },\n] }]\n<BarChart\n  series={series}\n  x={(d) => d.day.toLocaleDateString(undefined, { month: 'short', day: 'numeric' })}\n  y={(d) => d.count}\n  xLabelEvery={2}\n  title=\"Daily signups\"\n/>"
          },
          {
            "title": "Stacked bar from row-oriented data",
            "code": "import { BarChart, toStackedSeries } from '@cascivo/charts'\n\n// Pivot { label, segments[] } rows into series + x/y. Per-segment color is preserved.\nconst rows = [\n  { label: 'Mon', segments: [\n    { key: 'Done', value: 5, color: 'var(--cascivo-color-success)' },\n    { key: 'Blocked', value: 2, color: 'var(--cascivo-color-destructive)' },\n  ] },\n  { label: 'Tue', segments: [\n    { key: 'Done', value: 8, color: 'var(--cascivo-color-success)' },\n    { key: 'Blocked', value: 1, color: 'var(--cascivo-color-destructive)' },\n  ] },\n]\n// Tooltip shows \"Mon · 7\" then each non-zero layer in its color.\n<BarChart mode=\"stacked\" tooltip {...toStackedSeries(rows)} title=\"Throughput\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "bar", "data-viz"],
        "intent": {
          "whenToUse": [
            "Comparing discrete categorical values across groups",
            "Showing grouped or stacked multi-series data per category"
          ],
          "whenNotToUse": [
            "Showing trends over continuous time — use LineChart",
            "Part-of-whole proportions — use PieChart for ≤5 categories"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "LineChart",
              "relationship": "alternative",
              "reason": "Use for trends over continuous time"
            },
            {
              "name": "Histogram",
              "relationship": "alternative",
              "reason": "Use to show the distribution of a continuous variable"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/boxplot",
      "type": "chart",
      "description": "Box-and-whisker plot with five-number summary and outlier dots per series.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "boxplot", "box-whisker", "statistics", "data-viz"],
      "meta": {
        "name": "Boxplot",
        "description": "Box-and-whisker plot with five-number summary and outlier dots per series.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "series",
            "type": "{ id: string; label: string; values: number[] }[]",
            "required": true,
            "description": "Array of series each with raw numeric values"
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each category/x-axis tick label."
          }
        ],
        "typeDefs": [
          {
            "name": "BoxplotSeries",
            "description": "Shape of the `series` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "values",
                "type": "number[]",
                "required": true
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic boxplot",
            "code": "import { Boxplot } from '@cascivo/charts'\n\nconst series = [\n  { id: 'a', label: 'Group A', values: [1,2,3,4,5,6,7,8,9,10] },\n  { id: 'b', label: 'Group B', values: [3,5,6,7,8,8,9,9,10,15] },\n]\n<Boxplot series={series} title=\"Comparison\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "boxplot", "box-whisker", "statistics", "data-viz"],
        "intent": {
          "whenToUse": [
            "Comparing the distribution spread, median, and quartiles across groups",
            "Surfacing outliers and skew in statistical data"
          ],
          "whenNotToUse": [
            "Showing the full shape of a single distribution — use Histogram",
            "Comparing single aggregate values — use BarChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Histogram",
              "relationship": "alternative",
              "reason": "Use to show the full frequency shape of one distribution"
            },
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use when only aggregate values matter, not spread"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/bubble-chart",
      "type": "chart",
      "description": "Bubble chart mapping x, y, and size dimensions; radius is area-proportional via sqrt scale.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "bubble", "scatter", "three-dimensional", "data-viz"],
      "meta": {
        "name": "BubbleChart",
        "description": "Bubble chart mapping x, y, and size dimensions; radius is area-proportional via sqrt scale.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "series",
            "description": "The data series to plot.",
            "type": "{ name: string; data: { x: number; y: number; size: number }[] }[]",
            "required": true
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover/keyboard tooltip"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "glyph",
            "type": "GlyphShape | ((d, seriesId) => GlyphShape)",
            "required": false,
            "description": "Point glyph shape (circle/square/diamond/triangle/cross/star) — a fixed shape or a function to encode a category by shape."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each X-axis tick label."
          }
        ],
        "typeDefs": [
          {
            "name": "BubbleSeries",
            "description": "Shape of the `series` prop.",
            "fields": [
              {
                "name": "name",
                "type": "string",
                "required": true
              },
              {
                "name": "data",
                "type": "BubbleDatum[]",
                "required": true
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate points)",
            "Home/End (first/last point)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Basic bubble chart",
            "code": "import { BubbleChart } from '@cascivo/charts'\n\nconst series = [{ name: 'Group A', data: [{x:1,y:2,size:10},{x:3,y:4,size:30}] }]\n<BubbleChart series={series} title=\"Bubble\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "bubble", "scatter", "three-dimensional", "data-viz"],
        "intent": {
          "whenToUse": [
            "Plotting three dimensions at once — x, y, and a size-encoded magnitude",
            "Comparing entities where relative scale matters alongside position"
          ],
          "whenNotToUse": [
            "Showing only a 2D correlation — use ScatterChart",
            "Comparing many small magnitudes where size differences are unreadable"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "ScatterChart",
              "relationship": "alternative",
              "reason": "Use when there is no third size dimension to encode"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/bullet",
      "type": "chart",
      "description": "Bullet chart with background range bands, measure bar, and target tick.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "bullet", "kpi", "progress", "data-viz"],
      "meta": {
        "name": "Bullet",
        "description": "Bullet chart with background range bands, measure bar, and target tick.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "number",
            "required": true,
            "description": "Current measure value"
          },
          {
            "name": "target",
            "type": "number",
            "required": true,
            "description": "Target marker value"
          },
          {
            "name": "ranges",
            "type": "number[]",
            "required": true,
            "description": "Qualitative range breakpoints (sorted ascending)"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": true
          },
          {
            "name": "min",
            "description": "Minimum allowed value.",
            "type": "number",
            "required": false,
            "default": "0"
          },
          {
            "name": "max",
            "type": "number",
            "required": false,
            "description": "Domain maximum (defaults to last range)"
          },
          {
            "name": "width",
            "description": "SVG width in px. **This chart is fixed-width by default** — it is a compact, inline chart meant to sit in a table cell or beside a label, so omitting `width` gives you 300px rather than a container-filling chart. Pass a number to change it. The catalogue-wide \"omit for a responsive chart\" note does not apply to this chart.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "40"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-gray-200",
          "--cascivo-gray-300",
          "--cascivo-gray-400"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic bullet chart",
            "code": "import { Bullet } from '@cascivo/charts'\n\n<Bullet value={72} target={80} ranges={[40, 70, 100]} label=\"Revenue %\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "bullet", "kpi", "progress", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing a single measure against a target with qualitative range bands",
            "Compact dashboard KPIs where space for a full gauge is limited"
          ],
          "whenNotToUse": [
            "Displaying a metric without a target or comparative range — use Kpi",
            "Showing a simple completion or rated value — use Meter"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Meter",
              "relationship": "alternative",
              "reason": "Use for a rated value within a range without a target marker"
            },
            {
              "name": "Kpi",
              "relationship": "alternative",
              "reason": "Use for a single headline metric with a delta"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a label prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/calendar",
      "type": "chart",
      "description": "Calendar heatmap — a week-column grid of day cells colored by value (GitHub-style).",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "calendar", "heatmap", "time", "data-viz"],
      "meta": {
        "name": "CalendarHeatmap",
        "description": "Calendar heatmap — a week-column grid of day cells colored by value (GitHub-style).",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "CalendarHeatmapDatum[]",
            "required": true,
            "description": "Days: { day: string | Date, value }."
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "from",
            "type": "string | Date",
            "required": false,
            "description": "Range start (defaults to min day)."
          },
          {
            "name": "to",
            "type": "string | Date",
            "required": false,
            "description": "Range end (defaults to max day)."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect. It is a **cap on the drawn grid, never a crop**: cell size is clamped so all seven weekday rows fit inside it.",
            "type": "number",
            "required": false,
            "default": "160"
          },
          {
            "name": "maxCellSize",
            "description": "Optional ceiling on a cell's edge, in px. Cells are already clamped to fit `height`; set this only to keep them small in a short, wide range (GitHub's calendar uses ~11). Omitted by default so the height budget alone decides.",
            "type": "number",
            "required": false
          },
          {
            "name": "tooltip",
            "description": "Whether to show tooltips on hover.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "description": "When true, renders a minimal variant without chart chrome.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "visualMap",
            "type": "VisualMapOptions",
            "required": false,
            "description": "Map day value → CVD-safe colour (continuous or piecewise) via a keyboard-operable legend that filters the visible range."
          }
        ],
        "typeDefs": [
          {
            "name": "CalendarHeatmapDatum",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "day",
                "type": "string | Date",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              }
            ]
          },
          {
            "name": "VisualMapOptions",
            "description": "Shape of the `visualMap` prop.",
            "fields": [
              {
                "name": "min",
                "type": "number",
                "required": true,
                "description": "Domain minimum (value mapped to ramp t=0)."
              },
              {
                "name": "max",
                "type": "number",
                "required": true,
                "description": "Domain maximum (value mapped to ramp t=1)."
              },
              {
                "name": "mode",
                "type": "VisualMode",
                "required": false,
                "description": "`continuous` ramp (default) or `piecewise` buckets."
              },
              {
                "name": "channel",
                "type": "VisualChannel",
                "required": false,
                "description": "Which visual channel(s) the value drives."
              },
              {
                "name": "ramp",
                "type": "RampKind",
                "required": false,
                "description": "Ramp family — CVD-safe `sequential` (default) or `diverging`."
              },
              {
                "name": "pieces",
                "type": "number",
                "required": false,
                "description": "Bucket count for `piecewise` (default 5)."
              },
              {
                "name": "sizeRange",
                "type": "[number, number]",
                "required": false,
                "description": "[min, max] mark radius in px for the `size` channel (default [3, 14])."
              }
            ]
          }
        ],
        "tokens": ["--cascivo-chart-2"],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate days)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Contribution calendar",
            "code": "import { CalendarHeatmap } from '@cascivo/charts'\n\n<CalendarHeatmap\n  title=\"Activity\"\n  data={[{ day: '2026-01-01', value: 3 }, { day: '2026-01-02', value: 7 }]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "calendar", "heatmap", "time", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing a daily value over weeks/months (activity, contributions)",
            "Spotting weekly/seasonal patterns at a glance"
          ],
          "whenNotToUse": [
            "Precise daily values — use a LineChart",
            "Non-date categories — use Heatmap"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Heatmap",
              "relationship": "alternative",
              "reason": "Use for arbitrary x/y category grids"
            }
          ],
          "a11yRationale": "Renders role=\"img\" with a title and a fallback day/value table.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/candlestick",
      "type": "chart",
      "description": "OHLC financial chart — each period a high–low wick and an open↔close body, coloured up/down.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "candlestick", "ohlc", "financial", "data-viz"],
      "meta": {
        "name": "Candlestick",
        "description": "OHLC financial chart — each period a high–low wick and an open↔close body, coloured up/down.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "CandlestickDatum[]",
            "required": true,
            "description": "One candle per period: { t, open, high, low, close, volume? }."
          },
          {
            "name": "title",
            "type": "string",
            "required": true,
            "description": "Chart title (also aria-label)."
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "yTicks",
            "description": "Approximate number of ticks on the y-axis.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "upColor",
            "type": "string",
            "required": false,
            "description": "Colour for up candles (close ≥ open).",
            "default": "'var(--cascivo-chart-2)'"
          },
          {
            "name": "downColor",
            "type": "string",
            "required": false,
            "description": "Colour for down candles (close < open).",
            "default": "'var(--cascivo-chart-4)'"
          },
          {
            "name": "volume",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Render volume bars beneath the candles."
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover tooltip (OHLC)."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes. For micro/inline charts."
          },
          {
            "name": "annotations",
            "type": "Annotation[]",
            "required": false,
            "description": "Reference lines/bands/markers over the plot (e.g. a last-price rule)."
          },
          {
            "name": "brush",
            "type": "boolean",
            "required": false,
            "description": "Keyboard-operable Brush below the plot to subset the candles to a window."
          },
          {
            "name": "dataZoom",
            "type": "boolean",
            "required": false,
            "description": "DataZoom slider below the plot — a Brush whose body also pans the window."
          },
          {
            "name": "zoom",
            "type": "boolean",
            "required": false,
            "description": "In-plot wheel/drag/keyboard zoom-pan (+/-/0) over the candle index window."
          },
          {
            "name": "syncId",
            "type": "string",
            "required": false,
            "description": "Connect charts sharing this id — they mirror the zoom window."
          },
          {
            "name": "tooltipMode",
            "type": "'item' | 'axis'",
            "required": false,
            "default": "item",
            "description": "item (nearest candle) or axis (crosshair + OHLC at the hovered x)."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each X-axis tick label."
          }
        ],
        "typeDefs": [
          {
            "name": "CandlestickDatum",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "t",
                "type": "string",
                "required": true,
                "description": "Period label (date string or index)."
              },
              {
                "name": "open",
                "type": "number",
                "required": true
              },
              {
                "name": "high",
                "type": "number",
                "required": true
              },
              {
                "name": "low",
                "type": "number",
                "required": true
              },
              {
                "name": "close",
                "type": "number",
                "required": true
              },
              {
                "name": "volume",
                "type": "number",
                "required": false,
                "description": "Render volume bars beneath the candles."
              }
            ]
          }
        ],
        "tokens": ["--cascivo-chart-2", "--cascivo-chart-4", "--cascivo-chart-grid"],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate candles)",
            "+/- (zoom), 0 (reset) when zoom enabled",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "OHLC price series",
            "code": "import { Candlestick } from '@cascivo/charts'\n\n<Candlestick\n  title=\"ACME daily\"\n  tooltip\n  data={[\n    { t: 'Mon', open: 10, high: 14, low: 9, close: 13 },\n    { t: 'Tue', open: 13, high: 15, low: 11, close: 11 },\n    { t: 'Wed', open: 11, high: 12, low: 8, close: 9 },\n  ]}\n/>"
          },
          {
            "title": "Zoomable with a last-price rule",
            "code": "<Candlestick\n  title=\"ACME daily\"\n  data={candles}\n  volume\n  zoom\n  dataZoom\n  tooltipMode=\"axis\"\n  annotations={[{ kind: 'line', axis: 'y', value: lastClose, label: '42.77' }]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "candlestick", "ohlc", "financial", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing open/high/low/close price movement over time",
            "Financial or trading dashboards needing per-period range + direction"
          ],
          "whenNotToUse": [
            "A single value trend — use LineChart",
            "Non-financial categorical data — use BarChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "LineChart",
              "relationship": "alternative",
              "reason": "Use when only the closing price trend matters"
            }
          ],
          "a11yRationale": "Renders with role=\"img\"; OHLC values are in the fallback table and tooltip.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/combo-chart",
      "type": "chart",
      "description": "Combination bar + line chart on shared or dual y-axes.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "combo", "bar", "line", "dual-axis", "data-viz"],
      "meta": {
        "name": "ComboChart",
        "description": "Combination bar + line chart on shared or dual y-axes.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "bars",
            "type": "{ label: string; value: number }[]",
            "required": true,
            "description": "Bar series data"
          },
          {
            "name": "line",
            "type": "{ x: number; y: number }[]",
            "required": true,
            "description": "Line series data points"
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "secondAxis",
            "type": "boolean",
            "required": false,
            "description": "Render line on a secondary right y-axis",
            "default": "false"
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover/keyboard tooltip"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "annotations",
            "type": "Annotation[]",
            "required": false,
            "description": "Reference lines, shaded bands, and markers drawn over the plot (e.g. a target/threshold line)."
          },
          {
            "name": "barsLabel",
            "type": "string",
            "required": false,
            "description": "Legend label for the bar series.",
            "default": "'Bars'"
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each X-axis tick label."
          },
          {
            "name": "legend",
            "type": "boolean",
            "required": false,
            "description": "Show the legend."
          },
          {
            "name": "lineLabel",
            "type": "string",
            "required": false,
            "description": "Legend label for the line series.",
            "default": "'Line'"
          },
          {
            "name": "xLabelEvery",
            "type": "number",
            "required": false,
            "description": "Render every Nth category label."
          }
        ],
        "typeDefs": [
          {
            "name": "ComboChartBar",
            "description": "Shape of the `bars` prop.",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              }
            ]
          },
          {
            "name": "ComboChartPoint",
            "description": "Shape of the `line` prop.",
            "fields": [
              {
                "name": "x",
                "type": "number",
                "required": true,
                "description": "Index into `bars` — point `i` is drawn at the centre of bar `i`."
              },
              {
                "name": "y",
                "type": "number",
                "required": true
              }
            ]
          }
        ],
        "tokens": ["--cascivo-chart-1", "--cascivo-chart-2"],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate points)",
            "Home/End (first/last point)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Basic combo chart",
            "code": "import { ComboChart } from '@cascivo/charts'\n\nconst bars = [{label:'Jan',value:100},{label:'Feb',value:120},{label:'Mar',value:90}]\nconst line = [{x:0,y:50},{x:1,y:70},{x:2,y:60}]\n<ComboChart bars={bars} line={line} title=\"Sales vs Target\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "combo", "bar", "line", "dual-axis", "data-viz"],
        "intent": {
          "whenToUse": [
            "Overlaying two related metrics with different scales (e.g. volume bars + rate line)",
            "Pairing categorical totals with a continuous trend on a dual y-axis"
          ],
          "whenNotToUse": [
            "Both metrics share a scale and type — use BarChart or LineChart",
            "More than two series of differing types — clarity breaks down"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use when all series are categorical comparisons"
            },
            {
              "name": "LineChart",
              "relationship": "alternative",
              "reason": "Use when all series are trends on one scale"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/funnel",
      "type": "chart",
      "description": "Vertical conversion funnel — each stage is a trapezoid narrowing toward the next, with optional conversion labels.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "funnel", "conversion", "flow", "data-viz"],
      "meta": {
        "name": "Funnel",
        "description": "Vertical conversion funnel — each stage is a trapezoid narrowing toward the next, with optional conversion labels.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "FunnelStage[]",
            "required": true,
            "description": "Ordered stages (descending): { id, label, value, color? }."
          },
          {
            "name": "title",
            "type": "string",
            "required": true,
            "description": "Chart title (also used as aria-label)."
          },
          {
            "name": "description",
            "type": "string",
            "required": false,
            "description": "Subtitle below the title."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "showConversion",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Append each stage’s % of the first stage to its label."
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover tooltip."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no labels. For micro/inline charts."
          }
        ],
        "typeDefs": [
          {
            "name": "FunnelStage",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "CSS color overriding the positional palette for this stage."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate stages)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Signup conversion funnel",
            "code": "import { Funnel } from '@cascivo/charts'\n\n<Funnel\n  title=\"Signup funnel\"\n  showConversion\n  data={[\n    { id: 'visit', label: 'Visited', value: 8200 },\n    { id: 'signup', label: 'Signed up', value: 3100 },\n    { id: 'active', label: 'Activated', value: 1400 },\n    { id: 'paid', label: 'Paid', value: 520 },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "funnel", "conversion", "flow", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing drop-off across the ordered stages of a process (signup, checkout)",
            "Communicating stage-to-stage conversion at a glance"
          ],
          "whenNotToUse": [
            "Stages are not strictly decreasing — use BarChart",
            "Showing a trend over time — use LineChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use when stages aren’t monotonically decreasing"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/gauge",
      "type": "chart",
      "description": "A speedometer gauge — a value arc over a min–max sweep with threshold zones, ticks, and a needle.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "gauge", "speedometer", "kpi", "data-viz"],
      "meta": {
        "name": "Gauge",
        "description": "A speedometer gauge — a value arc over a min–max sweep with threshold zones, ticks, and a needle.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "number",
            "required": true,
            "description": "The value the needle points to."
          },
          {
            "name": "min",
            "description": "Minimum allowed value.",
            "type": "number",
            "required": false,
            "default": "0"
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false,
            "default": "100"
          },
          {
            "name": "thresholds",
            "type": "{ upTo: number; color: string }[]",
            "required": false,
            "description": "Coloured zones from min upward; the last should reach max."
          },
          {
            "name": "unit",
            "type": "string",
            "required": false,
            "description": "Suffix after the centre value.",
            "default": "''"
          },
          {
            "name": "sweep",
            "type": "number",
            "required": false,
            "default": "270",
            "description": "Total sweep angle in degrees (270 = a speedometer arc)."
          },
          {
            "name": "ticks",
            "type": "number",
            "required": false,
            "default": "5",
            "description": "Major tick count."
          },
          {
            "name": "title",
            "type": "string",
            "required": true,
            "description": "Chart title (also aria-label)."
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "240"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no ticks/labels. For micro/inline charts."
          }
        ],
        "typeDefs": [
          {
            "name": "GaugeThreshold",
            "description": "Shape of the `thresholds` prop.",
            "fields": [
              {
                "name": "upTo",
                "type": "number",
                "required": true,
                "description": "Upper bound of this coloured zone (in value units)."
              },
              {
                "name": "color",
                "type": "string",
                "required": true
              }
            ]
          }
        ],
        "tokens": ["--cascivo-color-accent", "--cascivo-color-foreground", "--cascivo-chart-grid"],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": ["Tab (focus chart)"]
        },
        "examples": [
          {
            "title": "Speedometer with zones",
            "code": "import { Gauge } from '@cascivo/charts'\n\n<Gauge\n  title=\"CPU load\"\n  value={72}\n  unit=\"%\"\n  thresholds={[\n    { upTo: 50, color: 'var(--cascivo-chart-2)' },\n    { upTo: 80, color: 'var(--cascivo-chart-3)' },\n    { upTo: 100, color: 'var(--cascivo-chart-4)' },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "gauge", "speedometer", "kpi", "data-viz"],
        "intent": {
          "whenToUse": [
            "A single value against a range with a needle and threshold zones",
            "Dashboard KPIs where a speedometer metaphor aids quick reading"
          ],
          "whenNotToUse": [
            "Several progress values — use RadialBar",
            "A simple bar against thresholds — use Meter"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Meter",
              "relationship": "alternative",
              "reason": "Use a linear bar for a single value against thresholds"
            },
            {
              "name": "RadialBar",
              "relationship": "alternative",
              "reason": "Use concentric rings for multiple progress values"
            }
          ],
          "a11yRationale": "Renders with role=\"img\"; the value and range are in the fallback table.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/heatmap",
      "type": "chart",
      "description": "Two-dimensional heatmap with band scales and color-mix cell interpolation.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "heatmap", "matrix", "data-viz"],
      "meta": {
        "name": "Heatmap",
        "description": "Two-dimensional heatmap with band scales and color-mix cell interpolation.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "{ x: string; y: string; value: number }[]",
            "required": true,
            "description": "Array of x/y/value triples"
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "visualMap",
            "type": "VisualMapOptions",
            "required": false,
            "description": "Map cell value → CVD-safe colour (continuous or piecewise) via a keyboard-operable legend that filters the visible range."
          },
          {
            "name": "toolbox",
            "type": "boolean | ToolboxOptions",
            "required": false,
            "description": "Render a keyboard-reachable toolbox — PNG/SVG export, a data-view table toggle, and restore (reset the visualMap filter)."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each category/x-axis tick label."
          }
        ],
        "typeDefs": [
          {
            "name": "HeatmapDatum",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "x",
                "type": "string",
                "required": true
              },
              {
                "name": "y",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              }
            ]
          },
          {
            "name": "VisualMapOptions",
            "description": "Shape of the `visualMap` prop.",
            "fields": [
              {
                "name": "min",
                "type": "number",
                "required": true,
                "description": "Domain minimum (value mapped to ramp t=0)."
              },
              {
                "name": "max",
                "type": "number",
                "required": true,
                "description": "Domain maximum (value mapped to ramp t=1)."
              },
              {
                "name": "mode",
                "type": "VisualMode",
                "required": false,
                "description": "`continuous` ramp (default) or `piecewise` buckets."
              },
              {
                "name": "channel",
                "type": "VisualChannel",
                "required": false,
                "description": "Which visual channel(s) the value drives."
              },
              {
                "name": "ramp",
                "type": "RampKind",
                "required": false,
                "description": "Ramp family — CVD-safe `sequential` (default) or `diverging`."
              },
              {
                "name": "pieces",
                "type": "number",
                "required": false,
                "description": "Bucket count for `piecewise` (default 5)."
              },
              {
                "name": "sizeRange",
                "type": "[number, number]",
                "required": false,
                "description": "[min, max] mark radius in px for the `size` channel (default [3, 14])."
              }
            ]
          }
        ],
        "tokens": ["--cascivo-chart-1", "--cascivo-gray-100"],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic heatmap",
            "code": "import { Heatmap } from '@cascivo/charts'\n\nconst data = [\n  {x:'Mon',y:'AM',value:10},{x:'Mon',y:'PM',value:20},\n  {x:'Tue',y:'AM',value:15},{x:'Tue',y:'PM',value:5},\n]\n<Heatmap data={data} title=\"Activity\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "heatmap", "matrix", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing magnitude across two categorical dimensions as a color-coded matrix",
            "Spotting patterns, clusters, or hotspots in dense grid data"
          ],
          "whenNotToUse": [
            "Reading precise values — color encoding is approximate",
            "A single-dimension comparison — use BarChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Treemap",
              "relationship": "alternative",
              "reason": "Use for part-to-whole hierarchical magnitude rather than a grid"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/histogram",
      "type": "chart",
      "description": "Frequency histogram using Freedman–Diaconis binning with hover tooltips.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "histogram", "distribution", "frequency", "data-viz"],
      "meta": {
        "name": "Histogram",
        "description": "Frequency histogram using Freedman–Diaconis binning with hover tooltips.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "number[]",
            "required": true,
            "description": "Array of numeric values to bin"
          },
          {
            "name": "bins",
            "type": "number",
            "required": false,
            "description": "Explicit bin count (defaults to Freedman–Diaconis)"
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "string",
            "required": true,
            "description": "X-axis label — rendered visibly beneath the axis."
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each X-axis tick label."
          }
        ],
        "tokens": ["--cascivo-chart-1"],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic histogram",
            "code": "import { Histogram } from '@cascivo/charts'\n\nconst data = Array.from({length:100}, () => Math.random() * 100)\n<Histogram data={data} title=\"Distribution\" label=\"Value\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "histogram", "distribution", "frequency", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing the frequency distribution of a single continuous variable",
            "Revealing the shape, spread, and skew of binned numeric data"
          ],
          "whenNotToUse": [
            "Comparing discrete labelled categories — use BarChart",
            "Comparing distribution summaries across groups — use Boxplot"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use for discrete categorical values, not binned ranges"
            },
            {
              "name": "Boxplot",
              "relationship": "alternative",
              "reason": "Use to compare distribution summaries across multiple groups"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/kpi",
      "type": "chart",
      "description": "KPI card showing a primary metric with optional delta indicator, icon, and sparkline.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "kpi", "metric", "dashboard", "data-viz"],
      "meta": {
        "name": "Kpi",
        "description": "KPI card showing a primary metric with optional delta indicator, icon, and sparkline.",
        "category": "chart",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "string | number",
            "required": true,
            "description": "Primary metric value"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "type": "string",
            "required": true,
            "description": "Metric label — rendered visibly at the top of the tile."
          },
          {
            "name": "delta",
            "type": "number",
            "required": false,
            "description": "Change value (positive = up, negative = down)"
          },
          {
            "name": "deltaFormat",
            "default": "number",
            "type": "'number' | 'percent' | ((delta: number) => string)",
            "required": false,
            "description": "How to render `delta`. `'percent'` treats it as percentage points and appends `%` (25.6 → +25.6%) — it does not multiply by 100. A function owns the whole string, sign included."
          },
          {
            "name": "goodDirection",
            "type": "'up' | 'down' | 'neutral'",
            "required": false,
            "default": "up",
            "description": "Which direction is *good* for this metric — the colour, independent of the arrow (which follows the sign of `delta`). 'up' (default) suits revenue; use 'down' for errors, latency, cost or churn, where a rise is bad news; 'neutral' keeps the arrow and drops the sentiment colour."
          },
          {
            "name": "deltaLabel",
            "type": "string",
            "required": false,
            "description": "Delta context label (e.g. \"vs last week\")"
          },
          {
            "name": "icon",
            "description": "Icon element rendered in the component.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "sparkline",
            "type": "number[]",
            "required": false,
            "description": "Trend data for embedded sparkline"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-chart-1"],
        "accessibility": {
          "role": "figure",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic KPI card",
            "code": "import { Kpi } from '@cascivo/charts'\n\n<Kpi value=\"$12,400\" label=\"Monthly revenue\" delta={8.2} deltaLabel=\"vs last month\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "kpi", "metric", "dashboard", "data-viz"],
        "intent": {
          "whenToUse": [
            "Highlighting a single headline metric with an optional change delta",
            "Building dashboard summary tiles with an embedded sparkline trend"
          ],
          "whenNotToUse": [
            "Showing a value against a target or range — use Bullet or Meter",
            "Comparing multiple values — use a chart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Sparkline",
              "relationship": "contains",
              "reason": "Embeds a micro-trend alongside the metric value"
            },
            {
              "name": "Bullet",
              "relationship": "alternative",
              "reason": "Use when the metric must be shown against a target"
            }
          ],
          "a11yRationale": "Renders with role=\"figure\" and a labeled metric for screen reader context.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/line-chart",
      "type": "chart",
      "description": "Time-series or numeric line chart with multi-series support, hover tooltip, and legend.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "line", "time-series", "data-viz"],
      "meta": {
        "name": "LineChart",
        "description": "Time-series or numeric line chart with multi-series support, hover tooltip, and legend.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "series",
            "type": "LineChartSeries<Datum>[]",
            "required": true,
            "description": "Array of data series"
          },
          {
            "name": "x",
            "type": "(d: Datum) => number | Date",
            "required": true,
            "description": "X-value accessor. Return a `number` for a numeric axis or a `Date` for a time axis (ticks format as dates). This is a continuous scale — unlike BarChart, whose `x` returns a category `string` (band scale). For discrete categories, use BarChart."
          },
          {
            "name": "y",
            "type": "(d: Datum) => number",
            "required": true,
            "description": "Y-value accessor, applied to every series unless a series sets its own `y`. One x-domain per chart, so `x` is chart-level only; give each series a `y` to plot different fields from one shared data row."
          },
          {
            "name": "title",
            "type": "string",
            "required": true,
            "description": "Chart title (also used as aria-label)"
          },
          {
            "name": "description",
            "type": "string",
            "required": false,
            "description": "Subtitle shown below title"
          },
          {
            "name": "curve",
            "type": "'linear' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | 'natural' | 'basis' | 'cardinal' | 'catmullRom'",
            "required": false,
            "default": "monotone",
            "description": "Line interpolation curve"
          },
          {
            "name": "width",
            "type": "number",
            "required": false,
            "description": "Fixed SVG width (defaults to container width)"
          },
          {
            "name": "height",
            "type": "number",
            "required": false,
            "default": "300",
            "description": "SVG height in px"
          },
          {
            "name": "xTicks",
            "type": "number",
            "required": false,
            "default": "5",
            "description": "Approximate number of X-axis ticks"
          },
          {
            "name": "yTicks",
            "type": "number",
            "required": false,
            "default": "5",
            "description": "Approximate number of Y-axis ticks"
          },
          {
            "name": "format",
            "description": "Format each X-axis tick label; receives the datum's raw x value (number | string | Date). Without it a numeric x renders raw — a Date.now()-scale value renders as 1,785,217,000,000 — and passing Date objects gives a fixed date format, so sub-day buckets all collapse to the same label. Mirrors secondAxis.format on the right.",
            "type": "(value: number | string | Date) => string",
            "required": false
          },
          {
            "name": "legend",
            "type": "boolean",
            "required": false,
            "description": "Show series legend"
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover tooltip"
          },
          {
            "name": "formatTooltip",
            "type": "(datum: Datum, series: LineChartSeries<Datum>) => string",
            "required": false,
            "description": "Custom tooltip formatter"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "annotations",
            "type": "Annotation[]",
            "required": false,
            "description": "Reference lines, shaded bands, and markers drawn over the plot (e.g. a target/threshold line)."
          },
          {
            "name": "labels",
            "type": "boolean | { format?: (v: number) => string; position?: string }",
            "required": false,
            "description": "Print each value as a label on the mark (collision-aware, decorative/aria-hidden)."
          },
          {
            "name": "connectNulls",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Bridge non-finite y gaps instead of breaking the line at them."
          },
          {
            "name": "onSelect",
            "type": "(point: ChartPoint) => void",
            "required": false,
            "description": "Fired when a point is clicked or activated (Enter/Space) — for drill-down."
          },
          {
            "name": "brush",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Show a keyboard-operable Brush below the plot to subset (zoom) the series to a window."
          },
          {
            "name": "dataZoom",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Show a DataZoom slider below the plot — a Brush whose body also pans the window."
          },
          {
            "name": "zoom",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Enable in-plot wheel/drag/keyboard zoom-pan (+/-/0) over the series index window, with a reset control and re-ticked axes."
          },
          {
            "name": "syncId",
            "type": "string",
            "required": false,
            "description": "Connect this chart to others sharing the same id — they mirror the zoom window and hovered x."
          },
          {
            "name": "tooltipMode",
            "type": "'item' | 'axis'",
            "required": false,
            "default": "item",
            "description": "Tooltip trigger — item (nearest point) or axis (a crosshair + a shared tooltip listing every series at the hovered x)."
          },
          {
            "name": "decimate",
            "type": "boolean | { method?: 'lttb' | 'minmax'; threshold?: number }",
            "required": false,
            "description": "Downsample dense series before drawing (LTTB or min-max). Visual only — the fallback table keeps the full data."
          },
          {
            "name": "toolbox",
            "type": "boolean | ToolboxOptions",
            "required": false,
            "description": "Render a keyboard-reachable toolbox — PNG/SVG export, a data-view table toggle, and restore (reset zoom)."
          },
          {
            "name": "transition",
            "type": "boolean | { duration?: number; easing?: string; properties?: string[] }",
            "required": false,
            "description": "Tune the reduced-motion-gated enter/update transitions (false disables). Always suppressed under prefers-reduced-motion."
          },
          {
            "name": "onBeforeDraw",
            "type": "(ctx: { width: number; height: number }) => ReactNode",
            "required": false,
            "description": "Render custom SVG behind the marks (watermark/region) — a lightweight extension seam."
          },
          {
            "name": "onAfterDraw",
            "type": "(ctx: { width: number; height: number }) => ReactNode",
            "required": false,
            "description": "Render custom SVG over the marks (overlay/extra series) — a lightweight extension seam."
          },
          {
            "name": "secondAxis",
            "type": "{ label?: string; format?: (value: number) => string }",
            "required": false,
            "description": "Add a right-hand y-axis for series with `axis: 'right'` (e.g."
          }
        ],
        "typeDefs": [
          {
            "name": "LineChartSeries",
            "description": "Shape of the `series` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "data",
                "type": "readonly Datum[]",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "Series colour."
              },
              {
                "name": "axis",
                "type": "'left' | 'right'",
                "required": false,
                "description": "Which y-axis this series is measured against."
              },
              {
                "name": "y",
                "type": "(d: Datum) => number",
                "required": false,
                "description": "Per-series Y accessor."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate points)",
            "Home/End (first/last point)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Basic line chart",
            "code": "import { LineChart } from '@cascivo/charts'\n\nconst series = [{ id: 'a', label: 'Revenue', data: [{x:1,y:10},{x:2,y:20},{x:3,y:15}] }]\n<LineChart series={series} x={d => d.x} y={d => d.y} title=\"Revenue\" />"
          },
          {
            "title": "With an SLO target line",
            "code": "<LineChart\n  series={series}\n  x={d => d.x}\n  y={d => d.y}\n  title=\"Latency\"\n  annotations={[{ kind: 'line', axis: 'y', value: 200, label: 'SLO' }]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "line", "time-series", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing trends and precise values over continuous time or a numeric range",
            "Comparing the trajectory of multiple series on a shared scale"
          ],
          "whenNotToUse": [
            "Comparing discrete categories — use BarChart",
            "Emphasising cumulative volume — use AreaChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AreaChart",
              "relationship": "alternative",
              "reason": "Use when filled cumulative volume matters more than precise values"
            },
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use for discrete categorical comparison"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/meter",
      "type": "chart",
      "description": "Progress meter in bar or gauge variant with threshold coloring.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "meter", "gauge", "progress", "data-viz"],
      "meta": {
        "name": "Meter",
        "description": "Progress meter in bar or gauge variant with threshold coloring.",
        "category": "chart",
        "clientJs": "none",
        "states": [],
        "variants": ["bar", "gauge"],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "number",
            "required": true,
            "description": "Current value"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "string",
            "required": true
          },
          {
            "name": "min",
            "description": "Minimum allowed value.",
            "type": "number",
            "required": false,
            "default": "0"
          },
          {
            "name": "max",
            "description": "Maximum allowed value.",
            "type": "number",
            "required": false,
            "default": "100"
          },
          {
            "name": "variant",
            "description": "`bar` draws a straight horizontal track; `gauge` draws a half-donut dial.",
            "type": "'bar' | 'gauge'",
            "required": false,
            "default": "bar"
          },
          {
            "name": "thresholds",
            "type": "MeterThresholds",
            "required": false,
            "description": "Color breakpoints"
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false
          }
        ],
        "typeDefs": [
          {
            "name": "MeterThresholds",
            "description": "Shape of the `thresholds` prop.",
            "fields": [
              {
                "name": "warning",
                "type": "number",
                "required": false
              },
              {
                "name": "critical",
                "type": "number",
                "required": false
              }
            ]
          }
        ],
        "tokens": ["--cascivo-chart-1"],
        "accessibility": {
          "role": "meter",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic meter",
            "code": "import { Meter } from '@cascivo/charts'\n\n<Meter value={72} label=\"CPU usage\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "meter", "gauge", "progress", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing a rated or gauged value within a known min/max range",
            "Surfacing threshold-based status (e.g. CPU, disk, score) as a bar or gauge"
          ],
          "whenNotToUse": [
            "Showing task completion progress — use a ProgressBar",
            "Comparing a value against a target with range bands — use Bullet"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Bullet",
              "relationship": "alternative",
              "reason": "Use when a target marker and qualitative bands are needed"
            },
            {
              "name": "Kpi",
              "relationship": "alternative",
              "reason": "Use for a headline metric without a bounded range"
            }
          ],
          "a11yRationale": "Renders with role=\"meter\" exposing min, max, and current value to assistive tech.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/pie-chart",
      "type": "chart",
      "description": "Pie or donut chart with hover segments and optional legend.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "pie", "donut", "data-viz"],
      "meta": {
        "name": "PieChart",
        "description": "Pie or donut chart with hover segments and optional legend.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": ["pie", "donut"],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "PieChartDatum[]",
            "required": true,
            "description": "Array of { id, label, value, color? } datums. Optional per-datum `color` (any CSS color) overrides the positional palette for that slice."
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "donut",
            "type": "boolean",
            "required": false,
            "description": "Render as donut chart",
            "default": "false"
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "size",
            "type": "number",
            "required": false,
            "description": "Square shorthand: sets width === height. Explicit width/height win."
          },
          {
            "name": "thickness",
            "type": "number",
            "required": false,
            "description": "Ring width in px (donut only); defaults to 0.4 × radius."
          },
          {
            "name": "innerRadius",
            "type": "number",
            "required": false,
            "description": "Inner radius in px (donut only); takes precedence over thickness; clamped to [0, outerRadius)."
          },
          {
            "name": "centerValue",
            "type": "string",
            "required": false,
            "description": "Center value text rendered in the donut hole (donut only)."
          },
          {
            "name": "centerLabel",
            "type": "string",
            "required": false,
            "description": "Center label text rendered below the value (donut only)."
          },
          {
            "name": "centerSlot",
            "type": "ReactNode",
            "required": false,
            "description": "Arbitrary content for the donut hole; takes precedence over centerValue/centerLabel."
          },
          {
            "name": "emptyLabel",
            "type": "string",
            "required": false,
            "description": "Visible placeholder text when data is empty. Defaults to the i18n \"No data\"."
          },
          {
            "name": "tooltipFormat",
            "type": "(p: ChartPoint) => string",
            "required": false,
            "description": "Custom tooltip formatter. Defaults to \"value (pct%)\" in the slice color."
          },
          {
            "name": "legend",
            "description": "Whether to show the legend.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "labels",
            "type": "boolean | { format?: (v: number) => string; position?: string }",
            "required": false,
            "description": "Print each value as a label on the mark (collision-aware, decorative/aria-hidden)."
          },
          {
            "name": "onSelect",
            "type": "(point: ChartPoint) => void",
            "required": false,
            "description": "Fired when a point is clicked or activated (Enter/Space) — for drill-down."
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "Show tooltips. Parity with Area/Bar/Line/Combo, which all take this."
          }
        ],
        "typeDefs": [
          {
            "name": "PieChartDatum",
            "description": "One slice. Pass via the `data` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true,
                "description": "Stable identity (used for legend toggle state)."
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "Any CSS color overriding the positional palette (--cascivo-chart-N) for this slice."
              }
            ]
          },
          {
            "name": "ChartPoint",
            "description": "Argument passed to the `tooltipFormat` callback.",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Slice label."
              },
              {
                "name": "value",
                "type": "number | string",
                "required": true
              },
              {
                "name": "percent",
                "type": "number",
                "required": false,
                "description": "Share of the whole, 0–100. Used by the default \"value (pct%)\" formatter."
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "Resolved slice color (the default tooltip tints its text with this)."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic pie chart",
            "code": "import { PieChart } from '@cascivo/charts'\n\n<PieChart data={[{id:'a',label:'A',value:60},{id:'b',label:'B',value:40}]} title=\"Market share\" />"
          },
          {
            "title": "Donut with center total and custom thickness",
            "code": "import { PieChart } from '@cascivo/charts'\n\n<PieChart\n  donut\n  size={220}\n  thickness={28}\n  centerValue=\"142\"\n  centerLabel=\"Total tasks\"\n  data={[\n    { id: 'done', label: 'Done', value: 92, color: 'var(--cascivo-color-success)' },\n    { id: 'wip', label: 'In progress', value: 34, color: 'var(--cascivo-color-warning)' },\n    { id: 'blocked', label: 'Blocked', value: 16, color: 'var(--cascivo-color-destructive)' },\n  ]}\n  title=\"Task status\"\n/>"
          },
          {
            "title": "Percentage tooltip + empty state",
            "code": "import { PieChart } from '@cascivo/charts'\n\n// Default tooltip shows \"value (pct%)\" in the slice color; pass tooltipFormat to override.\n<PieChart data={[{id:'a',label:'A',value:60},{id:'b',label:'B',value:40}]} title=\"Share\" />\n\n// Empty data renders a visible \"No data\" placeholder (override via emptyLabel).\n<PieChart data={[]} title=\"Share\" emptyLabel=\"Nothing tracked yet\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "pie", "donut", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing part-of-whole proportions with five or fewer slices",
            "A single composition at one point in time"
          ],
          "whenNotToUse": [
            "Comparing precise values or many categories — use BarChart",
            "Showing change over time — use LineChart or AreaChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use when comparing more than five categories or precise values"
            },
            {
              "name": "Treemap",
              "relationship": "alternative",
              "reason": "Use for part-to-whole with many or hierarchical segments"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/polar",
      "type": "chart",
      "description": "A polar coordinate plot — categories around the circle, value as radius. Bars (a rose), or a polar line/area.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "polar", "rose", "radial", "data-viz"],
      "meta": {
        "name": "Polar",
        "description": "A polar coordinate plot — categories around the circle, value as radius. Bars (a rose), or a polar line/area.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "PolarDatum[]",
            "required": true,
            "description": "One entry per category: { label, value, color? }."
          },
          {
            "name": "title",
            "type": "string",
            "required": true,
            "description": "Chart title (also aria-label)."
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "mode",
            "type": "'bar' | 'line' | 'area'",
            "required": false,
            "default": "bar",
            "description": "Bars (rose), a polar line, or a filled polar area."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "rings",
            "type": "number",
            "required": false,
            "default": "4",
            "description": "Radial ring count."
          },
          {
            "name": "max",
            "type": "number",
            "required": false,
            "description": "Domain top (full radius). Defaults to the largest value."
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover tooltip."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no rings or labels. For micro/inline charts."
          }
        ],
        "typeDefs": [
          {
            "name": "PolarDatum",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8",
          "--cascivo-chart-grid"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Wind rose",
            "code": "import { Polar } from '@cascivo/charts'\n\n<Polar\n  title=\"Wind by direction\"\n  mode=\"bar\"\n  tooltip\n  data={[\n    { label: 'N', value: 12 },\n    { label: 'E', value: 8 },\n    { label: 'S', value: 5 },\n    { label: 'W', value: 15 },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "polar", "rose", "radial", "data-viz"],
        "intent": {
          "whenToUse": [
            "Cyclical/directional categories where the circle is meaningful (wind, hours, months)",
            "A rose chart comparing a value across directions"
          ],
          "whenNotToUse": [
            "Precise magnitude comparison — use BarChart",
            "Multi-metric profiles on shared axes — use Radar"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Radar",
              "relationship": "alternative",
              "reason": "Use to compare several series across the same axes"
            },
            {
              "name": "RadialBar",
              "relationship": "alternative",
              "reason": "Use concentric rings for progress-to-goal"
            }
          ],
          "a11yRationale": "Renders with role=\"img\"; values are in the fallback table.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/radar",
      "type": "chart",
      "description": "Radar / spider chart with polar grid rings, spokes, and multi-series polygon overlays.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "radar", "spider", "polar", "data-viz"],
      "meta": {
        "name": "Radar",
        "description": "Radar / spider chart with polar grid rings, spokes, and multi-series polygon overlays.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "axes",
            "type": "string[]",
            "required": true,
            "description": "Axis labels (one per dimension)"
          },
          {
            "name": "series",
            "type": "{ id: string; label: string; values: number[] }[]",
            "required": true,
            "description": "One value per axis per series"
          },
          {
            "name": "max",
            "type": "number",
            "required": false,
            "description": "Maximum value (defaults to data max)"
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          }
        ],
        "typeDefs": [
          {
            "name": "RadarSeries",
            "description": "Shape of the `series` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "values",
                "type": "number[]",
                "required": true
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic radar chart",
            "code": "import { Radar } from '@cascivo/charts'\n\nconst axes = ['Speed','Power','Range','Efficiency','Cost']\nconst series = [{ id:'a', label:'Model A', values:[80,70,60,90,50] }]\n<Radar axes={axes} series={series} title=\"Model comparison\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "radar", "spider", "polar", "data-viz"],
        "intent": {
          "whenToUse": [
            "Comparing several entities across the same set of quantitative dimensions",
            "Showing a multi-attribute profile or balance at a glance"
          ],
          "whenNotToUse": [
            "Precise value reading — polar axes distort comparison",
            "More than a few series — overlapping polygons become unreadable"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "BarChart",
              "relationship": "alternative",
              "reason": "Use when precise per-dimension comparison matters"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/radial-bar",
      "type": "chart",
      "description": "Concentric radial bars (a circular gauge family) — each datum is a ring whose sweep is proportional to its value.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "radial", "gauge", "progress", "data-viz"],
      "meta": {
        "name": "RadialBar",
        "description": "Concentric radial bars (a circular gauge family) — each datum is a ring whose sweep is proportional to its value.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "RadialBarDatum[]",
            "required": true,
            "description": "One ring per datum: { id, label, value, color? }."
          },
          {
            "name": "title",
            "type": "string",
            "required": true,
            "description": "Chart title (also used as aria-label)."
          },
          {
            "name": "description",
            "type": "string",
            "required": false,
            "description": "Subtitle below the title."
          },
          {
            "name": "size",
            "type": "number",
            "required": false,
            "description": "Square shorthand (width === height). Explicit width/height win."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "max",
            "type": "number",
            "required": false,
            "description": "Domain top — the value a full sweep represents. Defaults to the largest datum."
          },
          {
            "name": "sweep",
            "type": "number",
            "required": false,
            "default": "270",
            "description": "Sweep angle in degrees (270 = a gauge arc; 360 = a full ring)."
          },
          {
            "name": "centerValue",
            "type": "string",
            "required": false,
            "description": "Text in the hole."
          },
          {
            "name": "centerLabel",
            "type": "string",
            "required": false,
            "description": "Caption below centerValue."
          },
          {
            "name": "centerSlot",
            "type": "ReactNode",
            "required": false,
            "description": "Arbitrary hole content; wins over centerValue/centerLabel."
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover tooltip."
          },
          {
            "name": "legend",
            "type": "boolean",
            "required": false,
            "description": "Show ring legend."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no legend. For micro/inline charts."
          }
        ],
        "typeDefs": [
          {
            "name": "RadialBarDatum",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false,
                "description": "CSS color overriding the positional palette for this ring."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8",
          "--cascivo-chart-grid"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate rings)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Goal progress rings",
            "code": "import { RadialBar } from '@cascivo/charts'\n\n<RadialBar\n  title=\"Quarterly goals\"\n  max={100}\n  centerValue=\"72%\"\n  centerLabel=\"On track\"\n  data={[\n    { id: 'rev', label: 'Revenue', value: 84 },\n    { id: 'nps', label: 'NPS', value: 61 },\n    { id: 'ret', label: 'Retention', value: 72 },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "radial", "gauge", "progress", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing a few progress-to-goal values in a compact circular form",
            "A dashboard KPI cluster where each metric is a ring toward its target"
          ],
          "whenNotToUse": [
            "Comparing many categories precisely — use BarChart",
            "Part-of-whole of a single total — use PieChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Meter",
              "relationship": "alternative",
              "reason": "Use for a single value against thresholds"
            },
            {
              "name": "PieChart",
              "relationship": "alternative",
              "reason": "Use for part-of-whole proportions of one total"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/sankey",
      "type": "chart",
      "description": "Flow diagram — ranked nodes connected by throughput-sized link ribbons.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "sankey", "flow", "network", "data-viz"],
      "meta": {
        "name": "Sankey",
        "description": "Flow diagram — ranked nodes connected by throughput-sized link ribbons.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "nodes",
            "type": "SankeyNode[]",
            "required": true,
            "description": "Nodes: { id, label, color? }."
          },
          {
            "name": "links",
            "type": "SankeyLink[]",
            "required": true,
            "description": "Links: { source, target, value }."
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "tooltip",
            "description": "Whether to show tooltips on hover.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "description": "When true, renders a minimal variant without chart chrome.",
            "type": "boolean",
            "required": false,
            "default": "false"
          }
        ],
        "typeDefs": [
          {
            "name": "SankeyLink",
            "description": "Shape of the `links` prop.",
            "fields": [
              {
                "name": "source",
                "type": "string",
                "required": true
              },
              {
                "name": "target",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              }
            ]
          },
          {
            "name": "SankeyNode",
            "description": "Shape of the `nodes` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate nodes)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Sankey flow",
            "code": "import { Sankey } from '@cascivo/charts'\n\n<Sankey\n  title=\"Traffic flow\"\n  nodes={[{ id: 'a', label: 'Search' }, { id: 'b', label: 'Home' }, { id: 'c', label: 'Signup' }]}\n  links={[{ source: 'a', target: 'b', value: 30 }, { source: 'b', target: 'c', value: 12 }]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "sankey", "flow", "network", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing flow/throughput between stages or categories",
            "Visualizing where volume splits and merges"
          ],
          "whenNotToUse": [
            "Strict ordered stages with one path — use Funnel",
            "Arbitrary node/edge graphs — use @cascivo/flow"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Funnel",
              "relationship": "alternative",
              "reason": "Use for a single decreasing path"
            }
          ],
          "a11yRationale": "Renders role=\"img\" with a title and a fallback from/to/value table.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/scatter-chart",
      "type": "chart",
      "description": "Scatter plot with variable point radius, multi-series, and hover tooltip.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "scatter", "plot", "data-viz"],
      "meta": {
        "name": "ScatterChart",
        "description": "Scatter plot with variable point radius, multi-series, and hover tooltip.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "series",
            "description": "The data series to plot.",
            "type": "ScatterChartSeries[]",
            "required": true
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "r",
            "type": "number | ((d: ScatterDatum) => number)",
            "required": false,
            "default": "4",
            "description": "Point radius or accessor"
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "xTicks",
            "description": "Approximate number of ticks on the x-axis.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "yTicks",
            "description": "Approximate number of ticks on the y-axis.",
            "type": "number",
            "required": false,
            "default": "5"
          },
          {
            "name": "legend",
            "description": "Whether to show the legend.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "tooltip",
            "type": "boolean",
            "required": false,
            "description": "Enable hover/keyboard tooltip"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          },
          {
            "name": "annotations",
            "type": "Annotation[]",
            "required": false,
            "description": "Reference lines, shaded bands, and markers drawn over the plot (e.g. a target/threshold line)."
          },
          {
            "name": "onSelect",
            "type": "(point: ChartPoint) => void",
            "required": false,
            "description": "Fired when a point is clicked or activated (Enter/Space) — for drill-down."
          },
          {
            "name": "glyph",
            "type": "GlyphShape | ((d, seriesId) => GlyphShape)",
            "required": false,
            "description": "Point glyph shape (circle/square/diamond/triangle/cross/star) — a fixed shape or a function to encode a category by shape."
          },
          {
            "name": "renderer",
            "type": "'svg' | 'canvas' | 'auto'",
            "required": false,
            "default": "svg",
            "description": "Renderer — svg (default), canvas (force), or auto (canvas past ~2000 points). Canvas keeps the full a11y fallback table + keyboard layer."
          },
          {
            "name": "visualMap",
            "type": "VisualMapOptions",
            "required": false,
            "description": "Map each point’s y → CVD-safe colour and/or size via a keyboard-operable legend that filters the visible range."
          },
          {
            "name": "toolbox",
            "type": "boolean | ToolboxOptions",
            "required": false,
            "description": "Render a keyboard-reachable toolbox — PNG/SVG export, a data-view table toggle, and restore (reset the visualMap filter)."
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each X-axis tick label."
          }
        ],
        "typeDefs": [
          {
            "name": "ScatterChartSeries",
            "description": "Shape of the `series` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "data",
                "type": "readonly ScatterDatum[]",
                "required": true
              },
              {
                "name": "color",
                "type": "string",
                "required": false
              }
            ]
          },
          {
            "name": "VisualMapOptions",
            "description": "Shape of the `visualMap` prop.",
            "fields": [
              {
                "name": "min",
                "type": "number",
                "required": true,
                "description": "Domain minimum (value mapped to ramp t=0)."
              },
              {
                "name": "max",
                "type": "number",
                "required": true,
                "description": "Domain maximum (value mapped to ramp t=1)."
              },
              {
                "name": "mode",
                "type": "VisualMode",
                "required": false,
                "description": "`continuous` ramp (default) or `piecewise` buckets."
              },
              {
                "name": "channel",
                "type": "VisualChannel",
                "required": false,
                "description": "Which visual channel(s) the value drives."
              },
              {
                "name": "ramp",
                "type": "RampKind",
                "required": false,
                "description": "Ramp family — CVD-safe `sequential` (default) or `diverging`."
              },
              {
                "name": "pieces",
                "type": "number",
                "required": false,
                "description": "Bucket count for `piecewise` (default 5)."
              },
              {
                "name": "sizeRange",
                "type": "[number, number]",
                "required": false,
                "description": "[min, max] mark radius in px for the `size` channel (default [3, 14])."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate points)",
            "Home/End (first/last point)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Basic scatter chart",
            "code": "import { ScatterChart } from '@cascivo/charts'\n\nconst series = [{ id: 'a', label: 'Group A', data: [{x:1,y:2},{x:3,y:4}] }]\n<ScatterChart series={series} title=\"Scatter\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "scatter", "plot", "data-viz"],
        "intent": {
          "whenToUse": [
            "Revealing correlation or clustering between two numeric variables",
            "Plotting many individual observations across a 2D space"
          ],
          "whenNotToUse": [
            "Encoding a third magnitude dimension — use BubbleChart",
            "Showing a trend over ordered time — use LineChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "BubbleChart",
              "relationship": "alternative",
              "reason": "Use when a third size dimension must be encoded"
            },
            {
              "name": "LineChart",
              "relationship": "alternative",
              "reason": "Use when points form an ordered trend over time"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/sparkline",
      "type": "chart",
      "description": "Compact inline sparkline for embedding trend data in dashboards or KPI cards.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "sparkline", "inline", "trend", "data-viz"],
      "meta": {
        "name": "Sparkline",
        "description": "Compact inline sparkline for embedding trend data in dashboards or KPI cards.",
        "category": "chart",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "number[]",
            "required": true,
            "description": "Array of numeric values"
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible name for the chart (invisible — rendered as the SVG `<title>`)."
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Alias for `label` (the catalog convention for an invisible accessible name). Both work; pass exactly one."
          },
          {
            "name": "width",
            "description": "SVG width in px. **This chart is fixed-width by default** — it is a compact, inline chart meant to sit in a table cell or beside a label, so omitting `width` gives you 120px rather than a container-filling chart. Pass a number to change it. The catalogue-wide \"omit for a responsive chart\" note does not apply to this chart.",
            "type": "number",
            "required": false,
            "default": "120"
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "32"
          },
          {
            "name": "color",
            "type": "string",
            "required": false,
            "description": "Stroke color (CSS value)",
            "default": "'var(--cascivo-chart-1)'"
          },
          {
            "name": "endDot",
            "type": "boolean",
            "required": false,
            "description": "Show dot at last data point",
            "default": "true"
          }
        ],
        "tokens": ["--cascivo-chart-1"],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Inline sparkline",
            "code": "import { Sparkline } from '@cascivo/charts'\n\n<Sparkline data={[10, 20, 15, 30, 25]} label=\"Trend\" endDot />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "sparkline", "inline", "trend", "data-viz"],
        "intent": {
          "whenToUse": [
            "Embedding a compact micro-trend inline in text, tables, or KPI cards",
            "Conveying direction at a glance where a full chart would be too large"
          ],
          "whenNotToUse": [
            "Reading precise values or axes are needed — use LineChart",
            "As a standalone primary chart with its own panel"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "LineChart",
              "relationship": "alternative",
              "reason": "Use as a full chart when axes and tooltips are needed"
            },
            {
              "name": "Kpi",
              "relationship": "contained-by",
              "reason": "Commonly embedded inside a KPI card as a trend indicator"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a label prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/stream",
      "type": "chart",
      "description": "Streamgraph — stacked areas on a centered (silhouette) flowing baseline.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "stream", "streamgraph", "area", "data-viz"],
      "meta": {
        "name": "Stream",
        "description": "Streamgraph — stacked areas on a centered (silhouette) flowing baseline.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "series",
            "type": "StreamSeries[]",
            "required": true,
            "description": "Series, each with values[] aligned to categories."
          },
          {
            "name": "categories",
            "type": "(string | number)[]",
            "required": true,
            "description": "X-axis labels aligned with each series values."
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "offset",
            "type": "'silhouette' | 'zero'",
            "required": false,
            "default": "silhouette",
            "description": "silhouette centers the stack (streamgraph); zero is a baseline stack."
          },
          {
            "name": "curve",
            "type": "Curve",
            "required": false,
            "default": "basis",
            "description": "Interpolation curve."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "legend",
            "description": "Whether to show the legend.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "tooltip",
            "description": "Whether to show tooltips on hover.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "description": "When true, renders a minimal variant without chart chrome.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "format",
            "type": "(value: number | string | Date) => string",
            "required": false,
            "description": "Format each category/x-axis tick label."
          }
        ],
        "typeDefs": [
          {
            "name": "StreamSeries",
            "description": "Shape of the `series` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "values",
                "type": "number[]",
                "required": true,
                "description": "One value per category, aligned with `categories`."
              },
              {
                "name": "color",
                "type": "string",
                "required": false
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Streamgraph",
            "code": "import { Stream } from '@cascivo/charts'\n\n<Stream\n  title=\"Topics over time\"\n  categories={['Jan','Feb','Mar','Apr']}\n  series={[\n    { id: 'a', label: 'A', values: [4, 6, 5, 8] },\n    { id: 'b', label: 'B', values: [2, 3, 7, 4] },\n  ]}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "stream", "streamgraph", "area", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing how several series ebb and flow over time as proportions of a whole",
            "An organic, aesthetic alternative to a stacked area chart"
          ],
          "whenNotToUse": [
            "Reading precise values — use LineChart or AreaChart",
            "Few categories with exact comparison — use BarChart"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AreaChart",
              "relationship": "alternative",
              "reason": "Use a zero-baseline stacked area for precise reading"
            }
          ],
          "a11yRationale": "Renders role=\"img\" with a title and a fallback data table.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/sunburst",
      "type": "chart",
      "description": "Radial hierarchy — concentric rings where each node is an annular segment sized by value.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "sunburst", "hierarchy", "radial", "data-viz"],
      "meta": {
        "name": "Sunburst",
        "description": "Radial hierarchy — concentric rings where each node is an annular segment sized by value.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "type": "HierNode",
            "required": true,
            "description": "Root of the tree; leaves carry value, parents sum their children."
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "size",
            "type": "number",
            "required": false,
            "description": "Square shorthand (width === height)."
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "300"
          },
          {
            "name": "tooltip",
            "description": "Whether to show tooltips on hover.",
            "type": "boolean",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "description": "When true, renders a minimal variant without chart chrome.",
            "type": "boolean",
            "required": false,
            "default": "false"
          }
        ],
        "typeDefs": [
          {
            "name": "HierNode",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": false
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": false
              },
              {
                "name": "color",
                "type": "string",
                "required": false
              },
              {
                "name": "children",
                "type": "HierNode[]",
                "required": false
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus chart)",
            "ArrowLeft/ArrowRight (navigate nodes)",
            "Escape (clear focus)"
          ]
        },
        "examples": [
          {
            "title": "Sunburst",
            "code": "import { Sunburst } from '@cascivo/charts'\n\n<Sunburst\n  title=\"Disk usage\"\n  data={{ label: 'root', children: [\n    { label: 'src', children: [{ label: 'app', value: 40 }, { label: 'lib', value: 25 }] },\n    { label: 'docs', value: 15 },\n  ] }}\n/>"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "sunburst", "hierarchy", "radial", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing a part-of-whole hierarchy across multiple levels",
            "A radial alternative to a Treemap for nested proportions"
          ],
          "whenNotToUse": [
            "A flat set of proportions — use PieChart",
            "Precise leaf comparison — use a Treemap or bars"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Treemap",
              "relationship": "alternative",
              "reason": "Use the rectilinear layout for dense leaves"
            }
          ],
          "a11yRationale": "Renders role=\"img\" with a title and a fallback path/value table.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "chart/treemap",
      "type": "chart",
      "description": "Squarified treemap for visualizing part-to-whole hierarchical data.",
      "category": "chart",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/charts"],
      "peerVersions": {
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["chart", "treemap", "hierarchy", "part-to-whole", "data-viz"],
      "meta": {
        "name": "Treemap",
        "description": "Squarified treemap for visualizing part-to-whole hierarchical data.",
        "category": "chart",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "data",
            "description": "The hierarchical data to render as nested rectangles.",
            "type": "{ id: string; label: string; value: number }[]",
            "required": true
          },
          {
            "name": "title",
            "description": "Title text for the component.",
            "type": "string",
            "required": true
          },
          {
            "name": "description",
            "description": "Supporting description text.",
            "type": "string",
            "required": false
          },
          {
            "name": "width",
            "description": "Fixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.",
            "type": "number",
            "required": false
          },
          {
            "name": "height",
            "description": "SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.",
            "type": "number",
            "required": false,
            "default": "320"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "plain",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Marks only — no axes, grid lines, or legend. For micro/inline charts."
          }
        ],
        "typeDefs": [
          {
            "name": "TreemapDatum",
            "description": "Shape of the `data` prop.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "label",
                "type": "string",
                "required": true
              },
              {
                "name": "value",
                "type": "number",
                "required": true
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-chart-1",
          "--cascivo-chart-2",
          "--cascivo-chart-3",
          "--cascivo-chart-4",
          "--cascivo-chart-5",
          "--cascivo-chart-6",
          "--cascivo-chart-7",
          "--cascivo-chart-8"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Basic treemap",
            "code": "import { Treemap } from '@cascivo/charts'\n\nconst data = [\n  {id:'a',label:'Alpha',value:40},\n  {id:'b',label:'Beta',value:25},\n  {id:'c',label:'Gamma',value:20},\n  {id:'d',label:'Delta',value:15},\n]\n<Treemap data={data} title=\"Market share\" />"
          }
        ],
        "dependencies": ["@cascivo/charts"],
        "tags": ["chart", "treemap", "hierarchy", "part-to-whole", "data-viz"],
        "intent": {
          "whenToUse": [
            "Showing part-to-whole proportions across many segments in a compact area",
            "Visualising hierarchical magnitude where slice size encodes value"
          ],
          "whenNotToUse": [
            "Few segments where a simple split reads better — use PieChart for ≤5",
            "Precise value comparison — area encoding is approximate"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "PieChart",
              "relationship": "alternative",
              "reason": "Use for part-of-whole with five or fewer flat segments"
            },
            {
              "name": "Heatmap",
              "relationship": "alternative",
              "reason": "Use for magnitude across a two-dimensional grid"
            }
          ],
          "a11yRationale": "Renders with role=\"img\" and requires a title prop for screen reader labeling.",
          "flexibility": []
        }
      },
      "install": "@cascivo/charts",
      "styles": "@cascivo/charts/styles.css",
      "channels": ["npm:@cascivo/charts"]
    },
    {
      "name": "editor/code-editor",
      "type": "editor",
      "description": "Lightweight code editor — a native textarea overlaid on a syntax-highlighted layer, with line numbers and Tab indent.",
      "category": "inputs",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["editor", "code", "syntax-highlighting", "textarea", "inputs"],
      "meta": {
        "name": "CodeEditor",
        "description": "Lightweight code editor — a native textarea overlaid on a syntax-highlighted layer, with line numbers and Tab indent.",
        "category": "inputs",
        "clientJs": "required",
        "states": ["default"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "string",
            "required": false,
            "description": "Controlled value"
          },
          {
            "name": "defaultValue",
            "type": "string",
            "required": false,
            "description": "Initial value for uncontrolled use"
          },
          {
            "name": "onValueChange",
            "type": "(value: string) => void",
            "required": false,
            "description": "Called with the new text on every edit"
          },
          {
            "name": "language",
            "type": "string",
            "required": false,
            "default": "plaintext",
            "description": "Grammar name (plaintext/json/javascript/typescript/css/html/markdown/bash)"
          },
          {
            "name": "lineNumbers",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "Show the line-number gutter"
          },
          {
            "name": "tabSize",
            "type": "number",
            "required": false,
            "default": "2",
            "description": "Spaces per tab stop"
          },
          {
            "name": "insertSpaces",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "Insert spaces vs a literal tab on Tab"
          },
          {
            "name": "wrap",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Soft-wrap long lines instead of scrolling horizontally"
          },
          {
            "name": "readOnly",
            "description": "When true, the value is shown but cannot be edited.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "disabled",
            "description": "When true, disables the control and removes it from the tab order.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "placeholder",
            "description": "Placeholder text shown when the field is empty.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible label (defaults to the i18n \"Code editor\")"
          },
          {
            "name": "onSave",
            "type": "(value: string) => void",
            "required": false,
            "description": "Called on Mod-S; the browser save dialog is suppressed"
          },
          {
            "name": "bracketMatching",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Highlight the bracket matching the one adjacent to the caret"
          },
          {
            "name": "theme",
            "type": "EditorTheme",
            "required": false,
            "description": "Per-instance --cascivo-editor-* overrides; swapping it re-themes live"
          },
          {
            "name": "keymap",
            "type": "KeyMap",
            "required": false,
            "description": "Extra key bindings merged over the built-ins (user wins on a chord)"
          },
          {
            "name": "decorations",
            "type": "Decoration[] | ((value: string) => Decoration[])",
            "required": false,
            "description": "Extra offset-range → CSS class decorations"
          },
          {
            "name": "commands",
            "type": "SlashCommand[]",
            "required": false,
            "description": "Slash-command entries; typing \"/\" opens a filtered menu. Omit to disable."
          },
          {
            "name": "ref",
            "type": "Ref<CodeEditorHandle>",
            "required": false,
            "description": "Imperative handle: applyEdit / getSelection / focus / undo / redo / openFind / openCommandMenu"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "virtualize",
            "type": "boolean",
            "required": false,
            "description": "Render only the visible lines for large documents."
          }
        ],
        "typeDefs": [
          {
            "name": "SlashCommand",
            "description": "A slash-command entry.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true,
                "description": "Stable id (menu key)."
              },
              {
                "name": "label",
                "type": "string",
                "required": true,
                "description": "Shown in the menu and matched against the query."
              },
              {
                "name": "hint",
                "type": "string",
                "required": false,
                "description": "Optional right-aligned hint (e.g."
              },
              {
                "name": "keywords",
                "type": "readonly string[]",
                "required": false,
                "description": "Extra match terms beyond the label."
              },
              {
                "name": "insert",
                "type": "string",
                "required": false,
                "description": "Text inserted in place of the `/query` (an undoable edit)."
              },
              {
                "name": "run",
                "type": "(editor: CodeEditorHandle) => void",
                "required": false,
                "description": "Side effect run after the `/query` is removed (receives the editor handle)."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-editor-bg",
          "--cascivo-editor-fg",
          "--cascivo-editor-gutter-bg",
          "--cascivo-editor-gutter-fg",
          "--cascivo-editor-gutter-active",
          "--cascivo-editor-gutter-width",
          "--cascivo-editor-gutter-gap",
          "--cascivo-editor-current-line",
          "--cascivo-editor-selection",
          "--cascivo-editor-border",
          "--cascivo-editor-match",
          "--cascivo-editor-match-current",
          "--cascivo-editor-bracket"
        ],
        "accessibility": {
          "role": "textbox",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (indent)",
            "Shift+Tab (dedent)",
            "Mod+Z / Mod+Shift+Z (undo / redo)",
            "Mod+F (find)",
            "Mod+Alt+F (replace)",
            "Mod+S (save)",
            "/ (open slash-command menu when commands are provided)",
            "Up/Down + Enter/Tab (navigate + insert a command), Escape (dismiss)",
            "Standard textarea editing"
          ],
          "reducedMotion": true,
          "forcedColors": true
        },
        "examples": [
          {
            "title": "Basic editor",
            "code": "import { CodeEditor } from '@cascivo/editor'\nimport '@cascivo/editor/styles.css'\n\n<CodeEditor language=\"typescript\" lineNumbers defaultValue={'const x = 1\\n'} />"
          },
          {
            "title": "Controlled",
            "code": "<CodeEditor language=\"json\" value={value} onValueChange={setValue} />"
          },
          {
            "title": "Notes editing — find, save, brackets",
            "code": "<CodeEditor\n  language=\"markdown\"\n  value={doc}\n  onValueChange={setDoc}\n  onSave={save} // Mod-S\n  bracketMatching\n/> // Mod-F to search"
          },
          {
            "title": "Slash commands",
            "description": "Type \"/\" to open a filtered command menu; arrows + Enter insert.",
            "code": "const commands = [\n  { id: 'fence', label: 'Code block', keywords: ['code'], insert: '\\u0060\\u0060\\u0060\\n\\n\\u0060\\u0060\\u0060' },\n  { id: 'todo', label: 'TODO', insert: '// TODO: ' },\n  { id: 'date', label: 'Date', run: (e) => e.applyEdit(e.getSelection(), new Date().toISOString()) },\n]\n\n<CodeEditor language=\"markdown\" commands={commands} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["editor", "code", "syntax-highlighting", "textarea", "inputs"],
        "intent": {
          "whenToUse": [
            "Editing code or config inline — JSON, snippets, web languages — with line numbers and syntax colors",
            "A lightweight, themeable code field where a full IDE editor (Monaco/CodeMirror) would be overkill",
            "Editing Markdown notes — find/replace, real undo/redo, save, and selection-preserving external sync",
            "Editing long-form Markdown — generated docs, concatenated books, big notes — windowed (viewport-scoped) tokenization keeps scrolling/typing smooth well past ~5,000 lines"
          ],
          "whenNotToUse": [
            "You need IntelliSense/LSP, multi-cursor, folding, a minimap, or diff view — use a full editor framework",
            "Plain prose or a single-line value — use Textarea or Input",
            "Sustained editing of 100k+-line documents — use a full editor framework / dedicated worker pipeline (the windowed tokenizer keeps per-render work O(viewport), but a worker offload is intentionally out of scope)",
            "Soft-wrap (wrap) on a very large document — rendering is O(n) under wrap; disable wrap above ~10k lines for sustained editing"
          ],
          "antiPatterns": [
            {
              "bad": "Reaching for Monaco to show an editable snippet",
              "good": "Use CodeEditor for the basic set (line numbers + highlighting) at a fraction of the weight",
              "why": "The overlay technique keeps the bundle tiny and themes via the cascivo token system"
            }
          ],
          "related": [
            {
              "name": "Highlight",
              "relationship": "pairs-with",
              "reason": "The read-only renderer sharing the same tokenizer — for snippets and docs"
            },
            {
              "name": "Textarea",
              "relationship": "alternative",
              "reason": "Use for free-form prose without syntax highlighting"
            }
          ],
          "a11yRationale": "The native <textarea> is the editing surface, so caret, selection, IME, undo, and the a11y tree come from the browser; the highlight layer and gutter are aria-hidden.",
          "flexibility": [
            {
              "area": "languages",
              "level": "flexible",
              "note": "Ships a small grammar set; registerGrammar adds custom languages without bundle bloat"
            },
            {
              "area": "large documents",
              "level": "flexible",
              "note": "Windowed tokenization (tokenizeRange + LineStateIndex) makes per-render work O(viewport) and per-edit work O(changed suffix); long Markdown edits well past ~5,000 lines. Worker offload / 100k+-line sustained editing stay out of scope"
            }
          ]
        }
      },
      "install": "@cascivo/editor",
      "styles": "@cascivo/editor/styles.css",
      "channels": ["npm:@cascivo/editor"]
    },
    {
      "name": "editor/highlight",
      "type": "editor",
      "description": "Read-only syntax-highlighted code block — the same owned tokenizer as CodeEditor, without the textarea.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core", "@cascivo/i18n"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/i18n": ">=1.12.1"
      },
      "tags": ["editor", "code", "syntax-highlighting", "display", "read-only"],
      "meta": {
        "name": "Highlight",
        "description": "Read-only syntax-highlighted code block — the same owned tokenizer as CodeEditor, without the textarea.",
        "category": "display",
        "clientJs": "enhancement",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "value",
            "type": "string",
            "required": true,
            "description": "Code to render"
          },
          {
            "name": "language",
            "type": "string",
            "required": false,
            "default": "plaintext",
            "description": "Grammar name (plaintext/json/javascript/typescript/css/html/markdown/bash)"
          },
          {
            "name": "lineNumbers",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Show the line-number gutter"
          },
          {
            "name": "wrap",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Soft-wrap long lines"
          },
          {
            "name": "tabSize",
            "type": "number",
            "required": false,
            "default": "2",
            "description": "Spaces per tab stop"
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Accessible label for the code block"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "gutterRef",
            "type": "Ref<HTMLDivElement>",
            "required": false,
            "description": "Ref to the line-number gutter's backdrop strip."
          },
          {
            "name": "preRef",
            "type": "Ref<HTMLPreElement>",
            "required": false,
            "description": "Ref to the scrollable `<pre>` (used by `CodeEditor` for scroll-sync)."
          }
        ],
        "tokens": [
          "--cascivo-editor-bg",
          "--cascivo-editor-fg",
          "--cascivo-editor-gutter-bg",
          "--cascivo-editor-gutter-fg",
          "--cascivo-editor-gutter-width",
          "--cascivo-editor-gutter-gap",
          "--cascivo-editor-border"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.1-AA",
          "keyboard": ["Scroll (no interactive controls)"]
        },
        "examples": [
          {
            "title": "Read-only snippet",
            "code": "import { Highlight } from '@cascivo/editor'\nimport '@cascivo/editor/styles.css'\n\n<Highlight language=\"json\" value={'{ \"ok\": true }'} />"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/i18n"],
        "tags": ["editor", "code", "syntax-highlighting", "display", "read-only"],
        "intent": {
          "whenToUse": [
            "Displaying non-editable code or config with syntax colors — docs, snippets, examples",
            "A lightweight highlighter that themes via the cascivo token system"
          ],
          "whenNotToUse": [
            "The code must be editable — use CodeEditor",
            "You need copy-to-clipboard chrome around a snippet — pair with a code-snippet surface"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "CodeEditor",
              "relationship": "pairs-with",
              "reason": "The editable surface sharing the same tokenizer"
            }
          ],
          "a11yRationale": "Renders a read-only <pre><code>; the line-number gutter is aria-hidden and an optional label names the block.",
          "flexibility": []
        }
      },
      "install": "@cascivo/editor",
      "styles": "@cascivo/editor/styles.css",
      "channels": ["npm:@cascivo/editor"]
    },
    {
      "name": "section/cta",
      "type": "section",
      "description": "Call-to-action band — quiet hairline-bordered section with title, description, and centered actions. Replace demo content before shipping.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/cta/cta.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/cta/cta.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/cta/cta.meta.ts"
      ],
      "fileHashes": {
        "cta.tsx": "sha256-70fa76dfd96937e95dbe42cf1c6221db16f65dc6d309aeb36f0b248408a97010",
        "cta.module.css": "sha256-64d4f42e4ac21dbece53db49348d4456071fdda19cbb992f7dce8ddfb4ad3919",
        "cta.meta.ts": "sha256-fede74dc93d1a0754b25874a6e45bca10834d5e73c18274bf2c76b685b9e2d5c"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["section", "cta", "marketing"],
      "meta": {
        "name": "Cta",
        "description": "Call-to-action band — quiet hairline-bordered section with title, description, and centered actions. Replace demo content before shipping.",
        "category": "layout",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "title",
            "type": "ReactNode",
            "required": true,
            "description": "Primary heading of the CTA band"
          },
          {
            "name": "description",
            "type": "ReactNode",
            "required": false,
            "description": "Supporting text below the title"
          },
          {
            "name": "actions",
            "type": "ReactNode",
            "required": false,
            "description": "Buttons or links centered below the description"
          },
          {
            "name": "headingLevel",
            "type": "1 | 2 | 3",
            "required": false,
            "default": "2",
            "description": "HTML heading level for document outline control"
          }
        ],
        "tokens": [
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-text-2xl",
          "--cascivo-text-base",
          "--cascivo-font-bold",
          "--cascivo-color-text-subtle",
          "--cascivo-space-*"
        ],
        "accessibility": {
          "role": "region",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "CTA band",
            "code": "<Cta title=\"Ready to ship?\" description=\"Add Cascade to your project in minutes.\" actions={<><Button>Get started</Button><Button variant=\"ghost\">View on GitHub</Button></>} />",
            "description": "Quiet bordered band with centered heading, description, and action buttons"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["layout/section"],
        "tags": ["section", "cta", "marketing"],
        "intent": {
          "whenToUse": [
            "A call-to-action band with title, description, and centered actions",
            "Prompting conversion between or after marketing sections"
          ],
          "whenNotToUse": [
            "The primary page intro — use Hero",
            "General content grouping — use Section"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Hero",
              "relationship": "pairs-with",
              "reason": "Hero opens the page; CTA reinforces conversion later"
            },
            {
              "name": "Section",
              "relationship": "alternative",
              "reason": "Use the plain section for non-CTA content"
            }
          ],
          "a11yRationale": "Renders a section with a heading and clearly labeled action controls.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/section"],
      "channels": ["copy"]
    },
    {
      "name": "section/feature-grid",
      "type": "section",
      "description": "Feature section — AutoGrid of items with optional title, description, and icon slots. Icons are optional; the grid works text-only. Replace demo content before shipping.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/feature-grid/feature-grid.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/feature-grid/feature-grid.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/feature-grid/feature-grid.meta.ts"
      ],
      "fileHashes": {
        "feature-grid.tsx": "sha256-4850a491e40f788801f7ad7a7d096842e8539fb3d7f90777550b37fffced4e87",
        "feature-grid.module.css": "sha256-96c772216992fd23cf5bfb24f1fe2d1e71b0eb7912bc221d72f1fa4252ee0371",
        "feature-grid.meta.ts": "sha256-7424f6232a1c6d7dc6f34358ebe686395f6b363c89e26b16f667799e46dd2ae9"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["section", "features", "grid"],
      "meta": {
        "name": "FeatureGrid",
        "description": "Feature section — AutoGrid of items with optional title, description, and icon slots. Icons are optional; the grid works text-only. Replace demo content before shipping.",
        "category": "layout",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "items",
            "type": "FeatureItem[]",
            "required": true,
            "description": "Array of feature items with title, optional description, icon, and href"
          },
          {
            "name": "title",
            "type": "ReactNode",
            "required": false,
            "description": "Section heading above the grid"
          },
          {
            "name": "description",
            "type": "ReactNode",
            "required": false,
            "description": "Subheading below the section title"
          },
          {
            "name": "headingLevel",
            "type": "1 | 2 | 3",
            "required": false,
            "default": "2",
            "description": "Heading level for the section title (items use headingLevel + 1)"
          },
          {
            "name": "min",
            "type": "string",
            "required": false,
            "default": "\"16rem\"",
            "description": "Minimum track width forwarded to AutoGrid"
          }
        ],
        "tokens": [
          "--cascivo-text-2xl",
          "--cascivo-text-base",
          "--cascivo-text-sm",
          "--cascivo-font-bold",
          "--cascivo-font-semibold",
          "--cascivo-color-text-subtle",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-space-*"
        ],
        "accessibility": {
          "role": "region",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Feature grid (text-only)",
            "code": "<FeatureGrid\n  title=\"Built for production\"\n  description=\"Everything you need to ship a polished product.\"\n  items={[\n    { title: 'Zero config', description: 'Copy a component and it works — no providers, no wrappers.' },\n    { title: 'Token-first', description: 'Every color, size and radius is a CSS custom property you own.' },\n    { title: 'Signal-driven', description: 'Fine-grained reactivity with @preact/signals-react — zero re-renders.' },\n    { title: 'Accessible by default', description: 'WCAG 2.1 AA, keyboard navigable, logical CSS properties for RTL.' },\n  ]}\n/>",
            "description": "Four-item text-only feature grid with section heading"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["layout/auto-grid", "layout/section"],
        "tags": ["section", "features", "grid"],
        "intent": {
          "whenToUse": [
            "A feature section laying out items in an auto-fitting grid",
            "Showcasing product capabilities with optional icons and descriptions"
          ],
          "whenNotToUse": [
            "A single hero message — use Hero",
            "A bare responsive grid without section framing — use AutoGrid"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AutoGrid",
              "relationship": "contains",
              "reason": "Uses an auto-fit grid to lay out feature items"
            },
            {
              "name": "Hero",
              "relationship": "pairs-with",
              "reason": "Often follows the hero on a landing page"
            }
          ],
          "a11yRationale": "Renders a section with an optional heading grouping the feature items.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/auto-grid", "layout/section"],
      "channels": ["copy"]
    },
    {
      "name": "section/hero",
      "type": "section",
      "description": "Page hero section — centered or split layout with eyebrow, title, description, actions and media slots. Replace demo content before shipping.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/hero/hero.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/hero/hero.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/hero/hero.meta.ts"
      ],
      "fileHashes": {
        "hero.tsx": "sha256-a18f557b5f30d1caf6813d3f459778140255fd77a85a545cff5748e247e2cb84",
        "hero.module.css": "sha256-9c1e9fc32e62ad6a8d1fb59618a4c38e461d62a70e72bb3caec605857602e0ec",
        "hero.meta.ts": "sha256-2493b6a82b6a0392a6da66c8fc04ef8fa55e0800cdf14819334543514acd89e2"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["section", "hero", "marketing"],
      "meta": {
        "name": "Hero",
        "description": "Page hero section — centered or split layout with eyebrow, title, description, actions and media slots. Replace demo content before shipping.",
        "category": "layout",
        "clientJs": "none",
        "states": [],
        "variants": ["centered", "split"],
        "sizes": [],
        "props": [
          {
            "name": "variant",
            "type": "\"centered\" | \"split\"",
            "required": false,
            "default": "\"centered\"",
            "description": "Layout variant: centered (single column) or split (two columns)"
          },
          {
            "name": "title",
            "type": "ReactNode",
            "required": true,
            "description": "Primary heading content"
          },
          {
            "name": "eyebrow",
            "type": "ReactNode",
            "required": false,
            "description": "Small monospace label above the title"
          },
          {
            "name": "description",
            "type": "ReactNode",
            "required": false,
            "description": "Supporting paragraph below the title"
          },
          {
            "name": "actions",
            "type": "ReactNode",
            "required": false,
            "description": "Buttons or links rendered in a row below the description"
          },
          {
            "name": "media",
            "type": "ReactNode",
            "required": false,
            "description": "Right-hand slot in the split variant (image, demo, code block)"
          },
          {
            "name": "headingLevel",
            "type": "1 | 2 | 3",
            "required": false,
            "default": "1",
            "description": "HTML heading level for document outline control"
          }
        ],
        "tokens": [
          "--cascivo-text-4xl",
          "--cascivo-text-lg",
          "--cascivo-text-sm",
          "--cascivo-font-mono",
          "--cascivo-font-bold",
          "--cascivo-color-text-subtle",
          "--cascivo-space-*"
        ],
        "accessibility": {
          "role": "region",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Centered hero",
            "code": "<Hero eyebrow=\"v8 — Assembly Included\" title=\"Ship the dashboard your ops team deserves\" description=\"Cascade gives you charts, layouts and sections — fully composed, copy-paste ready.\" actions={<><Button>Get started</Button><Button variant=\"ghost\">View docs</Button></>} />",
            "description": "Single-column hero with eyebrow, headline, description, and CTA buttons"
          },
          {
            "title": "Split hero",
            "code": "<Hero variant=\"split\" title=\"Signal-driven, CSS-native\" description=\"Fine-grained reactivity with zero re-renders. Beautiful by default.\" actions={<Button>Start building</Button>} media={<img src=\"/preview.png\" alt=\"Dashboard preview\" />} />",
            "description": "Two-column layout with copy on the left and media on the right"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["layout/section"],
        "tags": ["section", "hero", "marketing"],
        "intent": {
          "whenToUse": [
            "The primary page intro with eyebrow, title, description, actions, and media",
            "Landing-page tops in centered or split layout"
          ],
          "whenNotToUse": [
            "An application page top — use PageHeader",
            "A mid-page conversion prompt — use Cta"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "PageHeader",
              "relationship": "alternative",
              "reason": "Use for app pages rather than marketing landings"
            },
            {
              "name": "Cta",
              "relationship": "pairs-with",
              "reason": "Reinforce the hero with a CTA band later on the page"
            }
          ],
          "a11yRationale": "Renders a section with the page-level heading as its primary landmark.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/section"],
      "channels": ["copy"]
    },
    {
      "name": "section/media-masonry",
      "type": "section",
      "description": "Masonry gallery section — native CSS masonry where supported, multi-column fallback elsewhere (fallback orders tiles top-to-bottom per column). Tiles style themselves; section provides only the layout shell.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/media-masonry/media-masonry.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/media-masonry/media-masonry.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/media-masonry/media-masonry.meta.ts"
      ],
      "fileHashes": {
        "media-masonry.tsx": "sha256-f25ba3f3cbe09742ffe066caf2e46190117111cce3d0a671ab3da84e25555a6f",
        "media-masonry.module.css": "sha256-6193fa3b063a622abe76eb2fc12aa5e000a7e541f7df189427c82071e8d4d030",
        "media-masonry.meta.ts": "sha256-5b8816a1bf1ee9893717c1153c3d19b3b9dc803a5820cb9bf2bd1b449f783b1d"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["section", "gallery", "masonry"],
      "meta": {
        "name": "MediaMasonry",
        "description": "Masonry gallery section — native CSS masonry where supported, multi-column fallback elsewhere (fallback orders tiles top-to-bottom per column). Tiles style themselves; section provides only the layout shell.",
        "category": "layout",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "ReactNode",
            "required": true,
            "description": "Tile elements (images, cards, quotes) — consumer-provided and self-styled"
          },
          {
            "name": "title",
            "type": "ReactNode",
            "required": false,
            "description": "Section heading above the gallery"
          },
          {
            "name": "description",
            "type": "ReactNode",
            "required": false,
            "description": "Subheading below the section title"
          },
          {
            "name": "headingLevel",
            "type": "1 | 2 | 3",
            "required": false,
            "default": "2",
            "description": "HTML heading level for the section title"
          },
          {
            "name": "cols",
            "type": "number",
            "required": false,
            "default": "3",
            "description": "Number of masonry columns"
          },
          {
            "name": "gap",
            "type": "1|2|3|4|5|6|8|10|12",
            "required": false,
            "default": "4",
            "description": "Gap between tiles (spacing token step)"
          }
        ],
        "tokens": [
          "--cascivo-text-2xl",
          "--cascivo-text-base",
          "--cascivo-font-bold",
          "--cascivo-color-text-subtle",
          "--cascivo-space-*"
        ],
        "accessibility": {
          "role": "region",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Media gallery",
            "code": "<MediaMasonry title=\"Customer stories\" cols={3} gap={4}><img src=\"/photo-1.jpg\" alt=\"Team at desk\" /><img src=\"/photo-2.jpg\" alt=\"Product screenshot\" /><img src=\"/photo-3.jpg\" alt=\"Dashboard view\" /></MediaMasonry>",
            "description": "Masonry gallery with three image tiles; falls back to CSS columns in unsupported browsers"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["layout/masonry", "layout/section"],
        "tags": ["section", "gallery", "masonry"],
        "intent": {
          "whenToUse": [
            "A full-width media gallery section with masonry packing",
            "Showcasing images or media tiles of varying heights"
          ],
          "whenNotToUse": [
            "A bare masonry primitive without section framing — use Masonry",
            "Uniform-height cards in rows — use AutoGrid"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Masonry",
              "relationship": "contains",
              "reason": "Uses the masonry primitive for tile packing"
            }
          ],
          "a11yRationale": "Renders a section shell; tiles supply their own accessible content.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/masonry", "layout/section"],
      "channels": ["copy"]
    },
    {
      "name": "section/page-footer",
      "type": "section",
      "description": "Site footer — AutoGrid of link groups with a brand/meta bottom row. Renders a <footer> element with a <nav aria-label=\"Footer\"> wrapping the link columns.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/page-footer/page-footer.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/page-footer/page-footer.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/page-footer/page-footer.meta.ts"
      ],
      "fileHashes": {
        "page-footer.tsx": "sha256-64a79a93db69f950ce32941871fb28d93870e11fea177b95ae9a7fe39b23aab2",
        "page-footer.module.css": "sha256-4d77adfbd5ae900cd98e03daaa7d31cb0610d7b89b1bea88b19ca33710dafb00",
        "page-footer.meta.ts": "sha256-ec5165bac685bd0c0ca2ed590a1a0b4f09a75fafb9f21e006130c721d4342805"
      },
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["section", "footer", "navigation"],
      "meta": {
        "name": "PageFooter",
        "description": "Site footer — AutoGrid of link groups with a brand/meta bottom row. Renders a <footer> element with a <nav aria-label=\"Footer\"> wrapping the link columns.",
        "category": "layout",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "groups",
            "type": "FooterGroup[]",
            "required": true,
            "description": "Array of link groups, each with a title and array of {label, href} links"
          },
          {
            "name": "brand",
            "type": "ReactNode",
            "required": false,
            "description": "Brand name or logo shown in the bottom row"
          },
          {
            "name": "meta",
            "type": "ReactNode",
            "required": false,
            "description": "Meta line in the bottom row (license, copyright, etc.)"
          }
        ],
        "tokens": [
          "--cascivo-text-sm",
          "--cascivo-font-mono",
          "--cascivo-font-semibold",
          "--cascivo-color-text",
          "--cascivo-color-text-subtle",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-space-*"
        ],
        "accessibility": {
          "role": "contentinfo",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Site footer",
            "code": "<PageFooter\n  brand=\"Cascade\"\n  meta=\"MIT licensed. Built with care.\"\n  groups={[\n    { title: 'Product', links: [{ label: 'Components', href: '/components' }, { label: 'Charts', href: '/charts' }, { label: 'Layouts', href: '/layouts' }] },\n    { title: 'Developers', links: [{ label: 'Docs', href: '/docs' }, { label: 'GitHub', href: 'https://github.com/cascivo/cascivo' }, { label: 'Changelog', href: '/changelog' }] },\n    { title: 'Resources', links: [{ label: 'Figma kit', href: '/figma' }, { label: 'Storybook', href: '/storybook' }] },\n  ]}\n/>",
            "description": "Three-column footer with brand and license meta"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "registryDependencies": ["layout/auto-grid"],
        "tags": ["section", "footer", "navigation"],
        "intent": {
          "whenToUse": [
            "A site footer with grouped link columns and a brand/meta bottom row",
            "Closing marketing or app pages with secondary navigation"
          ],
          "whenNotToUse": [
            "Primary top navigation — use AppShell or a header",
            "A conversion prompt — use Cta"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "AutoGrid",
              "relationship": "contains",
              "reason": "Uses an auto-fit grid to lay out link groups"
            }
          ],
          "a11yRationale": "Renders a footer element wrapping a labeled Footer navigation region.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/auto-grid"],
      "channels": ["copy"]
    },
    {
      "name": "section/stats-band",
      "type": "section",
      "description": "KPI strip — horizontal band of stats with optional delta and inline sparkline trend. Wraps via AutoGrid on narrow containers. No visible heading; provide aria-label for accessibility.",
      "category": "layout",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/stats-band/stats-band.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/stats-band/stats-band.module.css",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/layouts/src/sections/stats-band/stats-band.meta.ts"
      ],
      "fileHashes": {
        "stats-band.tsx": "sha256-da8753d44392e1ae5941f55a21028cd946599b07cc93f76aaf8732c1018de4d3",
        "stats-band.module.css": "sha256-c222d28794d4940d4d80fbcdcd10c55a883ef0c7fb1a2694398e37fe98ddd445",
        "stats-band.meta.ts": "sha256-397efd46bfdf25e4bc44937003358a86c3c2a15071f28b919c4eb3a20b5a2043"
      },
      "dependencies": ["@cascivo/core", "@cascivo/charts"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1",
        "@cascivo/charts": ">=1.12.1"
      },
      "tags": ["section", "stats", "kpi", "charts"],
      "meta": {
        "name": "StatsBand",
        "description": "KPI strip — horizontal band of stats with optional delta and inline sparkline trend. Wraps via AutoGrid on narrow containers. No visible heading; provide aria-label for accessibility.",
        "category": "layout",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "label",
            "nameVisibility": "invisible",
            "description": "Alias of `ariaLabel` — the same invisible accessible name under the other spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "type": "string",
            "required": false,
            "description": "Invisible accessible name. The catalog convention; `aria-label` is accepted as an alias for the DOM spelling."
          },
          {
            "name": "stats",
            "type": "StatItem[]",
            "required": true,
            "description": "Array of stat items: label, value, optional delta (e.g. \"+3.2%\"), optional trend numbers for sparkline"
          },
          {
            "name": "aria-label",
            "type": "string",
            "required": false,
            "default": "\"Key metrics\"",
            "description": "Accessible label for the stats region"
          }
        ],
        "tokens": [
          "--cascivo-text-2xl",
          "--cascivo-text-sm",
          "--cascivo-font-bold",
          "--cascivo-font-mono",
          "--cascivo-color-text-subtle",
          "--cascivo-color-border",
          "--cascivo-color-bg-subtle",
          "--cascivo-space-*"
        ],
        "accessibility": {
          "role": "region",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "KPI band with trends",
            "code": "<StatsBand\n  aria-label=\"Performance metrics\"\n  stats={[\n    { label: 'p99 latency', value: '184 ms', delta: '-12 ms', trend: [210, 205, 198, 192, 184] },\n    { label: 'Error rate', value: '0.12%', delta: '-0.03%', trend: [0.18, 0.16, 0.15, 0.14, 0.12] },\n    { label: 'Uptime', value: '99.98%', trend: [99.95, 99.97, 99.98, 99.99, 99.98] },\n    { label: 'Deploys today', value: '7' },\n  ]}\n/>",
            "description": "Four KPI cells — three with sparkline trends and signed deltas"
          }
        ],
        "dependencies": ["@cascivo/core", "@cascivo/charts"],
        "registryDependencies": ["layout/auto-grid"],
        "tags": ["section", "stats", "kpi", "charts"],
        "intent": {
          "whenToUse": [
            "A horizontal KPI strip with optional deltas and inline sparkline trends",
            "A marketing or dashboard band summarising headline numbers"
          ],
          "whenNotToUse": [
            "A grid of full stat cards — use StatsCards",
            "A single metric — use a Kpi card"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "StatsCards",
              "relationship": "alternative",
              "reason": "Use the card grid block for richer per-stat framing"
            },
            {
              "name": "Sparkline",
              "relationship": "contains",
              "reason": "Embeds inline sparkline trends per stat"
            }
          ],
          "a11yRationale": "Has no visible heading; consumers must supply an aria-label for the band.",
          "flexibility": []
        }
      },
      "registryDependencies": ["layout/auto-grid"],
      "channels": ["copy"]
    },
    {
      "name": "flow/flow",
      "type": "flow",
      "description": "The declarative, AI-first flow surface — render a node/edge graph from plain serializable data.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "graph", "declarative", "diagram", "ai-first"],
      "meta": {
        "name": "Flow",
        "description": "The declarative, AI-first flow surface — render a node/edge graph from plain serializable data.",
        "category": "display",
        "clientJs": "required",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "nodes",
            "type": "FlowNode[]",
            "required": true,
            "description": "Initial nodes (serializable)."
          },
          {
            "name": "edges",
            "type": "FlowEdge[]",
            "required": true,
            "description": "Initial edges (serializable)."
          },
          {
            "name": "onNodesChange",
            "description": "Called with the next nodes when they change (drag, add, remove).",
            "type": "(nodes: FlowNode[]) => void",
            "required": false
          },
          {
            "name": "onEdgesChange",
            "description": "Called with the next edges when they change.",
            "type": "(edges: FlowEdge[]) => void",
            "required": false
          },
          {
            "name": "onConnect",
            "description": "Called when two handles are connected to form a new edge.",
            "type": "(connection: Connection) => void",
            "required": false
          },
          {
            "name": "nodeTypes",
            "type": "Record<string, NodeRenderer>",
            "required": false,
            "description": "Custom node renderers keyed by node.type."
          },
          {
            "name": "fitView",
            "description": "When true, fits the graph to the viewport on mount.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "background",
            "description": "Background pattern — true for the default dots, or a config object.",
            "type": "boolean | FlowBackgroundProps",
            "required": false,
            "default": "false"
          },
          {
            "name": "controls",
            "description": "Whether to show the controls.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "minimap",
            "description": "When true, shows the minimap overlay.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "layout",
            "type": "'grid' | 'layered' | ((nodes, edges) => FlowNode[])",
            "required": false,
            "description": "Optional dependency-free layout."
          },
          {
            "name": "interactive",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "When false (view mode), nodes cannot be selected, dragged, or connected and handles are hidden; pan/zoom still work."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "activeDirection",
            "type": "'forward' | 'reverse' | undefined",
            "required": false,
            "description": "Direction the active edge's dash travels."
          },
          {
            "name": "activeEdgeId",
            "type": "string | undefined",
            "required": false,
            "description": "Highlight + animate a single edge (used by FlowStory's active step)."
          },
          {
            "name": "maxZoom",
            "type": "number",
            "required": false,
            "description": "Maximum zoom scale the viewport can reach."
          },
          {
            "name": "minZoom",
            "type": "number",
            "required": false,
            "description": "Minimum zoom scale the viewport can reach."
          }
        ],
        "typeDefs": [
          {
            "name": "FlowNode",
            "description": "A graph node. Positioned in flow coordinates; renders as themed HTML.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "position",
                "type": "XYPosition",
                "required": true
              },
              {
                "name": "data",
                "type": "Data",
                "required": false
              },
              {
                "name": "type",
                "type": "string",
                "required": false,
                "description": "Custom renderer key resolved via `nodeTypes`."
              },
              {
                "name": "selected",
                "type": "boolean",
                "required": false
              },
              {
                "name": "width",
                "type": "number",
                "required": false,
                "description": "Explicit/measured size used for handle anchors + bounding boxes."
              },
              {
                "name": "height",
                "type": "number",
                "required": false
              }
            ]
          },
          {
            "name": "FlowEdge",
            "description": "A directed connection between two nodes' handles.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "source",
                "type": "string",
                "required": true
              },
              {
                "name": "target",
                "type": "string",
                "required": true
              },
              {
                "name": "sourceHandle",
                "type": "string",
                "required": false
              },
              {
                "name": "targetHandle",
                "type": "string",
                "required": false
              },
              {
                "name": "type",
                "type": "EdgePathType | string",
                "required": false,
                "description": "Custom renderer key resolved via `edgeTypes`."
              },
              {
                "name": "animated",
                "type": "boolean",
                "required": false
              },
              {
                "name": "label",
                "type": "string",
                "required": false
              },
              {
                "name": "selected",
                "type": "boolean",
                "required": false
              },
              {
                "name": "markerStart",
                "type": "boolean",
                "required": false,
                "description": "Arrowhead at the source end (points back toward the source). Default false."
              },
              {
                "name": "markerEnd",
                "type": "boolean",
                "required": false,
                "description": "Arrowhead at the target end (points at the target). Default true."
              }
            ]
          }
        ],
        "tokens": ["--cascivo-color-bg", "--cascivo-color-surface", "--cascivo-color-accent"],
        "accessibility": {
          "role": "application",
          "wcag": "2.1-AA",
          "keyboard": [
            "Tab (focus nodes)",
            "Enter/Space (select)",
            "Drag (pan/move)",
            "Wheel (zoom)"
          ]
        },
        "examples": [
          {
            "title": "Declarative pipeline",
            "description": "A flow from plain serializable data, with background, controls, and an animated edge.",
            "code": "() => (\n  <Flow\n    style={{ height: 280 }}\n    background\n    controls\n    nodes={[\n      { id: 'a', position: { x: 0, y: 60 }, data: { label: 'Client' } },\n      { id: 'b', position: { x: 240, y: 60 }, data: { label: 'Gateway' } },\n      { id: 'c', position: { x: 480, y: 60 }, data: { label: 'Service' } },\n    ]}\n    edges={[\n      { id: 'ab', source: 'a', target: 'b', animated: true, label: 'request' },\n      { id: 'bc', source: 'b', target: 'c' },\n    ]}\n  />\n)"
          },
          {
            "title": "Layered layout",
            "description": "Let the dependency-free layered layout arrange a small DAG.",
            "code": "() => (\n  <Flow\n    style={{ height: 300 }}\n    layout=\"layered\"\n    background\n    minimap\n    nodes={[\n      { id: 'a', position: { x: 0, y: 0 }, data: { label: 'Ingest' } },\n      { id: 'b', position: { x: 0, y: 0 }, data: { label: 'Transform' } },\n      { id: 'c', position: { x: 0, y: 0 }, data: { label: 'Validate' } },\n      { id: 'd', position: { x: 0, y: 0 }, data: { label: 'Load' } },\n    ]}\n    edges={[\n      { id: 'ab', source: 'a', target: 'b' },\n      { id: 'ac', source: 'a', target: 'c' },\n      { id: 'bd', source: 'b', target: 'd' },\n      { id: 'cd', source: 'c', target: 'd' },\n    ]}\n  />\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "graph", "declarative", "diagram", "ai-first"],
        "intent": {
          "whenToUse": [
            "Rendering a graph from data — the common case and the agent-emittable surface",
            "Flowcharts, DAGs, pipelines, and mind-maps from plain nodes/edges arrays"
          ],
          "whenNotToUse": [
            "A scripted, sequenced walkthrough — use FlowStory",
            "Heavy graph editing (undo/redo, resize/rotate) — out of scope"
          ],
          "antiPatterns": [
            {
              "bad": "Imperatively building the graph with graph.addNode(...)",
              "good": "<Flow nodes={…} edges={…} />",
              "why": "Declarative serializable data is what an agent can emit and what stays in sync with props."
            }
          ],
          "related": [
            {
              "name": "FlowStory",
              "relationship": "alternative",
              "reason": "Scripted, captioned storyline animation."
            },
            {
              "name": "FlowNode",
              "relationship": "contains",
              "reason": "Renders a node per entry."
            },
            {
              "name": "FlowEdge",
              "relationship": "contains",
              "reason": "Renders an edge per entry."
            }
          ],
          "a11yRationale": "role=\"application\" canvas; nodes are focusable groups; controls are real i18n-labeled buttons.",
          "flexibility": [
            {
              "area": "rendering",
              "level": "flexible",
              "note": "Custom node renderers via nodeTypes."
            },
            {
              "area": "layout",
              "level": "flexible",
              "note": "grid | layered | bring-your-own positions."
            },
            {
              "area": "chrome",
              "level": "flexible",
              "note": "Optional background / controls / minimap."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-background",
      "type": "flow",
      "description": "Decorative dots / grid / cross canvas background, drawn purely in CSS gradients.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "background", "grid", "dots", "canvas"],
      "meta": {
        "name": "FlowBackground",
        "description": "Decorative dots / grid / cross canvas background, drawn purely in CSS gradients.",
        "category": "display",
        "clientJs": "none",
        "states": [],
        "variants": ["dots", "grid", "cross"],
        "sizes": [],
        "props": [
          {
            "name": "variant",
            "type": "'dots' | 'grid' | 'cross'",
            "required": false,
            "default": "dots",
            "description": "Pattern style."
          },
          {
            "name": "gap",
            "type": "number",
            "required": false,
            "default": "20",
            "description": "Cell spacing (px)."
          },
          {
            "name": "size",
            "type": "number",
            "required": false,
            "default": "1",
            "description": "Dot radius / line thickness (px)."
          },
          {
            "name": "color",
            "type": "string",
            "required": false,
            "description": "Pattern color (defaults to the border token)."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-color-border"],
        "accessibility": {
          "role": "presentation",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Dotted background",
            "description": "A dotted grid behind a flow canvas.",
            "code": "() => (\n  <div style={{ position: 'relative', height: 220, overflow: 'hidden' }}>\n    <FlowBackground variant=\"dots\" gap={24} />\n  </div>\n)"
          },
          {
            "title": "Grid and cross",
            "description": "The grid and cross variants.",
            "code": "() => (\n  <div style={{ display: 'grid', gap: 16, gridTemplateColumns: '1fr 1fr' }}>\n    <div style={{ position: 'relative', height: 180, overflow: 'hidden' }}>\n      <FlowBackground variant=\"grid\" gap={28} />\n    </div>\n    <div style={{ position: 'relative', height: 180, overflow: 'hidden' }}>\n      <FlowBackground variant=\"cross\" gap={28} size={4} />\n    </div>\n  </div>\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "background", "grid", "dots", "canvas"],
        "intent": {
          "whenToUse": [
            "Giving a flow canvas a sense of space and scale with a dotted or grid backdrop",
            "Reinforcing pan/zoom by letting the pattern move and scale with the viewport"
          ],
          "whenNotToUse": [
            "As a page background — this is a flow-canvas decoration, not a general surface"
          ],
          "antiPatterns": [
            {
              "bad": "Rendering a DOM node per grid cell",
              "good": "A single CSS gradient layer",
              "why": "Per-cell DOM is needlessly expensive; one repeating gradient costs nothing."
            }
          ],
          "related": [
            {
              "name": "FlowCanvas",
              "relationship": "contained-by",
              "reason": "Lives inside the canvas pane."
            }
          ],
          "a11yRationale": "Purely decorative — marked aria-hidden and presentation, never in the a11y tree.",
          "flexibility": [
            {
              "area": "pattern",
              "level": "flexible",
              "note": "dots | grid | cross with configurable gap/size."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-controls",
      "type": "flow",
      "description": "Zoom in / out / fit-view controls for a flow canvas — real, i18n-labeled buttons.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "controls", "zoom", "chrome"],
      "meta": {
        "name": "FlowControls",
        "description": "Zoom in / out / fit-view controls for a flow canvas — real, i18n-labeled buttons.",
        "category": "display",
        "clientJs": "required",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "position",
            "description": "Canvas corner the control cluster is pinned to: `bottom-left`, `bottom-right`, `top-left` or `top-right`.",
            "type": "'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'",
            "required": false,
            "default": "bottom-left"
          },
          {
            "name": "showZoom",
            "description": "When true, shows the zoom-in/zoom-out buttons.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "showFitView",
            "description": "When true, shows the fit-to-view button.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "onZoomIn",
            "description": "Called when the zoom-in control is activated.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "onZoomOut",
            "description": "Called when the zoom-out control is activated.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "onFitView",
            "description": "Called when the fit-to-view control is activated.",
            "type": "() => void",
            "required": false
          },
          {
            "name": "labels",
            "description": "Overrides for the component’s user-visible strings (i18n).",
            "type": "FlowControlsLabels",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.1-AA",
          "keyboard": ["Tab (focus)", "Enter/Space (activate)"]
        },
        "examples": [
          {
            "title": "Canvas controls",
            "code": "() => (\n  <div style={{ position: 'relative', height: 200, border: '1px solid var(--cascivo-color-border)' }}>\n    <FlowControls onZoomIn={() => {}} onZoomOut={() => {}} onFitView={() => {}} />\n  </div>\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "controls", "zoom", "chrome"],
        "intent": {
          "whenToUse": ["Giving users explicit zoom/fit controls on a flow canvas"],
          "whenNotToUse": ["When the canvas is static/non-interactive"],
          "antiPatterns": [],
          "related": [
            {
              "name": "FlowCanvas",
              "relationship": "pairs-with",
              "reason": "Calls its viewport actions."
            },
            {
              "name": "FlowMiniMap",
              "relationship": "pairs-with",
              "reason": "Complementary navigation chrome."
            }
          ],
          "a11yRationale": "Real <button>s with i18n-defaulted aria-labels; ≥44px coarse targets.",
          "flexibility": [
            {
              "area": "position",
              "level": "flexible",
              "note": "Four corners."
            },
            {
              "area": "buttons",
              "level": "flexible",
              "note": "Zoom / fit toggleable."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-edge",
      "type": "flow",
      "description": "An SVG edge with bezier/straight/smoothstep paths, an arrowhead, an optional label, and animation.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "edge", "connector", "animated", "svg"],
      "meta": {
        "name": "FlowEdge",
        "description": "An SVG edge with bezier/straight/smoothstep paths, an arrowhead, an optional label, and animation.",
        "category": "display",
        "clientJs": "enhancement",
        "states": ["default", "selected", "animated"],
        "variants": ["bezier", "straight", "smoothstep"],
        "sizes": [],
        "props": [
          {
            "name": "sourceX",
            "type": "number",
            "required": true,
            "description": "Source anchor x (flow coords)."
          },
          {
            "name": "sourceY",
            "description": "Y coordinate of the edge’s source point.",
            "type": "number",
            "required": true
          },
          {
            "name": "targetX",
            "description": "X coordinate of the edge’s target point.",
            "type": "number",
            "required": true
          },
          {
            "name": "targetY",
            "description": "Y coordinate of the edge’s target point.",
            "type": "number",
            "required": true
          },
          {
            "name": "type",
            "description": "Edge path style ('bezier' | 'straight' | 'smoothstep').",
            "type": "'bezier' | 'straight' | 'smoothstep'",
            "required": false,
            "default": "bezier"
          },
          {
            "name": "animated",
            "description": "When true, animates the edge path (dashed flow).",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "label",
            "nameVisibility": "visible",
            "description": "Text label for the control.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "selected",
            "description": "Whether the edge is rendered as selected.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "markerStart",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Arrowhead at the source (points back toward the source) — set both for bidirectional."
          },
          {
            "name": "markerEnd",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "Arrowhead at the target. Set false for an undirected line."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "active",
            "type": "boolean | undefined",
            "required": false,
            "description": "Highlight the edge (used by FlowStory's active step)."
          },
          {
            "name": "direction",
            "type": "'forward' | 'reverse' | undefined",
            "required": false,
            "description": "Direction the dash travels when animated.",
            "default": "'forward'"
          },
          {
            "name": "id",
            "type": "string",
            "required": false,
            "description": "Edge identifier, used to target it via `activeEdgeId`."
          },
          {
            "name": "sourcePosition",
            "type": "HandlePosition | undefined",
            "required": false,
            "description": "Handle side the edge leaves from.",
            "default": "'right'"
          },
          {
            "name": "targetPosition",
            "type": "HandlePosition | undefined",
            "required": false,
            "description": "Handle side the edge arrives at.",
            "default": "'left'"
          }
        ],
        "tokens": [
          "--cascivo-color-border-strong",
          "--cascivo-color-accent",
          "--cascivo-color-surface"
        ],
        "accessibility": {
          "role": "presentation",
          "wcag": "2.1-AA",
          "keyboard": [],
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "Edge path types",
            "description": "Bezier, straight, smoothstep, and an animated edge.",
            "code": "() => (\n  <div style={{ position: 'relative', height: 220 }}>\n    <FlowEdge sourceX={20} sourceY={30} targetX={260} targetY={30} type=\"bezier\" label=\"bezier\" />\n    <FlowEdge sourceX={20} sourceY={90} targetX={260} targetY={90} type=\"smoothstep\" label=\"step\" />\n    <FlowEdge sourceX={20} sourceY={150} targetX={260} targetY={150} animated label=\"animated\" />\n  </div>\n)"
          },
          {
            "title": "Arrow direction",
            "description": "Forward (default), backward, bidirectional, or undirected — via markerStart/markerEnd.",
            "code": "() => (\n  <div style={{ position: 'relative', height: 260 }}>\n    <FlowEdge sourceX={20} sourceY={30} targetX={260} targetY={30} label=\"forward\" />\n    <FlowEdge sourceX={20} sourceY={90} targetX={260} targetY={90} markerEnd={false} markerStart label=\"backward\" />\n    <FlowEdge sourceX={20} sourceY={150} targetX={260} targetY={150} markerStart label=\"both\" />\n    <FlowEdge sourceX={20} sourceY={210} targetX={260} targetY={210} markerEnd={false} label=\"undirected\" />\n  </div>\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "edge", "connector", "animated", "svg"],
        "intent": {
          "whenToUse": [
            "Connecting two nodes with a directed path and arrowhead",
            "Animating flow direction along a connection (\"marching ants\")"
          ],
          "whenNotToUse": [
            "For undirected relationships where an arrowhead would mislead — set markerEnd={false}"
          ],
          "antiPatterns": [
            {
              "bad": "A requestAnimationFrame loop to animate the dash",
              "good": "A CSS stroke-dashoffset keyframe",
              "why": "The compositor animates CSS for free; a JS loop re-renders every frame."
            }
          ],
          "related": [
            {
              "name": "FlowNode",
              "relationship": "pairs-with",
              "reason": "Edges connect nodes."
            },
            {
              "name": "FlowStory",
              "relationship": "pairs-with",
              "reason": "Storylines animate edges in sequence."
            }
          ],
          "a11yRationale": "Decorative SVG (aria-hidden); animation is disabled under prefers-reduced-motion.",
          "flexibility": [
            {
              "area": "path",
              "level": "flexible",
              "note": "bezier | straight | smoothstep."
            },
            {
              "area": "animation",
              "level": "flexible",
              "note": "Optional, reduced-motion-safe."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-handle",
      "type": "flow",
      "description": "A connection port on a node edge — where edges attach and interactive connect starts.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "handle", "port", "connect"],
      "meta": {
        "name": "FlowHandle",
        "description": "A connection port on a node edge — where edges attach and interactive connect starts.",
        "category": "display",
        "clientJs": "none",
        "states": ["default", "hover", "focus"],
        "variants": ["source", "target"],
        "sizes": [],
        "props": [
          {
            "name": "type",
            "description": "Whether the handle is a connection source or target ('source' | 'target').",
            "type": "'source' | 'target'",
            "required": true
          },
          {
            "name": "position",
            "type": "'top' | 'right' | 'bottom' | 'left'",
            "required": false,
            "description": "Edge of the node (defaults: source→right, target→left)."
          },
          {
            "name": "id",
            "type": "string",
            "required": false,
            "description": "Handle id for multi-handle nodes."
          },
          {
            "name": "isConnectable",
            "description": "Whether new connections can start or end at this handle.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": [
          "--cascivo-color-accent",
          "--cascivo-color-surface",
          "--cascivo-target-min-coarse"
        ],
        "accessibility": {
          "role": "button",
          "wcag": "2.1-AA",
          "keyboard": ["Tab (focus the port)"]
        },
        "examples": [
          {
            "title": "Source and target ports",
            "code": "() => (\n  <div style={{ position: 'relative', height: 160 }}>\n    <FlowNode id=\"api\" defaultPosition={{ x: 70, y: 55 }}>\n      API\n      <FlowHandle type=\"target\" position=\"left\" />\n      <FlowHandle type=\"source\" position=\"right\" />\n    </FlowNode>\n  </div>\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "handle", "port", "connect"],
        "intent": {
          "whenToUse": [
            "Marking where edges connect to a node",
            "Enabling interactive connect (drag from a source to a target)"
          ],
          "whenNotToUse": ["On nodes that are never connected"],
          "antiPatterns": [],
          "related": [
            {
              "name": "FlowNode",
              "relationship": "contained-by",
              "reason": "Ports live inside a node."
            },
            {
              "name": "FlowEdge",
              "relationship": "pairs-with",
              "reason": "Edges anchor to handles."
            }
          ],
          "a11yRationale": "Focusable with a ≥44px coarse-pointer hit area around the visible dot.",
          "flexibility": [
            {
              "area": "position",
              "level": "flexible",
              "note": "top | right | bottom | left."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-minimap",
      "type": "flow",
      "description": "A scaled SVG overview of the graph with a draggable viewport rectangle.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "minimap", "overview", "chrome"],
      "meta": {
        "name": "FlowMiniMap",
        "description": "A scaled SVG overview of the graph with a draggable viewport rectangle.",
        "category": "display",
        "clientJs": "required",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "nodes",
            "description": "The nodes to render.",
            "type": "FlowNode[]",
            "required": true
          },
          {
            "name": "viewport",
            "description": "The current pan/zoom viewport to reflect in the minimap.",
            "type": "Viewport",
            "required": true
          },
          {
            "name": "containerWidth",
            "description": "Width of the flow container, used to scale the minimap.",
            "type": "number",
            "required": false
          },
          {
            "name": "containerHeight",
            "description": "Height of the flow container, used to scale the minimap.",
            "type": "number",
            "required": false
          },
          {
            "name": "width",
            "description": "Width in px.",
            "type": "number",
            "required": false,
            "default": "200"
          },
          {
            "name": "height",
            "description": "Height in px.",
            "type": "number",
            "required": false,
            "default": "150"
          },
          {
            "name": "position",
            "description": "Canvas corner the minimap is pinned to: `bottom-right`, `bottom-left`, `top-left` or `top-right`.",
            "type": "'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'",
            "required": false,
            "default": "bottom-right"
          },
          {
            "name": "onViewportChange",
            "description": "Called with the new viewport when the minimap is dragged.",
            "type": "(viewport: Viewport) => void",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "ariaLabel",
            "nameVisibility": "invisible",
            "description": "Alias of `label` — the same invisible accessible name under the catalog spelling. Neither is deprecated.",
            "type": "string",
            "required": false
          },
          {
            "name": "label",
            "nameVisibility": "invisible",
            "type": "string | undefined",
            "required": false,
            "description": "Accessible name for the minimap region."
          },
          {
            "name": "nodeColor",
            "type": "string | undefined",
            "required": false,
            "description": "Fill colour for node rectangles in the minimap."
          }
        ],
        "typeDefs": [
          {
            "name": "FlowNode",
            "description": "A graph node.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "position",
                "type": "XYPosition",
                "required": true
              },
              {
                "name": "data",
                "type": "Data",
                "required": false
              },
              {
                "name": "type",
                "type": "string",
                "required": false,
                "description": "Custom renderer key resolved via `nodeTypes`."
              },
              {
                "name": "selected",
                "type": "boolean",
                "required": false
              },
              {
                "name": "width",
                "type": "number",
                "required": false,
                "description": "Explicit/measured size used for handle anchors + bounding boxes."
              },
              {
                "name": "height",
                "type": "number",
                "required": false
              }
            ]
          },
          {
            "name": "Viewport",
            "description": "The pan/zoom state of the canvas pane.",
            "fields": [
              {
                "name": "x",
                "type": "number",
                "required": true
              },
              {
                "name": "y",
                "type": "number",
                "required": true
              },
              {
                "name": "zoom",
                "type": "number",
                "required": true
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border-strong",
          "--cascivo-color-accent"
        ],
        "accessibility": {
          "role": "img",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "Graph overview",
            "code": "() => (\n  <FlowMiniMap\n    nodes={[\n      { id: 'a', position: { x: 0, y: 0 } },\n      { id: 'b', position: { x: 220, y: 120 } },\n      { id: 'c', position: { x: 440, y: 0 } },\n    ]}\n    viewport={{ x: 0, y: 0, zoom: 1 }}\n    containerWidth={400}\n    containerHeight={300}\n  />\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "minimap", "overview", "chrome"],
        "intent": {
          "whenToUse": [
            "Orienting users in a large graph",
            "Letting users jump around by dragging the view rect"
          ],
          "whenNotToUse": ["Tiny graphs that fit on screen"],
          "antiPatterns": [],
          "related": [
            {
              "name": "FlowControls",
              "relationship": "pairs-with",
              "reason": "Complementary navigation chrome."
            }
          ],
          "a11yRationale": "role=\"img\" with an i18n-defaulted label describing the overview.",
          "flexibility": [
            {
              "area": "size",
              "level": "flexible",
              "note": "Configurable width/height."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-node",
      "type": "flow",
      "description": "An HTML node box positioned in the viewport pane — draggable, selectable, with arbitrary children.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "node", "draggable", "graph"],
      "meta": {
        "name": "FlowNode",
        "description": "An HTML node box positioned in the viewport pane — draggable, selectable, with arbitrary children.",
        "category": "display",
        "clientJs": "required",
        "states": ["default", "dragging", "selected", "focus"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "id",
            "type": "string",
            "required": true,
            "description": "Stable node id."
          },
          {
            "name": "position",
            "type": "{ x: number; y: number }",
            "required": false,
            "description": "Position in flow coords (controllable)."
          },
          {
            "name": "defaultPosition",
            "type": "XYPosition",
            "required": false,
            "description": "Initial position for an uncontrolled node — the node then owns its own position as it is dragged. Pass `position` instead to control it."
          },
          {
            "name": "onPositionChange",
            "type": "(position: XYPosition) => void",
            "required": false,
            "description": "Fired while dragging."
          },
          {
            "name": "zoom",
            "type": "number",
            "required": false,
            "default": "1",
            "description": "Current zoom (drag deltas are divided by it)."
          },
          {
            "name": "selected",
            "description": "Whether the node is rendered as selected.",
            "type": "boolean",
            "required": false,
            "default": "false"
          },
          {
            "name": "draggable",
            "description": "Whether the node can be dragged.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "interactive",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "When false, the node is view-only: not draggable, selectable, or focusable."
          },
          {
            "name": "onSelect",
            "description": "Called with the selected value.",
            "type": "(id: string) => void",
            "required": false
          },
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Any cascivo content."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "onMeasure",
            "type": "(size: NodeSize) => void",
            "required": false,
            "description": "Reports the rendered box size so edges can anchor to the real node bounds."
          }
        ],
        "typeDefs": [
          {
            "name": "XYPosition",
            "description": "Shared geometry + graph types for the flow engine.",
            "fields": [
              {
                "name": "x",
                "type": "number",
                "required": true
              },
              {
                "name": "y",
                "type": "number",
                "required": true
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-border",
          "--cascivo-color-accent",
          "--cascivo-radius-md",
          "--cascivo-shadow-sm"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.1-AA",
          "keyboard": ["Tab (focus)", "Enter/Space (select)"]
        },
        "examples": [
          {
            "title": "A draggable node",
            "code": "() => (\n  <div style={{ position: 'relative', height: 160 }}>\n    <FlowNode id=\"a\" defaultPosition={{ x: 40, y: 50 }}>Service A</FlowNode>\n  </div>\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "node", "draggable", "graph"],
        "intent": {
          "whenToUse": [
            "Representing a unit in a graph that holds arbitrary themed content",
            "When you hand-compose a flow and need draggable, selectable boxes"
          ],
          "whenNotToUse": ["For the common case — the declarative <Flow> renders nodes for you"],
          "antiPatterns": [
            {
              "bad": "Rendering node content into an SVG",
              "good": "HTML node boxes",
              "why": "HTML nodes inherit the data-theme scope and can contain any cascivo component."
            }
          ],
          "related": [
            {
              "name": "FlowHandle",
              "relationship": "contains",
              "reason": "Connection ports live inside a node."
            },
            {
              "name": "FlowEdge",
              "relationship": "pairs-with",
              "reason": "Edges route between nodes."
            }
          ],
          "a11yRationale": "Focusable group; Enter/Space select. Visual states (hover/focus/selected) are CSS.",
          "flexibility": [
            {
              "area": "content",
              "level": "flexible",
              "note": "Renders any children."
            },
            {
              "area": "position",
              "level": "flexible",
              "note": "Controllable; draggable toggleable."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-panel",
      "type": "flow",
      "description": "An absolutely-positioned slot for custom flow-canvas UI (legend, toolbar).",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "panel", "slot", "chrome"],
      "meta": {
        "name": "FlowPanel",
        "description": "An absolutely-positioned slot for custom flow-canvas UI (legend, toolbar).",
        "category": "display",
        "clientJs": "none",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "position",
            "description": "Canvas edge slot the panel occupies: `top-right`, `top-center`, `top-left`, `bottom-left`, `bottom-center` or `bottom-right`.",
            "type": "'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'",
            "required": false,
            "default": "top-right"
          },
          {
            "name": "children",
            "description": "Content rendered inside the component.",
            "type": "ReactNode",
            "required": false
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          }
        ],
        "tokens": ["--cascivo-space-3"],
        "accessibility": {
          "role": "group",
          "wcag": "2.1-AA",
          "keyboard": []
        },
        "examples": [
          {
            "title": "A legend panel",
            "code": "() => (\n  <div style={{ position: 'relative', height: 160, border: '1px solid var(--cascivo-color-border)' }}>\n    <FlowPanel position=\"top-right\">Legend</FlowPanel>\n  </div>\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "panel", "slot", "chrome"],
        "intent": {
          "whenToUse": ["Overlaying custom UI (a legend, a toolbar) on a flow canvas"],
          "whenNotToUse": ["For zoom/fit controls — use FlowControls"],
          "antiPatterns": [],
          "related": [
            {
              "name": "FlowControls",
              "relationship": "alternative",
              "reason": "Purpose-built zoom/fit chrome."
            }
          ],
          "a11yRationale": "A plain positioned container; semantics come from its children.",
          "flexibility": [
            {
              "area": "position",
              "level": "flexible",
              "note": "Six anchor positions."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-story",
      "type": "flow",
      "description": "A scripted, sequenced, looping flow animation — walks a graph step by step with fade-in captions.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "animation", "storyline", "walkthrough", "sequence"],
      "meta": {
        "name": "FlowStory",
        "description": "A scripted, sequenced, looping flow animation — walks a graph step by step with fade-in captions.",
        "category": "display",
        "clientJs": "required",
        "states": ["playing", "paused"],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "nodes",
            "description": "The nodes to render.",
            "type": "FlowNode[]",
            "required": true
          },
          {
            "name": "edges",
            "description": "The edges to render at each step.",
            "type": "FlowEdge[]",
            "required": true
          },
          {
            "name": "script",
            "type": "StoryStep[]",
            "required": true,
            "description": "Ordered steps: { from, to, label? } or { edge, reverse? }."
          },
          {
            "name": "loop",
            "description": "When true, navigation wraps around from end to start.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "stepDuration",
            "description": "How long (ms) each step is shown during playback.",
            "type": "number",
            "required": false,
            "default": "1500"
          },
          {
            "name": "stepGap",
            "type": "number",
            "required": false,
            "default": "0",
            "description": "Extra pause after each step before advancing (ms) — makes the story easier to follow."
          },
          {
            "name": "playing",
            "description": "Whether the story is currently playing (controlled).",
            "type": "boolean",
            "required": false
          },
          {
            "name": "currentStep",
            "description": "The controlled current step index.",
            "type": "number",
            "required": false
          },
          {
            "name": "onStepChange",
            "description": "Called with the new step index when it changes.",
            "type": "(step: number) => void",
            "required": false
          },
          {
            "name": "controls",
            "description": "Whether to show the controls.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "autoPlay",
            "description": "When true, starts playback automatically on mount.",
            "type": "boolean",
            "required": false,
            "default": "true"
          },
          {
            "name": "interactive",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "A storyline is a view by default — set true to allow selecting/dragging/connecting."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "background",
            "type": "boolean",
            "required": false,
            "description": "Render the dotted background pane behind the flow.",
            "default": "true"
          },
          {
            "name": "clock",
            "type": "StoryClock",
            "required": false,
            "description": "Injectable clock for deterministic tests."
          },
          {
            "name": "labels",
            "type": "FlowStoryLabels",
            "required": false,
            "description": "Label overrides for the story playback controls."
          }
        ],
        "typeDefs": [
          {
            "name": "StoryClock",
            "description": "Shape of the `clock` prop.",
            "fields": [
              {
                "name": "setTimeout",
                "type": "(callback: () => void, ms: number) => unknown",
                "required": true
              },
              {
                "name": "clearTimeout",
                "type": "(handle: unknown) => void",
                "required": true
              }
            ]
          },
          {
            "name": "FlowNode",
            "description": "A graph node.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "position",
                "type": "XYPosition",
                "required": true
              },
              {
                "name": "data",
                "type": "Data",
                "required": false
              },
              {
                "name": "type",
                "type": "string",
                "required": false,
                "description": "Custom renderer key resolved via `nodeTypes`."
              },
              {
                "name": "selected",
                "type": "boolean",
                "required": false
              },
              {
                "name": "width",
                "type": "number",
                "required": false,
                "description": "Explicit/measured size used for handle anchors + bounding boxes."
              },
              {
                "name": "height",
                "type": "number",
                "required": false
              }
            ]
          },
          {
            "name": "FlowEdge",
            "description": "A directed connection between two nodes' handles.",
            "fields": [
              {
                "name": "id",
                "type": "string",
                "required": true
              },
              {
                "name": "source",
                "type": "string",
                "required": true
              },
              {
                "name": "target",
                "type": "string",
                "required": true
              },
              {
                "name": "sourceHandle",
                "type": "string",
                "required": false
              },
              {
                "name": "targetHandle",
                "type": "string",
                "required": false
              },
              {
                "name": "type",
                "type": "EdgePathType | string",
                "required": false,
                "description": "Custom renderer key resolved via `edgeTypes`."
              },
              {
                "name": "animated",
                "type": "boolean",
                "required": false
              },
              {
                "name": "label",
                "type": "string",
                "required": false
              },
              {
                "name": "selected",
                "type": "boolean",
                "required": false
              },
              {
                "name": "markerStart",
                "type": "boolean",
                "required": false,
                "description": "Arrowhead at the source end (points back toward the source). Default false."
              },
              {
                "name": "markerEnd",
                "type": "boolean",
                "required": false,
                "description": "Arrowhead at the target end (points at the target). Default true."
              }
            ]
          }
        ],
        "tokens": [
          "--cascivo-color-surface",
          "--cascivo-color-accent",
          "--cascivo-color-text-muted"
        ],
        "accessibility": {
          "role": "group",
          "wcag": "2.1-AA",
          "keyboard": ["Tab (focus controls)", "Enter/Space (play/pause, prev, next)"],
          "reducedMotion": true
        },
        "examples": [
          {
            "title": "A request/response storyboard",
            "description": "A<->B-->C: animate A→B, B→A, A→B, B→C, looping — each step fades in its caption.",
            "code": "() => (\n  <FlowStory\n    style={{ height: 340 }}\n    nodes={[\n      { id: 'A', position: { x: 0, y: 100 }, data: { label: 'Client' } },\n      { id: 'B', position: { x: 240, y: 100 }, data: { label: 'Gateway' } },\n      { id: 'C', position: { x: 480, y: 100 }, data: { label: 'Service' } },\n    ]}\n    edges={[\n      { id: 'ab', source: 'A', target: 'B' },\n      { id: 'bc', source: 'B', target: 'C' },\n    ]}\n    script={[\n      { from: 'A', to: 'B', label: 'Request sent' },\n      { from: 'B', to: 'A', label: 'Acknowledged' },\n      { from: 'A', to: 'B', label: 'Payload streamed' },\n      { from: 'B', to: 'C', label: 'Forwarded to Service' },\n    ]}\n    loop\n  />\n)"
          },
          {
            "title": "A linear pipeline",
            "description": "Each stage animates and is captioned in turn.",
            "code": "() => (\n  <FlowStory\n    style={{ height: 320 }}\n    nodes={[\n      { id: 'ingest', position: { x: 0, y: 100 }, data: { label: 'Ingest' } },\n      { id: 'transform', position: { x: 240, y: 100 }, data: { label: 'Transform' } },\n      { id: 'load', position: { x: 480, y: 100 }, data: { label: 'Load' } },\n    ]}\n    edges={[\n      { id: 'it', source: 'ingest', target: 'transform' },\n      { id: 'tl', source: 'transform', target: 'load' },\n    ]}\n    script={[\n      { from: 'ingest', to: 'transform', label: 'Records ingested', description: 'Raw events read from the source' },\n      { from: 'transform', to: 'load', label: 'Transformed', description: 'Cleaned and enriched' },\n    ]}\n  />\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "animation", "storyline", "walkthrough", "sequence"],
        "intent": {
          "whenToUse": [
            "Explaining how a flow works step by step, not just showing a static diagram",
            "Onboarding, architecture walkthroughs, and request/response narratives"
          ],
          "whenNotToUse": [
            "A static or freely-explorable graph — use <Flow>",
            "A single always-on animated edge — set animated on a FlowEdge"
          ],
          "antiPatterns": [
            {
              "bad": "A requestAnimationFrame loop to sequence steps",
              "good": "A currentStep signal advanced by a timer in useSignalEffect",
              "why": "CLAUDE.md bans the useEffect-style loop; the signal+timer idiom is deterministic + testable."
            }
          ],
          "related": [
            {
              "name": "Flow",
              "relationship": "contains",
              "reason": "Renders the graph the storyline animates."
            },
            {
              "name": "FlowEdge",
              "relationship": "pairs-with",
              "reason": "Reuses the animated-edge keyframe per step."
            }
          ],
          "a11yRationale": "The caption is an aria-live region announced each step; play/pause/prev/next make it keyboard-operable; travel motion is disabled under prefers-reduced-motion while captions are preserved.",
          "flexibility": [
            {
              "area": "script",
              "level": "flexible",
              "note": "Serializable steps — { from, to } or { edge, reverse }."
            },
            {
              "area": "playback",
              "level": "flexible",
              "note": "Controllable playing/currentStep; loop + per-step duration."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    },
    {
      "name": "flow/flow-canvas",
      "type": "flow",
      "description": "The pan/zoom canvas pane — a single CSS-transformed layer driven by the viewport signal.",
      "category": "display",
      "version": "1.12.1",
      "files": [],
      "dependencies": ["@cascivo/core"],
      "peerVersions": {
        "@cascivo/core": ">=1.12.1"
      },
      "tags": ["flow", "canvas", "viewport", "pan", "zoom"],
      "meta": {
        "name": "FlowCanvas",
        "description": "The pan/zoom canvas pane — a single CSS-transformed layer driven by the viewport signal.",
        "category": "display",
        "clientJs": "required",
        "states": [],
        "variants": [],
        "sizes": [],
        "props": [
          {
            "name": "children",
            "type": "ReactNode",
            "required": false,
            "description": "Background, nodes, edges."
          },
          {
            "name": "viewport",
            "type": "{ x: number; y: number; zoom: number }",
            "required": false,
            "description": "Controlled viewport."
          },
          {
            "name": "onViewportChange",
            "type": "(viewport: Viewport) => void",
            "required": false,
            "description": "Viewport change callback."
          },
          {
            "name": "minZoom",
            "type": "number",
            "required": false,
            "default": "0.2",
            "description": "Lower bound for the viewport zoom level."
          },
          {
            "name": "maxZoom",
            "type": "number",
            "required": false,
            "default": "2",
            "description": "Upper bound for the viewport zoom level."
          },
          {
            "name": "panOnDrag",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "Drag the empty pane to pan the viewport."
          },
          {
            "name": "zoomOnScroll",
            "type": "boolean",
            "required": false,
            "default": "true",
            "description": "Wheel or pinch to zoom the viewport."
          },
          {
            "name": "fitView",
            "type": "boolean",
            "required": false,
            "default": "false",
            "description": "Frame the whole graph once on mount."
          },
          {
            "name": "className",
            "description": "Additional CSS class names merged onto the root element.",
            "type": "string",
            "required": false
          },
          {
            "name": "chrome",
            "type": "ReactNode",
            "required": false,
            "description": "Screen-fixed overlay (controls, minimap, panels) — rendered outside the transformed pane."
          },
          {
            "name": "controller",
            "type": "UseViewportReturn",
            "required": false,
            "description": "Use a viewport controller owned by a parent (e.g."
          },
          {
            "name": "defaultViewport",
            "type": "Viewport",
            "required": false,
            "description": "Initial viewport (x, y, zoom) when uncontrolled."
          },
          {
            "name": "flow",
            "type": "FlowStore",
            "required": false,
            "description": "Share an external store (e.g."
          }
        ],
        "typeDefs": [
          {
            "name": "UseViewportReturn",
            "description": "Shape of the `controller` prop.",
            "fields": [
              {
                "name": "containerRef",
                "type": "RefObject<HTMLDivElement | null>",
                "required": true,
                "description": "Outer clipping container — attach for wheel + size measurement."
              },
              {
                "name": "panHandleRef",
                "type": "RefObject<HTMLElement | null>",
                "required": true,
                "description": "Background drag-surface (behind nodes) — the pan handle."
              },
              {
                "name": "viewport",
                "type": "Signal<Viewport>",
                "required": true
              },
              {
                "name": "pan",
                "type": "(dx: number, dy: number) => void",
                "required": true,
                "description": "Translate the viewport by a screen-space delta."
              },
              {
                "name": "zoomTo",
                "type": "(zoom: number, center?: XYPosition) => void",
                "required": true,
                "description": "Set zoom (clamped), optionally keeping `center` (container coords) fixed."
              },
              {
                "name": "zoomIn",
                "type": "() => void",
                "required": true
              },
              {
                "name": "zoomOut",
                "type": "() => void",
                "required": true
              },
              {
                "name": "fitView",
                "type": "(size?: Size) => void",
                "required": true,
                "description": "Frame all nodes."
              }
            ]
          },
          {
            "name": "Viewport",
            "description": "The pan/zoom state of the canvas pane.",
            "fields": [
              {
                "name": "x",
                "type": "number",
                "required": true
              },
              {
                "name": "y",
                "type": "number",
                "required": true
              },
              {
                "name": "zoom",
                "type": "number",
                "required": true
              }
            ]
          },
          {
            "name": "FlowStore",
            "description": "Shape of the `flow` prop.",
            "fields": [
              {
                "name": "nodes",
                "type": "Signal<FlowNode[]>",
                "required": true
              },
              {
                "name": "edges",
                "type": "Signal<FlowEdge[]>",
                "required": true
              },
              {
                "name": "viewport",
                "type": "Signal<Viewport>",
                "required": true
              },
              {
                "name": "setNodes",
                "type": "(nodes: FlowNode[]) => void",
                "required": true
              },
              {
                "name": "updateNode",
                "type": "(id: string, patch: Partial<FlowNode>) => void",
                "required": true
              },
              {
                "name": "setEdges",
                "type": "(edges: FlowEdge[]) => void",
                "required": true
              },
              {
                "name": "addEdge",
                "type": "(edge: FlowEdge) => void",
                "required": true
              },
              {
                "name": "setViewport",
                "type": "(viewport: Viewport) => void",
                "required": true
              }
            ]
          }
        ],
        "tokens": ["--cascivo-color-bg", "--cascivo-radius-surface"],
        "accessibility": {
          "role": "application",
          "wcag": "2.1-AA",
          "keyboard": ["Tab (focus)", "Drag (pan)", "Wheel (zoom)"]
        },
        "examples": [
          {
            "title": "Empty canvas with a background",
            "code": "() => (\n  <FlowCanvas style={{ height: 240 }}>\n    <FlowBackground />\n  </FlowCanvas>\n)"
          }
        ],
        "dependencies": ["@cascivo/core"],
        "tags": ["flow", "canvas", "viewport", "pan", "zoom"],
        "intent": {
          "whenToUse": [
            "Hosting a hand-composed flow from low-level FlowNode/FlowEdge primitives",
            "When you need direct control of the viewport, pan, and zoom"
          ],
          "whenNotToUse": [
            "For the common case — prefer the declarative <Flow nodes edges /> instead"
          ],
          "antiPatterns": [],
          "related": [
            {
              "name": "Flow",
              "relationship": "alternative",
              "reason": "The declarative data-driven wrapper."
            },
            {
              "name": "FlowBackground",
              "relationship": "contains",
              "reason": "A common child."
            }
          ],
          "a11yRationale": "role=\"application\" — the pane is an interactive canvas with pointer gestures.",
          "flexibility": [
            {
              "area": "viewport",
              "level": "flexible",
              "note": "Controllable; pan/zoom toggleable."
            }
          ]
        }
      },
      "install": "@cascivo/flow",
      "styles": "@cascivo/flow/styles.css",
      "channels": ["npm:@cascivo/flow"]
    }
  ],
  "blocks": [
    {
      "name": "app-shell",
      "type": "block",
      "displayName": "App Shell",
      "description": "Two-column layout with collapsible sidebar, nav links, and content area.",
      "category": "shell",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/app-shell/app-shell.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/app-shell/app-shell.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["shell", "layout", "sidebar", "navigation", "responsive"],
      "screenshot": {
        "light": "/blocks/screenshots/app-shell-light.png",
        "dark": "/blocks/screenshots/app-shell-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Frame for an authenticated app: persistent sidebar nav on desktop, drawer nav on mobile",
          "Starting point when a page needs a topbar, main navigation, and a content area",
          "Hosting dashboard or settings blocks inside consistent app chrome"
        ],
        "whenNotToUse": [
          "Marketing or landing pages — compose marketing-hero, marketing-features, and site-footer instead",
          "Standalone auth screens — auth-login and auth-signup are full-page centered cards without app chrome"
        ],
        "related": [
          {
            "name": "dashboard-overview",
            "relationship": "pairs-with",
            "reason": "Typical content for the shell’s main area"
          },
          {
            "name": "settings-profile",
            "relationship": "pairs-with",
            "reason": "Settings pages render inside this shell"
          }
        ],
        "a11yRationale": "Sidebar nav is a labeled <nav> landmark with aria-current=\"page\" on the active link; the mobile drawer toggle exposes aria-expanded, Escape closes the drawer, body scroll is locked while open, and the off-screen sidebar is aria-hidden on mobile so it leaves the a11y tree only when visually unavailable"
      }
    },
    {
      "name": "auth-login",
      "type": "block",
      "displayName": "Login Form",
      "description": "Email + password login with remember-me checkbox and forgot-password link.",
      "category": "auth",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/auth-login/auth-login.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/auth-login/auth-login.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["auth", "login", "form", "email", "password"],
      "screenshot": {
        "light": "/blocks/screenshots/auth-login-light.png",
        "dark": "/blocks/screenshots/auth-login-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Sign-in page for returning users with email + password credentials",
          "Standalone centered auth screen with remember-me and a forgot-password recovery link"
        ],
        "whenNotToUse": [
          "Registering new users — use auth-signup (this block links to it)",
          "SSO/OAuth-only sign-in with no password field — the form is credential-based",
          "Inline sign-in inside app chrome — this is a full-page centered card layout"
        ],
        "related": [
          {
            "name": "auth-signup",
            "relationship": "pairs-with",
            "reason": "The blocks cross-link: login footer points to signup and vice versa"
          },
          {
            "name": "Input",
            "relationship": "contains",
            "reason": "Email and password fields are Input components with autocomplete wired"
          }
        ],
        "a11yRationale": "Every field has an explicit <label htmlFor>, inputs declare autoComplete=\"email\"/\"current-password\" for password managers, and the submit is a real type=\"submit\" button inside a <form>"
      }
    },
    {
      "name": "auth-signup",
      "type": "block",
      "displayName": "Sign Up Form",
      "description": "Full-name, email, password, confirm-password sign-up form with terms checkbox.",
      "category": "auth",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/auth-signup/auth-signup.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/auth-signup/auth-signup.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["auth", "signup", "register", "form"],
      "screenshot": {
        "light": "/blocks/screenshots/auth-signup-light.png",
        "dark": "/blocks/screenshots/auth-signup-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Registration page collecting name, email, and password with confirmation",
          "Flows that require explicit terms-of-service / privacy-policy consent before account creation"
        ],
        "whenNotToUse": [
          "Signing in existing users — use auth-login (this block links to it)",
          "Multi-step onboarding wizards — this is a single-screen form"
        ],
        "related": [
          {
            "name": "auth-login",
            "relationship": "pairs-with",
            "reason": "The blocks cross-link: signup footer points to login and vice versa"
          },
          {
            "name": "Checkbox",
            "relationship": "contains",
            "reason": "Terms consent is a Checkbox tied to its label with links to terms and privacy"
          }
        ],
        "a11yRationale": "Every field has an explicit <label htmlFor>, password fields declare autoComplete=\"new-password\" so managers offer generation, and the terms checkbox is associated with its label text"
      }
    },
    {
      "name": "dashboard-overview",
      "type": "block",
      "displayName": "Dashboard Overview",
      "description": "Welcome header with four KPI stat cards (revenue, users, orders, conversion).",
      "category": "dashboard",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/dashboard-overview/dashboard-overview.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/dashboard-overview/dashboard-overview.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["dashboard", "stats", "kpi", "cards", "overview"],
      "screenshot": {
        "light": "/blocks/screenshots/dashboard-overview-light.png",
        "dark": "/blocks/screenshots/dashboard-overview-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Landing view of a dashboard summarizing headline KPIs (revenue, users, orders, conversion) at a glance",
          "A stat-card row with up/down deltas versus the previous period, placed above detail views"
        ],
        "whenNotToUse": [
          "Browsing row-level records — use dashboard-table",
          "Trends over time that need charts — the cards show single values and deltas only"
        ],
        "related": [
          {
            "name": "dashboard-table",
            "relationship": "pairs-with",
            "reason": "Overview KPIs on top, record-level table below is the canonical dashboard page"
          },
          {
            "name": "app-shell",
            "relationship": "contained-by",
            "reason": "Designed to render inside the app shell’s content area"
          },
          {
            "name": "Badge",
            "relationship": "contains",
            "reason": "Deltas render as success/destructive Badges keyed to trend direction"
          }
        ]
      }
    },
    {
      "name": "dashboard-table",
      "type": "block",
      "displayName": "Dashboard Table",
      "description": "Searchable, sortable, paginated data table with export button.",
      "category": "dashboard",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/dashboard-table/dashboard-table.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/dashboard-table/dashboard-table.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["dashboard", "table", "data", "search", "sort", "pagination"],
      "screenshot": {
        "light": "/blocks/screenshots/dashboard-table-light.png",
        "dark": "/blocks/screenshots/dashboard-table-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Admin views listing records (customers, orders) with text search, column sorting, and pagination",
          "Tables where a status column benefits from Badge color coding (active/pending/inactive)"
        ],
        "whenNotToUse": [
          "Aggregate metrics at a glance — use dashboard-overview",
          "Large server-side datasets — filtering, sorting, and paging here are all client-side over in-memory rows"
        ],
        "related": [
          {
            "name": "dashboard-overview",
            "relationship": "pairs-with",
            "reason": "KPI cards above the record table is the canonical dashboard page"
          },
          {
            "name": "app-shell",
            "relationship": "contained-by",
            "reason": "Designed to render inside the app shell’s content area"
          }
        ]
      }
    },
    {
      "name": "faq",
      "type": "block",
      "displayName": "FAQ Accordion",
      "description": "Frequently-asked-questions section composed from the Accordion component, with a centered, readable measure.",
      "category": "marketing",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/faq/faq.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/faq/faq.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["marketing", "faq", "accordion", "questions"],
      "screenshot": {
        "light": "/blocks/screenshots/faq-light.png",
        "dark": "/blocks/screenshots/faq-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Pre-sales or support question sections on marketing and pricing pages",
          "Condensing a handful of short Q&A pairs behind single-open disclosures to keep the page scannable"
        ],
        "whenNotToUse": [
          "Full product documentation — link to docs instead of stacking long answers in an accordion",
          "Two or three short answers — rendering them as plain headings and paragraphs avoids the extra click"
        ],
        "related": [
          {
            "name": "Accordion",
            "relationship": "contains",
            "reason": "Each Q&A is an AccordionItem inside a type=\"single\" Accordion"
          },
          {
            "name": "pricing",
            "relationship": "pairs-with",
            "reason": "Billing and plan questions typically follow the pricing section"
          }
        ],
        "a11yRationale": "The section carries aria-label=\"Frequently asked questions\" and questions inherit Accordion’s button/region semantics and keyboard support"
      }
    },
    {
      "name": "marketing-features",
      "type": "block",
      "displayName": "Feature Grid",
      "description": "Three-column responsive feature grid with icon, title, and description per cell.",
      "category": "marketing",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/marketing-features/marketing-features.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/marketing-features/marketing-features.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["marketing", "features", "grid", "icons"],
      "screenshot": {
        "light": "/blocks/screenshots/marketing-features-light.png",
        "dark": "/blocks/screenshots/marketing-features-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Landing-page section detailing product capabilities right after the hero",
          "A scannable grid of short value propositions, each with an icon, title, and one-sentence description"
        ],
        "whenNotToUse": [
          "Comparing plans or tiers — use pricing",
          "Long-form explanations — the cells are built for one short sentence each, not prose"
        ],
        "related": [
          {
            "name": "marketing-hero",
            "relationship": "pairs-with",
            "reason": "The feature grid conventionally follows the hero on a landing page"
          },
          {
            "name": "pricing",
            "relationship": "pairs-with",
            "reason": "Features establish value before the pricing section asks for commitment"
          }
        ],
        "a11yRationale": "Each feature is an <article> with an <h3> under the section’s <h2>, keeping heading hierarchy intact; decorative icons are aria-hidden"
      }
    },
    {
      "name": "marketing-hero",
      "type": "block",
      "displayName": "Hero Section",
      "description": "Full-width hero with headline, subtitle, CTA pair, and trust badges.",
      "category": "marketing",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/marketing-hero/marketing-hero.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/marketing-hero/marketing-hero.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["marketing", "hero", "landing", "cta"],
      "screenshot": {
        "light": "/blocks/screenshots/marketing-hero-light.png",
        "dark": "/blocks/screenshots/marketing-hero-dark.png"
      },
      "intent": {
        "whenToUse": [
          "The opening section of a landing page: headline, supporting subtitle, and a primary/secondary CTA pair",
          "Announcing a product or release — the eyebrow Badge slot carries the \"New\" callout",
          "Building credibility above the fold via the trust-badge row (licence, a11y, dependency claims)"
        ],
        "whenNotToUse": [
          "Interior or app pages — use a page header inside app-shell instead",
          "Sections without one clear primary action — the layout is built around a dominant CTA"
        ],
        "related": [
          {
            "name": "marketing-features",
            "relationship": "pairs-with",
            "reason": "The feature grid is the natural next section after the hero"
          },
          {
            "name": "pricing",
            "relationship": "pairs-with",
            "reason": "Hero CTA commonly leads to the pricing section further down the page"
          },
          {
            "name": "site-footer",
            "relationship": "pairs-with",
            "reason": "Hero and footer bookend the standard marketing page composition"
          }
        ],
        "a11yRationale": "The headline is the page’s single <h1>; CTAs are real Buttons and the section reads top-to-bottom in DOM order"
      }
    },
    {
      "name": "pricing",
      "type": "block",
      "displayName": "Pricing Tiers",
      "description": "Responsive three-tier pricing section composed from Card, Badge, and Button, with a highlighted featured plan.",
      "category": "marketing",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/pricing/pricing.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/pricing/pricing.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["marketing", "pricing", "plans", "cards"],
      "screenshot": {
        "light": "/blocks/screenshots/pricing-light.png",
        "dark": "/blocks/screenshots/pricing-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Subscription products with a small number of tiers, each with a price, feature list, and its own CTA",
          "Steering users toward a recommended plan — the featured tier gets an elevated card and \"Popular\" Badge"
        ],
        "whenNotToUse": [
          "Usage-based or configurable pricing that needs a calculator rather than fixed tiers",
          "More than four plans or many comparison dimensions — a comparison table scales better than cards"
        ],
        "related": [
          {
            "name": "faq",
            "relationship": "pairs-with",
            "reason": "Billing questions conventionally follow the pricing section"
          },
          {
            "name": "marketing-hero",
            "relationship": "pairs-with",
            "reason": "Hero CTAs commonly link down to pricing on the same landing page"
          },
          {
            "name": "Card",
            "relationship": "contains",
            "reason": "Each tier is a Card; the featured tier uses the elevated variant"
          }
        ],
        "a11yRationale": "The section carries aria-label=\"Pricing plans\", each feature list is a real <ul>, and decorative check marks are aria-hidden"
      }
    },
    {
      "name": "settings-profile",
      "type": "block",
      "displayName": "Settings — Profile",
      "description": "Two-section settings form: personal info fields + preference toggles.",
      "category": "shell",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/settings-profile/settings-profile.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/settings-profile/settings-profile.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["settings", "profile", "form", "toggles", "preferences"],
      "screenshot": {
        "light": "/blocks/screenshots/settings-profile-light.png",
        "dark": "/blocks/screenshots/settings-profile-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Account settings page combining editable profile fields (name, email, bio) with notification toggles",
          "Settings screens that group fields into titled sections with a shared cancel/save footer"
        ],
        "whenNotToUse": [
          "Collecting user details at registration — use auth-signup",
          "Large settings surfaces spanning many areas — split into separate pages or Tabs rather than one long form"
        ],
        "related": [
          {
            "name": "app-shell",
            "relationship": "contained-by",
            "reason": "Settings render inside the app shell’s content area"
          },
          {
            "name": "Toggle",
            "relationship": "contains",
            "reason": "Notification preferences are Toggles with aria-labels"
          }
        ],
        "a11yRationale": "Text fields use explicit <label htmlFor>; each Toggle carries an aria-label matching its visible row label; sections are titled with <h2> under the page <h1>"
      }
    },
    {
      "name": "site-footer",
      "type": "block",
      "displayName": "Site Footer",
      "description": "Multi-column site footer composed from Link and Separator, with a brand blurb, link columns, and a legal row.",
      "category": "marketing",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/site-footer/site-footer.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/site-footer/site-footer.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["marketing", "footer", "navigation", "links"],
      "screenshot": {
        "light": "/blocks/screenshots/site-footer-light.png",
        "dark": "/blocks/screenshots/site-footer-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Global footer for a marketing or docs site with grouped secondary navigation columns",
          "Closing a landing page with a brand blurb, legal links, and an auto-updating copyright year"
        ],
        "whenNotToUse": [
          "Authenticated app screens — footer link columns waste vertical space inside app-shell",
          "Pages with only a copyright line — a Separator and one row of text is enough"
        ],
        "related": [
          {
            "name": "marketing-hero",
            "relationship": "pairs-with",
            "reason": "Hero and footer bookend the standard marketing page composition"
          },
          {
            "name": "Link",
            "relationship": "contains",
            "reason": "All footer navigation and legal links are Link components"
          }
        ],
        "a11yRationale": "Renders a real <footer> with the link columns wrapped in a <nav aria-label=\"Footer\"> landmark and lists marked up as <ul>"
      }
    },
    {
      "name": "testimonials",
      "type": "block",
      "displayName": "Testimonials",
      "description": "Responsive testimonial grid composed from Card and Avatar, with a quote and attribution per card.",
      "category": "marketing",
      "version": "1.12.1",
      "files": [
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/testimonials/testimonials.tsx",
        "https://raw.githubusercontent.com/cascivo/cascivo/main/packages/components/src/blocks/testimonials/testimonials.module.css"
      ],
      "dependencies": ["@cascivo/react"],
      "tags": ["marketing", "testimonials", "social-proof", "cards"],
      "screenshot": {
        "light": "/blocks/screenshots/testimonials-light.png",
        "dark": "/blocks/screenshots/testimonials-dark.png"
      },
      "intent": {
        "whenToUse": [
          "Social-proof section on a landing or pricing page with short customer quotes",
          "Attributed quotes where each card shows the person’s name, role, and avatar initials"
        ],
        "whenNotToUse": [
          "Long-form case studies — cards fit one or two sentences, not narratives",
          "Logo walls or press mentions without quotes — this block is quote-centric"
        ],
        "related": [
          {
            "name": "marketing-features",
            "relationship": "pairs-with",
            "reason": "Testimonials reinforce the claims made in the feature grid"
          },
          {
            "name": "pricing",
            "relationship": "pairs-with",
            "reason": "Social proof placed near pricing supports the purchase decision"
          },
          {
            "name": "Avatar",
            "relationship": "contains",
            "reason": "Attribution uses Avatar with initials fallback"
          }
        ],
        "a11yRationale": "The section carries aria-label=\"Customer testimonials\" and each quote is a semantic <blockquote> with visible attribution"
      }
    }
  ],
  "templates": [
    {
      "schemaVersion": 2,
      "name": "dashboard",
      "type": "template",
      "description": "An analytics dashboard with KPI cards, a chart slot, and a recent-activity table",
      "category": "dashboard",
      "version": "1.0.0",
      "license": "MIT",
      "author": "cascivo",
      "homepage": "https://github.com/cascivo/cascivo/tree/main/templates/dashboard",
      "files": [
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/dashboard/dashboard.tsx",
          "target": "src/pages/dashboard.tsx"
        },
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/dashboard/dashboard.module.css",
          "target": "src/pages/dashboard.module.css"
        },
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/dashboard/fixtures.ts",
          "target": "src/fixtures/dashboard.ts"
        }
      ],
      "dependencies": [],
      "registryDependencies": ["card", "badge", "data-table"],
      "tags": ["dashboard", "analytics", "template"],
      "meta": {
        "intent": "Analytics dashboard",
        "framework": "react-vite",
        "category": "dashboard",
        "screenshots": [
          {
            "light": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/dashboard/screenshot-light.svg",
            "alt": "Analytics dashboard with KPI cards and a recent-activity table"
          }
        ],
        "fileRoles": {
          "src/pages/dashboard.tsx": "page",
          "src/pages/dashboard.module.css": "asset",
          "src/fixtures/dashboard.ts": "fixture"
        },
        "pages": [
          {
            "name": "Dashboard",
            "target": "src/pages/dashboard.tsx"
          }
        ]
      }
    },
    {
      "schemaVersion": 2,
      "name": "auth",
      "type": "template",
      "description": "A centered sign-in screen with email/password fields and a submit action",
      "category": "auth",
      "version": "1.0.0",
      "license": "MIT",
      "author": "cascivo",
      "homepage": "https://github.com/cascivo/cascivo/tree/main/templates/auth",
      "files": [
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/auth/auth.tsx",
          "target": "src/pages/auth.tsx"
        },
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/auth/auth.module.css",
          "target": "src/pages/auth.module.css"
        }
      ],
      "dependencies": [],
      "registryDependencies": ["card", "input", "button"],
      "tags": ["auth", "login", "template"],
      "meta": {
        "intent": "Sign-in screen",
        "framework": "react-vite",
        "category": "auth",
        "screenshots": [
          {
            "light": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/auth/screenshot-light.svg",
            "alt": "Centered sign-in card with email and password fields"
          }
        ],
        "fileRoles": {
          "src/pages/auth.tsx": "page",
          "src/pages/auth.module.css": "asset"
        },
        "pages": [
          {
            "name": "SignIn",
            "target": "src/pages/auth.tsx"
          }
        ]
      }
    },
    {
      "schemaVersion": 2,
      "name": "landing",
      "type": "template",
      "description": "A marketing landing page with a hero, a feature grid, and a call-to-action",
      "category": "marketing",
      "version": "1.0.0",
      "license": "MIT",
      "author": "cascivo",
      "homepage": "https://github.com/cascivo/cascivo/tree/main/templates/landing",
      "files": [
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/landing/landing.tsx",
          "target": "src/pages/landing.tsx"
        },
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/landing/landing.module.css",
          "target": "src/pages/landing.module.css"
        },
        {
          "url": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/landing/fixtures.ts",
          "target": "src/fixtures/landing.ts"
        }
      ],
      "dependencies": [],
      "registryDependencies": ["button", "card", "badge"],
      "tags": ["marketing", "landing", "template"],
      "meta": {
        "intent": "Marketing landing page",
        "framework": "react-vite",
        "category": "marketing",
        "screenshots": [
          {
            "light": "https://raw.githubusercontent.com/cascivo/cascivo/main/templates/landing/screenshot-light.svg",
            "alt": "Landing page with a hero headline and a three-column feature grid"
          }
        ],
        "fileRoles": {
          "src/pages/landing.tsx": "page",
          "src/pages/landing.module.css": "asset",
          "src/fixtures/landing.ts": "fixture"
        },
        "pages": [
          {
            "name": "Landing",
            "target": "src/pages/landing.tsx"
          }
        ]
      }
    }
  ]
}
