@stackloop/ui 1.0.9 → 1.0.10
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -3481,7 +3481,7 @@ const mt = ({
|
|
|
3481
3481
|
const s = {
|
|
3482
3482
|
default: "bg-background border border-border",
|
|
3483
3483
|
outlined: "bg-transparent border-2 border-border-dark",
|
|
3484
|
-
elevated: "bg-background shadow-card"
|
|
3484
|
+
elevated: "bg-background border-2 border-border shadow-card"
|
|
3485
3485
|
}, c = {
|
|
3486
3486
|
none: "p-0",
|
|
3487
3487
|
sm: "p-3",
|
|
@@ -3698,7 +3698,7 @@ function zt({
|
|
|
3698
3698
|
return N < v ? i === "asc" ? -1 : 1 : N > v ? i === "asc" ? 1 : -1 : 0;
|
|
3699
3699
|
}) : e;
|
|
3700
3700
|
return a ? /* @__PURE__ */ r("div", { className: b("border border-border rounded-lg overflow-hidden", l), children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3701
|
-
/* @__PURE__ */ r("thead", { className: "
|
|
3701
|
+
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((f, C) => /* @__PURE__ */ r("th", { className: "px-6 py-4 text-left", children: /* @__PURE__ */ r("div", { className: "h-4 bg-border rounded w-24 animate-pulse" }) }, C)) }) }),
|
|
3702
3702
|
/* @__PURE__ */ r("tbody", { children: [...Array(5)].map((f, C) => /* @__PURE__ */ r("tr", { className: "border-b border-border", children: t.map((N, v) => /* @__PURE__ */ r("td", { className: "px-6 py-4", children: /* @__PURE__ */ r("div", { className: "h-4 bg-secondary rounded animate-pulse" }) }, v)) }, C)) })
|
|
3703
3703
|
] }) }) }) : /* @__PURE__ */ r(
|
|
3704
3704
|
g.div,
|
|
@@ -3706,20 +3706,20 @@ function zt({
|
|
|
3706
3706
|
initial: { opacity: 0, y: 20 },
|
|
3707
3707
|
animate: { opacity: 1, y: 0 },
|
|
3708
3708
|
transition: { duration: 0.3 },
|
|
3709
|
-
className: b("border border-border rounded-lg overflow-hidden
|
|
3709
|
+
className: b("border border-border rounded-lg overflow-hidden", l),
|
|
3710
3710
|
children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
|
|
3711
|
-
/* @__PURE__ */ r("thead", { className: "
|
|
3711
|
+
/* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((f, C) => /* @__PURE__ */ r(
|
|
3712
3712
|
"th",
|
|
3713
3713
|
{
|
|
3714
3714
|
className: b(
|
|
3715
3715
|
"px-6 py-4 text-left text-sm font-semibold text-foreground",
|
|
3716
3716
|
f.width,
|
|
3717
|
-
f.sortable && "cursor-pointer
|
|
3717
|
+
f.sortable && "cursor-pointer transition-colors"
|
|
3718
3718
|
),
|
|
3719
3719
|
onClick: () => f.sortable && x(f.key),
|
|
3720
3720
|
children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
3721
3721
|
f.header,
|
|
3722
|
-
f.sortable && /* @__PURE__ */ r("span", { className: "text-primary/50", children: s === f.key ? i === "asc" ? /* @__PURE__ */ r(er, { className: "w-4 h-4" }) : /* @__PURE__ */ r(rr, { className: "w-4 h-4" }) : /* @__PURE__ */ r(tr, { className: "w-4 h-4" }) })
|
|
3722
|
+
f.sortable && /* @__PURE__ */ r("span", { className: "text-primary/50 hover:text-primary transition-colors", children: s === f.key ? i === "asc" ? /* @__PURE__ */ r(er, { className: "w-4 h-4" }) : /* @__PURE__ */ r(rr, { className: "w-4 h-4" }) : /* @__PURE__ */ r(tr, { className: "w-4 h-4" }) })
|
|
3723
3723
|
] })
|
|
3724
3724
|
},
|
|
3725
3725
|
C
|