Skip to content

Commit 71319a9

Browse files
committed
fix: style system type
1 parent f69e3d5 commit 71319a9

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/components/primitives/Input/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,23 @@ export interface InterfaceInputProps
8181
/**
8282
* Passed props will be applied on hovered state.
8383
*/
84-
_hover?: Omit<Partial<IInputProps>, '_hover'>;
84+
_hover?: Partial<IInputProps>;
8585
/**
8686
* Passed props will be applied on focused state.
8787
*/
88-
_focus?: Omit<Partial<IInputProps>, '_focus'>;
88+
_focus?: Partial<IInputProps>;
8989
/**
9090
* Passed props will be applied on disabled state.
9191
*/
92-
_disabled?: Omit<Partial<IInputProps>, '_disabled'>;
92+
_disabled?: Partial<IInputProps>;
9393
/**
9494
* Passed props will be applied on readOnly state.
9595
*/
96-
_readOnly?: Omit<Partial<IInputProps>, '_readOnly'>;
96+
_readOnly?: Partial<IInputProps>;
9797
/**
9898
* Passed props will be applied on invalid state.
9999
*/
100-
_invalid?: Omit<Partial<IInputProps>, '_hover'>;
100+
_invalid?: Partial<IInputProps>;
101101
/**
102102
* props are passed to InputBase component
103103
*/

src/theme/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ type AllProps<T extends StyledPropConfig> = {
3333
: unknown;
3434
};
3535

36-
export type StyledProps = AllProps<StyledPropConfig>;
36+
export type StyledProps = Omit<
37+
AllProps<StyledPropConfig>,
38+
'gap' | 'borderBottom'
39+
>;

0 commit comments

Comments
 (0)