@empoweredvote/ev-ui 0.8.10 → 0.8.12
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 +16 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115,7 +115,8 @@ function RadarChartCore({
|
|
|
115
115
|
// replacedSpokes: short_titles of substitute spokes (not the user's original defaults)
|
|
116
116
|
replacedSpokes = {},
|
|
117
117
|
// boldOriginalSpokes: when true, bold spokes that are NOT replacements
|
|
118
|
-
boldOriginalSpokes = false
|
|
118
|
+
boldOriginalSpokes = false,
|
|
119
|
+
highlightedSpoke = null
|
|
119
120
|
}) {
|
|
120
121
|
var _a;
|
|
121
122
|
const radius = size / 2 - 40;
|
|
@@ -308,7 +309,7 @@ function RadarChartCore({
|
|
|
308
309
|
textAnchor: "middle",
|
|
309
310
|
dominantBaseline: isBottom ? "hanging" : "auto",
|
|
310
311
|
onClick: () => onReplaceTopic(shortTitle),
|
|
311
|
-
fill: isActive ? "#E85D26" : isUnansweredLabel ? "#9ca3af" : darkMode ? "#D3D7DE" : "#555",
|
|
312
|
+
fill: isActive ? "#E85D26" : shortTitle === highlightedSpoke ? darkMode ? "#7DD4E8" : "#59B0C4" : isUnansweredLabel ? "#9ca3af" : darkMode ? "#D3D7DE" : "#555",
|
|
312
313
|
fontWeight: isActive || shouldBold ? "bold" : "normal",
|
|
313
314
|
style: { cursor: "pointer", userSelect: "none", fontSize: fSize, fontFamily: "sans-serif" }
|
|
314
315
|
},
|
|
@@ -343,10 +344,10 @@ function RadarChartCore({
|
|
|
343
344
|
key: `user-dot-${i}`,
|
|
344
345
|
cx,
|
|
345
346
|
cy,
|
|
346
|
-
r: matches ?
|
|
347
|
+
r: matches ? 6 : 5,
|
|
347
348
|
fill: matches ? "#fed12e" : "#7C6B9E",
|
|
348
349
|
stroke: "#FFFFFF",
|
|
349
|
-
strokeWidth:
|
|
350
|
+
strokeWidth: 2,
|
|
350
351
|
style: { pointerEvents: "none" }
|
|
351
352
|
}
|
|
352
353
|
);
|
|
@@ -388,10 +389,10 @@ function RadarChartCore({
|
|
|
388
389
|
key: `compare-dot-${i}`,
|
|
389
390
|
cx,
|
|
390
391
|
cy,
|
|
391
|
-
r: matches ?
|
|
392
|
+
r: matches ? 6 : 5,
|
|
392
393
|
fill: matches ? "#fed12e" : darkMode ? "#6DD28C" : "#5A9A6E",
|
|
393
394
|
stroke: "#FFFFFF",
|
|
394
|
-
strokeWidth:
|
|
395
|
+
strokeWidth: 2,
|
|
395
396
|
style: { pointerEvents: "none" }
|
|
396
397
|
}
|
|
397
398
|
);
|
|
@@ -4015,7 +4016,8 @@ function CommitteeTable({
|
|
|
4015
4016
|
committees = [],
|
|
4016
4017
|
title = "Committee Memberships",
|
|
4017
4018
|
maxVisible = 6,
|
|
4018
|
-
style = {}
|
|
4019
|
+
style = {},
|
|
4020
|
+
darkMode = false
|
|
4019
4021
|
}) {
|
|
4020
4022
|
const [showAll, setShowAll] = (0, import_react21.useState)(false);
|
|
4021
4023
|
if (committees.length === 0) {
|
|
@@ -4035,7 +4037,7 @@ function CommitteeTable({
|
|
|
4035
4037
|
fontFamily: fonts.primary,
|
|
4036
4038
|
fontWeight: fontWeights.semibold,
|
|
4037
4039
|
fontSize: "18px",
|
|
4038
|
-
color: "#101828",
|
|
4040
|
+
color: darkMode ? "#f3f4f6" : "#101828",
|
|
4039
4041
|
margin: 0,
|
|
4040
4042
|
marginBottom: spacing[3]
|
|
4041
4043
|
},
|
|
@@ -4044,7 +4046,7 @@ function CommitteeTable({
|
|
|
4044
4046
|
borderCollapse: "collapse"
|
|
4045
4047
|
},
|
|
4046
4048
|
row: {
|
|
4047
|
-
borderBottom:
|
|
4049
|
+
borderBottom: `1px solid ${darkMode ? "#374151" : "#F3F4F6"}`
|
|
4048
4050
|
},
|
|
4049
4051
|
cell: {
|
|
4050
4052
|
padding: `${spacing[2]} 0`,
|
|
@@ -4053,16 +4055,16 @@ function CommitteeTable({
|
|
|
4053
4055
|
verticalAlign: "top"
|
|
4054
4056
|
},
|
|
4055
4057
|
nameCell: {
|
|
4056
|
-
color: "#364153",
|
|
4058
|
+
color: darkMode ? "#d1d5db" : "#364153",
|
|
4057
4059
|
paddingRight: spacing[4]
|
|
4058
4060
|
},
|
|
4059
4061
|
positionCell: {
|
|
4060
|
-
color: "#6A7282",
|
|
4062
|
+
color: darkMode ? "#9ca3af" : "#6A7282",
|
|
4061
4063
|
textAlign: "right",
|
|
4062
4064
|
whiteSpace: "nowrap"
|
|
4063
4065
|
},
|
|
4064
4066
|
link: {
|
|
4065
|
-
color: "#364153",
|
|
4067
|
+
color: darkMode ? "#d1d5db" : "#364153",
|
|
4066
4068
|
textDecoration: "none"
|
|
4067
4069
|
},
|
|
4068
4070
|
toggle: {
|
|
@@ -4072,7 +4074,7 @@ function CommitteeTable({
|
|
|
4072
4074
|
fontFamily: fonts.primary,
|
|
4073
4075
|
fontSize: "14px",
|
|
4074
4076
|
fontWeight: fontWeights.medium,
|
|
4075
|
-
color: "#6A7282",
|
|
4077
|
+
color: darkMode ? "#9ca3af" : "#6A7282",
|
|
4076
4078
|
background: "none",
|
|
4077
4079
|
border: "none",
|
|
4078
4080
|
padding: `${spacing[2]} 0`,
|
|
@@ -4968,7 +4970,7 @@ function PoliticianProfile({
|
|
|
4968
4970
|
darkMode,
|
|
4969
4971
|
style: { marginTop: allWebsites.length > 0 ? "8px" : 0 }
|
|
4970
4972
|
}
|
|
4971
|
-
)))), committees.length > 0 && /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, /* @__PURE__ */ import_react24.default.createElement("div", { style: divider }), /* @__PURE__ */ import_react24.default.createElement(CommitteeTable, { committees })), pol.is_judicial ? /* @__PURE__ */ import_react24.default.createElement(
|
|
4973
|
+
)))), committees.length > 0 && /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, /* @__PURE__ */ import_react24.default.createElement("div", { style: divider }), /* @__PURE__ */ import_react24.default.createElement(CommitteeTable, { committees, darkMode })), pol.is_judicial ? /* @__PURE__ */ import_react24.default.createElement(
|
|
4972
4974
|
JudicialScorecard,
|
|
4973
4975
|
{
|
|
4974
4976
|
judicialRecord,
|