@local-civics/mgmt-ui 0.1.167 → 0.1.173
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 +5 -0
- package/dist/index.js +31 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -741,6 +741,7 @@ interface Item$1 {
|
|
|
741
741
|
email: string;
|
|
742
742
|
isComplete?: boolean;
|
|
743
743
|
badges: Item$2[];
|
|
744
|
+
categoryPoints?: Record<string, number>;
|
|
744
745
|
}
|
|
745
746
|
|
|
746
747
|
/**
|
|
@@ -776,6 +777,10 @@ type PathwayProps = {
|
|
|
776
777
|
badges: Item[];
|
|
777
778
|
classId: string;
|
|
778
779
|
students: PathwayUserItem[];
|
|
780
|
+
categories: {
|
|
781
|
+
categoryId: string;
|
|
782
|
+
name: string;
|
|
783
|
+
}[];
|
|
779
784
|
href: string;
|
|
780
785
|
trial?: boolean;
|
|
781
786
|
badgesCompleted?: number;
|
package/dist/index.js
CHANGED
|
@@ -807,7 +807,7 @@ const useStyles$k = core.createStyles((theme) => ({
|
|
|
807
807
|
}));
|
|
808
808
|
const Badges = (props) => {
|
|
809
809
|
const { classes } = useStyles$k();
|
|
810
|
-
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Badges"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Badges and micro-credentials"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "
|
|
810
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Badges"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Badges and micro-credentials"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "Key milestones that reflect skill development, micro-credentials, or academic progress"))), /* @__PURE__ */ React__namespace.createElement(
|
|
811
811
|
core.Autocomplete,
|
|
812
812
|
{
|
|
813
813
|
placeholder: "Search for a badge that fits your needs",
|
|
@@ -929,7 +929,7 @@ function Table$c(props) {
|
|
|
929
929
|
|
|
930
930
|
const Dashboard = (props) => {
|
|
931
931
|
const [tab, setTab] = React.useState("students");
|
|
932
|
-
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, null, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(core.Title, { size: "h3" }, "Dashboard"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", size: "sm", mt: "md" }, "
|
|
932
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, null, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(core.Title, { size: "h3" }, "Dashboard"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", size: "sm", mt: "md" }, "Track your students\u2019 pathway progress")), /* @__PURE__ */ React__namespace.createElement(core.Stack, 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, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(StatsGroup, { data: [
|
|
933
933
|
{
|
|
934
934
|
title: "# OF STUDENTS",
|
|
935
935
|
value: props.students.length
|
|
@@ -1362,7 +1362,7 @@ const Classes = (props) => {
|
|
|
1362
1362
|
placeholder: "A class for my first period English students"
|
|
1363
1363
|
}, form$1.getInputProps("description"))
|
|
1364
1364
|
)), /* @__PURE__ */ React__namespace.createElement(core.Button, { type: "submit", fullWidth: true, mt: "md" }, "Submit"))
|
|
1365
|
-
), /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Classes"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Organize people into classes"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "
|
|
1365
|
+
), /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Classes"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Organize people into classes"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "Create classes, cohorts, or custom subgroups")), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "content" }, !props.loading && /* @__PURE__ */ React__namespace.createElement(
|
|
1366
1366
|
core.Button,
|
|
1367
1367
|
{
|
|
1368
1368
|
onClick: () => setOpened(true),
|
|
@@ -1727,35 +1727,35 @@ const Home = (props) => {
|
|
|
1727
1727
|
CardGradient,
|
|
1728
1728
|
{
|
|
1729
1729
|
title: "Dashboard",
|
|
1730
|
-
description: "Track
|
|
1730
|
+
description: "Track your students\u2019 pathway progress",
|
|
1731
1731
|
onClick: props.onDashboardClick
|
|
1732
1732
|
}
|
|
1733
1733
|
)), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, null, /* @__PURE__ */ React__namespace.createElement(
|
|
1734
1734
|
CardGradient,
|
|
1735
1735
|
{
|
|
1736
1736
|
title: "Classes",
|
|
1737
|
-
description: "
|
|
1737
|
+
description: "Create classes, cohorts, or custom subgroups",
|
|
1738
1738
|
onClick: props.onClassesClick
|
|
1739
1739
|
}
|
|
1740
1740
|
)), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, null, /* @__PURE__ */ React__namespace.createElement(
|
|
1741
1741
|
CardGradient,
|
|
1742
1742
|
{
|
|
1743
1743
|
title: "Pathways",
|
|
1744
|
-
description: "
|
|
1744
|
+
description: "Explore all your unique pathway requirements in one clear space",
|
|
1745
1745
|
onClick: props.onPathwaysClick
|
|
1746
1746
|
}
|
|
1747
1747
|
)), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, null, /* @__PURE__ */ React__namespace.createElement(
|
|
1748
1748
|
CardGradient,
|
|
1749
1749
|
{
|
|
1750
1750
|
title: "Badges",
|
|
1751
|
-
description: "
|
|
1751
|
+
description: "Key milestones that reflect skill development, micro-credentials, or academic progress",
|
|
1752
1752
|
onClick: props.onBadgesClick
|
|
1753
1753
|
}
|
|
1754
1754
|
)), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, null, /* @__PURE__ */ React__namespace.createElement(
|
|
1755
1755
|
CardGradient,
|
|
1756
1756
|
{
|
|
1757
1757
|
title: "Lessons",
|
|
1758
|
-
description: "
|
|
1758
|
+
description: "Bite-sized activities and learning experiences accelerating students achievement",
|
|
1759
1759
|
onClick: props.onLessonsClick
|
|
1760
1760
|
}
|
|
1761
1761
|
)))));
|
|
@@ -2107,7 +2107,7 @@ const useStyles$c = core.createStyles((theme) => ({
|
|
|
2107
2107
|
}));
|
|
2108
2108
|
const Lessons = (props) => {
|
|
2109
2109
|
const { classes } = useStyles$c();
|
|
2110
|
-
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Lessons"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Lessons"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "
|
|
2110
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Lessons"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Lessons"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "Bite-sized activities and learning experiences accelerating students achievement"))), /* @__PURE__ */ React__namespace.createElement(
|
|
2111
2111
|
core.Autocomplete,
|
|
2112
2112
|
{
|
|
2113
2113
|
placeholder: "Search for a lesson that fits your needs",
|
|
@@ -3210,7 +3210,7 @@ const useStyles$2 = core.createStyles((theme) => ({
|
|
|
3210
3210
|
}));
|
|
3211
3211
|
const Pathways = (props) => {
|
|
3212
3212
|
const { classes } = useStyles$2();
|
|
3213
|
-
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Pathways"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Pathways"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "
|
|
3213
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, null, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled", size: "lg" }, "Pathways"), /* @__PURE__ */ React__namespace.createElement(core.Title, { order: 2, className: classes.title, mt: "md" }, "Pathways"), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", className: classes.description, mt: "sm" }, "Explore all your unique pathway requirements in one clear space"))), /* @__PURE__ */ React__namespace.createElement("div", { style: { position: "relative" } }, /* @__PURE__ */ React__namespace.createElement(core.LoadingOverlay, { visible: props.loading, overlayBlur: 2 }), /* @__PURE__ */ React__namespace.createElement(
|
|
3214
3214
|
Table$2,
|
|
3215
3215
|
{
|
|
3216
3216
|
loading: props.loading,
|
|
@@ -3294,14 +3294,25 @@ function Table$1(props) {
|
|
|
3294
3294
|
highlightOnHover: true,
|
|
3295
3295
|
records: props.items,
|
|
3296
3296
|
idAccessor: "userId",
|
|
3297
|
-
columns: [
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3297
|
+
columns: [
|
|
3298
|
+
{
|
|
3299
|
+
accessor: "name",
|
|
3300
|
+
title: "Student Name",
|
|
3301
|
+
render: (row) => /* @__PURE__ */ React__namespace.createElement(core.Group, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(core.Avatar, { size: 40, src: row.avatar, radius: 40 }), /* @__PURE__ */ React__namespace.createElement("div", null, /* @__PURE__ */ React__namespace.createElement(core.Text, { size: "sm", weight: 500 }, row.name), /* @__PURE__ */ React__namespace.createElement(core.Text, { size: "xs", color: "dimmed" }, row.email)))
|
|
3302
|
+
},
|
|
3303
|
+
{
|
|
3304
|
+
accessor: "status",
|
|
3305
|
+
render: (row) => /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, !!row.isComplete && /* @__PURE__ */ React__namespace.createElement(core.Badge, { variant: "filled" }, "Complete"), !row.isComplete && /* @__PURE__ */ React__namespace.createElement(core.Badge, { color: "red", variant: "filled" }, "Incomplete"))
|
|
3306
|
+
},
|
|
3307
|
+
...props.categories.map((category) => ({
|
|
3308
|
+
accessor: category.categoryId,
|
|
3309
|
+
title: category.name,
|
|
3310
|
+
render: (row) => {
|
|
3311
|
+
var _a, _b;
|
|
3312
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Badge, { color: "blue", variant: "filled" }, (_b = (_a = row.categoryPoints) == null ? void 0 : _a[category.categoryId]) != null ? _b : 0);
|
|
3313
|
+
}
|
|
3314
|
+
}))
|
|
3315
|
+
],
|
|
3305
3316
|
rowExpansion: {
|
|
3306
3317
|
content: ({ record }) => /* @__PURE__ */ React__namespace.createElement(Stack, { items: record.badges })
|
|
3307
3318
|
}
|
|
@@ -3402,7 +3413,8 @@ const Pathway = (props) => {
|
|
|
3402
3413
|
Table$1,
|
|
3403
3414
|
{
|
|
3404
3415
|
loading: props.loading,
|
|
3405
|
-
items: props.students
|
|
3416
|
+
items: props.students,
|
|
3417
|
+
categories: props.categories
|
|
3406
3418
|
}
|
|
3407
3419
|
)))))));
|
|
3408
3420
|
};
|