@local-civics/mgmt-ui 0.1.86 → 0.1.88
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 +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2406,7 +2406,7 @@ const useStyles$3 = core.createStyles((theme) => ({
|
|
|
2406
2406
|
padding: theme.spacing.xl,
|
|
2407
2407
|
border: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[3]}`,
|
|
2408
2408
|
borderRadius: theme.radius.md,
|
|
2409
|
-
boxShadow: theme.shadows.
|
|
2409
|
+
boxShadow: theme.shadows.md,
|
|
2410
2410
|
minWidth: 300,
|
|
2411
2411
|
height: "fit-content"
|
|
2412
2412
|
},
|
|
@@ -2476,7 +2476,7 @@ const StartAnonymousLesson = (props) => {
|
|
|
2476
2476
|
onChange: (e) => setName(e.target.value),
|
|
2477
2477
|
classNames: { input: classes.input, label: classes.inputLabel }
|
|
2478
2478
|
}
|
|
2479
|
-
), /* @__PURE__ */ React__namespace.createElement(core.Group, { position: "right", mt: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Button, { disabled: !name && !props.studentName, onClick: props.onStart, className: classes.control }, !props.studentName ? "Start lesson" : "Continue lesson"))))));
|
|
2479
|
+
), /* @__PURE__ */ React__namespace.createElement(core.Group, { position: "right", mt: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Button, { disabled: !name && !props.studentName, onClick: () => props.onStart(name), className: classes.control }, !props.studentName ? "Start lesson" : "Continue lesson"))))));
|
|
2480
2480
|
};
|
|
2481
2481
|
|
|
2482
2482
|
var __defProp$3 = Object.defineProperty;
|
|
@@ -2588,7 +2588,9 @@ const useStyles$2 = core.createStyles((theme, { checked }) => ({
|
|
|
2588
2588
|
transition: "background-color 150ms ease, border-color 150ms ease",
|
|
2589
2589
|
border: `1px solid ${checked ? theme.fn.variant({ variant: "outline", color: theme.primaryColor }).border : theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[3]}`,
|
|
2590
2590
|
borderRadius: theme.radius.sm,
|
|
2591
|
-
padding: theme.spacing.
|
|
2591
|
+
padding: theme.spacing.md,
|
|
2592
|
+
paddingTop: theme.spacing.sm,
|
|
2593
|
+
paddingBottom: theme.spacing.sm,
|
|
2592
2594
|
backgroundColor: checked ? theme.fn.variant({ variant: "light", color: theme.primaryColor }).background : theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.white
|
|
2593
2595
|
},
|
|
2594
2596
|
body: {
|
|
@@ -2628,7 +2630,7 @@ function ImageCheckbox(_a) {
|
|
|
2628
2630
|
className: cx(classes.button, className)
|
|
2629
2631
|
}),
|
|
2630
2632
|
/* @__PURE__ */ React__namespace.createElement(core.ThemeIcon, { variant: "light", size: "lg", color: "blue" }, /* @__PURE__ */ React__namespace.createElement(Icon, { size: 40 })),
|
|
2631
|
-
/* @__PURE__ */ React__namespace.createElement("div", { className: classes.body }, /* @__PURE__ */ React__namespace.createElement(core.Text, {
|
|
2633
|
+
/* @__PURE__ */ React__namespace.createElement("div", { className: classes.body }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: 500, size: "sm", sx: { lineHeight: 1 } }, title)),
|
|
2632
2634
|
/* @__PURE__ */ React__namespace.createElement(
|
|
2633
2635
|
core.Checkbox,
|
|
2634
2636
|
{
|
|
@@ -2652,7 +2654,7 @@ function SelectGrid(props) {
|
|
|
2652
2654
|
return /* @__PURE__ */ React__namespace.createElement(
|
|
2653
2655
|
core.SimpleGrid,
|
|
2654
2656
|
{
|
|
2655
|
-
cols:
|
|
2657
|
+
cols: 2,
|
|
2656
2658
|
breakpoints: [
|
|
2657
2659
|
{ maxWidth: "md", cols: 2 },
|
|
2658
2660
|
{ maxWidth: "sm", cols: 1 }
|
|
@@ -2694,10 +2696,10 @@ const useStyles$1 = core.createStyles((theme) => ({
|
|
|
2694
2696
|
},
|
|
2695
2697
|
title: {
|
|
2696
2698
|
fontFamily: `Greycliff CF, ${theme.fontFamily}`,
|
|
2697
|
-
fontSize:
|
|
2699
|
+
fontSize: 50,
|
|
2698
2700
|
color: theme.white,
|
|
2699
2701
|
lineHeight: 1,
|
|
2700
|
-
maxWidth:
|
|
2702
|
+
maxWidth: 500
|
|
2701
2703
|
},
|
|
2702
2704
|
description: {
|
|
2703
2705
|
color: theme.colors[theme.primaryColor][0],
|
|
@@ -2748,10 +2750,10 @@ const TrialRegistration = (props) => {
|
|
|
2748
2750
|
const [lastName, setLastName] = React__namespace.useState("");
|
|
2749
2751
|
const [schoolName, setSchoolName] = React__namespace.useState("");
|
|
2750
2752
|
const [interests, setInterests] = React__namespace.useState({});
|
|
2751
|
-
return /* @__PURE__ */ React__namespace.createElement("div", { className: classes.wrapper }, /* @__PURE__ */ React__namespace.createElement(core.SimpleGrid, { maw:
|
|
2753
|
+
return /* @__PURE__ */ React__namespace.createElement("div", { className: classes.wrapper }, /* @__PURE__ */ React__namespace.createElement(core.SimpleGrid, { maw: 1300, ml: "auto", mr: "auto", cols: 2, spacing: 50, breakpoints: [{ maxWidth: "md", cols: 1 }] }, /* @__PURE__ */ React__namespace.createElement(core.Group, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(
|
|
2752
2754
|
core.Image,
|
|
2753
2755
|
{
|
|
2754
|
-
height:
|
|
2756
|
+
height: 200,
|
|
2755
2757
|
width: "auto",
|
|
2756
2758
|
fit: "contain",
|
|
2757
2759
|
src: "https://cdn.localcivics.io/brand/l.png"
|
|
@@ -2769,7 +2771,7 @@ const TrialRegistration = (props) => {
|
|
|
2769
2771
|
core.TextInput,
|
|
2770
2772
|
{
|
|
2771
2773
|
label: "First Name",
|
|
2772
|
-
placeholder: "
|
|
2774
|
+
placeholder: "Insert your first name",
|
|
2773
2775
|
required: true,
|
|
2774
2776
|
classNames: { input: classes.input, label: classes.inputLabel },
|
|
2775
2777
|
onChange: (e) => setFirstName(e.target.value)
|
|
@@ -2778,7 +2780,7 @@ const TrialRegistration = (props) => {
|
|
|
2778
2780
|
core.TextInput,
|
|
2779
2781
|
{
|
|
2780
2782
|
label: "Last Name",
|
|
2781
|
-
placeholder: "
|
|
2783
|
+
placeholder: "Insert your last name",
|
|
2782
2784
|
required: true,
|
|
2783
2785
|
classNames: { input: classes.input, label: classes.inputLabel },
|
|
2784
2786
|
onChange: (e) => setLastName(e.target.value)
|
|
@@ -2787,7 +2789,7 @@ const TrialRegistration = (props) => {
|
|
|
2787
2789
|
core.TextInput,
|
|
2788
2790
|
{
|
|
2789
2791
|
label: "School Name (Optional)",
|
|
2790
|
-
placeholder: "What
|
|
2792
|
+
placeholder: "What's the name of your school?",
|
|
2791
2793
|
classNames: { input: classes.input, label: classes.inputLabel },
|
|
2792
2794
|
onChange: (e) => setSchoolName(e.target.value)
|
|
2793
2795
|
}
|