Skip to content

Commit 99ceb5d

Browse files
authored
Merge pull request #4895 from GeekyAnts/fix/style-system-type
Removed unused Prop typings from styled-system types
2 parents b46086e + 90a9436 commit 99ceb5d

File tree

2 files changed

+37
-6
lines changed

2 files changed

+37
-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: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,35 @@ 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'
39+
| 'verticalAlign'
40+
| 'borderBottom'
41+
| 'borderTop'
42+
| 'borderLeft'
43+
| 'borderRight'
44+
| 'wordBreak'
45+
| 'justifySelf'
46+
| 'overflowWrap'
47+
| 'textOverflow'
48+
| 'whiteSpace'
49+
| 'outline'
50+
| 'outlineWidth'
51+
| 'cursor'
52+
| 'userSelect'
53+
| 'order'
54+
| 'backgroundSize'
55+
| 'backgroundPosition'
56+
| 'backgroundRepeat'
57+
| 'backgroundAttachment'
58+
| 'backgroundBlendMode'
59+
| 'bgSize'
60+
| 'bgPosition'
61+
| 'bgRepeat'
62+
| 'bgAttachment'
63+
| 'bgBlendMode'
64+
| 'bgImage'
65+
| 'bgImg'
66+
| 'bgPos'
67+
>;

0 commit comments

Comments
 (0)