{
  "component": {
    "id": "radio-cards",
    "name": "Radio cards",
    "tier": "pro",
    "exampleId": "radio-cards",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/core-demos.tsx",
    "exportName": "RadioCardsDemo",
    "sha256": "012f38f2b39c13bd5e28cae2f0223ffab4c0ac863822c79826d3f5d322353b94",
    "helperImports": [],
    "directComponentImports": [
      "form-field",
      "radio-cards",
      "tidal-button"
    ],
    "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/radio-cards",
    "registryUrl": "https://tidalui.com/r/pro/radio-cards.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/radio-cards",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/radio-cards",
      "registryUrl": "https://tidalui.com/r/pro/radio-cards.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/form-field.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/form-field.json",
      "registryUrl": "https://tidalui.com/r/form-field.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    },
    {
      "order": 3,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/tidal-button.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/tidal-button.json",
      "registryUrl": "https://tidalui.com/r/tidal-button.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/radio-cards.tsx",
    "exports": [
      "TidalButton",
      "TidalField",
      "TidalRadioCards"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/radio-cards.css",
      "components/ui/form-field.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-radio-group",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [
      "https://tidalui.com/r/form-field.json",
      "https://tidalui.com/r/tidal-button.json"
    ],
    "installClosure": [
      "form-field",
      "radio-cards",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/radio-cards.css",
      "components/ui/form-field.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/radio-cards.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/demo-styles.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { TidalRadioCards } from \"./components/ui/radio-cards\";\n\nimport \"./components/ui/radio-cards.css\";\n\nimport { UserRound, UsersRound, Building2 } from \"lucide-react\";\n\nimport { useState, useRef, type CSSProperties } from \"react\";\n\nimport { Check, Plus } from \"lucide-react\";\n\nimport { TidalField } from \"./components/ui/form-field\";\n\nimport \"./components/ui/form-field.css\";\n\nimport { TidalButton } from \"./components/ui/tidal-button\";\n\n\n\nconst tidalExampleStyles = \".demo-eyebrow{font-size:11px;letter-spacing:1px;color:var(--t-muted);font-weight:500;margin:0 0 13px}\\n\\n.radio-specimen{width:100%;max-width:405px;border:1px solid var(--t-border);border-radius:17px;background:var(--t-surface);padding:26px;box-shadow:0 8px 24px #1f1f1f07}.radio-specimen>.demo-eyebrow{font-size:11px}.radio-specimen>h3{font-size:23px;letter-spacing:-.8px;color:var(--t-ink);margin:12px 0 25px}.radio-demo-status{font-size:11px;color:var(--t-muted);margin:17px 0 0}\\n.radio-specimen{max-width:760px;border-radius:var(--t-radius-card);padding:28px;background:linear-gradient(145deg,var(--t-surface),color-mix(in srgb,var(--t-surface) 94%,var(--t-subtle)));box-shadow:0 24px 40px -28px #00000040,0 2px 4px #00000008}\\n.radio-specimen>h3{font-size:28px;letter-spacing:-1px;margin:10px 0 25px}\\n.workspace-demo-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:22px;align-items:stretch}\\n.workspace-demo-preview{min-width:0;position:relative;overflow:hidden;border:1px solid var(--t-border);border-radius:var(--t-radius-card);padding:20px;background:radial-gradient(ellipse at 50% 10%,var(--t-surface),var(--t-subtle));box-shadow:inset 0 1px 0 #ffffff0b;display:flex;flex-direction:column}\\n.workspace-demo-preview-top{display:flex;justify-content:space-between;align-items:center;gap:6px}.workspace-demo-preview-top .demo-eyebrow{font-size:11px;margin:0;letter-spacing:1px}\\n.workspace-demo-state{display:flex;align-items:center;gap:4px;border:1px solid var(--t-border);padding:4px 7px;border-radius:20px;color:var(--t-muted);font-size:11px}.workspace-demo-dot{width:3px;height:3px;background:var(--t-muted);border-radius:50%}\\n.workspace-demo-preview[data-created=true] .workspace-demo-state{background:var(--t-ink);color:var(--t-surface);border-color:var(--t-ink)}\\n.workspace-demo-avatar{width:44px;height:44px;margin-top:22px;border:1px solid var(--t-border);border-radius:10px;background:var(--t-surface);box-shadow:0 3px 6px #00000007;position:relative;transition:background 320ms var(--t-ease-out),color 320ms var(--t-ease-out)}\\n.workspace-demo-avatar svg{position:absolute;left:10px;top:10px;transition:transform 420ms var(--t-ease-spring),opacity 180ms var(--t-ease-out)}\\n.workspace-demo-avatar svg:first-child{opacity:1;transform:scale(1)}.workspace-demo-avatar svg:last-child{opacity:0;transform:scale(.5)}\\n.workspace-demo-avatar[data-team=true]{background:var(--t-ink);color:var(--t-surface);border-color:var(--t-ink)}.workspace-demo-avatar[data-team=true] svg:first-child{opacity:0;transform:scale(.5)}.workspace-demo-avatar[data-team=true] svg:last-child{opacity:1;transform:scale(1)}\\n.workspace-demo-preview h4{font-size:21px;font-weight:550;letter-spacing:-.65px;margin:15px 0 5px;overflow-wrap:anywhere}.workspace-demo-preview>p{font-size:11px;color:var(--t-muted);line-height:1.6;margin:0 0 20px;min-height:32px}\\n.workspace-demo-capacity{display:flex;justify-content:space-between;gap:8px;align-items:center}.workspace-demo-capacity>span{font-size:11px;letter-spacing:1px;color:var(--t-muted)}.workspace-demo-capacity strong{font-size:28px;letter-spacing:-1px;font-weight:500;line-height:1.12;font-variant-numeric:tabular-nums}\\n.workspace-demo-digits{display:flex;align-items:baseline}.workspace-demo-digit-window{display:block;width:1ch;height:1.12em;overflow:hidden;transition:width 420ms var(--t-ease-out),opacity 180ms var(--t-ease-out);letter-spacing:0}.workspace-demo-digit-window[data-leading=true]{width:0;opacity:0}.workspace-demo-digit-window>span{display:flex;flex-direction:column;transition:transform 650ms var(--t-ease-out)}.workspace-demo-digit-window>span>span{height:1.12em;line-height:1.12;flex:none;text-align:center}\\n.workspace-demo-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\\n.workspace-demo-seat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:15px 0 21px}.workspace-demo-seat-grid>span{height:26px;border-radius:5px;border:1px solid var(--t-border);color:var(--t-muted);background:var(--t-subtle);display:grid;place-items:center;opacity:.25;transform:scale(.85);transition:opacity 320ms var(--seat-delay) var(--t-ease-out),transform 420ms var(--seat-delay) var(--t-ease-spring),background 240ms var(--seat-delay),color 240ms var(--seat-delay)}.workspace-demo-seat-grid>span[data-active=true]{opacity:1;transform:scale(1);background:var(--t-ink);color:var(--t-surface);border-color:var(--t-ink)}\\n.workspace-demo-summary{margin-top:auto;border-top:1px solid var(--t-border);padding-top:14px;display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--t-muted)}\\n.workspace-demo-create{margin-top:25px;padding-top:23px;border-top:1px solid var(--t-border);display:flex;gap:18px;align-items:flex-end}.workspace-demo-create>.tidal-field{flex:1;min-width:0}.workspace-demo-create>.tidal-button{min-height:48px;font-size:11px;padding-inline:15px;flex:none}.radio-demo-status{margin-top:15px;font-size:11px}\\n@media(max-width:600px){.radio-specimen{padding:20px}.radio-specimen>h3{font-size:25px}.workspace-demo-layout{grid-template-columns:1fr;gap:22px}.workspace-demo-preview{padding:20px}.workspace-demo-preview>p{min-height:0}.workspace-demo-seat-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.workspace-demo-create{flex-direction:column;align-items:stretch;gap:14px}.workspace-demo-create>.tidal-field{width:100%}}\\n@media(max-width:600px){.workspace-demo-preview{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px 12px;align-items:center}.workspace-demo-preview-top{grid-column:1/-1;margin-bottom:8px}.workspace-demo-avatar{grid-column:1;grid-row:2/4;margin:0}.workspace-demo-preview h4{grid-column:2;grid-row:2;font-size:20px;margin:0}.workspace-demo-preview>p{grid-column:2;grid-row:3;margin:0;font-size:11px;line-height:1.5}.workspace-demo-capacity{grid-column:3;grid-row:2/4;flex-direction:column;align-items:flex-end;gap:4px}.workspace-demo-capacity>span{max-width:55px;text-align:right;font-size:11px;line-height:1.5}.workspace-demo-capacity strong{font-size:26px}.workspace-demo-seat-grid{grid-column:1/-1;margin:10px 0 4px}.workspace-demo-summary{grid-column:1/-1;margin:0;padding-top:12px}}\\n\\n.radio-specimen{container-type:inline-size}\\n@container (max-width:600px){.workspace-demo-layout{grid-template-columns:1fr;gap:22px}.workspace-demo-create{flex-direction:column;align-items:stretch;gap:14px}.workspace-demo-create>.tidal-field{width:100%}}\\n@container (max-width:600px){.workspace-demo-preview{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px 12px;align-items:center}.workspace-demo-preview-top{grid-column:1/-1;margin-bottom:8px}.workspace-demo-avatar{grid-column:1;grid-row:2/4;margin:0}.workspace-demo-preview h4{grid-column:2;grid-row:2;font-size:20px;margin:0}.workspace-demo-preview>p{grid-column:2;grid-row:3;margin:0;font-size:11px;line-height:1.5}.workspace-demo-capacity{grid-column:3;grid-row:2/4;flex-direction:column;align-items:flex-end;gap:4px}.workspace-demo-capacity>span{max-width:55px;text-align:right;font-size:11px;line-height:1.5}.workspace-demo-capacity strong{font-size:26px}.workspace-demo-seat-grid{grid-column:1/-1;margin:10px 0 4px}.workspace-demo-summary{grid-column:1/-1;margin:0;padding-top:12px}}\";\n\nexport function RadioCardsDemo() {\n  const [workspace, setWorkspace] = useState(\"personal\");\n  const [name, setName] = useState(\"Northstar\");\n  const [created, setCreated] = useState(false);\n  const [error, setError] = useState(\"\");\n  const field = useRef<HTMLInputElement>(null);\n  const capacity = workspace === \"team\" ? 12 : 1;\n  return (\n    <form\n      className=\"radio-specimen\"\n      noValidate\n      onSubmit={(event) => {\n        event.preventDefault();\n        if (name.trim().length < 2) {\n          setError(\"Use at least two characters for the workspace name.\");\n          field.current?.focus({ preventScroll: true });\n          return;\n        }\n        setError(\"\");\n        setCreated(true);\n      }}\n    >\n      <div className=\"workspace-demo-layout\">\n        <div className=\"workspace-demo-choices\">\n          <TidalRadioCards\n            label=\"Workspace type\"\n            value={workspace}\n            onValueChange={(value) => {\n              setWorkspace(value);\n              setCreated(false);\n            }}\n            name=\"workspace\"\n            required\n            options={[\n              {\n                value: \"personal\",\n                label: \"A space for you\",\n                description: \"A private workspace for one person.\",\n                detail: \"One member · Private by default\",\n                icon: UserRound,\n              },\n              {\n                value: \"team\",\n                label: \"Team workspace\",\n                description: \"A shared workspace for up to 12 people.\",\n                detail: \"Up to 12 members · Shared projects\",\n                icon: UsersRound,\n              },\n              {\n                value: \"organization\",\n                label: \"Across your organization\",\n                description: \"A workspace shared across teams.\",\n                detail: \"Coming soon\",\n                icon: Building2,\n                disabled: true,\n              },\n            ]}\n          />\n        </div>\n        <aside\n          className=\"workspace-demo-preview\"\n          aria-label=\"Sample workspace preview\"\n          data-created={created}\n        >\n          <div className=\"workspace-demo-preview-top\">\n            <span className=\"demo-eyebrow\">YOUR WORKSPACE</span>\n            <span className=\"workspace-demo-state\">\n              {created ? (\n                <Check size={11} aria-hidden=\"true\" />\n              ) : (\n                <span className=\"workspace-demo-dot\" />\n              )}{\" \"}\n              {created ? \"Created\" : \"Preview\"}\n            </span>\n          </div>\n          <div\n            className=\"workspace-demo-avatar\"\n            data-team={workspace === \"team\"}\n          >\n            <UserRound size={22} aria-hidden=\"true\" />\n            <UsersRound size={22} aria-hidden=\"true\" />\n          </div>\n          <h4>{name.trim() || \"Your workspace\"}</h4>\n          <p>\n            {workspace === \"team\"\n              ? \"Shared ideas. More possibilities.\"\n              : \"A little space to make it yours.\"}\n          </p>\n          <div className=\"workspace-demo-capacity\">\n            <span>MEMBER CAPACITY</span>\n            <strong>\n              <span className=\"workspace-demo-sr\">\n                {capacity} {capacity === 1 ? \"member\" : \"members\"}\n              </span>\n              <span className=\"workspace-demo-digits\" aria-hidden=\"true\">\n                {[Math.floor(capacity / 10), capacity % 10].map((digit, i) => (\n                  <span\n                    key={i}\n                    className=\"workspace-demo-digit-window\"\n                    data-leading={i === 0 && digit === 0}\n                  >\n                    <span\n                      style={{ transform: `translateY(${-digit * 1.12}em)` }}\n                    >\n                      {Array.from({ length: 10 }, (_, n) => (\n                        <span key={n}>{n}</span>\n                      ))}\n                    </span>\n                  </span>\n                ))}\n              </span>\n            </strong>\n          </div>\n          <div className=\"workspace-demo-seat-grid\" aria-hidden=\"true\">\n            {Array.from({ length: 12 }, (_, i) => (\n              <span\n                key={i}\n                data-active={i < capacity}\n                style={{ \"--seat-delay\": `${i * 32}ms` } as CSSProperties}\n              >\n                <UserRound size={13} />\n              </span>\n            ))}\n          </div>\n          <div className=\"workspace-demo-summary\">\n            <span>{workspace === \"team\" ? \"Invite-only\" : \"Private\"}</span>\n            <span>\n              {workspace === \"team\" ? \"Shared projects\" : \"Personal projects\"}\n            </span>\n          </div>\n        </aside>\n      </div>\n      <div className=\"workspace-demo-create\">\n        <TidalField\n          ref={field}\n          label=\"Workspace name\"\n          value={name}\n          required\n          minLength={2}\n          maxLength={32}\n          error={error || undefined}\n          onChange={(event) => {\n            setName(event.target.value);\n            setError(\"\");\n            setCreated(false);\n          }}\n        />\n        <TidalButton type=\"submit\">\n          {created ? (\n            <Check size={15} aria-hidden=\"true\" />\n          ) : (\n            <Plus size={15} aria-hidden=\"true\" />\n          )}\n          {created ? \"Sample created\" : \"Create sample workspace\"}\n        </TidalButton>\n      </div>\n      <p className=\"radio-demo-status\" role=\"status\">\n        {created\n          ? `Sample ${workspace} workspace “${name.trim()}” created in this preview.`\n          : `${workspace === \"team\" ? \"Team\" : \"Personal\"} workspace selected. Preview only.`}\n      </p>\n    </form>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <RadioCardsDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/radio-cards.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"personal\"",
      "setter": "setWorkspace",
      "proposalCanBeRejected": false
    },
    {
      "prop": "created",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setCreated",
      "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": "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."
    },
    {
      "name": "onValueChange",
      "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": true,
    "names": [
      "workspace"
    ],
    "expectedFormData": {
      "workspace": "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": []
}
