@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.mjs
CHANGED
|
@@ -5300,11 +5300,17 @@ var StagesComponent = ({
|
|
|
5300
5300
|
const currentIndex = stages.findIndex((s) => s[dataKey] === activeStage);
|
|
5301
5301
|
const isCompletedStage = isAllStagesCompleted || index <= currentIndex;
|
|
5302
5302
|
const isActive = !isAllStagesCompleted && index === currentIndex;
|
|
5303
|
-
let stageColor =
|
|
5303
|
+
let stageColor = "bg-green-50 text-green-700 border-2 border-green-700";
|
|
5304
|
+
if (stage.hasOwnProperty("isSuccess") && stage.isSuccess === false) {
|
|
5305
|
+
stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
|
|
5306
|
+
}
|
|
5304
5307
|
let stageLabel = stage[dataLabel];
|
|
5305
5308
|
if (stage[dataKey] !== activeChildStage?.[dataKey] && activeRootStage?.[dataKey] === stage[dataKey]) {
|
|
5306
5309
|
stageLabel = activeChildStage?.[dataLabel] || stageLabel;
|
|
5307
|
-
stageColor =
|
|
5310
|
+
stageColor = "bg-green-50 text-green-700 border-2 border-green-700";
|
|
5311
|
+
if (activeChildStage.hasOwnProperty("isSuccess") && activeChildStage.isSuccess === false) {
|
|
5312
|
+
stageColor = "bg-red-50 text-red-700 border-2 border-red-700";
|
|
5313
|
+
}
|
|
5308
5314
|
}
|
|
5309
5315
|
const stageKey = typeof stage[dataKey] === "string" ? stage[dataKey] : JSON.stringify(stage[dataKey]);
|
|
5310
5316
|
return /* @__PURE__ */ jsx61(React11.Fragment, { children: /* @__PURE__ */ jsxs38(Tooltip, { delayDuration: 500, disableHoverableContent: true, children: [
|