@algorithm-shift/design-system 1.2.19 → 1.2.20
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -133,10 +133,11 @@ var ImageControl = ({
|
|
|
133
133
|
"w-full h-full",
|
|
134
134
|
className
|
|
135
135
|
);
|
|
136
|
-
if ((
|
|
136
|
+
if (!!(imageUrl && imageUrlExternal)) {
|
|
137
137
|
/* @__PURE__ */ jsx5("div", { className: imageClass, children: /* @__PURE__ */ jsx5("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
const url = imageUrlExternal || imageUrl;
|
|
140
|
+
return /* @__PURE__ */ jsx5("img", { src: url, alt: altText, className: defaultImgClass, style });
|
|
140
141
|
};
|
|
141
142
|
var Image_default = ImageControl;
|
|
142
143
|
|
|
@@ -1779,7 +1780,7 @@ var Tabs = ({ tabs, className, style, pathname, LinkComponent }) => {
|
|
|
1779
1780
|
const hoverClasses = "hover:bg-white/5";
|
|
1780
1781
|
const isActive = (path) => {
|
|
1781
1782
|
if (!path) return false;
|
|
1782
|
-
return pathname === path || path !== "/" && pathname
|
|
1783
|
+
return pathname === path || path !== "/" && pathname?.startsWith(path);
|
|
1783
1784
|
};
|
|
1784
1785
|
return /* @__PURE__ */ jsx38("div", { className, style, children: rawTabs.map((tab, index) => {
|
|
1785
1786
|
const finalClasses = [
|