@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.d.mts
CHANGED
|
@@ -75,8 +75,8 @@ interface TableProps extends ElementProps {
|
|
|
75
75
|
|
|
76
76
|
interface TabsProps extends ElementProps {
|
|
77
77
|
tabs?: Record<string, any>;
|
|
78
|
-
pathname
|
|
79
|
-
LinkComponent
|
|
78
|
+
pathname?: string;
|
|
79
|
+
LinkComponent?: React.ComponentType<any>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
interface StagesProps extends ElementProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -75,8 +75,8 @@ interface TableProps extends ElementProps {
|
|
|
75
75
|
|
|
76
76
|
interface TabsProps extends ElementProps {
|
|
77
77
|
tabs?: Record<string, any>;
|
|
78
|
-
pathname
|
|
79
|
-
LinkComponent
|
|
78
|
+
pathname?: string;
|
|
79
|
+
LinkComponent?: React.ComponentType<any>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
interface StagesProps extends ElementProps {
|
package/dist/index.js
CHANGED
|
@@ -200,10 +200,13 @@ var ImageControl = ({
|
|
|
200
200
|
"w-full h-full",
|
|
201
201
|
className
|
|
202
202
|
);
|
|
203
|
-
|
|
203
|
+
console.log(imageUrl, imageUrlExternal);
|
|
204
|
+
if (!imageUrl && !imageUrlExternal) {
|
|
204
205
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: imageClass, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
|
|
205
206
|
}
|
|
206
|
-
|
|
207
|
+
const url = imageUrlExternal || imageUrl || "";
|
|
208
|
+
console.log(url);
|
|
209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("img", { src: url, alt: altText, className: defaultImgClass, style });
|
|
207
210
|
};
|
|
208
211
|
var Image_default = ImageControl;
|
|
209
212
|
|
|
@@ -1842,7 +1845,7 @@ var Tabs = ({ tabs, className, style, pathname, LinkComponent }) => {
|
|
|
1842
1845
|
const hoverClasses = "hover:bg-white/5";
|
|
1843
1846
|
const isActive = (path) => {
|
|
1844
1847
|
if (!path) return false;
|
|
1845
|
-
return pathname === path || path !== "/" && pathname
|
|
1848
|
+
return pathname === path || path !== "/" && pathname?.startsWith(path);
|
|
1846
1849
|
};
|
|
1847
1850
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className, style, children: rawTabs.map((tab, index) => {
|
|
1848
1851
|
const finalClasses = [
|