@empoweredvote/ev-ui 0.6.4 → 0.6.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
@@ -1287,6 +1287,10 @@ var defaultNavItems = [
1287
1287
  { label: "Treasury Tracker", href: "https://treasurytracker.empowered.vote" },
1288
1288
  { label: "Empowered Badges", href: "https://badges.empowered.vote" }
1289
1289
  ]
1290
+ },
1291
+ {
1292
+ label: "Feedback",
1293
+ href: "https://ev-landing.empowered.vote/feedback.html"
1290
1294
  }
1291
1295
  ];
1292
1296
  var defaultCtaButton = {
@@ -6072,6 +6076,7 @@ function StanceAccordion({
6072
6076
  const questionText = fullTopic == null ? void 0 : fullTopic.question_text;
6073
6077
  const topicQuotes = quotesCache.current ? quotesCache.current.filter((q) => {
6074
6078
  if (!q.issue) return false;
6079
+ if (q.candidateId && q.candidateId !== politicianId) return false;
6075
6080
  if (topic.topic_key) return q.issue === topic.topic_key;
6076
6081
  return topic.short_title && q.issue.toLowerCase() === topic.short_title.toLowerCase();
6077
6082
  }) : [];
@@ -6254,6 +6259,23 @@ function StanceAccordion({
6254
6259
  )
6255
6260
  );
6256
6261
  }
6262
+
6263
+ // src/FeedbackButton.jsx
6264
+ import React30 from "react";
6265
+ var FEEDBACK_BASE = "https://ev-landing.empowered.vote/feedback.html";
6266
+ function FeedbackButton({ feature, className = "", label = "Feedback" }) {
6267
+ const href = feature ? `${FEEDBACK_BASE}?feature=${encodeURIComponent(feature)}` : FEEDBACK_BASE;
6268
+ return /* @__PURE__ */ React30.createElement(
6269
+ "a",
6270
+ {
6271
+ href,
6272
+ target: "_blank",
6273
+ rel: "noopener noreferrer",
6274
+ className
6275
+ },
6276
+ label
6277
+ );
6278
+ }
6257
6279
  export {
6258
6280
  AuthForm,
6259
6281
  BallotIcon,
@@ -6266,6 +6288,7 @@ export {
6266
6288
  CompassIcon,
6267
6289
  CompassKey,
6268
6290
  ExpandCompassNudge,
6291
+ FeedbackButton,
6269
6292
  FilterSidebar,
6270
6293
  GovernmentBodySection,
6271
6294
  Header,