@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 CHANGED
@@ -335,7 +335,7 @@ type ButtonColor = "slate" | "sky" | "green" | "rose" | "emerald" | "primary" |
335
335
  /**
336
336
  * The button size.
337
337
  */
338
- type ButtonSize = "tiny" | "xs" | "sm" | "md" | "lg" | "xl" | "full:sm" | "full:md";
338
+ type ButtonSize = "tiny" | "xs" | "sm" | "md" | "md-small-text" | "lg" | "xl" | "full:sm" | "full:md";
339
339
  /**
340
340
  * The button spacing.
341
341
  */
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-left" }, props.text), props.footer && /* @__PURE__ */ React.createElement("div", { className: "text-[0.5rem] font-semibold" }, props.footer)));
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-left 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 = {
@@ -1285,6 +1285,10 @@ const withSize = (config, size) => {
1285
1285
  config.icon.size = "w-5 h-5";
1286
1286
  config.logo.size = "w-28 h-5 -ml-1";
1287
1287
  break;
1288
+ case "md-small-text":
1289
+ config.button.size.text = "text-sm";
1290
+ config.icon.size = "w-5 h-5";
1291
+ config.logo.size = "w-28 h-5 -ml-1";
1288
1292
  case "lg":
1289
1293
  config.button.size.text = "text-md";
1290
1294
  config.icon.size = "w-6 h-6";
@@ -4742,7 +4746,7 @@ const Registration = (props) => {
4742
4746
  {
4743
4747
  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.",
4744
4748
  onChange: (e) => setImpactStatement(e.target.value),
4745
- defaultValue: impactStatement,
4749
+ value: impactStatement,
4746
4750
  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"
4747
4751
  }
4748
4752
  )))),