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