UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

75 lines (74 loc) 2.19 kB
import { jsxs as a, jsx as e } from "react/jsx-runtime"; import { FormattedMessage as r } from "react-intl"; import i from "../../components/ContentPlaceholder.js"; import "../../components/formio/tabs.js"; import v from "../../components/formio/component.js"; import f 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"; /* empty css */ import "react-select"; import "dompurify"; import "../../components/formio/textarea.js"; import "../../components/formio/datagrid.js"; /* empty css */ const $ = ({ component: p }) => { const { label: m, key: o, description: l, validate: d = {}, tooltip: s, groupLabel: t, hideLabel: u } = p, { required: n = !1 } = d; return /* @__PURE__ */ a(v, { type: "editgrid", field: o, required: n, htmlId: `editform-${o}`, label: u ? void 0 : m, tooltip: s, children: [ /* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column", gap: "1em" }, children: [ /* @__PURE__ */ e(i, { variant: "builder", children: /* @__PURE__ */ e(r, { id: "7qqbU9", defaultMessage: [{ type: 1, value: "groupLabel" }, { type: 0, value: " 1" }], values: { groupLabel: t } }) }), /* @__PURE__ */ e(i, { variant: "builder", children: /* @__PURE__ */ e(r, { id: "0TGt4t", defaultMessage: [{ type: 1, value: "groupLabel" }, { type: 0, value: " 2" }], values: { groupLabel: t } }) }), /* @__PURE__ */ e(i, { variant: "builder", children: /* @__PURE__ */ e(r, { id: "smPv/m", defaultMessage: [{ type: 1, value: "groupLabel" }, { type: 0, value: " 3" }], values: { groupLabel: t } }) }) ] }), l && /* @__PURE__ */ e(f, { text: l }) ] }); }; export { $ as default };