import { a as r } from "./chunk-MKIXZXWS.js";
import { b as a } from "./chunk-CT3EI7YN.js";
import { b as n } from "./chunk-6WCGUAQN.js";
import { b as s } from "./chunk-C3VGP4CA.js";
import { d as e, b as l } from "./chunk-ACVLF55Q.js";
import { c as d, a as p } from "./chunk-UU2MSQXY.js";
import { a as c } from "./chunk-T3LIA4YB.js";
import { e as u } from "./chunk-VZPXXFVX.js";
import { a as o } from "./chunk-SFKZAUPW.js";
import { a as f } from "./chunk-VGRYSAXA.js";
import { Type as t } from "@sinclair/typebox";
import { FaWpforms as m } from "../../../../node_modules/.pnpm/react-icons@5.5.0_react@18.3.0-canary-3d9b20132-20240124/node_modules/react-icons/fa6/index.js";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
var I = f({ 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: !1, icon: m, minWidth: { desktop: 300 }, props: d({ datarecordId: r("Datarecord ID", { description: "The ID of the datarecord to use to generate the form fields", "ui:responsive": "desktop" }), colorPreset: t.Optional(u({ title: "Color", default: "base-200" })), direction: t.Optional(a({ title: "Direction", description: "The direction of the form fields", default: "flex-col", "ui:responsive": "desktop", "ui:desktop-only": !0 })), padding: t.Optional(n({ default: "p-4" })), rounding: t.Optional(e({ default: "rounded-md" })), border: t.Optional(l({})), fontSize: t.Optional(s({ default: "inherit", "ui:no-extra-large-sizes": !0 })), button: p({ title: "Button", children: { color: t.Optional(t.Union([t.Literal("btn-neutral", { title: "Neutral" }), t.Literal("btn-primary", { title: "Primary" }), t.Literal("btn-secondary", { title: "Secondary" }), t.Literal("btn-accent", { title: "Accent" })], { title: "Color", default: "btn-primary" })), size: t.Optional(o(["block", "wide"], { title: "Size", description: "Button sizes.", enumNames: ["Block", "Wide"], default: "block", "ui:responsive": "desktop" })), position: t.Optional(o(["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: (b, i) => i.button?.size !== "wide" } })), rounding: t.Optional(e({ default: "rounded-md" })) } }), title: t.Optional(t.String({ title: "Form title", default: "My form", metadata: { category: "content" } })), intro: t.Optional(t.String({ title: "Intro", description: "The intro text of the form", "ui:multiline": !0, metadata: { category: "content" } })), buttonLabel: t.Optional(c("Button Label", { default: "Submit", metadata: { category: "content" } })), successMessage: t.Optional(t.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: t.Optional(t.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" } })) }) }), C = [{ 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)", type: "form", props: { title: "Stay Updated", intro: "Subscribe to our newsletter for the latest updates and exclusive content.", direction: "flex-col", datarecordId: "newsletter-subscription", 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 {
  I as a,
  C as b
};
//# sourceMappingURL=chunk-SLRU4CT6.js.map
