UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

47 lines (46 loc) 1.3 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 "clsx"; import "formik"; import "../../context.js"; import "@formio/vanilla-text-mask"; import "formiojs"; /* empty css */ import "lodash"; /* empty css */ import "react-select"; import "dompurify"; import "../../components/formio/datagrid.js"; const D = ({ component: r }) => { const { label: o, key: i, description: e, authPlugin: p } = r; return /* @__PURE__ */ m(l, { type: r.type, field: i, htmlId: `editform-${i}`, label: o, 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 } }) }) }), e && /* @__PURE__ */ t(s, { text: e }) ] }); }; export { D as default };