@algorithm-shift/design-system 1.2.963 → 1.2.964

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 CHANGED
@@ -30140,6 +30140,7 @@ function showSonnerToast({
30140
30140
  var import_jsx_runtime56 = require("react/jsx-runtime");
30141
30141
  var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder = false, source, parentKey, menuNameKey, menuUrlKey, loading, bgActiveColor, textActiveColor }) => {
30142
30142
  const [openIndex, setOpenIndex] = (0, import_react31.useState)(null);
30143
+ const currentPathname = (0, import_navigation3.usePathname)();
30143
30144
  function groupMenus(menus = []) {
30144
30145
  const menuMap = /* @__PURE__ */ new Map();
30145
30146
  menus.forEach((menu) => {
@@ -30188,7 +30189,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuil
30188
30189
  while (p.endsWith("/")) p = p.slice(0, -1);
30189
30190
  return p;
30190
30191
  };
30191
- const current = clean(pathname || "");
30192
+ const current = clean(pathname ?? currentPathname ?? "");
30192
30193
  const target = clean(path);
30193
30194
  if (!current || !target) return false;
30194
30195
  if (current === target) return true;
@@ -30231,7 +30232,8 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuil
30231
30232
  const finalStyle = {
30232
30233
  ...tab.style,
30233
30234
  backgroundColor: active && bgActiveColor ? bgActiveColor : void 0,
30234
- color: active && textActiveColor ? textActiveColor : void 0
30235
+ color: active && textActiveColor ? textActiveColor : void 0,
30236
+ border: active && textActiveColor ? `1px solid ${textActiveColor}` : void 0
30235
30237
  };
30236
30238
  if (Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown) {
30237
30239
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(