File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 99 FormLabel ,
1010 FormMessage ,
1111} from './form' ;
12- import { TextInput } from './text-input' ;
12+ import { type InputProps , TextInput } from './text-input' ;
1313import { cn } from './utils' ;
1414
1515export 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 } ) }
You can’t perform that action at this time.
0 commit comments