{
  "component": {
    "id": "task-detail",
    "name": "Task detail",
    "tier": "pro",
    "exampleId": "task-detail",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/task-detail-demo.tsx",
    "exportName": "TaskDetailDemo",
    "sha256": "f4e812a3c7415872999ad1a425a69e54046bb0c3edc652e6450068f1903f6520",
    "helperImports": [],
    "directComponentImports": [
      "task-detail"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/task-detail",
    "registryUrl": "https://tidalui.com/r/pro/task-detail.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/task-detail",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/task-detail",
      "registryUrl": "https://tidalui.com/r/pro/task-detail.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/task-detail.tsx",
    "exports": [
      "TidalTaskDetail",
      "TidalTaskDetailValue"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/task-detail.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "task-detail"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/task-detail.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/task-detail.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/task-detail-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { TidalTaskDetail, type TidalTaskDetailValue } from \"./components/ui/task-detail\";\n\nimport \"./components/ui/task-detail.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .task-detail-demo {\\n  container: task-detail-demo / inline-size;\\n  display: grid;\\n  gap: 12px;\\n  inline-size: min(100%, 860px);\\n  min-inline-size: 0;\\n  margin-inline: auto;\\n}\\n\\n.tidal-scope .task-detail-demo-activity {\\n  display: grid;\\n  gap: 0;\\n  margin: 12px 0 0;\\n  padding: 0;\\n  list-style: none;\\n}\\n\\n.tidal-scope .task-detail-demo-activity li {\\n  display: grid;\\n  grid-template-columns: 44px minmax(0, 1fr);\\n  align-items: start;\\n  min-inline-size: 0;\\n  border-block-start: 1px solid var(--t-border);\\n  padding-block: 11px;\\n}\\n\\n.tidal-scope .task-detail-demo-activity li > span {\\n  display: grid;\\n  place-items: center;\\n  inline-size: 32px;\\n  block-size: 32px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 50%;\\n  background: var(--t-subtle);\\n  font-size: 11px;\\n  font-weight: 760;\\n}\\n\\n.tidal-scope .task-detail-demo-activity p {\\n  display: grid;\\n  gap: 4px;\\n  min-inline-size: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 12px;\\n  line-height: 1.45;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .task-detail-demo-activity strong {\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .task-detail-demo-activity time {\\n  font-size: 11px;\\n}\\n\\n.tidal-scope .task-detail-demo-footer {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 10px;\\n  min-inline-size: 0;\\n  padding: 4px 6px;\\n}\\n\\n.tidal-scope .task-detail-demo-footer p,\\n.tidal-scope .task-detail-demo-note {\\n  min-inline-size: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.45;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .task-detail-demo-footer button {\\n  flex: 0 0 auto;\\n  min-inline-size: 44px;\\n  min-block-size: 44px;\\n  border: 0;\\n  padding: 8px 10px;\\n  background: transparent;\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 760;\\n  cursor: pointer;\\n}\\n\\n.tidal-scope .task-detail-demo-footer button:focus-visible {\\n  outline: 3px solid var(--t-accent);\\n  outline-offset: 2px;\\n}\\n\\n.tidal-scope .task-detail-demo-note {\\n  border-block-start: 1px solid var(--t-border);\\n  padding: 12px 6px 0;\\n}\\n\\n@container task-detail-demo (max-width: 360px) {\\n  .tidal-scope .task-detail-demo-footer {\\n    align-items: start;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .task-detail-demo * {\\n    animation: none !important;\\n    transition-duration: 0s !important;\\n  }\\n}\";\n\nconst STATUSES = [\n  { id: \"planned\", label: \"Planned\" },\n  { id: \"progress\", label: \"In progress\" },\n  { id: \"review\", label: \"In review\" },\n  { id: \"done\", label: \"Done\" },\n] as const;\n\nconst ASSIGNEES = [\n  { id: \"ava\", label: \"Ava Moreno\" },\n  { id: \"noah\", label: \"Noah Patel\" },\n  { id: \"mila\", label: \"Mila Santos\" },\n] as const;\n\nconst INITIAL: TidalTaskDetailValue = {\n  id: \"task-184\",\n  title: \"Review import mapping\",\n  description:\n    \"Confirm the account and owner columns before the sample import is prepared.\",\n  statusId: \"review\",\n  assigneeId: \"ava\",\n  dueDate: \"2026-10-19\",\n  checklist: [\n    { id: \"headers\", label: \"Verify required headers\", completed: true },\n    { id: \"owners\", label: \"Check unmatched owner rows\", completed: false },\n    { id: \"sample\", label: \"Review the sample output\", completed: false },\n  ],\n};\n\nexport function TaskDetailDemo() {\n  const statusId = useId().replace(/:/g, \"\");\n  const [saved, setSaved] = useState<TidalTaskDetailValue>(INITIAL);\n  const [draft, setDraft] = useState<TidalTaskDetailValue>(INITIAL);\n  const [editing, setEditing] = useState(false);\n  const [message, setMessage] = useState(\"Ready to review.\");\n  const shown = editing ? draft : saved;\n\n  return (\n    <div className=\"task-detail-demo\">\n      <TidalTaskDetail\n        value={shown}\n        statuses={STATUSES}\n        assignees={ASSIGNEES}\n        editing={editing}\n        onEditingChange={(next) => {\n          if (next) setDraft(saved);\n          setEditing(next);\n        }}\n        onValueChange={setDraft}\n        onCancel={() => {\n          setDraft(saved);\n          setMessage(\"Changes canceled.\");\n        }}\n        onSave={(event) => {\n          event.preventDefault();\n          if (!draft.title.trim()) {\n            setMessage(\"Add a title before saving.\");\n            return;\n          }\n          setSaved(draft);\n          setEditing(false);\n          setMessage(\"Task changes saved in this preview.\");\n        }}\n        errors={\n          editing && !draft.title.trim()\n            ? {\n                title: \"Enter a task title.\",\n                form: \"Review the highlighted field.\",\n              }\n            : undefined\n        }\n        activity={\n          <ol className=\"task-detail-demo-activity\">\n            <li>\n              <span aria-hidden=\"true\">AM</span>\n              <p>\n                <strong>Ava</strong> moved the sample task to In review.\n                <time dateTime=\"2026-10-15T14:30:00-05:00\">2:30 PM</time>\n              </p>\n            </li>\n            <li>\n              <span aria-hidden=\"true\">NP</span>\n              <p>\n                <strong>Noah</strong> completed Verify required headers.\n                <time dateTime=\"2026-10-15T13:52:00-05:00\">1:52 PM</time>\n              </p>\n            </li>\n          </ol>\n        }\n      />\n      <div className=\"task-detail-demo-footer\">\n        <p id={statusId} role=\"status\" aria-live=\"polite\">\n          {message}\n        </p>\n        <button\n          type=\"button\"\n          onClick={() => {\n            setSaved(INITIAL);\n            setDraft(INITIAL);\n            setEditing(false);\n            setMessage(\"Sample task reset.\");\n          }}\n        >\n          Reset\n        </button>\n      </div>\n      <p className=\"task-detail-demo-note\">\n        Sample data. Changes stay in this preview.\n      </p>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <TaskDetailDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/task-detail.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "editing",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setEditing",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onCancel",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onEditingChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onSave",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onValueChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Consumer-provided label remains required where the component API requires one.",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
