@algorithm-shift/design-system 1.2.999 → 1.3.102

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
@@ -524,14 +524,16 @@ var Typography = ({
524
524
  className,
525
525
  style,
526
526
  tagName,
527
- textContent
527
+ textContent,
528
+ onClick
528
529
  }) => {
529
530
  const Tag = tagName || "h1";
530
531
  return React4.createElement(
531
532
  Tag,
532
533
  {
533
534
  style,
534
- className: cn(className, "pointer-events-auto")
535
+ className: cn(className, "pointer-events-auto"),
536
+ onClick
535
537
  },
536
538
  [
537
539
  React4.createElement("span", {
@@ -5300,11 +5302,17 @@ var StagesComponent = ({
5300
5302
  const currentIndex = stages.findIndex((s) => s[dataKey] === activeStage);
5301
5303
  const isCompletedStage = isAllStagesCompleted || index <= currentIndex;
5302
5304
  const isActive = !isAllStagesCompleted && index === currentIndex;
5303
- let stageColor = !stage.isSuccess ? "bg-red-50 text-red-700 border-2 border-red-700" : "bg-green-50 text-green-700 border-2 border-green-700";
5305
+ let stageColor = "bg-green-50 text-green-700 border-2 border-green-700";
5306
+ if (stage.hasOwnProperty("isSuccess") && stage.isSuccess === false) {
5307
+ stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
5308
+ }
5304
5309
  let stageLabel = stage[dataLabel];
5305
5310
  if (stage[dataKey] !== activeChildStage?.[dataKey] && activeRootStage?.[dataKey] === stage[dataKey]) {
5306
5311
  stageLabel = activeChildStage?.[dataLabel] || stageLabel;
5307
- stageColor = activeChildStage?.isSuccess ? "bg-green-50 text-green-700 border-2 border-green-700" : "bg-red-50 text-red-700 border-2 border-red-700";
5312
+ stageColor = "bg-green-50 text-green-700 border-2 border-green-700";
5313
+ if (activeChildStage.hasOwnProperty("isSuccess") && activeChildStage.isSuccess === false) {
5314
+ stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
5315
+ }
5308
5316
  }
5309
5317
  const stageKey = typeof stage[dataKey] === "string" ? stage[dataKey] : JSON.stringify(stage[dataKey]);
5310
5318
  return /* @__PURE__ */ jsx61(React11.Fragment, { children: /* @__PURE__ */ jsxs38(Tooltip, { delayDuration: 500, disableHoverableContent: true, children: [