@local-civics/hub-ui 0.1.241 → 0.1.243

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
@@ -3912,7 +3912,7 @@ const BadgeDetail = (props) => {
3912
3912
  });
3913
3913
  const status = props.finishedAt ? "Completed" : anyStarted || xp > 0 ? "In Progress" : "Available";
3914
3914
  const { border, shadow, pillAccent } = STATUS_CLASSNAMES$1[status];
3915
- const showSubmit = !props.finishedAt && criteria.length > 0;
3915
+ const showSubmit = !props.preview && !props.finishedAt && criteria.length > 0;
3916
3916
  return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-col gap-3.5" }, /* @__PURE__ */ React.createElement("div", { className: `overflow-hidden rounded-2xl border bg-white ${border} ${shadow}` }, /* @__PURE__ */ React.createElement("div", { className: "flex gap-4 p-5" }, /* @__PURE__ */ React.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React.createElement(
3917
3917
  BadgeEmblem,
3918
3918
  {
@@ -7277,7 +7277,16 @@ const SubmissionReviewHeader = (props) => {
7277
7277
  return null;
7278
7278
  }
7279
7279
  const showEmailLine = !!props.name && !!props.email && props.name !== props.email;
7280
- return /* @__PURE__ */ React.createElement("div", { className: "mb-4 flex items-center gap-3 rounded-xl border border-slate-200 bg-white px-4 py-3" }, /* @__PURE__ */ React.createElement("div", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-sky-blue-400/15 text-sm font-bold text-sky-blue-400" }, initialsFor(props.name, props.email)), /* @__PURE__ */ React.createElement("div", { className: "min-w-0 flex-1" }, /* @__PURE__ */ React.createElement("div", { className: "truncate text-sm font-extrabold text-dark-blue-400" }, props.name || props.email), showEmailLine && /* @__PURE__ */ React.createElement("div", { className: "truncate text-xs text-slate-400" }, props.email)), /* @__PURE__ */ React.createElement("span", { className: "shrink-0 rounded-full bg-slate-100 px-3 py-1 text-[10px] font-bold uppercase tracking-wide text-slate-500" }, "Preview"));
7280
+ return /* @__PURE__ */ React.createElement("div", { className: "mb-4 flex items-center gap-3 rounded-xl border border-slate-200 bg-white px-4 py-3" }, /* @__PURE__ */ React.createElement("div", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-sky-blue-400/15 text-sm font-bold text-sky-blue-400" }, initialsFor(props.name, props.email)), /* @__PURE__ */ React.createElement("div", { className: "min-w-0 flex-1" }, /* @__PURE__ */ React.createElement("div", { className: "truncate text-sm font-extrabold text-dark-blue-400" }, props.name || props.email), showEmailLine && /* @__PURE__ */ React.createElement("div", { className: "truncate text-xs text-slate-400" }, props.email)), props.onViewOverview && props.overviewLabel && /* @__PURE__ */ React.createElement(
7281
+ "button",
7282
+ {
7283
+ type: "button",
7284
+ onClick: props.onViewOverview,
7285
+ className: "shrink-0 text-xs font-bold text-dark-blue-400 hover:underline"
7286
+ },
7287
+ props.overviewLabel,
7288
+ " \u2192"
7289
+ ), /* @__PURE__ */ React.createElement("span", { className: "shrink-0 rounded-full bg-slate-100 px-3 py-1 text-[10px] font-bold uppercase tracking-wide text-slate-500" }, "Preview"));
7281
7290
  };
7282
7291
 
7283
7292
  const AuthLayout = (props) => {