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 r } 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/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 S = () => { const t = a(), { formType: o } = r(s), m = t.formatMessage({ id: "/iusiS", defaultMessage: [{ type: 0, value: "The maximum value this field can have before the form can be submitted." }] }), i = t.formatMessage({ id: "3RUomu", defaultMessage: [{ type: 0, value: "Maximum value" }] }); return o === "appointment" ? null : /* @__PURE__ */ e(l, { name: "validate.max", label: /* @__PURE__ */ e(p, { id: "3+WIVB", defaultMessage: [{ type: 0, value: "Maximum value" }] }), placeholder: i, tooltip: m }); }; export { S as default };