{
  "component": {
    "id": "sortable-list",
    "name": "Sortable list",
    "tier": "pro",
    "exampleId": "sortable-list",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/sortable-list-demo.tsx",
    "exportName": "SortableListDemo",
    "sha256": "51a08c5c7c397fcd97ee5a3bcacc4d44af22929ab3af31e181da2f6e62629f11",
    "helperImports": [],
    "directComponentImports": [
      "sortable-list"
    ],
    "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/sortable-list",
    "registryUrl": "https://tidalui.com/r/pro/sortable-list.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/sortable-list",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/sortable-list",
      "registryUrl": "https://tidalui.com/r/pro/sortable-list.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/sortable-list.tsx",
    "exports": [
      "TidalSortableList",
      "TidalSortableListItem"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/sortable-list.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "sortable-list"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/sortable-list.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/sortable-list.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/sortable-list-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { CheckSquare2, FileText, Smartphone, Stamp } from \"lucide-react\";\n\nimport { TidalSortableList, type TidalSortableListItem } from \"./components/ui/sortable-list\";\n\nimport \"./components/ui/sortable-list.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .sortable-list-demo,\\n.tidal-scope .sortable-list-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .sortable-list-demo {\\n  container: sortable-list-demo / inline-size;\\n  display: grid;\\n  gap: 14px;\\n  width: min(100%, 680px);\\n  min-width: 0;\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .sortable-list-demo-footer {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 12px;\\n  padding-top: 2px;\\n}\\n\\n.tidal-scope .sortable-list-demo-footer p,\\n.tidal-scope .sortable-list-demo-note {\\n  min-width: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .sortable-list-demo-footer button {\\n  min-width: 110px;\\n  min-height: 44px;\\n  flex: 0 0 auto;\\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  font-weight: 650;\\n  cursor: pointer;\\n  transition:\\n    background-color 160ms,\\n    color 160ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .sortable-list-demo-footer button:hover {\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .sortable-list-demo-footer button:active {\\n  transform: scale(0.97);\\n}\\n\\n.tidal-scope .sortable-list-demo-footer button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n@container sortable-list-demo (max-width: 360px) {\\n  .tidal-scope .sortable-list-demo-footer {\\n    align-items: stretch;\\n    flex-direction: column;\\n  }\\n\\n  .tidal-scope .sortable-list-demo-footer button {\\n    width: 100%;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .sortable-list-demo-footer button {\\n    transition: none;\\n  }\\n\\n  .tidal-scope .sortable-list-demo-footer button:active {\\n    transform: none;\\n  }\\n}\";\n\nconst INITIAL_ITEMS: readonly TidalSortableListItem[] = [\n  {\n    id: \"mobile\",\n    label: \"Review mobile states\",\n    description: \"Check the 320px and 390px layouts.\",\n    meta: \"Today\",\n    icon: <Smartphone aria-hidden=\"true\" />,\n  },\n  {\n    id: \"copy\",\n    label: \"Approve release copy\",\n    description: \"Confirm labels and local sample disclosures.\",\n    meta: \"Next\",\n    icon: <CheckSquare2 aria-hidden=\"true\" />,\n  },\n  {\n    id: \"notes\",\n    label: \"Prepare release notes\",\n    description: \"Summarize the accepted interface changes.\",\n    meta: \"Later\",\n    icon: <FileText aria-hidden=\"true\" />,\n  },\n  {\n    id: \"snapshot\",\n    label: \"Published snapshot\",\n    description: \"Locked after the sample release was prepared.\",\n    meta: \"Locked\",\n    icon: <Stamp aria-hidden=\"true\" />,\n    disabled: true,\n  },\n];\n\nexport function SortableListDemo() {\n  const [items, setItems] = useState<TidalSortableListItem[]>([\n    ...INITIAL_ITEMS,\n  ]);\n  const [status, setStatus] = useState(\n    \"Use the arrow actions to set priority.\",\n  );\n\n  return (\n    <section className=\"sortable-list-demo\" aria-label=\"Release priority list\">\n      <TidalSortableList\n        label=\"Release priorities\"\n        items={items}\n        onOrderChange={(nextItems, move) => {\n          setItems(nextItems);\n          setStatus(\n            `${nextItems[move.toIndex]?.label} is now priority ${move.toIndex + 1}.`,\n          );\n        }}\n      />\n      <div className=\"sortable-list-demo-footer\">\n        <p>{status}</p>\n        <button\n          type=\"button\"\n          onClick={() => {\n            setItems([...INITIAL_ITEMS]);\n            setStatus(\"Priority order reset.\");\n          }}\n        >\n          Reset order\n        </button>\n      </div>\n      <p className=\"sortable-list-demo-note\">\n        Sample priorities. Changes stay in this preview.\n      </p>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <SortableListDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/sortable-list.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "items",
      "type": "inferred-from-existing-demo",
      "initial": "[\n    ...INITIAL_ITEMS,\n  ]",
      "setter": "setItems",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onOrderChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "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": "Existing demo label or ARIA prop",
    "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": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "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": []
}
