UNPKG

@react-form-builder/core

Version:

React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required

15 lines (14 loc) 376 B
import { isUndefined as o, isNull as i } from "../../../utils/tools.js"; const n = "Required", d = (e, r) => { if (e) return { error: e }; if (r !== void 0) return { error: r }; }, s = (e) => { const { input: r } = e; if (o(r) || i(r)) return n; }; export { s as errorForUndefined, n as requiredMessage, d as zodErrorParams }; //# sourceMappingURL=consts.js.map