@sustaina/shared-ui 1.21.1 → 1.22.0

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.mjs CHANGED
@@ -1231,14 +1231,14 @@ var Input = React4.forwardRef(
1231
1231
  type = "text",
1232
1232
  ...rest
1233
1233
  }, ref) => {
1234
+ const inputProps = rest;
1234
1235
  const hasPrefix = Boolean(prefix);
1235
1236
  const hasSuffix = Boolean(suffix) || loading;
1236
1237
  const isFullWidth = fullWidth ?? true;
1237
1238
  const {
1238
1239
  "aria-invalid": ariaInvalidProp,
1239
1240
  "aria-describedby": ariaDescribedByProp,
1240
- onChange: onChangeProp,
1241
- ...inputProps
1241
+ onChange: onChangeProp
1242
1242
  } = rest;
1243
1243
  const ariaInvalid = invalid ?? ariaInvalidProp;
1244
1244
  const messageId = React4.useId();
@@ -1315,7 +1315,7 @@ var Input = React4.forwardRef(
1315
1315
  return inputWithAffixes;
1316
1316
  }
1317
1317
  return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", isFullWidth ? "w-full" : "w-fit", wrapperClassName), children: [
1318
- hasPrefix || hasSuffix ? inputWithAffixes : inputElement,
1318
+ inputWithAffixes,
1319
1319
  /* @__PURE__ */ jsxs(
1320
1320
  "p",
1321
1321
  {