@aokiapp/rjsf-mantine-corporate
Version:
Corporational variant of theme, based on @aokiapp/rjsf-mantine-theme
16 lines (13 loc) • 797 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { Alert, Spoiler, List } from '@mantine/core';
import { TranslatableString } from '@rjsf/utils';
import { IconZoomExclamation } from '@tabler/icons-react';
function ErrorList({
errors,
registry
}) {
const { translateString } = registry;
return /* @__PURE__ */ jsx(Alert, { title: translateString(TranslatableString.ErrorsLabel), icon: /* @__PURE__ */ jsx(IconZoomExclamation, {}), children: /* @__PURE__ */ jsx(Spoiler, { maxHeight: 120, showLabel: "Show more", hideLabel: "Hide", children: /* @__PURE__ */ jsx(List, { size: "sm", children: errors.map((error, index) => /* @__PURE__ */ jsx(List.Item, { children: error.stack }, `error-${index}`)) }) }) });
}
export { ErrorList as default };
//# sourceMappingURL=ErrorListTemplate.mjs.map