UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

48 lines (47 loc) 1.43 kB
import { jsxs as m, jsx as t } from "react/jsx-runtime"; import { FormattedMessage as a } from "react-intl"; import "../../components/formio/tabs.js"; import l from "../../components/formio/component.js"; import s 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 F = ({ component: r }) => { const { label: e, key: i, description: o, authPlugin: p } = r; return /* @__PURE__ */ m(l, { type: r.type, field: i, htmlId: `editform-${i}`, label: e, children: [ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("button", { className: "btn btn-primary", type: "button", children: /* @__PURE__ */ t(a, { id: "Uu+81U", defaultMessage: [{ type: 0, value: "Cosign (" }, { type: 1, value: "authPlugin" }, { type: 0, value: ")" }], values: { authPlugin: p } }) }) }), o && /* @__PURE__ */ t(s, { text: o }) ] }); }; export { F as default };