@local-civics/hub-ui 0.1.129 → 0.1.131
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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -991,7 +991,7 @@ const Button = (props) => {
|
|
|
991
991
|
withBorder(config, props.border);
|
|
992
992
|
withSpacing(config, props.spacing, props.wide);
|
|
993
993
|
const onClick = () => !props.active && !props.disabled && props.onClick && props.onClick();
|
|
994
|
-
return /* @__PURE__ */ React__default.createElement("button", { disabled: props.disabled, type: props.type, className: classname(config.button), onClick }, props.icon && /* @__PURE__ */ React__default.createElement("span", { className: classname(config.icon) }, /* @__PURE__ */ React__default.createElement(Icon$1, { name: props.icon })), props.logo && /* @__PURE__ */ React__default.createElement("span", { className: classname(config.logo) }, /* @__PURE__ */ React__default.createElement(Logo, null)), (props.text || props.footer) && /* @__PURE__ */ React__default.createElement("div", { className: "grid grid-cols-1 justify-items-start gap-4" }, props.text && /* @__PURE__ */ React__default.createElement("div", { className: "text-left" }, props.text), props.footer && /* @__PURE__ */ React__default.createElement("div", { className: "text-[0.5rem] font-semibold" }, props.footer)));
|
|
994
|
+
return /* @__PURE__ */ React__default.createElement("button", { disabled: props.disabled, type: props.type, className: classname(config.button), onClick }, props.icon && /* @__PURE__ */ React__default.createElement("span", { className: classname(config.icon) }, /* @__PURE__ */ React__default.createElement(Icon$1, { name: props.icon })), props.logo && /* @__PURE__ */ React__default.createElement("span", { className: classname(config.logo) }, /* @__PURE__ */ React__default.createElement(Logo, null)), (props.text || props.footer) && /* @__PURE__ */ React__default.createElement("div", { className: "grid grid-cols-1 justify-items-start gap-4" }, props.text && /* @__PURE__ */ React__default.createElement("div", { className: "text-left whitespace-nowrap" }, props.text), props.footer && /* @__PURE__ */ React__default.createElement("div", { className: "text-[0.5rem] font-semibold" }, props.footer)));
|
|
995
995
|
};
|
|
996
996
|
const defaultConfig$1 = () => {
|
|
997
997
|
const config = {
|
|
@@ -1265,6 +1265,10 @@ const withSize = (config, size) => {
|
|
|
1265
1265
|
config.icon.size = "w-5 h-5";
|
|
1266
1266
|
config.logo.size = "w-28 h-5 -ml-1";
|
|
1267
1267
|
break;
|
|
1268
|
+
case "md-small-text":
|
|
1269
|
+
config.button.size.text = "text-sm";
|
|
1270
|
+
config.icon.size = "w-5 h-5";
|
|
1271
|
+
config.logo.size = "w-28 h-5 -ml-1";
|
|
1268
1272
|
case "lg":
|
|
1269
1273
|
config.button.size.text = "text-md";
|
|
1270
1274
|
config.icon.size = "w-6 h-6";
|
|
@@ -4722,7 +4726,7 @@ const Registration = (props) => {
|
|
|
4722
4726
|
{
|
|
4723
4727
|
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.",
|
|
4724
4728
|
onChange: (e) => setImpactStatement(e.target.value),
|
|
4725
|
-
|
|
4729
|
+
value: impactStatement,
|
|
4726
4730
|
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"
|
|
4727
4731
|
}
|
|
4728
4732
|
)))),
|