@empoweredvote/ev-ui 0.8.11 → 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 CHANGED
@@ -344,10 +344,10 @@ function RadarChartCore({
344
344
  key: `user-dot-${i}`,
345
345
  cx,
346
346
  cy,
347
- r: matches ? 8 : 7,
347
+ r: matches ? 6 : 5,
348
348
  fill: matches ? "#fed12e" : "#7C6B9E",
349
349
  stroke: "#FFFFFF",
350
- strokeWidth: 3,
350
+ strokeWidth: 2,
351
351
  style: { pointerEvents: "none" }
352
352
  }
353
353
  );
@@ -389,10 +389,10 @@ function RadarChartCore({
389
389
  key: `compare-dot-${i}`,
390
390
  cx,
391
391
  cy,
392
- r: matches ? 8 : 7,
392
+ r: matches ? 6 : 5,
393
393
  fill: matches ? "#fed12e" : darkMode ? "#6DD28C" : "#5A9A6E",
394
394
  stroke: "#FFFFFF",
395
- strokeWidth: 3,
395
+ strokeWidth: 2,
396
396
  style: { pointerEvents: "none" }
397
397
  }
398
398
  );
@@ -4016,7 +4016,8 @@ function CommitteeTable({
4016
4016
  committees = [],
4017
4017
  title = "Committee Memberships",
4018
4018
  maxVisible = 6,
4019
- style = {}
4019
+ style = {},
4020
+ darkMode = false
4020
4021
  }) {
4021
4022
  const [showAll, setShowAll] = (0, import_react21.useState)(false);
4022
4023
  if (committees.length === 0) {
@@ -4036,7 +4037,7 @@ function CommitteeTable({
4036
4037
  fontFamily: fonts.primary,
4037
4038
  fontWeight: fontWeights.semibold,
4038
4039
  fontSize: "18px",
4039
- color: "#101828",
4040
+ color: darkMode ? "#f3f4f6" : "#101828",
4040
4041
  margin: 0,
4041
4042
  marginBottom: spacing[3]
4042
4043
  },
@@ -4045,7 +4046,7 @@ function CommitteeTable({
4045
4046
  borderCollapse: "collapse"
4046
4047
  },
4047
4048
  row: {
4048
- borderBottom: "1px solid #F3F4F6"
4049
+ borderBottom: `1px solid ${darkMode ? "#374151" : "#F3F4F6"}`
4049
4050
  },
4050
4051
  cell: {
4051
4052
  padding: `${spacing[2]} 0`,
@@ -4054,16 +4055,16 @@ function CommitteeTable({
4054
4055
  verticalAlign: "top"
4055
4056
  },
4056
4057
  nameCell: {
4057
- color: "#364153",
4058
+ color: darkMode ? "#d1d5db" : "#364153",
4058
4059
  paddingRight: spacing[4]
4059
4060
  },
4060
4061
  positionCell: {
4061
- color: "#6A7282",
4062
+ color: darkMode ? "#9ca3af" : "#6A7282",
4062
4063
  textAlign: "right",
4063
4064
  whiteSpace: "nowrap"
4064
4065
  },
4065
4066
  link: {
4066
- color: "#364153",
4067
+ color: darkMode ? "#d1d5db" : "#364153",
4067
4068
  textDecoration: "none"
4068
4069
  },
4069
4070
  toggle: {
@@ -4073,7 +4074,7 @@ function CommitteeTable({
4073
4074
  fontFamily: fonts.primary,
4074
4075
  fontSize: "14px",
4075
4076
  fontWeight: fontWeights.medium,
4076
- color: "#6A7282",
4077
+ color: darkMode ? "#9ca3af" : "#6A7282",
4077
4078
  background: "none",
4078
4079
  border: "none",
4079
4080
  padding: `${spacing[2]} 0`,
@@ -4969,7 +4970,7 @@ function PoliticianProfile({
4969
4970
  darkMode,
4970
4971
  style: { marginTop: allWebsites.length > 0 ? "8px" : 0 }
4971
4972
  }
4972
- )))), 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(
4973
4974
  JudicialScorecard,
4974
4975
  {
4975
4976
  judicialRecord,