{
  "component": {
    "id": "input-group",
    "name": "Input group",
    "tier": "pro",
    "exampleId": "input-group",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/input-group-demo.tsx",
    "exportName": "InputGroupDemo",
    "sha256": "f02dfe2b5ea2db7d704dec86e0d5ecd546d62a1eed1ae1f1ad9bd93427ef6654",
    "helperImports": [],
    "directComponentImports": [
      "input-group"
    ],
    "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/input-group",
    "registryUrl": "https://tidalui.com/r/pro/input-group.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/input-group",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/input-group",
      "registryUrl": "https://tidalui.com/r/pro/input-group.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/input-group.tsx",
    "exports": [
      "TidalInputGroup",
      "TidalInputGroupAction"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/input-group.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "input-group"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/input-group.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/input-group.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/input-group-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useId, useRef, useState, type FormEvent } from \"react\";\n\nimport { TidalInputGroup, type TidalInputGroupAction } from \"./components/ui/input-group\";\n\nimport \"./components/ui/input-group.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .input-group-demo {\\n  width: min(100%, 520px);\\n  min-width: 0;\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .input-group-demo-form {\\n  display: grid;\\n  gap: 28px;\\n}\\n\\n.tidal-scope .input-group-demo-footer {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 14px;\\n  min-width: 0;\\n  padding-top: 18px;\\n  border-top: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .input-group-demo-footer p {\\n  min-width: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .input-group-demo-footer > button {\\n  min-width: 112px;\\n  min-height: 44px;\\n  padding: 9px 14px;\\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: 630;\\n  cursor: pointer;\\n  transition:\\n    background-color 140ms,\\n    color 140ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .input-group-demo-footer > button:hover {\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .input-group-demo-footer > button:active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope .input-group-demo-footer > button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n@container preview-stage (max-width: 420px) {\\n  .tidal-scope .input-group-demo-footer {\\n    align-items: stretch;\\n    flex-direction: column;\\n  }\\n\\n  .tidal-scope .input-group-demo-footer > button {\\n    width: 100%;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .input-group-demo-footer > button {\\n    transition: none;\\n  }\\n\\n  .tidal-scope .input-group-demo-footer > button:active {\\n    transform: none;\\n  }\\n}\";\n\nexport function InputGroupDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const budgetId = `${generatedId}-budget`;\n  const pathId = `${generatedId}-path`;\n  const budgetRef = useRef<HTMLInputElement>(null);\n  const [budget, setBudget] = useState(\"48\");\n  const [path, setPath] = useState(\"launch-brief\");\n  const [error, setError] = useState(\"\");\n  const [status, setStatus] = useState(\"Edit either local sample field.\");\n\n  const budgetActions: readonly TidalInputGroupAction[] = [\n    {\n      actionId: \"apply-budget\",\n      label: \"Apply\",\n      type: \"submit\",\n    },\n  ];\n  const pathActions: readonly TidalInputGroupAction[] = [\n    {\n      actionId: \"set-path-sample\",\n      label: \"Use sample\",\n      onClick: () => {\n        setPath(\"workspace-notes\");\n        setStatus(\"The sample workspace path changed locally.\");\n      },\n    },\n  ];\n\n  function submitBudget(event: FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    const node = budgetRef.current;\n    if (!node?.checkValidity() || Number(budget) <= 0) {\n      setError(\"Enter an amount greater than zero.\");\n      node?.focus({ preventScroll: true });\n      return;\n    }\n    setError(\"\");\n    setStatus(`Local budget preview: $${budget} USD per month.`);\n  }\n\n  return (\n    <section className=\"input-group-demo\" aria-label=\"Workspace input groups\">\n      <form\n        className=\"input-group-demo-form\"\n        onSubmit={submitBudget}\n        onReset={() => {\n          setBudget(\"48\");\n          setPath(\"launch-brief\");\n          setError(\"\");\n          setStatus(\"The local sample was reset.\");\n        }}\n      >\n        <TidalInputGroup\n          ref={budgetRef}\n          id={budgetId}\n          label=\"Monthly workspace budget\"\n          name=\"budget\"\n          type=\"number\"\n          inputMode=\"decimal\"\n          min=\"1\"\n          step=\"1\"\n          required\n          value={budget}\n          onChange={(event) => {\n            setBudget(event.currentTarget.value);\n            setError(\"\");\n          }}\n          prefix=\"$\"\n          prefixLabel=\"US dollars\"\n          unit=\"USD / month\"\n          unitLabel=\"US dollars per month\"\n          actions={budgetActions}\n          description=\"This preview validates and formats the value locally.\"\n          error={error || undefined}\n        />\n\n        <TidalInputGroup\n          id={pathId}\n          label=\"Workspace path\"\n          name=\"workspace-path\"\n          value={path}\n          onChange={(event) => {\n            setPath(event.currentTarget.value);\n            setStatus(\"The sample path has unsaved local changes.\");\n          }}\n          prefix=\"northstar /\"\n          prefixLabel=\"Northstar workspace prefix\"\n          suffix=\".preview\"\n          suffixLabel=\"Preview suffix\"\n          actions={pathActions}\n          autoComplete=\"off\"\n          spellCheck={false}\n        />\n\n        <div className=\"input-group-demo-footer\">\n          <p role=\"status\">{status}</p>\n          <button type=\"reset\">Reset sample</button>\n        </div>\n      </form>\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      <InputGroupDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/input-group.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"48\"",
      "setter": "setBudget",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChange",
      "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": "onReset",
      "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": "onSubmit",
      "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."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [
      "budget",
      "workspace-path"
    ],
    "expectedFormData": {
      "budget": "fixture value",
      "workspace-path": "fixture value"
    },
    "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": []
}
