@jonapin006/tiger 1.0.20 → 1.0.22
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 +13 -10
- package/dist/tiger.umd.js +1 -1
- package/package.json +1 -1
package/dist/tiger.es.js
CHANGED
|
@@ -463,7 +463,7 @@ var _ = /* @__PURE__ */ function(e) {
|
|
|
463
463
|
wrapper: "w-full md:w-80 md:min-w-[320px] md:max-w-[320px]",
|
|
464
464
|
container: "h-full rounded-none flex flex-col overflow-y-auto",
|
|
465
465
|
nav: "space-y-2 flex-grow",
|
|
466
|
-
item: "w-full flex items-center gap-3 p-2.5 px-4 rounded-xl font-bold transition-all duration-300 text-xs",
|
|
466
|
+
item: "w-full flex items-center gap-3 p-2.5 px-4 rounded-xl font-bold transition-all duration-300 text-xs whitespace-nowrap",
|
|
467
467
|
iconSize: 16,
|
|
468
468
|
padding: "p-8",
|
|
469
469
|
margin: "m-0",
|
|
@@ -1296,7 +1296,7 @@ var _ = /* @__PURE__ */ function(e) {
|
|
|
1296
1296
|
wrapper: "w-full md:w-80 md:min-w-[320px] md:max-w-[320px]",
|
|
1297
1297
|
container: "h-full rounded-none flex flex-col overflow-y-auto",
|
|
1298
1298
|
nav: "space-y-2 flex-grow",
|
|
1299
|
-
item: "w-full flex items-center gap-3 p-2.5 px-4 rounded-xl font-bold transition-all duration-300 text-xs",
|
|
1299
|
+
item: "w-full flex items-center gap-3 p-2.5 px-4 rounded-xl font-bold transition-all duration-300 text-xs whitespace-nowrap",
|
|
1300
1300
|
iconSize: 16,
|
|
1301
1301
|
padding: "p-8",
|
|
1302
1302
|
margin: "m-0",
|
|
@@ -2129,7 +2129,7 @@ var _ = /* @__PURE__ */ function(e) {
|
|
|
2129
2129
|
wrapper: "w-full md:w-80 md:min-w-[320px] md:max-w-[320px]",
|
|
2130
2130
|
container: "h-full rounded-none flex flex-col overflow-y-auto",
|
|
2131
2131
|
nav: "space-y-2 flex-grow",
|
|
2132
|
-
item: "w-full flex items-center gap-3 p-2.5 px-4 rounded-xl font-bold transition-all duration-300 text-xs",
|
|
2132
|
+
item: "w-full flex items-center gap-3 p-2.5 px-4 rounded-xl font-bold transition-all duration-300 text-xs whitespace-nowrap",
|
|
2133
2133
|
iconSize: 16,
|
|
2134
2134
|
padding: "pt-0 px-0 pb-0",
|
|
2135
2135
|
margin: "ml-5 mt-5 mb-5 mr-0",
|
|
@@ -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
|
]
|