UNPKG

@aokiapp/rjsf-mantine-theme

Version:

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

19 lines (16 loc) 631 B
import { createErrors } from '../utils/createErrors.mjs'; 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(props.errors, false, props.idSchema); } export { FieldErrorTemplate as default }; //# sourceMappingURL=FieldErrorTemplate.mjs.map