@algorithm-shift/design-system 1.3.122 → 1.3.124

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
@@ -5620,6 +5620,30 @@ function TooltipTrigger({
5620
5620
  }) {
5621
5621
  return /* @__PURE__ */ jsx60(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
5622
5622
  }
5623
+ function TooltipContent({
5624
+ className,
5625
+ sideOffset = 4,
5626
+ children,
5627
+ hideArrow,
5628
+ ...props
5629
+ }) {
5630
+ return /* @__PURE__ */ jsx60(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs37(
5631
+ TooltipPrimitive.Content,
5632
+ {
5633
+ "data-slot": "tooltip-content",
5634
+ sideOffset,
5635
+ className: cn(
5636
+ "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
5637
+ className
5638
+ ),
5639
+ ...props,
5640
+ children: [
5641
+ children,
5642
+ !hideArrow && /* @__PURE__ */ jsx60(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 rotate-45 rounded-[2px]" })
5643
+ ]
5644
+ }
5645
+ ) });
5646
+ }
5623
5647
 
5624
5648
  // src/components/Navigation/Stages/Stages.tsx
5625
5649
  import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
@@ -5758,7 +5782,7 @@ var StagesComponent = ({
5758
5782
  let stageColor = `text-[${primaryColor}] border-2 border-[${primaryColor}]`;
5759
5783
  let stageStyle = { borderColor: primaryColor, color: showAsActive ? "white" : primaryColor, backgroundColor: showAsActive ? primaryColor : "transparent" };
5760
5784
  if (stage.hasOwnProperty("isSuccess") && stage.isSuccess === false) {
5761
- stageColor = `bg-red-50 text-red-700 border-2 border-red-700`;
5785
+ stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
5762
5786
  stageStyle = { borderColor: "red", color: "red", backgroundColor: "transparent" };
5763
5787
  }
5764
5788
  let stageLabel = stage[dataLabel];
@@ -5790,6 +5814,7 @@ var StagesComponent = ({
5790
5814
  children: stageLabel
5791
5815
  }
5792
5816
  ) }),
5817
+ /* @__PURE__ */ jsx61(TooltipContent, { side: "top", sideOffset: 6, hideArrow: true, children: stageLabel }),
5793
5818
  !isMobile && index < stages.length - 1 && /* @__PURE__ */ jsx61("div", { className: "hidden sm:flex sm:flex-shrink-0 w-3 h-px bg-gray-300 sm:w-4" })
5794
5819
  ] }, stageKey) }, stageKey);
5795
5820
  })