@local-civics/mgmt-ui 0.1.81 → 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 +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- 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
|
@@ -660,8 +660,8 @@ const Badge = (props) => {
|
|
|
660
660
|
leftSection: /* @__PURE__ */ React__namespace.createElement(core.ActionIcon, { color: "blue", size: "xs", radius: "xl", variant: "filled" }, /* @__PURE__ */ React__namespace.createElement(icons.IconArrowLeft, { size: 14 })),
|
|
661
661
|
size: "lg"
|
|
662
662
|
},
|
|
663
|
-
"
|
|
664
|
-
)), /* @__PURE__ */ React__namespace.createElement(core.Group, null, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, props.displayName || "Badge"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, props.description || "No description")), /* @__PURE__ */ React__namespace.createElement(core.Stack, { ml: "auto" }, /* @__PURE__ */ React__namespace.createElement(
|
|
663
|
+
"Back"
|
|
664
|
+
)), /* @__PURE__ */ React__namespace.createElement(core.Group, null, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, props.displayName || "Badge"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, props.description || "No description")), !props.trial && /* @__PURE__ */ React__namespace.createElement(core.Stack, { ml: "auto" }, /* @__PURE__ */ React__namespace.createElement(
|
|
665
665
|
SplitButton$3,
|
|
666
666
|
{
|
|
667
667
|
href: props.href,
|
|
@@ -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,
|
|
@@ -1130,7 +1130,7 @@ const Class = (props) => {
|
|
|
1130
1130
|
leftSection: /* @__PURE__ */ React__namespace.createElement(core.ActionIcon, { color: "blue", size: "xs", radius: "xl", variant: "filled" }, /* @__PURE__ */ React__namespace.createElement(icons.IconArrowLeft, { size: 14 })),
|
|
1131
1131
|
size: "lg"
|
|
1132
1132
|
},
|
|
1133
|
-
"
|
|
1133
|
+
"Back"
|
|
1134
1134
|
)), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, props.displayName || "Class"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, props.description || "No description")), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "content" }, !props.loading && /* @__PURE__ */ React__namespace.createElement(
|
|
1135
1135
|
SplitButton$2,
|
|
1136
1136
|
{
|
|
@@ -1433,7 +1433,7 @@ const Student = (props) => {
|
|
|
1433
1433
|
leftSection: /* @__PURE__ */ React__namespace.createElement(core.ActionIcon, { color: "blue", size: "xs", radius: "xl", variant: "filled" }, /* @__PURE__ */ React__namespace.createElement(icons.IconArrowLeft, { size: 14 })),
|
|
1434
1434
|
size: "lg"
|
|
1435
1435
|
},
|
|
1436
|
-
"
|
|
1436
|
+
"Back"
|
|
1437
1437
|
)), /* @__PURE__ */ React__namespace.createElement(
|
|
1438
1438
|
UserInfo,
|
|
1439
1439
|
{
|
|
@@ -1895,7 +1895,7 @@ const Lesson = (props) => {
|
|
|
1895
1895
|
leftSection: /* @__PURE__ */ React__namespace.createElement(core.ActionIcon, { color: "blue", size: "xs", radius: "xl", variant: "filled" }, /* @__PURE__ */ React__namespace.createElement(icons.IconArrowLeft, { size: 14 })),
|
|
1896
1896
|
size: "lg"
|
|
1897
1897
|
},
|
|
1898
|
-
"
|
|
1898
|
+
"Back"
|
|
1899
1899
|
)), /* @__PURE__ */ React__namespace.createElement(core.Group, null, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, props.displayName || "Lesson"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, props.description || "No description")), /* @__PURE__ */ React__namespace.createElement(core.Stack, { ml: "auto" }, /* @__PURE__ */ React__namespace.createElement(
|
|
1900
1900
|
SplitButton$1,
|
|
1901
1901
|
{
|
|
@@ -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,
|
|
@@ -2103,7 +2103,7 @@ const Organization = (props) => {
|
|
|
2103
2103
|
leftSection: /* @__PURE__ */ React__namespace.createElement(core.ActionIcon, { color: "blue", size: "xs", radius: "xl", variant: "filled" }, /* @__PURE__ */ React__namespace.createElement(icons.IconArrowLeft, { size: 14 })),
|
|
2104
2104
|
size: "lg"
|
|
2105
2105
|
},
|
|
2106
|
-
"
|
|
2106
|
+
"Back"
|
|
2107
2107
|
)), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, props.displayName || "Overview"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, props.description || "No description"))), /* @__PURE__ */ React__namespace.createElement(AccessCode, { value: props.accessCode, onCopyCode: props.onCopyAccessCode, peopleLink: props.peopleLink }), /* @__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, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(StatsGroup, { data: [
|
|
2108
2108
|
{
|
|
2109
2109
|
title: "# OF STUDENTS",
|
|
@@ -2310,7 +2310,7 @@ const People = (props) => {
|
|
|
2310
2310
|
leftSection: /* @__PURE__ */ React__namespace.createElement(core.ActionIcon, { color: "blue", size: "xs", radius: "xl", variant: "filled" }, /* @__PURE__ */ React__namespace.createElement(icons.IconArrowLeft, { size: 14 })),
|
|
2311
2311
|
size: "lg"
|
|
2312
2312
|
},
|
|
2313
|
-
"
|
|
2313
|
+
"Back"
|
|
2314
2314
|
)), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "People"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "Manage members of your organization")), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "content" }, !props.loading && /* @__PURE__ */ React__namespace.createElement(
|
|
2315
2315
|
SplitButton,
|
|
2316
2316
|
{
|