@local-civics/mgmt-ui 0.1.82 → 0.1.83
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ type BadgeProps = {
|
|
|
105
105
|
students: BadgeUserItem[];
|
|
106
106
|
href: string;
|
|
107
107
|
trial?: boolean;
|
|
108
|
+
badgesEarned?: number;
|
|
108
109
|
onBackClick: () => void;
|
|
109
110
|
onClassChange: (classId: string) => void;
|
|
110
111
|
onCopyLinkClick: () => void;
|
|
@@ -446,6 +447,7 @@ type LessonProps = {
|
|
|
446
447
|
reflections: Item$5[];
|
|
447
448
|
questions: Item$2[];
|
|
448
449
|
trial?: boolean;
|
|
450
|
+
lessonsCompleted?: number;
|
|
449
451
|
onBackClick: () => void;
|
|
450
452
|
onClassChange: (classId: string) => void;
|
|
451
453
|
onCopyLinkClick: () => void;
|
package/dist/index.js
CHANGED
|
@@ -670,9 +670,9 @@ const Badge = (props) => {
|
|
|
670
670
|
}
|
|
671
671
|
))))), /* @__PURE__ */ React__namespace.createElement("div", null, /* @__PURE__ */ React__namespace.createElement("div", { style: { position: "relative" } }, /* @__PURE__ */ React__namespace.createElement(core.LoadingOverlay, { visible: props.loading, overlayBlur: 2 }), /* @__PURE__ */ React__namespace.createElement(core.Stack, null, /* @__PURE__ */ React__namespace.createElement(StatsGroup, { data: [
|
|
672
672
|
{
|
|
673
|
-
title: "BADGE COMPLETION",
|
|
674
|
-
value: percentageOfBadgesEarned,
|
|
675
|
-
unit: "%"
|
|
673
|
+
title: props.trial ? "LESSONS SUBMITTED" : "BADGE COMPLETION",
|
|
674
|
+
value: props.trial ? props.badgesEarned || 0 : percentageOfBadgesEarned,
|
|
675
|
+
unit: props.trial ? "" : "%"
|
|
676
676
|
}
|
|
677
677
|
] }), !props.trial && /* @__PURE__ */ React__namespace.createElement(
|
|
678
678
|
core.Select,
|
|
@@ -1905,9 +1905,9 @@ const Lesson = (props) => {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
))))), /* @__PURE__ */ React__namespace.createElement("div", null, /* @__PURE__ */ React__namespace.createElement("div", { style: { position: "relative" } }, /* @__PURE__ */ React__namespace.createElement(core.LoadingOverlay, { visible: props.loading, overlayBlur: 2 }), /* @__PURE__ */ React__namespace.createElement(core.Stack, null, /* @__PURE__ */ React__namespace.createElement(StatsGroup, { data: [
|
|
1907
1907
|
{
|
|
1908
|
-
title: "LESSON COMPLETION",
|
|
1909
|
-
value: percentageOfLessonsCompleted,
|
|
1910
|
-
unit: "%"
|
|
1908
|
+
title: props.trial ? "# OF SUBMISSIONS" : "LESSON COMPLETION",
|
|
1909
|
+
value: props.trial ? props.lessonsCompleted || 0 : percentageOfLessonsCompleted,
|
|
1910
|
+
unit: props.trial ? "" : "%"
|
|
1911
1911
|
}
|
|
1912
1912
|
] }), !props.trial && /* @__PURE__ */ React__namespace.createElement(
|
|
1913
1913
|
core.Select,
|