@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.mjs CHANGED
@@ -29894,7 +29894,7 @@ var Pagination_default = CustomPagination;
29894
29894
  // src/components/Navigation/Tabs/Tabs.tsx
29895
29895
  import { useCallback as useCallback3, useMemo as useMemo6, useState as useState8 } from "react";
29896
29896
  import Link5 from "next/link";
29897
- import { useRouter } from "next/navigation";
29897
+ import { usePathname, useRouter } from "next/navigation";
29898
29898
 
29899
29899
  // src/components/ui/dialog.tsx
29900
29900
  import * as DialogPrimitive from "@radix-ui/react-dialog";
@@ -30051,6 +30051,7 @@ function showSonnerToast({
30051
30051
  import { Fragment as Fragment22, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
30052
30052
  var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder = false, source, parentKey, menuNameKey, menuUrlKey, loading, bgActiveColor, textActiveColor }) => {
30053
30053
  const [openIndex, setOpenIndex] = useState8(null);
30054
+ const currentPathname = usePathname();
30054
30055
  function groupMenus(menus = []) {
30055
30056
  const menuMap = /* @__PURE__ */ new Map();
30056
30057
  menus.forEach((menu) => {
@@ -30099,7 +30100,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuil
30099
30100
  while (p.endsWith("/")) p = p.slice(0, -1);
30100
30101
  return p;
30101
30102
  };
30102
- const current = clean(pathname || "");
30103
+ const current = clean(pathname ?? currentPathname ?? "");
30103
30104
  const target = clean(path);
30104
30105
  if (!current || !target) return false;
30105
30106
  if (current === target) return true;
@@ -30142,7 +30143,8 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuil
30142
30143
  const finalStyle = {
30143
30144
  ...tab.style,
30144
30145
  backgroundColor: active && bgActiveColor ? bgActiveColor : void 0,
30145
- color: active && textActiveColor ? textActiveColor : void 0
30146
+ color: active && textActiveColor ? textActiveColor : void 0,
30147
+ border: active && textActiveColor ? `1px solid ${textActiveColor}` : void 0
30146
30148
  };
30147
30149
  if (Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown) {
30148
30150
  return /* @__PURE__ */ jsxs33(