UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

13 lines (12 loc) 859 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const react_intl_1 = require("react-intl"); const formio_1 = require("../../formio"); const Max = () => { const intl = (0, react_intl_1.useIntl)(); const tooltip = intl.formatMessage({ id: "/iusiS", defaultMessage: [{ type: 0, value: "The maximum value this field can have before the form can be submitted." }] }); const placeholder = intl.formatMessage({ id: "3RUomu", defaultMessage: [{ type: 0, value: "Maximum value" }] }); return ((0, jsx_runtime_1.jsx)(formio_1.NumberField, { name: "validate.max", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: '3+WIVB', defaultMessage: [{ type: 0, value: "Maximum value" }] }), placeholder: placeholder, tooltip: tooltip })); }; exports.default = Max;