@jonapin006/tiger 1.0.20 → 1.0.21
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/tiger.es.js +10 -7
- package/dist/tiger.umd.js +1 -1
- package/package.json +1 -1
package/dist/tiger.es.js
CHANGED
|
@@ -2744,22 +2744,25 @@ var B = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "ba
|
|
|
2744
2744
|
...t,
|
|
2745
2745
|
[e]: !t[e]
|
|
2746
2746
|
}));
|
|
2747
|
-
}, _ = (e) => e.id === t ? !0 : e.children ? e.children.some((e) => _(e)) : !1,
|
|
2747
|
+
}, _ = (e) => e.id === t ? !0 : e.children ? e.children.some((e) => _(e)) : !1, y = (e, r = 0) => {
|
|
2748
2748
|
let i = e.children && e.children.length > 0, a = t === e.id, o = d[e.id] || _(e);
|
|
2749
2749
|
return /* @__PURE__ */ c("div", {
|
|
2750
2750
|
className: "w-full flex flex-col",
|
|
2751
2751
|
children: [/* @__PURE__ */ c("button", {
|
|
2752
|
-
onClick: () => {
|
|
2753
|
-
i ? g(e.id) : n(e.id);
|
|
2752
|
+
onClick: (t) => {
|
|
2753
|
+
t.preventDefault(), t.stopPropagation(), i ? g(e.id) : n(e.id);
|
|
2754
2754
|
},
|
|
2755
|
-
className: F(h.item, r > 0 && "pl-10", a
|
|
2755
|
+
className: F(h.item, r > 0 && "pl-10", a ? u.sidebarActive : u.sidebarInactive),
|
|
2756
2756
|
children: [/* @__PURE__ */ c("div", {
|
|
2757
2757
|
className: "flex items-center gap-3 flex-1",
|
|
2758
|
-
children: [/* @__PURE__ */ s(e.icon, { size: h.iconSize }), /* @__PURE__ */ s(I, {
|
|
2758
|
+
children: [/* @__PURE__ */ s(e.icon, { size: h.iconSize }), /* @__PURE__ */ s(I, {
|
|
2759
|
+
size: r > 0 ? v.Small : v.Medium,
|
|
2760
|
+
children: e.label
|
|
2761
|
+
})]
|
|
2759
2762
|
}), i && s(o ? p : f, { size: 16 })]
|
|
2760
2763
|
}), i && o && /* @__PURE__ */ s("div", {
|
|
2761
2764
|
className: "flex flex-col w-full mt-1",
|
|
2762
|
-
children: e.children?.map((e) =>
|
|
2765
|
+
children: e.children?.map((e) => y(e, r + 1))
|
|
2763
2766
|
})]
|
|
2764
2767
|
}, e.id);
|
|
2765
2768
|
};
|
|
@@ -2779,7 +2782,7 @@ var B = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "ba
|
|
|
2779
2782
|
r,
|
|
2780
2783
|
/* @__PURE__ */ s("nav", {
|
|
2781
2784
|
className: F(h.nav, "flex flex-col gap-1"),
|
|
2782
|
-
children: e.map((e) =>
|
|
2785
|
+
children: e.map((e) => y(e))
|
|
2783
2786
|
}),
|
|
2784
2787
|
i
|
|
2785
2788
|
]
|