{
  "component": {
    "id": "column-mapper",
    "name": "Column mapper",
    "tier": "pro",
    "exampleId": "column-mapper",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/column-mapper-demo.tsx",
    "exportName": "ColumnMapperDemo",
    "sha256": "895a3de97f356292d3cad3dcecc4773877c89bd3126f3cf83b728da589a16145",
    "helperImports": [],
    "directComponentImports": [
      "column-mapper"
    ],
    "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/column-mapper",
    "registryUrl": "https://tidalui.com/r/pro/column-mapper.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/column-mapper",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/column-mapper",
      "registryUrl": "https://tidalui.com/r/pro/column-mapper.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/column-mapper.tsx",
    "exports": [
      "TidalColumnMapper",
      "TidalColumnMapping"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/column-mapper.css",
      "components/ui/native-select.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/native-select"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "column-mapper",
      "native-select"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/column-mapper.css",
      "components/ui/native-select.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/column-mapper.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/column-mapper-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalColumnMapper, type TidalColumnMapping } from \"./components/ui/column-mapper\";\n\nimport \"./components/ui/column-mapper.css\";\n\nimport \"./components/ui/native-select.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .column-mapper-demo {\\n  width: min(100%, 760px);\\n  min-width: 0;\\n}\\n.tidal-scope .column-mapper-demo .tidal-column-header-actions button {\\n  min-height: 44px;\\n  min-width: 44px;\\n  padding: 9px 13px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-control);\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 12px;\\n  cursor: pointer;\\n}\\n.tidal-scope .column-mapper-demo > p {\\n  margin: 14px 2px 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.6;\\n  overflow-wrap: anywhere;\\n}\";\n\nconst sources = [\n  { id: \"full_name\", label: \"full_name\", sample: \"Avery Morgan\" },\n  { id: \"email_address\", label: \"email_address\", sample: \"avery@example.test\" },\n  { id: \"company\", label: \"company\", sample: \"Northstar\" },\n  { id: \"role\", label: \"role\", sample: \"Product designer\" },\n];\n\nconst fields = [\n  { id: \"name\", label: \"Name\", required: true },\n  { id: \"email\", label: \"Email address\", required: true },\n  { id: \"organization\", label: \"Company\" },\n];\n\nexport function ColumnMapperDemo() {\n  const [value, setValue] = useState<TidalColumnMapping>({\n    name: \"full_name\",\n    email: \"email_address\",\n  });\n  const [status, setStatus] = useState(\n    \"Preview a CSV mapping. No file is imported.\",\n  );\n  return (\n    <div className=\"column-mapper-demo\">\n      <TidalColumnMapper\n        sources={sources}\n        fields={fields}\n        value={value}\n        onValueChange={(next, field) => {\n          setValue(next);\n          setStatus(`Mapping for ${field} updated locally.`);\n        }}\n        headerActions={\n          <button\n            type=\"button\"\n            onClick={() => {\n              setValue({});\n              setStatus(\"All mappings cleared locally.\");\n            }}\n          >\n            Clear mapping\n          </button>\n        }\n      />\n      <p role=\"status\">{status}</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      <ColumnMapperDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/column-mapper.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "{\n    name: \"full_name\",\n    email: \"email_address\",\n  }",
      "setter": "setValue",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "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": "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": []
}
