{"version":3,"file":"Submit.cjs","names":[],"sources":["../../../src/components/Form/Submit.tsx"],"sourcesContent":["/*\nCopyright 2023 New Vector Ltd.\n\nSPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\nPlease see LICENSE files in the repository root for full details.\n*/\n\nimport React, { forwardRef, type ComponentPropsWithoutRef } from \"react\";\nimport { Submit as RadixSubmit } from \"@radix-ui/react-form\";\n\nimport { Button } from \"../Button/Button\";\n\ntype SubmitProps = Omit<\n  ComponentPropsWithoutRef<typeof Button>,\n  \"submit\" | \"as\"\n>;\n\n/**\n * A stylised submit button for forms.\n */\nexport const Submit = forwardRef<HTMLButtonElement, SubmitProps>(\n  function Submit(props, ref) {\n    return (\n      <RadixSubmit asChild>\n        <Button type=\"submit\" ref={ref} {...props} />\n      </RadixSubmit>\n    );\n  },\n);\n"],"mappings":";;;;;;;;;;AAoBA,IAAa,UAAA,GAAA,MAAA,YACX,SAAS,OAAO,OAAO,KAAK;AAC1B,QACE,iBAAA,GAAA,kBAAA,KAAC,qBAAA,QAAD;EAAa,SAAA;YACX,iBAAA,GAAA,kBAAA,KAAC,eAAA,QAAD;GAAQ,MAAK;GAAc;GAAK,GAAI;GAAS,CAAA;EACjC,CAAA;EAGnB"}