@algorithm-shift/design-system 1.2.78 → 1.2.79

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
@@ -29359,7 +29359,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuil
29359
29359
  align: "start",
29360
29360
  sideOffset: 6,
29361
29361
  className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
29362
- children: tab.children.map((item) => /* @__PURE__ */ jsx55(
29362
+ children: tab.children.map((item, index2) => /* @__PURE__ */ jsx55(
29363
29363
  DropdownMenuItem,
29364
29364
  {
29365
29365
  asChild: true,
@@ -29374,7 +29374,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuil
29374
29374
  }
29375
29375
  )
29376
29376
  },
29377
- item.id
29377
+ item.id || index2
29378
29378
  ))
29379
29379
  }
29380
29380
  )
@@ -29409,14 +29409,14 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuil
29409
29409
  if (hasChildren) {
29410
29410
  return /* @__PURE__ */ jsxs32(DropdownMenuSub, { children: [
29411
29411
  /* @__PURE__ */ jsx55(DropdownMenuSubTrigger, { className: "flex items-center justify-between cursor-pointer rounded-sm px-3 py-2 text-[13px] text-foreground hover:text-foreground", children: tab.header }),
29412
- /* @__PURE__ */ jsx55(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ jsx55(
29412
+ /* @__PURE__ */ jsx55(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item, index) => /* @__PURE__ */ jsx55(
29413
29413
  DropdownMenuItem,
29414
29414
  {
29415
29415
  asChild: true,
29416
29416
  className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
29417
29417
  children: /* @__PURE__ */ jsx55(Link5, { href: item.url || "#", onClick: (e) => handleBuilderExit(e, item.url || "#"), children: item.header })
29418
29418
  },
29419
- item.id
29419
+ item.id || index
29420
29420
  )) })
29421
29421
  ] }, i);
29422
29422
  }