@aokiapp/rjsf-mantine-theme
Version:
Mantine theme, fields and widgets for react-jsonschema-form
20 lines (15 loc) • 810 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var jsxRuntime = require('react/jsx-runtime');
var core = require('@mantine/core');
var utils = require('@rjsf/utils');
var iconsReact = require('@tabler/icons-react');
function ErrorList({
errors,
registry
}) {
const { translateString } = registry;
return /* @__PURE__ */ jsxRuntime.jsx(core.Alert, { title: translateString(utils.TranslatableString.ErrorsLabel), icon: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.IconZoomExclamation, {}), children: /* @__PURE__ */ jsxRuntime.jsx(core.List, { size: "sm", children: errors.map((error, index) => /* @__PURE__ */ jsxRuntime.jsx(core.List.Item, { children: error.stack }, `error-${index}`)) }) });
}
exports.default = ErrorList;
//# sourceMappingURL=ErrorListTemplate.cjs.map