@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.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,11 @@ var ImageControl = ({
|
|
|
200
200
|
"w-full h-full",
|
|
201
201
|
className
|
|
202
202
|
);
|
|
203
|
-
if ((
|
|
203
|
+
if (!!(imageUrl && imageUrlExternal)) {
|
|
204
204
|
/* @__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
205
|
}
|
|
206
|
-
|
|
206
|
+
const url = imageUrlExternal || imageUrl;
|
|
207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("img", { src: url, alt: altText, className: defaultImgClass, style });
|
|
207
208
|
};
|
|
208
209
|
var Image_default = ImageControl;
|
|
209
210
|
|
|
@@ -1842,7 +1843,7 @@ var Tabs = ({ tabs, className, style, pathname, LinkComponent }) => {
|
|
|
1842
1843
|
const hoverClasses = "hover:bg-white/5";
|
|
1843
1844
|
const isActive = (path) => {
|
|
1844
1845
|
if (!path) return false;
|
|
1845
|
-
return pathname === path || path !== "/" && pathname
|
|
1846
|
+
return pathname === path || path !== "/" && pathname?.startsWith(path);
|
|
1846
1847
|
};
|
|
1847
1848
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className, style, children: rawTabs.map((tab, index) => {
|
|
1848
1849
|
const finalClasses = [
|