@empoweredvote/ev-ui 0.8.4 → 0.8.6

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.mjs CHANGED
@@ -18,7 +18,9 @@ function RadarChartCore({
18
18
  tightFit = false,
19
19
  activeSpoke = null,
20
20
  writeIns = {},
21
- darkMode = false
21
+ darkMode = false,
22
+ lineColor,
23
+ ringColor
22
24
  }) {
23
25
  var _a;
24
26
  const radius = size / 2 - 40;
@@ -130,7 +132,7 @@ function RadarChartCore({
130
132
  ring.push(`${centerX + radius * scale * Math.sin(angle)},${centerY - radius * scale * Math.cos(angle)}`);
131
133
  }
132
134
  guidePolygons.push(
133
- /* @__PURE__ */ React.createElement("polygon", { key: level, points: ring.join(" "), fill: "none", stroke: darkMode ? "#555" : "#ccc" })
135
+ /* @__PURE__ */ React.createElement("polygon", { key: level, points: ring.join(" "), fill: "none", stroke: ringColor != null ? ringColor : darkMode ? "#555" : "#ccc" })
134
136
  );
135
137
  }
136
138
  const getStanceText = (shortTitle, value) => {
@@ -167,7 +169,7 @@ function RadarChartCore({
167
169
  y1: centerY,
168
170
  x2: endX,
169
171
  y2: endY,
170
- stroke: isUnanswered ? "#9ca3af" : darkMode ? "#bbb" : "#888",
172
+ stroke: isUnanswered ? "#9ca3af" : lineColor != null ? lineColor : darkMode ? "#bbb" : "#888",
171
173
  strokeDasharray: isUnanswered ? "4 3" : void 0,
172
174
  opacity: isUnanswered ? 0.6 : 1
173
175
  }