@local-civics/hub-ui 0.1.131 → 0.1.133
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 +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1011,7 +1011,7 @@ const Button = (props) => {
|
|
|
1011
1011
|
withBorder(config, props.border);
|
|
1012
1012
|
withSpacing(config, props.spacing, props.wide);
|
|
1013
1013
|
const onClick = () => !props.active && !props.disabled && props.onClick && props.onClick();
|
|
1014
|
-
return /* @__PURE__ */ React.createElement("button", { disabled: props.disabled, type: props.type, className: classname(config.button), onClick }, props.icon && /* @__PURE__ */ React.createElement("span", { className: classname(config.icon) }, /* @__PURE__ */ React.createElement(Icon$1, { name: props.icon })), props.logo && /* @__PURE__ */ React.createElement("span", { className: classname(config.logo) }, /* @__PURE__ */ React.createElement(Logo, null)), (props.text || props.footer) && /* @__PURE__ */ React.createElement("div", { className: "grid grid-cols-1 justify-items-start gap-4" }, props.text && /* @__PURE__ */ React.createElement("div", { className: "text-
|
|
1014
|
+
return /* @__PURE__ */ React.createElement("button", { disabled: props.disabled, type: props.type, className: classname(config.button), onClick }, props.icon && /* @__PURE__ */ React.createElement("span", { className: classname(config.icon) }, /* @__PURE__ */ React.createElement(Icon$1, { name: props.icon })), props.logo && /* @__PURE__ */ React.createElement("span", { className: classname(config.logo) }, /* @__PURE__ */ React.createElement(Logo, null)), (props.text || props.footer) && /* @__PURE__ */ React.createElement("div", { className: "grid grid-cols-1 justify-items-start gap-4" }, props.text && /* @__PURE__ */ React.createElement("div", { className: "text-center whitespace-nowrap" }, props.text), props.footer && /* @__PURE__ */ React.createElement("div", { className: "text-[0.5rem] font-semibold" }, props.footer)));
|
|
1015
1015
|
};
|
|
1016
1016
|
const defaultConfig$1 = () => {
|
|
1017
1017
|
const config = {
|
|
@@ -4165,11 +4165,12 @@ const FormSubmitDialog$1 = (props) => {
|
|
|
4165
4165
|
{
|
|
4166
4166
|
wide: true,
|
|
4167
4167
|
spacing: "md",
|
|
4168
|
+
justify: "center",
|
|
4168
4169
|
border: "rounded",
|
|
4169
4170
|
color: "blue",
|
|
4170
4171
|
theme: "dark",
|
|
4171
4172
|
text: "Edit Lesson",
|
|
4172
|
-
size: "md",
|
|
4173
|
+
size: "md-small-text",
|
|
4173
4174
|
onClick: props.onEditLesson
|
|
4174
4175
|
}
|
|
4175
4176
|
), /* @__PURE__ */ React.createElement(
|
|
@@ -4177,11 +4178,12 @@ const FormSubmitDialog$1 = (props) => {
|
|
|
4177
4178
|
{
|
|
4178
4179
|
wide: true,
|
|
4179
4180
|
spacing: "md",
|
|
4181
|
+
justify: "center",
|
|
4180
4182
|
border: "rounded",
|
|
4181
4183
|
color: "blue",
|
|
4182
4184
|
theme: "dark",
|
|
4183
4185
|
text: "Back to Badge",
|
|
4184
|
-
size: "md",
|
|
4186
|
+
size: "md-small-text",
|
|
4185
4187
|
onClick: props.onBackToBadge
|
|
4186
4188
|
}
|
|
4187
4189
|
))));
|
|
@@ -4679,7 +4681,7 @@ const Registration = (props) => {
|
|
|
4679
4681
|
givenName,
|
|
4680
4682
|
familyName,
|
|
4681
4683
|
grade,
|
|
4682
|
-
impactStatement
|
|
4684
|
+
impactStatement: impactStatement || ""
|
|
4683
4685
|
});
|
|
4684
4686
|
return /* @__PURE__ */ React.createElement(
|
|
4685
4687
|
"form",
|
|
@@ -4746,7 +4748,7 @@ const Registration = (props) => {
|
|
|
4746
4748
|
{
|
|
4747
4749
|
placeholder: "E.g., I would like to encourage my community to become more educated on issues that directly affect us, as well as make sure my community is a place where everyone is welcome.",
|
|
4748
4750
|
onChange: (e) => setImpactStatement(e.target.value),
|
|
4749
|
-
|
|
4751
|
+
defaultValue: impactStatement,
|
|
4750
4752
|
className: "resize-none text-slate-500 focus:text-slate-600 h-24 mt-1 block w-full px-3 py-2 bg-white border border-slate-300 rounded-md text-sm shadow-sm placeholder-slate-400\n focus:outline-none focus:border-sky-500 focus:ring-1 focus:ring-sky-500\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
|
|
4751
4753
|
}
|
|
4752
4754
|
)))),
|