@marcoschwartz/lite-ui 0.23.1 → 0.23.3
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1897,12 +1897,12 @@ var Tabs = ({
|
|
|
1897
1897
|
onChange?.(index);
|
|
1898
1898
|
};
|
|
1899
1899
|
return /* @__PURE__ */ jsxs17("div", { className, children: [
|
|
1900
|
-
/* @__PURE__ */ jsx89("div", { className: "border-b border-[hsl(var(--border))]", children: /* @__PURE__ */ jsx89("nav", { className: "flex gap-
|
|
1900
|
+
/* @__PURE__ */ jsx89("div", { className: "border-b border-[hsl(var(--border))] px-4", children: /* @__PURE__ */ jsx89("nav", { className: "flex gap-4 -mb-px", "aria-label": "Tabs", children: tabs.map((tab, index) => /* @__PURE__ */ jsx89(
|
|
1901
1901
|
"button",
|
|
1902
1902
|
{
|
|
1903
1903
|
onClick: () => handleTabClick(index),
|
|
1904
1904
|
disabled: tab.disabled,
|
|
1905
|
-
className: `py-3
|
|
1905
|
+
className: `py-3 border-b-2 font-medium text-sm transition-colors ${activeIndex === index ? "border-[hsl(var(--primary))] text-[hsl(var(--foreground))]" : "border-transparent text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))] hover:border-[hsl(var(--border))]"} ${tab.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
|
|
1906
1906
|
"aria-current": activeIndex === index ? "page" : void 0,
|
|
1907
1907
|
children: tab.label
|
|
1908
1908
|
},
|