@apteva/apteva-kit 0.1.92 → 0.1.93
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 +27 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1324,35 +1324,44 @@ function Chevron() {
|
|
|
1324
1324
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { className: "w-3 h-3 text-neutral-400 dark:text-neutral-500 flex-shrink-0", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" }) });
|
|
1325
1325
|
}
|
|
1326
1326
|
function getStepColors(step, stepType) {
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
return colorMap[step.color]
|
|
1327
|
+
const colorMap = {
|
|
1328
|
+
blue: { bg: "bg-blue-100 dark:bg-blue-500/20", text: "text-blue-800 dark:text-blue-200", border: "border-blue-300 dark:border-blue-400/40" },
|
|
1329
|
+
purple: { bg: "bg-purple-100 dark:bg-purple-500/20", text: "text-purple-800 dark:text-purple-200", border: "border-purple-300 dark:border-purple-400/40" },
|
|
1330
|
+
cyan: { bg: "bg-cyan-100 dark:bg-cyan-500/20", text: "text-cyan-800 dark:text-cyan-200", border: "border-cyan-300 dark:border-cyan-400/40" },
|
|
1331
|
+
amber: { bg: "bg-amber-100 dark:bg-amber-500/20", text: "text-amber-800 dark:text-amber-200", border: "border-amber-300 dark:border-amber-400/40" },
|
|
1332
|
+
emerald: { bg: "bg-emerald-100 dark:bg-emerald-500/20", text: "text-emerald-800 dark:text-emerald-200", border: "border-emerald-300 dark:border-emerald-400/40" },
|
|
1333
|
+
rose: { bg: "bg-rose-100 dark:bg-rose-500/20", text: "text-rose-800 dark:text-rose-200", border: "border-rose-300 dark:border-rose-400/40" },
|
|
1334
|
+
indigo: { bg: "bg-indigo-100 dark:bg-indigo-500/20", text: "text-indigo-800 dark:text-indigo-200", border: "border-indigo-300 dark:border-indigo-400/40" },
|
|
1335
|
+
orange: { bg: "bg-orange-100 dark:bg-orange-500/20", text: "text-orange-800 dark:text-orange-200", border: "border-orange-300 dark:border-orange-400/40" }
|
|
1336
|
+
};
|
|
1337
|
+
if (step.color && colorMap[step.color]) {
|
|
1338
|
+
return colorMap[step.color];
|
|
1339
1339
|
}
|
|
1340
1340
|
if (stepType === "time" || stepType === "schedule" || stepType === "clock") {
|
|
1341
|
-
return
|
|
1341
|
+
return colorMap.blue;
|
|
1342
1342
|
}
|
|
1343
1343
|
if (stepType === "agent" || _optionalChain([stepType, 'optionalAccess', _30 => _30.startsWith, 'call', _31 => _31("@")])) {
|
|
1344
|
-
return
|
|
1344
|
+
return colorMap.purple;
|
|
1345
1345
|
}
|
|
1346
1346
|
if (stepType === "email" || stepType === "slack" || stepType === "message" || stepType === "notification") {
|
|
1347
|
-
return
|
|
1347
|
+
return colorMap.cyan;
|
|
1348
1348
|
}
|
|
1349
1349
|
if (stepType === "generate" || stepType === "document" || stepType === "create") {
|
|
1350
|
-
return
|
|
1350
|
+
return colorMap.amber;
|
|
1351
1351
|
}
|
|
1352
1352
|
if (stepType === "deploy" || stepType === "rocket" || stepType === "launch") {
|
|
1353
|
-
return
|
|
1353
|
+
return colorMap.rose;
|
|
1354
|
+
}
|
|
1355
|
+
if (stepType === "build" || stepType === "compile" || stepType === "package") {
|
|
1356
|
+
return colorMap.indigo;
|
|
1357
|
+
}
|
|
1358
|
+
if (stepType === "test" || stepType === "check" || stepType === "verify") {
|
|
1359
|
+
return colorMap.emerald;
|
|
1360
|
+
}
|
|
1361
|
+
if (stepType === "data" || stepType === "database" || stepType === "storage") {
|
|
1362
|
+
return colorMap.orange;
|
|
1354
1363
|
}
|
|
1355
|
-
return
|
|
1364
|
+
return colorMap.blue;
|
|
1356
1365
|
}
|
|
1357
1366
|
function Flow({ widget }) {
|
|
1358
1367
|
const { title, subtitle, icon, steps } = widget.props;
|