UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

15 lines (14 loc) 950 B
import { jsx as _jsx } from "react/jsx-runtime"; import { FormattedMessage, useIntl } from 'react-intl'; import { TextField } from '../../formio'; /* * The description contains additional useful information/hints for a given field to * clarify what's expected by the end-user filling out the form. */ const RegexValidation = () => { const intl = useIntl(); const tooltip = intl.formatMessage({ id: "wZ99FU", defaultMessage: [{ type: 0, value: "The regular expression pattern test that the field value must pass before the form can be submitted." }] }); const placeholder = intl.formatMessage({ id: "+q3LGC", defaultMessage: [{ type: 0, value: "Regular Expression Pattern" }] }); return (_jsx(TextField, { name: "validate.pattern", label: _jsx(FormattedMessage, { id: '1WxO/D', defaultMessage: [{ type: 0, value: "Regular Expression Pattern" }] }), tooltip: tooltip, placeholder: placeholder })); }; export default RegexValidation;