export declare const leadCaptureFormCode = "import {\n  defineFormSpec,\n  FormRegistry,\n  responsiveFormColumns,\n} from \"@contractspec/lib.contracts-spec/forms\";\nimport { fromZod } from \"@contractspec/lib.schema\";\nimport { z } from \"zod\";\n\nconst LeadCaptureModel = fromZod(\n  z.object({\n    fullName: z.string().min(1),\n    email: z.string().email(),\n    company: z.string().min(1),\n    intent: z.enum([\"demo\", \"pricing\", \"pilot\"]),\n    notes: z.string().max(1000).optional(),\n    newsletter: z.boolean().optional(),\n  }),\n  { name: \"LeadCaptureModel\" },\n);\n\nexport const LeadCaptureForm = defineFormSpec({\n  meta: {\n    key: \"marketing.lead.form\",\n    version: \"1.0.0\",\n    title: \"Lead capture form\",\n    description: \"Collect qualified OSS and Studio leads.\",\n    domain: \"marketing\",\n    owners: [\"@growth\"],\n    tags: [\"forms\", \"leads\"],\n    stability: \"experimental\",\n  },\n  model: LeadCaptureModel,\n  layout: {\n    columns: responsiveFormColumns(2),\n    gap: \"md\",\n    flow: {\n      kind: \"sections\",\n      sections: [\n        { key: \"identity\", titleI18n: \"Who you are\", fieldNames: [\"fullName\", \"email\", \"company\"] },\n        { key: \"request\", titleI18n: \"What you need\", fieldNames: [\"intent\", \"notes\", \"newsletter\"] },\n      ],\n    },\n  },\n  fields: [\n    { kind: \"text\", name: \"fullName\", labelI18n: \"Full name\", required: true, autoComplete: \"name\" },\n    { kind: \"email\", name: \"email\", labelI18n: \"Work email\", required: true, autoComplete: \"email\" },\n    { kind: \"text\", name: \"company\", labelI18n: \"Company\", required: true, autoComplete: \"organization\" },\n    {\n      kind: \"select\",\n      name: \"intent\",\n      labelI18n: \"Primary goal\",\n      required: true,\n      options: [\n        { labelI18n: \"Book a demo\", value: \"demo\" },\n        { labelI18n: \"Understand pricing\", value: \"pricing\" },\n        { labelI18n: \"Plan a pilot\", value: \"pilot\" },\n      ],\n    },\n    { kind: \"textarea\", name: \"notes\", labelI18n: \"Context\", rows: 4, layout: { colSpan: \"full\" } },\n    { kind: \"checkbox\", name: \"newsletter\", labelI18n: \"Send product updates\" },\n  ],\n  actions: [{ key: \"submit\", labelI18n: \"Send request\", op: { name: \"lead.create\", version: \"1.0.0\" } }],\n  policy: { flags: [\"lead-capture\"], pii: [\"fullName\", \"email\", \"company\", \"notes\"] },\n  renderHints: { ui: \"shadcn\", form: \"react-hook-form\" },\n});\n\nexport const formRegistry = new FormRegistry().register(LeadCaptureForm);";
export declare const leadCapturePanelCode = "\"use client\";\n\nimport { formRenderer } from \"@contractspec/lib.design-system/renderers/form-contract\";\nimport { LeadCaptureForm } from \"../contracts/forms/lead-capture.form\";\n\nexport function LeadCapturePanel() {\n  return formRenderer.render(LeadCaptureForm, {\n    defaultValues: { newsletter: true },\n    overrides: {\n      onSubmitOverride: async (values, actionKey) => {\n        await fetch(\"/api/leads\", {\n          method: \"POST\",\n          headers: { \"content-type\": \"application/json\" },\n          body: JSON.stringify({ actionKey, values }),\n        });\n      },\n    },\n  });\n}";
export declare const formShowcaseTemplateCode = "bun add @contractspec/example.form-showcase\n\n# Full form-only example docs\nopen https://www.contractspec.io/docs/examples/form-showcase\n\n# Template catalog filtered to forms\nopen https://www.contractspec.io/templates?tag=forms\n\n# Sandbox spec preview\nopen https://www.contractspec.io/sandbox?template=form-showcase";
