UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

42 lines (41 loc) 1.24 kB
import { jsx as e } from "react/jsx-runtime"; import { useContext as i } from "react"; import { useIntl as a, FormattedMessage as p } from "react-intl"; import { BuilderContext as s } from "../../../context.js"; import "../../formio/tabs.js"; import "clsx"; import "formik"; /* empty css */ import "@floating-ui/react"; /* empty css */ import "@formio/vanilla-text-mask"; import "formiojs"; import "lodash"; /* empty css */ import "react-select"; import { NumberField as l } from "../../formio/number.js"; import "../../formio/datagrid.js"; const j = () => { const t = a(), { formType: m } = i(s), o = t.formatMessage({ id: "5DyU8e", defaultMessage: [{ type: 0, value: "The maximum length requirement this field must meet." }] }), r = t.formatMessage({ id: "C64ptd", defaultMessage: [{ type: 0, value: "Maximum length" }] }); return m === "appointment" ? null : /* @__PURE__ */ e(l, { name: "validate.maxLength", label: /* @__PURE__ */ e(p, { id: "yD4X2y", defaultMessage: [{ type: 0, value: "Maximum length" }] }), placeholder: r, tooltip: o, min: 1, step: 1 }); }; export { j as default };