@algorithm-shift/design-system 1.3.123 → 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.js CHANGED
@@ -5704,6 +5704,30 @@ function TooltipTrigger({
5704
5704
  }) {
5705
5705
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
5706
5706
  }
5707
+ function TooltipContent({
5708
+ className,
5709
+ sideOffset = 4,
5710
+ children,
5711
+ hideArrow,
5712
+ ...props
5713
+ }) {
5714
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5715
+ TooltipPrimitive.Content,
5716
+ {
5717
+ "data-slot": "tooltip-content",
5718
+ sideOffset,
5719
+ className: cn(
5720
+ "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",
5721
+ className
5722
+ ),
5723
+ ...props,
5724
+ children: [
5725
+ children,
5726
+ !hideArrow && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 rotate-45 rounded-[2px]" })
5727
+ ]
5728
+ }
5729
+ ) });
5730
+ }
5707
5731
 
5708
5732
  // src/components/Navigation/Stages/Stages.tsx
5709
5733
  var import_jsx_runtime61 = require("react/jsx-runtime");
@@ -5874,6 +5898,7 @@ var StagesComponent = ({
5874
5898
  children: stageLabel
5875
5899
  }
5876
5900
  ) }),
5901
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TooltipContent, { side: "top", sideOffset: 6, hideArrow: true, children: stageLabel }),
5877
5902
  !isMobile && index < stages.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "hidden sm:flex sm:flex-shrink-0 w-3 h-px bg-gray-300 sm:w-4" })
5878
5903
  ] }, stageKey) }, stageKey);
5879
5904
  })