@local-civics/mgmt-ui 0.1.90 → 0.1.92
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 +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -651,7 +651,7 @@ const Badge = (props) => {
|
|
|
651
651
|
))))), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { style: { position: "relative" } }, /* @__PURE__ */ React.createElement(LoadingOverlay, { visible: props.loading, overlayBlur: 2 }), /* @__PURE__ */ React.createElement(Stack$3, null, /* @__PURE__ */ React.createElement(StatsGroup, { data: [
|
|
652
652
|
{
|
|
653
653
|
title: props.trial ? "LESSONS SUBMITTED" : "BADGE COMPLETION",
|
|
654
|
-
value: props.trial ? props.
|
|
654
|
+
value: props.trial ? props.lessonsCompleted || 0 : percentageOfBadgesEarned,
|
|
655
655
|
unit: props.trial ? "" : "%"
|
|
656
656
|
}
|
|
657
657
|
] }), !props.trial && /* @__PURE__ */ React.createElement(
|
|
@@ -1726,7 +1726,7 @@ const SplitButton$1 = (props) => {
|
|
|
1726
1726
|
onClick: props.onCopyLinkClick
|
|
1727
1727
|
},
|
|
1728
1728
|
"Copy link"
|
|
1729
|
-
), /* @__PURE__ */ React.createElement(
|
|
1729
|
+
), !props.noExport && /* @__PURE__ */ React.createElement(
|
|
1730
1730
|
Menu.Item,
|
|
1731
1731
|
{
|
|
1732
1732
|
icon: /* @__PURE__ */ React.createElement(IconTableExport, { size: 16, stroke: 1.5, color: menuIconColor }),
|
|
@@ -1909,6 +1909,7 @@ const Lesson = (props) => {
|
|
|
1909
1909
|
SplitButton$1,
|
|
1910
1910
|
{
|
|
1911
1911
|
href: props.href,
|
|
1912
|
+
noExport: props.trial,
|
|
1912
1913
|
onCopyLinkClick: props.onCopyLinkClick,
|
|
1913
1914
|
onExportDataClick: props.onExportDataClick
|
|
1914
1915
|
}
|
|
@@ -2512,7 +2513,7 @@ const BadgeGrid = (props) => {
|
|
|
2512
2513
|
};
|
|
2513
2514
|
function TaskCard(props) {
|
|
2514
2515
|
const isComplete = props.lessonsCompleted >= props.lessonsTotal;
|
|
2515
|
-
return /* @__PURE__ */ React.createElement(Card, { withBorder: true, radius: "md" }, /* @__PURE__ */ React.createElement(Group, { position: "apart" }, /* @__PURE__ */ React.createElement(ThemeIcon, { size: "lg", variant: "gradient", gradient: { from: "indigo", to: "cyan" } }, /* @__PURE__ */ React.createElement(IconBadge, { size: 20 })), !!props.lessonsTotal && isComplete && /* @__PURE__ */ React.createElement(Badge$1, { variant: "gradient", gradient: { from: "indigo", to: "cyan" } }, "Complete"), !!props.lessonsTotal && !isComplete && /* @__PURE__ */ React.createElement(Badge$1, { variant: "filled" }, "Incomplete")), /* @__PURE__ */ React.createElement(UnstyledButton, { component: Link, to: props.href, mt: "md", sx: { ":hover": { textDecoration: "underline" } } }, /* @__PURE__ */ React.createElement(Text, { size: "lg", weight: 500 }, props.title)), /* @__PURE__ */ React.createElement(Text, { size: "sm", color: "dimmed", mt: 5 }, props.description), !!props.lessonsCompleted && /* @__PURE__ */ React.createElement(Text, { color: "dimmed", size: "sm", mt: "md" }, "Lessons completed:", " ", /* @__PURE__ */ React.createElement(
|
|
2516
|
+
return /* @__PURE__ */ React.createElement(Card, { withBorder: true, radius: "md" }, /* @__PURE__ */ React.createElement(Group, { position: "apart", mb: 20 }, /* @__PURE__ */ React.createElement(ThemeIcon, { size: "lg", variant: "gradient", gradient: { from: "indigo", to: "cyan" } }, /* @__PURE__ */ React.createElement(IconBadge, { size: 20 })), !!props.lessonsTotal && isComplete && /* @__PURE__ */ React.createElement(Badge$1, { variant: "gradient", gradient: { from: "indigo", to: "cyan" } }, "Complete"), !!props.lessonsTotal && !isComplete && /* @__PURE__ */ React.createElement(Badge$1, { variant: "filled" }, "Incomplete")), /* @__PURE__ */ React.createElement(UnstyledButton, { component: Link, to: props.href, mt: "md", sx: { ":hover": { textDecoration: "underline" } } }, /* @__PURE__ */ React.createElement(Text, { size: "lg", weight: 500 }, props.title)), /* @__PURE__ */ React.createElement(Text, { size: "sm", color: "dimmed", mt: 5, mb: 50 }, props.description), !!props.lessonsCompleted && /* @__PURE__ */ React.createElement(Text, { color: "dimmed", size: "sm", mt: "md" }, "Lessons completed:", " ", /* @__PURE__ */ React.createElement(
|
|
2516
2517
|
Text,
|
|
2517
2518
|
{
|
|
2518
2519
|
span: true,
|
|
@@ -2681,8 +2682,7 @@ var __spreadValues$1 = (a, b) => {
|
|
|
2681
2682
|
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
2682
2683
|
const useStyles$1 = createStyles((theme) => ({
|
|
2683
2684
|
wrapper: {
|
|
2684
|
-
minHeight:
|
|
2685
|
-
height: "100%",
|
|
2685
|
+
minHeight: "100%",
|
|
2686
2686
|
boxSizing: "border-box",
|
|
2687
2687
|
backgroundImage: `linear-gradient(-60deg, #4e5561 0%, #222a39 100%)`,
|
|
2688
2688
|
padding: theme.spacing.xl * 2.5,
|