@local-civics/mgmt-ui 0.1.140 → 0.1.142

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
@@ -1685,9 +1685,9 @@ const Home = (props) => {
1685
1685
  )), /* @__PURE__ */ React.createElement(Grid.Col, null, /* @__PURE__ */ React.createElement(
1686
1686
  CardGradient,
1687
1687
  {
1688
- title: "Lessons",
1689
- description: "Explore units of instruction and/or see corresponding class progress.",
1690
- onClick: props.onLessonsClick
1688
+ title: "Pathways",
1689
+ description: "Curated learning experiences for skill-building.",
1690
+ onClick: props.onPathwaysClick
1691
1691
  }
1692
1692
  )), /* @__PURE__ */ React.createElement(Grid.Col, null, /* @__PURE__ */ React.createElement(
1693
1693
  CardGradient,
@@ -1696,6 +1696,13 @@ const Home = (props) => {
1696
1696
  description: "Project-sized skills acquisition and standards alignment.",
1697
1697
  onClick: props.onBadgesClick
1698
1698
  }
1699
+ )), /* @__PURE__ */ React.createElement(Grid.Col, null, /* @__PURE__ */ React.createElement(
1700
+ CardGradient,
1701
+ {
1702
+ title: "Lessons",
1703
+ description: "Explore units of instruction and/or see corresponding class progress.",
1704
+ onClick: props.onLessonsClick
1705
+ }
1699
1706
  )))));
1700
1707
  };
1701
1708
 
@@ -3222,7 +3229,7 @@ function Stack(props) {
3222
3229
  if (props.items.length === 0) {
3223
3230
  return null;
3224
3231
  }
3225
- const rows = props.items.map((row) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Grid.Col, { span: 6 }, /* @__PURE__ */ React.createElement(Text, { component: Link, to: row.href, color: "dark.4", weight: "bold", size: "md" }, row.lessonName)), /* @__PURE__ */ React.createElement(Grid.Col, { span: 6 }, row.completion >= 1 && /* @__PURE__ */ React.createElement(Badge$1, { variant: "filled" }, "Complete"), row.completion === 0 && !row.isStarted && /* @__PURE__ */ React.createElement(Badge$1, { color: "red", variant: "filled" }, "Not started"), row.completion > 0 && row.completion < 1 && /* @__PURE__ */ React.createElement(Badge$1, { color: "violet", variant: "filled" }, Math.round((row.completion + Number.EPSILON) * 100), "% Complete"))));
3232
+ const rows = props.items.map((row) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Grid.Col, { span: 6 }, /* @__PURE__ */ React.createElement(Text, { component: Link, to: row.href, color: "dark.4", weight: "bold", size: "md" }, row.badgeName)), /* @__PURE__ */ React.createElement(Grid.Col, { span: 6 }, row.completion >= 1 && /* @__PURE__ */ React.createElement(Badge$1, { variant: "filled" }, "Complete"), row.completion === 0 && !row.isStarted && /* @__PURE__ */ React.createElement(Badge$1, { color: "red", variant: "filled" }, "Not started"), row.completion > 0 && row.completion < 1 && /* @__PURE__ */ React.createElement(Badge$1, { color: "violet", variant: "filled" }, Math.round((row.completion + Number.EPSILON) * 100), "% Complete"))));
3226
3233
  return /* @__PURE__ */ React.createElement(Grid, { grow: true, gutter: "lg", sx: { padding: 20, minWidth: 700 } }, rows);
3227
3234
  }
3228
3235
 
@@ -3259,7 +3266,7 @@ function Table$1(props) {
3259
3266
  render: (row) => /* @__PURE__ */ React.createElement(React.Fragment, null, !!row.isComplete && /* @__PURE__ */ React.createElement(Badge$1, { variant: "filled" }, "Complete"), !row.isComplete && /* @__PURE__ */ React.createElement(Badge$1, { color: "red", variant: "filled" }, "Incomplete"))
3260
3267
  }],
3261
3268
  rowExpansion: {
3262
- content: ({ record }) => /* @__PURE__ */ React.createElement(Stack, { items: record.lessons })
3269
+ content: ({ record }) => /* @__PURE__ */ React.createElement(Stack, { items: record.badges })
3263
3270
  }
3264
3271
  }
3265
3272
  ));
@@ -3279,7 +3286,7 @@ function Table(props) {
3279
3286
  }
3280
3287
  const rows = props.items.map((row) => {
3281
3288
  const percentageCompletion = Math.round((row.percentageCompletion + Number.EPSILON) * 100);
3282
- return /* @__PURE__ */ React.createElement("tr", { key: row.lessonName }, /* @__PURE__ */ React.createElement("td", null, /* @__PURE__ */ React.createElement(Text, { component: Link, to: row.href }, row.lessonName)), /* @__PURE__ */ React.createElement("td", null, percentageCompletion, "%"));
3289
+ return /* @__PURE__ */ React.createElement("tr", { key: row.badgeName }, /* @__PURE__ */ React.createElement("td", null, /* @__PURE__ */ React.createElement(Text, { component: Link, to: row.href }, row.badgeName)), /* @__PURE__ */ React.createElement("td", null, percentageCompletion, "%"));
3283
3290
  });
3284
3291
  return /* @__PURE__ */ React.createElement(ScrollArea.Autosize, { maxHeight: 600 }, /* @__PURE__ */ React.createElement(Table$k, { verticalSpacing: "sm", sx: { minWidth: 700 }, highlightOnHover: true, striped: true }, /* @__PURE__ */ React.createElement("thead", null, /* @__PURE__ */ React.createElement("tr", null, /* @__PURE__ */ React.createElement("th", null, "Badge Name"), /* @__PURE__ */ React.createElement("th", null, "Badge Completion"))), /* @__PURE__ */ React.createElement("tbody", null, rows)));
3285
3292
  }
@@ -3343,16 +3350,16 @@ const Pathway = (props) => {
3343
3350
  {
3344
3351
  value: tab,
3345
3352
  data: [
3346
- { label: "By Badge", value: "lessons" },
3353
+ { label: "By Badge", value: "badges" },
3347
3354
  { label: "By student", value: "students" }
3348
3355
  ],
3349
3356
  onChange: setTab
3350
3357
  }
3351
- ), (!!props.trial || tab === "lessons") && /* @__PURE__ */ React.createElement(
3358
+ ), (!!props.trial || tab === "badges") && /* @__PURE__ */ React.createElement(
3352
3359
  Table,
3353
3360
  {
3354
3361
  loading: props.loading,
3355
- items: props.lessons
3362
+ items: props.badges
3356
3363
  }
3357
3364
  ), !props.trial && tab === "students" && /* @__PURE__ */ React.createElement(
3358
3365
  Table$1,