UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

44 lines (43 loc) 1.4 kB
import { jsxs as s, jsx as i } from "react/jsx-runtime"; import { ComponentsPreview as f } from "../../components/designer/Preview.js"; import { getDropzoneId as a } from "../../components/designer/dragDrop/utils/dropzone.js"; import "../../components/formio/tabs.js"; import c from "../../components/formio/component.js"; import v from "../../components/formio/description.js"; import "@floating-ui/react"; import "react"; import "../../components/formio/textfield.js"; import "clsx"; import "formik"; import "../../components/formio/datefield.js"; import "../../components/formio/datetimefield.js"; import "../../components/formio/timefield.js"; import "react-intl"; /* empty css */ import "react-select"; import "dompurify"; import "../../components/formio/textarea.js"; import "../../components/formio/datagrid.js"; /* empty css */ const G = ({ component: o }) => { const { key: t, label: m, description: r, validate: p = {}, tooltip: e, components: d, hideLabel: n } = o, { required: l = !1 } = p; return /* @__PURE__ */ s(c, { type: "editgrid", field: t, required: l, htmlId: `editform-${t}`, label: n ? void 0 : m, tooltip: e, children: [ /* @__PURE__ */ i(f, { dropzoneId: a(o), components: d }), r && /* @__PURE__ */ i(v, { text: r }) ] }); }; export { G as default };