@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.mjs CHANGED
@@ -253,10 +253,10 @@ function RadarChartCore({
253
253
  key: `user-dot-${i}`,
254
254
  cx,
255
255
  cy,
256
- r: matches ? 8 : 7,
256
+ r: matches ? 6 : 5,
257
257
  fill: matches ? "#fed12e" : "#7C6B9E",
258
258
  stroke: "#FFFFFF",
259
- strokeWidth: 3,
259
+ strokeWidth: 2,
260
260
  style: { pointerEvents: "none" }
261
261
  }
262
262
  );
@@ -298,10 +298,10 @@ function RadarChartCore({
298
298
  key: `compare-dot-${i}`,
299
299
  cx,
300
300
  cy,
301
- r: matches ? 8 : 7,
301
+ r: matches ? 6 : 5,
302
302
  fill: matches ? "#fed12e" : darkMode ? "#6DD28C" : "#5A9A6E",
303
303
  stroke: "#FFFFFF",
304
- strokeWidth: 3,
304
+ strokeWidth: 2,
305
305
  style: { pointerEvents: "none" }
306
306
  }
307
307
  );
@@ -3937,7 +3937,8 @@ function CommitteeTable({
3937
3937
  committees = [],
3938
3938
  title = "Committee Memberships",
3939
3939
  maxVisible = 6,
3940
- style = {}
3940
+ style = {},
3941
+ darkMode = false
3941
3942
  }) {
3942
3943
  const [showAll, setShowAll] = useState11(false);
3943
3944
  if (committees.length === 0) {
@@ -3957,7 +3958,7 @@ function CommitteeTable({
3957
3958
  fontFamily: fonts.primary,
3958
3959
  fontWeight: fontWeights.semibold,
3959
3960
  fontSize: "18px",
3960
- color: "#101828",
3961
+ color: darkMode ? "#f3f4f6" : "#101828",
3961
3962
  margin: 0,
3962
3963
  marginBottom: spacing[3]
3963
3964
  },
@@ -3966,7 +3967,7 @@ function CommitteeTable({
3966
3967
  borderCollapse: "collapse"
3967
3968
  },
3968
3969
  row: {
3969
- borderBottom: "1px solid #F3F4F6"
3970
+ borderBottom: `1px solid ${darkMode ? "#374151" : "#F3F4F6"}`
3970
3971
  },
3971
3972
  cell: {
3972
3973
  padding: `${spacing[2]} 0`,
@@ -3975,16 +3976,16 @@ function CommitteeTable({
3975
3976
  verticalAlign: "top"
3976
3977
  },
3977
3978
  nameCell: {
3978
- color: "#364153",
3979
+ color: darkMode ? "#d1d5db" : "#364153",
3979
3980
  paddingRight: spacing[4]
3980
3981
  },
3981
3982
  positionCell: {
3982
- color: "#6A7282",
3983
+ color: darkMode ? "#9ca3af" : "#6A7282",
3983
3984
  textAlign: "right",
3984
3985
  whiteSpace: "nowrap"
3985
3986
  },
3986
3987
  link: {
3987
- color: "#364153",
3988
+ color: darkMode ? "#d1d5db" : "#364153",
3988
3989
  textDecoration: "none"
3989
3990
  },
3990
3991
  toggle: {
@@ -3994,7 +3995,7 @@ function CommitteeTable({
3994
3995
  fontFamily: fonts.primary,
3995
3996
  fontSize: "14px",
3996
3997
  fontWeight: fontWeights.medium,
3997
- color: "#6A7282",
3998
+ color: darkMode ? "#9ca3af" : "#6A7282",
3998
3999
  background: "none",
3999
4000
  border: "none",
4000
4001
  padding: `${spacing[2]} 0`,
@@ -4890,7 +4891,7 @@ function PoliticianProfile({
4890
4891
  darkMode,
4891
4892
  style: { marginTop: allWebsites.length > 0 ? "8px" : 0 }
4892
4893
  }
4893
- )))), committees.length > 0 && /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement("div", { style: divider }), /* @__PURE__ */ React22.createElement(CommitteeTable, { committees })), pol.is_judicial ? /* @__PURE__ */ React22.createElement(
4894
+ )))), committees.length > 0 && /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement("div", { style: divider }), /* @__PURE__ */ React22.createElement(CommitteeTable, { committees, darkMode })), pol.is_judicial ? /* @__PURE__ */ React22.createElement(
4894
4895
  JudicialScorecard,
4895
4896
  {
4896
4897
  judicialRecord,