@lambda-development/erp-core 0.1.8 → 0.1.9
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.js +22 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1077,22 +1077,28 @@ function Ua({ group: t }) {
|
|
|
1077
1077
|
]
|
|
1078
1078
|
}
|
|
1079
1079
|
),
|
|
1080
|
-
n && /* @__PURE__ */ e("ul", { className: "mb-1", children: t.items.map((o) =>
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1080
|
+
n && /* @__PURE__ */ e("ul", { className: "mb-1", children: t.items.map((o) => {
|
|
1081
|
+
const m = t.items.some(
|
|
1082
|
+
(d) => d.path !== o.path && d.path.startsWith(o.path + "/")
|
|
1083
|
+
);
|
|
1084
|
+
return /* @__PURE__ */ e("li", { className: "relative", children: /* @__PURE__ */ e(
|
|
1085
|
+
kt,
|
|
1086
|
+
{
|
|
1087
|
+
to: o.path,
|
|
1088
|
+
end: m,
|
|
1089
|
+
className: ({ isActive: d }) => De(
|
|
1090
|
+
"relative block px-4 py-1.5 pl-10 text-sm transition-all duration-300",
|
|
1091
|
+
!d && "text-fg-muted hover:bg-surface-subtle hover:text-fg",
|
|
1092
|
+
d && "bg-surface-subtle font-medium text-fg",
|
|
1093
|
+
(l == null ? void 0 : l.group) === t.label && (l == null ? void 0 : l.item) === o.label && c
|
|
1094
|
+
),
|
|
1095
|
+
children: ({ isActive: d }) => /* @__PURE__ */ r(Ne, { children: [
|
|
1096
|
+
d && /* @__PURE__ */ e(Yt, {}),
|
|
1097
|
+
s(`nav.items.${o.label}`, { defaultValue: o.label })
|
|
1098
|
+
] })
|
|
1099
|
+
}
|
|
1100
|
+
) }, o.path);
|
|
1101
|
+
}) })
|
|
1096
1102
|
] });
|
|
1097
1103
|
}
|
|
1098
1104
|
const Ga = {
|