import { a as i } from "./chunk-6I3ONVU6.js";
import { c as P, a as l } from "./chunk-3YVJ2ELD.js";
import { a as y } from "./chunk-RJYZ5FAR.js";
import { a as l$1 } from "./chunk-A3GF4PYW.js";
import { b as g } from "./chunk-5YRC3IT3.js";
import { b as p } from "./chunk-GACHLACT.js";
import { d as b, b as s } from "./chunk-ZTZJHY4E.js";
import { c as y$1 } from "./chunk-CZRCW5EN.js";
import { c } from "./chunk-OHNYCXPX.js";
import { a as i$1 } from "./chunk-JMN3HTZU.js";
import { Type } from "@sinclair/typebox";
import { FaWpforms } from "../../../../node_modules/.pnpm/react-icons@5.5.0_react@19.1.1/node_modules/react-icons/fa6/index.js";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
var M = y({ type: "form", name: "Form", description: "A form element.", aiInstructions: `The form brick automatically renders form fields based on the datarecord id provided in the props.
There is no need to define the form fields manually and the form does not accept any children`, isContainer: false, icon: FaWpforms, minWidth: { desktop: 300 }, props: P({ datarecordId: i("Datarecord ID", { description: "The ID of the datarecord to use to generate the form fields. The datarecord must exist.", "ui:responsive": "desktop" }), colorPreset: Type.Optional(y$1({ title: "Color", default: "base-200" })), direction: Type.Optional(p({ title: "Direction", description: "The direction of the form fields", default: "flex-col", "ui:responsive": "desktop", "ui:desktop-only": true })), padding: Type.Optional(c({ default: "2rem", description: "Padding inside the form.", title: "Padding", "ui:responsive": true, "ui:placeholder": "Not specified", "ui:styleId": "styles:padding" })), rounding: Type.Optional(b({ default: "rounded-md" })), border: Type.Optional(s({})), fontSize: Type.Optional(g({ default: "inherit", "ui:no-extra-large-sizes": true })), button: l({ title: "Button", children: { color: Type.Optional(i$1(["btn-neutral", "btn-primary", "btn-secondary", "btn-accent"], { enumNames: ["Neutral", "Primary", "Secondary", "Accent"], title: "Color", default: "btn-primary" })), size: Type.Optional(i$1(["block", "wide"], { title: "Size", description: "Button sizes.", enumNames: ["Block", "Wide"], default: "block", "ui:responsive": "desktop" })), position: Type.Optional(i$1(["justify-start", "justify-center", "justify-end"], { title: "Button Position", description: "The position of the button in the form", enumNames: ["Left", "Center", "Right"], default: "justify-end", "ui:responsive": "desktop", metadata: { filter: (b2, m) => m.button?.size !== "wide" } })), rounding: Type.Optional(b({ default: "rounded-md" })) } }), title: Type.Optional(Type.String({ title: "Form title", default: "My form", metadata: { category: "content" } })), intro: Type.Optional(Type.String({ title: "Intro", description: "The intro text of the form", "ui:multiline": true, metadata: { category: "content" } })), buttonLabel: Type.Optional(l$1("Button Label", { default: "Submit", metadata: { category: "content" } })), successMessage: Type.Optional(Type.String({ title: "Success Message", description: "The message to display when the form is successfully submitted", default: "Thank you for your submission!", metadata: { category: "content" } })), errorMessage: Type.Optional(Type.String({ title: "Error Message", description: "The message to display when the form submission fails", default: "There was an error submitting the form. Please try again later.", metadata: { category: "content" } })) }) }), R = [{ description: "Basic contact form", type: "form", props: { title: "Contact Us", intro: "We'd love to hear from you. Send us a message and we'll respond as soon as possible.", direction: "flex-row", datarecordId: "contacts", buttonLabel: "Send Message", button: { size: "block" } } }, { description: "User registration form with large button", type: "form", props: { title: "Create Account", intro: "Join our platform and start your journey today.", direction: "flex-row", datarecordId: "user-registration", buttonLabel: "Register", button: { size: "wide" } } }, { description: "Newsletter subscription form (horizontal) with large padding", type: "form", props: { title: "Stay Updated", intro: "Subscribe to our newsletter for the latest updates and exclusive content.", direction: "flex-col", datarecordId: "newsletter-subscription", padding: "3rem", buttonLabel: "Subscribe", button: { size: "block" } } }, { description: "Event registration form", type: "form", props: { title: "Conference Registration", intro: "Register for the Annual Tech Conference 2025. Early bird pricing ends soon!", direction: "flex-col", datarecordId: "event-registration", buttonLabel: "Register Now", button: { size: "block" } } }, { description: "Job application form", type: "form", props: { title: "Apply for Position", intro: "We're excited to learn more about you! Please fill out this application form completely.", direction: "flex-col", datarecordId: "job-application", buttonLabel: "Submit Application", button: { size: "block" } } }];
export {
  M as a,
  R as b
};
//# sourceMappingURL=chunk-SXHDQ64Z.js.map
