@eintrek/erp-theme 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13432,7 +13432,7 @@ function ValidationErrors({ errors, title = "Validation Errors", compact = false
|
|
|
13432
13432
|
if (flatErrors.length === 0) {
|
|
13433
13433
|
return null;
|
|
13434
13434
|
}
|
|
13435
|
-
return (require$$1.jsxs("div", { className: cn$1("rounded-lg border border-destructive/50 bg-destructive/10", "dark:border-destructive/30 dark:bg-destructive/5", className), children: [require$$1.jsxs("div", { className: "flex items-center gap-2 border-b border-destructive/20 px-4 py-3", children: [require$$1.jsx(lucideReact.AlertCircle, { className: "h-5 w-5 text-destructive" }), require$$1.jsxs("h3", { className: "font-semibold text-sm text-destructive", children: [title, require$$1.jsx("span", { className: "ml-2 inline-flex items-center justify-center rounded-full bg-destructive/20 px-2 py-0.5 text-xs font-medium", children: flatErrors.length })] })] }), require$$1.jsx("div", { className: cn$1("p-4", !compact && "space-y-2"), children: require$$1.jsx("ul", { className: cn$1("space-y-2", compact && "space-y-1"), children: flatErrors.map((error, index) => (require$$1.jsxs("li", { className: cn$1("flex items-start gap-2 text-sm", compact ? "text-xs" : "text-sm"), children: [require$$1.jsx("span", { className: "mt-
|
|
13435
|
+
return (require$$1.jsxs("div", { className: cn$1("rounded-lg border border-destructive/50 bg-destructive/10", "dark:border-destructive/30 dark:bg-destructive/5", className), children: [require$$1.jsxs("div", { className: "flex items-center gap-2 border-b border-destructive/20 px-4 py-3", children: [require$$1.jsx(lucideReact.AlertCircle, { className: "h-5 w-5 text-destructive" }), require$$1.jsxs("h3", { className: "font-semibold text-sm text-destructive", children: [title, require$$1.jsx("span", { className: "ml-2 inline-flex items-center justify-center rounded-full bg-destructive/20 px-2 py-0.5 text-xs font-medium", children: flatErrors.length })] })] }), require$$1.jsx("div", { className: cn$1("p-4", !compact && "space-y-2"), children: require$$1.jsx("ul", { className: cn$1("space-y-2", compact && "space-y-1"), children: flatErrors.map((error, index) => (require$$1.jsxs("li", { className: cn$1("flex items-start gap-2 text-sm", compact ? "text-xs" : "text-sm"), children: [require$$1.jsx("span", { "aria-hidden": "true", className: "mt-2 flex h-1.5 w-1.5 shrink-0 rounded-full bg-destructive" }), require$$1.jsxs("div", { className: "flex-1 min-w-0", children: [require$$1.jsxs("span", { className: "font-medium text-destructive/90", children: [labelTransformer(error.path), ":"] }), " ", require$$1.jsx("span", { className: "text-destructive/80", children: error.message })] })] }, `${error.path}-${index}`))) }) })] }));
|
|
13436
13436
|
}
|
|
13437
13437
|
|
|
13438
13438
|
function PageHeader({ title, actions }) {
|