UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

18 lines (17 loc) 836 B
import { jsx as e } from "react/jsx-runtime"; import { clsx as i } from "clsx"; import { ComponentsPreview as n } from "../../components/designer/Preview.js"; import { getColumnDropzoneId as d } from "../../components/designer/dragDrop/utils/dropzone.js"; import l from "../../components/formio/component.js"; const h = ({ component: m }) => { const { key: o, columns: s } = m; return /* @__PURE__ */ e(l, { type: "columns", field: o, htmlId: `editform-${o}`, children: /* @__PURE__ */ e("div", { className: "row", "data-testid": `columns-${o}`, children: s.map((r, t) => /* @__PURE__ */ e("div", { className: i("col", `col-${r.size}`), "data-testid": `${o}-column-${t}`, children: /* @__PURE__ */ e(n, { dropzoneId: d(m, t), components: r.components, hideEmptyMessage: !0 }) }, t)) }) }); }; export { h as default };