@rpcbase/ui 0.59.0 → 0.61.0
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,18 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
type CoverageBandId = "excellent" | "healthy" | "watch" | "critical";
|
|
3
|
+
type CoverageBand = {
|
|
4
|
+
id: CoverageBandId;
|
|
5
|
+
label: string;
|
|
6
|
+
min: number;
|
|
7
|
+
accentClass: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
declare function clampScore(rawScore: number): number;
|
|
11
|
+
declare function selectCoverageBand(score: number): CoverageBand;
|
|
12
|
+
export interface TestCoverageTestBadgeProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
13
|
+
value: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function TestCoverageTestBadge({ value, label, className, ...props }: TestCoverageTestBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { clampScore as clampCoverageScore, selectCoverageBand };
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/test-only/TestCoverageTestBadge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,KAAK,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;AAEpE,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,cAAc,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAiCD,iBAAS,UAAU,CAAC,QAAQ,EAAE,MAAM,UAcnC;AAED,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,gBAQxC;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAClG,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,KAA4B,EAC5B,SAAc,EACd,GAAG,KAAK,EACT,EAAE,0BAA0B,2CAwB5B;AAED,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,kBAAkB,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"react": "19.
|
|
78
|
-
"react-dom": "19.
|
|
77
|
+
"react": "^19.1.0",
|
|
78
|
+
"react-dom": "^19.1.0",
|
|
79
79
|
"react-router": "^7.0.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|