@local-civics/hub-ui 0.1.246 → 0.1.248
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.d.ts +2 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1636,6 +1636,8 @@ type SubmissionReviewHeaderProps = {
|
|
|
1636
1636
|
email?: string;
|
|
1637
1637
|
onViewOverview?: () => void;
|
|
1638
1638
|
overviewLabel?: string;
|
|
1639
|
+
onSecondaryAction?: () => void;
|
|
1640
|
+
secondaryActionLabel?: string;
|
|
1639
1641
|
};
|
|
1640
1642
|
/**
|
|
1641
1643
|
* A compact identity strip shown above a single-student badge/lesson preview, so an educator
|
package/dist/index.js
CHANGED
|
@@ -7297,7 +7297,16 @@ const SubmissionReviewHeader = (props) => {
|
|
|
7297
7297
|
return null;
|
|
7298
7298
|
}
|
|
7299
7299
|
const showEmailLine = !!props.name && !!props.email && props.name !== props.email;
|
|
7300
|
-
return /* @__PURE__ */ React__namespace.createElement("div", { className: "mb-4 flex items-center gap-3 rounded-xl border border-slate-200 bg-white px-4 py-3" }, /* @__PURE__ */ React__namespace.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__namespace.createElement("div", { className: "min-w-0 flex-1" }, /* @__PURE__ */ React__namespace.createElement("div", { className: "truncate text-sm font-extrabold text-dark-blue-400" }, props.name || props.email), showEmailLine && /* @__PURE__ */ React__namespace.createElement("div", { className: "truncate text-xs text-slate-400" }, props.email)), props.
|
|
7300
|
+
return /* @__PURE__ */ React__namespace.createElement("div", { className: "mb-4 flex items-center gap-3 rounded-xl border border-slate-200 bg-white px-4 py-3" }, /* @__PURE__ */ React__namespace.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__namespace.createElement("div", { className: "min-w-0 flex-1" }, /* @__PURE__ */ React__namespace.createElement("div", { className: "truncate text-sm font-extrabold text-dark-blue-400" }, props.name || props.email), showEmailLine && /* @__PURE__ */ React__namespace.createElement("div", { className: "truncate text-xs text-slate-400" }, props.email)), props.onSecondaryAction && props.secondaryActionLabel && /* @__PURE__ */ React__namespace.createElement(
|
|
7301
|
+
"button",
|
|
7302
|
+
{
|
|
7303
|
+
type: "button",
|
|
7304
|
+
onClick: props.onSecondaryAction,
|
|
7305
|
+
className: "shrink-0 text-xs font-bold text-dark-blue-400 hover:underline"
|
|
7306
|
+
},
|
|
7307
|
+
props.secondaryActionLabel,
|
|
7308
|
+
" \u2192"
|
|
7309
|
+
), props.onViewOverview && props.overviewLabel && /* @__PURE__ */ React__namespace.createElement(
|
|
7301
7310
|
"button",
|
|
7302
7311
|
{
|
|
7303
7312
|
type: "button",
|