@calimero-network/mero-charts 0.0.2 → 0.0.4
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ function Gauge({
|
|
|
46
46
|
return "#ef4444";
|
|
47
47
|
};
|
|
48
48
|
const valueColor = getValueColor(pct);
|
|
49
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: "100%", display: "flex", flexDirection: "column", alignItems: "center" }, children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 240 160", style: { width: "100%" }, children: [
|
|
50
50
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: arcPath(cx, cy, arcRadius, startAngle, endAngle), stroke: "#6B7280", strokeOpacity: 0.3, strokeWidth: 18, fill: "none", strokeLinecap: "butt" }),
|
|
51
51
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
52
52
|
"path",
|
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ function Gauge({
|
|
|
44
44
|
return "#ef4444";
|
|
45
45
|
};
|
|
46
46
|
const valueColor = getValueColor(pct);
|
|
47
|
-
return /* @__PURE__ */ jsx("div", {
|
|
47
|
+
return /* @__PURE__ */ jsx("div", { style: { width: "100%", display: "flex", flexDirection: "column", alignItems: "center" }, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 240 160", style: { width: "100%" }, children: [
|
|
48
48
|
/* @__PURE__ */ jsx("path", { d: arcPath(cx, cy, arcRadius, startAngle, endAngle), stroke: "#6B7280", strokeOpacity: 0.3, strokeWidth: 18, fill: "none", strokeLinecap: "butt" }),
|
|
49
49
|
/* @__PURE__ */ jsx(
|
|
50
50
|
"path",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.4",
|
|
7
7
|
"description": "Chart components for Calimero design system",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"module": "./dist/index.js",
|
|
@@ -19,9 +19,8 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"react": "^19.0.0",
|
|
23
22
|
"recharts": "^2.8.0",
|
|
24
|
-
"@calimero-network/mero-ui": "0.0
|
|
23
|
+
"@calimero-network/mero-ui": "0.2.0"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
26
|
"@types/react": "^19.0.0",
|
|
@@ -29,11 +28,12 @@
|
|
|
29
28
|
"typescript": "^5.0.0"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
32
|
-
"react": "^19.
|
|
31
|
+
"react": "^19.1.1"
|
|
33
32
|
},
|
|
34
33
|
"scripts": {
|
|
35
34
|
"build": "tsup",
|
|
36
35
|
"dev": "tsup --watch",
|
|
37
|
-
"clean": "rm -rf dist"
|
|
36
|
+
"clean": "rm -rf dist",
|
|
37
|
+
"typecheck": "tsc --noEmit"
|
|
38
38
|
}
|
|
39
39
|
}
|