@geomak/ui 6.17.1 → 6.17.2

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.cjs CHANGED
@@ -3004,11 +3004,13 @@ function TextInput({
3004
3004
  className,
3005
3005
  required,
3006
3006
  prefix,
3007
- suffix
3007
+ suffix,
3008
+ id
3008
3009
  }) {
3009
3010
  const errorId = React24.useId();
3010
3011
  const hasError = errorMessage != null;
3011
3012
  const hasAdornment = prefix != null || suffix != null;
3013
+ const inputId = htmlFor ?? id;
3012
3014
  const input = /* @__PURE__ */ jsxRuntime.jsx(
3013
3015
  "input",
3014
3016
  {
@@ -3019,7 +3021,7 @@ function TextInput({
3019
3021
  onBlur,
3020
3022
  type,
3021
3023
  name,
3022
- id: htmlFor,
3024
+ id: inputId,
3023
3025
  "aria-invalid": hasError || void 0,
3024
3026
  "aria-describedby": hasError ? errorId : void 0,
3025
3027
  placeholder: placeholder ?? "",
@@ -3032,7 +3034,7 @@ function TextInput({
3032
3034
  {
3033
3035
  className,
3034
3036
  label,
3035
- htmlFor,
3037
+ htmlFor: inputId,
3036
3038
  errorId,
3037
3039
  errorMessage,
3038
3040
  helperText,