UNPKG

@aokiapp/rjsf-mantine-theme

Version:

Mantine theme, fields and widgets for react-jsonschema-form

23 lines (18 loc) 718 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var createErrors = require('../utils/createErrors.cjs'); function FieldErrorTemplate(props) { let show = false; if (["array", "object", "null"].includes(props.schema.type)) { show = true; } if (props.schema.type === "array" && typeof props.schema.items === "object" && !(props.schema.items instanceof Array) && props.schema.items?.type === "string" && props.schema.items?.format === "data-url") { show = false; } if (show === false) { return null; } return createErrors.createErrors(props.errors, false, props.idSchema); } exports.default = FieldErrorTemplate; //# sourceMappingURL=FieldErrorTemplate.cjs.map