@local-civics/mgmt-ui 0.1.79 → 0.1.81
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.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2479,16 +2479,14 @@ function TaskCard(props) {
|
|
|
2479
2479
|
});
|
|
2480
2480
|
const remainingUsers = props.users.slice(3).length;
|
|
2481
2481
|
const isComplete = props.lessonsCompleted >= props.lessonsTotal;
|
|
2482
|
-
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 })), isComplete && /* @__PURE__ */ React.createElement(Badge$1, { variant: "gradient", gradient: { from: "indigo", to: "cyan" } }, "Complete"), !isComplete && /* @__PURE__ */ React.createElement(Badge$1, { variant: "filled" }, "Incomplete")), /* @__PURE__ */ React.createElement(UnstyledButton, { 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.
|
|
2482
|
+
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(
|
|
2483
2483
|
Text,
|
|
2484
2484
|
{
|
|
2485
2485
|
span: true,
|
|
2486
2486
|
weight: 500,
|
|
2487
2487
|
sx: (theme) => ({ color: theme.colorScheme === "dark" ? theme.white : theme.black })
|
|
2488
2488
|
},
|
|
2489
|
-
props.lessonsCompleted
|
|
2490
|
-
"/",
|
|
2491
|
-
props.lessonsTotal
|
|
2489
|
+
props.lessonsCompleted
|
|
2492
2490
|
)), !!props.lessonsTotal && /* @__PURE__ */ React.createElement(Progress, { value: props.lessonsCompleted / props.lessonsTotal * 100, mt: 5 }), /* @__PURE__ */ React.createElement(Group, { position: "apart", mt: "md" }, /* @__PURE__ */ React.createElement(Avatar.Group, { spacing: "sm" }, avatars, !!remainingUsers && /* @__PURE__ */ React.createElement(Avatar, { radius: "xl" }, "+", remainingUsers))));
|
|
2493
2491
|
}
|
|
2494
2492
|
|
|
@@ -2805,7 +2803,7 @@ const useStyles = createStyles((theme, props) => ({
|
|
|
2805
2803
|
},
|
|
2806
2804
|
page: {
|
|
2807
2805
|
[theme.fn.smallerThan("sm")]: {
|
|
2808
|
-
paddingTop: theme.spacing.xl *
|
|
2806
|
+
paddingTop: theme.spacing.xl * 3
|
|
2809
2807
|
}
|
|
2810
2808
|
},
|
|
2811
2809
|
logo: {
|