UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

45 lines (44 loc) 1.39 kB
import { jsx as e } from "react/jsx-runtime"; import { useContext as i } from "react"; import { useIntl as p, FormattedMessage as a } 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/textfield.js"; import "../../formio/datefield.js"; import "../../formio/datetimefield.js"; import "../../formio/timefield.js"; /* empty css */ import "react-select"; import { NumberField as l } from "../../formio/number.js"; import "../../formio/textarea.js"; import "../../formio/datagrid.js"; /* empty css */ const I = () => { const t = p(), { 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(a, { id: "yD4X2y", defaultMessage: [{ type: 0, value: "Maximum length" }] }), placeholder: r, tooltip: o, min: 1, step: 1 }); }; export { I as default };