{
  "component": {
    "id": "color-picker",
    "name": "Color picker",
    "tier": "pro",
    "exampleId": "color-picker",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/color-picker-demo.tsx",
    "exportName": "ColorPickerDemo",
    "sha256": "3a996fed1b8d59908495c6952d0d91a28bb6fb129f7522c069c32b6560e313fc",
    "helperImports": [],
    "directComponentImports": [
      "color-picker"
    ],
    "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/color-picker",
    "registryUrl": "https://tidalui.com/r/pro/color-picker.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/color-picker",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/color-picker",
      "registryUrl": "https://tidalui.com/r/pro/color-picker.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/color-picker.tsx",
    "exports": [
      "TidalColorPicker"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/color-picker.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "color-picker"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/color-picker.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/color-picker.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/color-picker-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { TidalColorPicker } from \"./components/ui/color-picker\";\n\nimport \"./components/ui/color-picker.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .color-picker-demo,\\n.tidal-scope .color-picker-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .color-picker-demo {\\n  width: 100%;\\n  min-width: 0;\\n  container: color-picker-demo / inline-size;\\n}\\n\\n.tidal-scope .color-picker-demo-frame {\\n  min-width: 0;\\n  padding: 20px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 22px;\\n  background: var(--t-subtle);\\n}\\n\\n.tidal-scope .color-picker-demo-frame form {\\n  min-width: 0;\\n  margin: 0;\\n}\\n\\n@container color-picker-demo (max-width: 520px) {\\n  .tidal-scope .color-picker-demo-frame {\\n    padding: 8px;\\n  }\\n}\";\n\nconst PRESETS = [\n  { id: \"ink\", value: \"#171717\", label: \"Ink\" },\n  { id: \"graphite\", value: \"#525252\", label: \"Graphite\" },\n  { id: \"silver\", value: \"#a3a3a3\", label: \"Silver\" },\n  { id: \"white\", value: \"#ffffff\", label: \"White\" },\n] as const;\n\nexport function ColorPickerDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const formId = `color-picker-${generatedId}-form`;\n  const [value, setValue] = useState(\"#171717\");\n  const [message, setMessage] = useState(\"Ink selected.\");\n\n  return (\n    <section className=\"color-picker-demo\" aria-label=\"Color picker preview\">\n      <div className=\"color-picker-demo-frame\">\n        <form\n          id={formId}\n          onSubmit={(event) => event.preventDefault()}\n          onReset={() => {\n            setValue(\"#171717\");\n            setMessage(\"Color reset to Ink.\");\n          }}\n        >\n          <TidalColorPicker\n            title=\"Color picker\"\n            description=\"Choose a preset or enter a hex color.\"\n            value={value}\n            onValueChange={(nextValue, source) => {\n              setValue(nextValue);\n              setMessage(\n                source === \"preset\"\n                  ? \"Preset selected.\"\n                  : source === \"color\"\n                    ? \"Color updated.\"\n                    : \"Hex color updated.\",\n              );\n            }}\n            presets={PRESETS.map((preset) => ({\n              ...preset,\n              accessibleLabel: `Use ${preset.label}, ${preset.value}`,\n            }))}\n            required\n            hint=\"Use six hexadecimal digits, such as #171717.\"\n            colorInputProps={{ name: \"sampleColor\", form: formId }}\n            hexInputProps={{ name: \"sampleHex\", form: formId }}\n            resetAction={{\n              label: \"Reset color\",\n              accessibleLabel: \"Reset color to Ink\",\n              buttonProps: { form: formId },\n            }}\n            footer={\n              <span role=\"status\" aria-live=\"polite\">\n                {message} Sample data. Changes stay in this preview.\n              </span>\n            }\n          />\n        </form>\n      </div>\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      <ColorPickerDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/color-picker.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"#171717\"",
      "setter": "setValue",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onReset",
      "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": "onSubmit",
      "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": "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": "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": []
}
