@algorithm-shift/design-system 1.2.999 → 1.3.101
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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5384,11 +5384,17 @@ var StagesComponent = ({
|
|
|
5384
5384
|
const currentIndex = stages.findIndex((s) => s[dataKey] === activeStage);
|
|
5385
5385
|
const isCompletedStage = isAllStagesCompleted || index <= currentIndex;
|
|
5386
5386
|
const isActive = !isAllStagesCompleted && index === currentIndex;
|
|
5387
|
-
let stageColor =
|
|
5387
|
+
let stageColor = "bg-green-50 text-green-700 border-2 border-green-700";
|
|
5388
|
+
if (stage.hasOwnProperty("isSuccess") && stage.isSuccess === false) {
|
|
5389
|
+
stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
|
|
5390
|
+
}
|
|
5388
5391
|
let stageLabel = stage[dataLabel];
|
|
5389
5392
|
if (stage[dataKey] !== activeChildStage?.[dataKey] && activeRootStage?.[dataKey] === stage[dataKey]) {
|
|
5390
5393
|
stageLabel = activeChildStage?.[dataLabel] || stageLabel;
|
|
5391
|
-
stageColor =
|
|
5394
|
+
stageColor = "bg-green-50 text-green-700 border-2 border-green-700";
|
|
5395
|
+
if (activeChildStage.hasOwnProperty("isSuccess") && activeChildStage.isSuccess === false) {
|
|
5396
|
+
stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
|
|
5397
|
+
}
|
|
5392
5398
|
}
|
|
5393
5399
|
const stageKey = typeof stage[dataKey] === "string" ? stage[dataKey] : JSON.stringify(stage[dataKey]);
|
|
5394
5400
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Tooltip, { delayDuration: 500, disableHoverableContent: true, children: [
|