UNPKG

@react-form-builder/core

Version:

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

12 lines (11 loc) 514 B
import { emptyPropertiesContext as o } from "./emptyPropertiesContext.js"; import { getFieldPropertiesContext as i } from "./getFieldPropertiesContext.js"; import { getOneWayPropertiesContext as n } from "./getOneWayPropertiesContext.js"; const m = (t) => { const { model: e, field: r } = t; return !e.valued || e.dataBindingType === "none" ? o : e.dataBindingType === "oneWay" ? n(t) : r ? i(r, e) : o; }; export { m as getDefaultPropertiesContext }; //# sourceMappingURL=getDefaultPropertiesContext.js.map