@aokiapp/rjsf-mantine-corporate
Version:
Corporational variant of theme, based on @aokiapp/rjsf-mantine-theme
20 lines (15 loc) • 929 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.Spoiler, { maxHeight: 120, showLabel: "Show more", hideLabel: "Hide", 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