@parhelia/benchmark 0.4.13058 → 0.4.13178
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunStatusBadge.d.ts","sourceRoot":"","sources":["../../src/components/RunStatusBadge.tsx"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAG3F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, capitalizeFirstLetter, cn } from "@parhelia/core";
|
|
3
|
+
const labels = { NeedsRecovery: "Needs recovery", TimedOut: "Timed out", CostLimit: "Cost limit", TokenLimit: "Token limit" };
|
|
4
|
+
const failed = ["Failed", "NeedsRecovery", "Unconfirmed", "TimedOut", "CostLimit", "TokenLimit"];
|
|
5
|
+
const active = ["Running", "Queued"];
|
|
6
|
+
export function RunStatusBadge({ status, className }) {
|
|
7
|
+
const variant = failed.includes(status) ? "destructive" : active.includes(status) ? "default" : "secondary";
|
|
8
|
+
return _jsx(Badge, { variant: variant, className: cn(status === "Completed" && "bg-feedback-green-light text-feedback-green", className), children: capitalizeFirstLetter(labels[status] ?? status) });
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parhelia/benchmark",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.13178",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -34,29 +34,29 @@
|
|
|
34
34
|
"@eslint/compat": "^2.1.1",
|
|
35
35
|
"@repo/eslint-config": "*",
|
|
36
36
|
"@repo/typescript-config": "*",
|
|
37
|
-
"@tailwindcss/postcss": "^4.3.
|
|
38
|
-
"@testing-library/dom": "^10.4.
|
|
37
|
+
"@tailwindcss/postcss": "^4.3.5",
|
|
38
|
+
"@testing-library/dom": "^10.4.2",
|
|
39
39
|
"@testing-library/react": "^16.3.3",
|
|
40
|
-
"@types/node": "^26.
|
|
41
|
-
"@types/react": "19.
|
|
42
|
-
"@types/react-dom": "19.
|
|
40
|
+
"@types/node": "^26.6.6",
|
|
41
|
+
"@types/react": "19.3.0",
|
|
42
|
+
"@types/react-dom": "19.3.0",
|
|
43
43
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
44
|
-
"eslint": "^10.
|
|
45
|
-
"jsdom": "^30.
|
|
46
|
-
"tailwindcss": "^4.3.
|
|
44
|
+
"eslint": "^10.15.0",
|
|
45
|
+
"jsdom": "^30.1.3",
|
|
46
|
+
"tailwindcss": "^4.3.5",
|
|
47
47
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
48
|
-
"vitest": "^4.1.
|
|
48
|
+
"vitest": "^4.1.12"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@parhelia/core": "*",
|
|
52
|
-
"lucide-react": "^1.
|
|
53
|
-
"postcss": "^8.5.
|
|
54
|
-
"react": "19.
|
|
55
|
-
"react-dom": "19.
|
|
52
|
+
"lucide-react": "^1.75.0",
|
|
53
|
+
"postcss": "^8.5.33",
|
|
54
|
+
"react": "19.3.1",
|
|
55
|
+
"react-dom": "19.3.1",
|
|
56
56
|
"sonner": "^2.0.8"
|
|
57
57
|
},
|
|
58
58
|
"overrides": {
|
|
59
|
-
"@types/react": "19.
|
|
60
|
-
"@types/react-dom": "19.
|
|
59
|
+
"@types/react": "19.3.0",
|
|
60
|
+
"@types/react-dom": "19.3.0"
|
|
61
61
|
}
|
|
62
62
|
}
|