{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "signup-form-fixtures",
  "title": "Signup Form — fixtures",
  "author": "ilinxa",
  "description": "Signup Form plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/signup-form"
  ],
  "files": [
    {
      "path": "src/registry/components/forms/signup-form/dummy-data.ts",
      "content": "import type { ReactNode } from \"react\";\nimport type { SignupFormProps } from \"./types\";\n\n/**\n * Six fixture shapes covering the canonical signup surfaces.\n * Used by `demo.tsx` to render six tabs and by `registry-form-01-fixtures`\n * to ship copy-paste-ready prop bundles to consumers.\n *\n * `onSubmit` is intentionally left as a no-op here — the demo wraps each\n * fixture with a local `setLast(payload)` handler so consumers can see\n * the discriminated envelope shape live.\n */\n\nconst NOOP_ON_SUBMIT: SignupFormProps[\"onSubmit\"] = () => {\n  /* demo wires a real handler at usage site */\n};\n\nconst TERMS_LABEL: ReactNode = \"I agree to the Terms and Privacy Policy\";\n\n// 1. Default — single-step, email + password + consent only.\nexport const defaultSignupProps: SignupFormProps = {\n  heading: \"Create your account\",\n  subheading: \"Start free, upgrade when you grow.\",\n  flow: \"single-step\",\n  passwordStrategy: \"password\",\n  consent: {\n    required: true,\n    label: TERMS_LABEL,\n    href: \"#\",\n  },\n  signInHref: \"#\",\n  onSubmit: NOOP_ON_SUBMIT,\n};\n\n// 2. OAuth row above + the oauthIcons slot wired (lucide-react example).\n//    Demo populates the icons; this fixture leaves the slot empty so\n//    consumers see the text-only fallback in the dummy-data shape.\nexport const oauthSignupProps: SignupFormProps = {\n  heading: \"Create your account\",\n  subheading: \"Continue with your provider — or use email and password.\",\n  flow: \"single-step\",\n  passwordStrategy: \"password\",\n  oauthProviders: [\"google\", \"github\"],\n  // oauthIcons populated at the demo site (so this fixture stays\n  // ReactNode-free for the registry-fixtures consumer).\n  consent: {\n    required: true,\n    label: TERMS_LABEL,\n    href: \"#\",\n  },\n  signInHref: \"#\",\n  onSubmit: NOOP_ON_SUBMIT,\n};\n\n// 3. Two-step — email/password/consent → optional profile fields.\n//    skippableStepTwo defaults to true.\nexport const twoStepSignupProps: SignupFormProps = {\n  heading: \"Create your account\",\n  subheading: \"Two-step flow — basics first, profile next.\",\n  flow: \"two-step\",\n  passwordStrategy: \"password\",\n  fields: {\n    firstName: { required: true },\n    lastName: true,\n    company: true,\n  },\n  passwordPolicy: {\n    minLength: 10,\n    requireUppercase: true,\n    requireNumber: true,\n  },\n  consent: {\n    required: true,\n    label: TERMS_LABEL,\n    href: \"#\",\n  },\n  signInHref: \"#\",\n  onSubmit: NOOP_ON_SUBMIT,\n};\n\n// 4. Magic-link — email-only + OAuth.\nexport const magicLinkSignupProps: SignupFormProps = {\n  heading: \"Sign up with a magic link\",\n  subheading: \"We'll email you a one-time link — no password.\",\n  flow: \"single-step\",\n  passwordStrategy: \"magic-link\",\n  oauthProviders: [\"google\", \"apple\"],\n  consent: {\n    required: true,\n    label: TERMS_LABEL,\n    href: \"#\",\n  },\n  submitButton: { label: \"Send me a link\", variant: \"default\" },\n  signInHref: \"#\",\n  onSubmit: NOOP_ON_SUBMIT,\n};\n\n// 5. Dense — compact density for sidebars / modals.\nexport const denseSignupProps: SignupFormProps = {\n  heading: \"Quick sign-up\",\n  flow: \"single-step\",\n  passwordStrategy: \"password\",\n  density: \"compact\",\n  consent: {\n    required: true,\n    label: TERMS_LABEL,\n    href: \"#\",\n  },\n  onSubmit: NOOP_ON_SUBMIT,\n};\n\n// 6. Controlled status — demo of the mutual-exclusion contract.\n//    The demo site keeps `status` in local state, mutates it on consumer\n//    actions, and never expects internal transitions.\nexport const controlledSignupProps: SignupFormProps = {\n  heading: \"Create your account\",\n  subheading:\n    \"Controlled status: the parent component owns the submission lifecycle.\",\n  flow: \"single-step\",\n  passwordStrategy: \"password\",\n  consent: {\n    required: true,\n    label: TERMS_LABEL,\n    href: \"#\",\n  },\n  // status + onStatusChange wired at the demo site\n  onSubmit: NOOP_ON_SUBMIT,\n};\n\n// @ilinxa/signup-form-fixtures 0.2.0\n",
      "type": "registry:component",
      "target": "components/signup-form/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.2.0",
    "status": "alpha"
  },
  "categories": [
    "forms",
    "fixtures"
  ],
  "type": "registry:block"
}