Skip to content

Commit 6727627

Browse files
committed
merge conflicts
2 parents e214107 + 95944f5 commit 6727627

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdacurry/forms",
3-
"version": "0.14.0",
3+
"version": "0.14.1",
44
"type": "module",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/components/src/ui/text-field.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
FormLabel,
1010
FormMessage,
1111
} from './form';
12-
import { TextInput } from './text-input';
12+
import { type InputProps, TextInput } from './text-input';
1313
import { cn } from './utils';
1414

1515
export const FieldPrefix = ({
@@ -51,7 +51,7 @@ export const FieldSuffix = ({
5151
};
5252

5353
// Create a specific interface for the input props that includes className explicitly
54-
interface TextInputProps extends React.ComponentPropsWithoutRef<typeof TextInput> {
54+
interface TextInputProps extends Omit<InputProps, 'prefix' | 'suffix'> {
5555
control?: Control<FieldValues>;
5656
name: FieldPath<FieldValues>;
5757
label?: string;
@@ -93,7 +93,7 @@ export const TextField = ({
9393
<TextInput
9494
{...field}
9595
{...props}
96-
className={cn('focus-visible:ring-0 focus-visible:ring-offset-0', {
96+
className={cn('focus-visible:ring-0 focus-visible:ring-offset-0 border-input', {
9797
'rounded-l-none border-l-0': prefix,
9898
'rounded-r-none border-r-0': suffix,
9999
})}

0 commit comments

Comments
 (0)