Fix tests after ts change
CI Pipeline / test (20) (pull_request) Successful in 2m41s
CI Pipeline / test (18) (pull_request) Successful in 3m21s
CI Pipeline / e2e (chromium) (pull_request) Failing after 1m25s
CI Pipeline / e2e (firefox) (pull_request) Failing after 1m24s
CI Pipeline / e2e (webkit) (pull_request) Failing after 1m24s
CI Pipeline / visual-regression (pull_request) Failing after 1m53s
CI Pipeline / performance (pull_request) Failing after 1m31s
CI Pipeline / lint (pull_request) Failing after 1m5s
CI Pipeline / storybook (pull_request) Successful in 1m36s
CI Pipeline / build (pull_request) Failing after 1m19s

This commit is contained in:
adilallo
2025-12-10 22:43:36 -07:00
parent f6a0673082
commit 92a3337aeb
65 changed files with 262 additions and 313 deletions
+9 -10
View File
@@ -2,11 +2,10 @@
import React, { memo, useCallback, forwardRef, useId } from "react";
interface InputProps
extends Omit<
React.InputHTMLAttributes<HTMLInputElement>,
"size" | "onChange" | "onFocus" | "onBlur"
> {
interface InputProps extends Omit<
React.InputHTMLAttributes<HTMLInputElement>,
"size" | "onChange" | "onFocus" | "onBlur"
> {
size?: "small" | "medium" | "large";
labelVariant?: "default" | "horizontal";
state?: "default" | "active" | "hover" | "focus";
@@ -41,7 +40,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
className = "",
...props
},
ref
ref,
) => {
// Generate unique ID for accessibility if not provided
const generatedId = useId();
@@ -157,7 +156,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
onChange(e);
}
},
[disabled, onChange]
[disabled, onChange],
);
const handleFocus = useCallback(
@@ -166,7 +165,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
onFocus(e);
}
},
[disabled, onFocus]
[disabled, onFocus],
);
const handleBlur = useCallback(
@@ -175,7 +174,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
onBlur(e);
}
},
[disabled, onBlur]
[disabled, onBlur],
);
return (
@@ -207,7 +206,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
</div>
</div>
);
}
},
);
Input.displayName = "Input";