Skip to content

Commit c8c892e

Browse files
committed
removed allowing of inputSize as a prop for Input
1 parent c5339f8 commit c8c892e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/gamut/src/Form/inputs/Input.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
import { BaseInputProps } from '../types';
2424

2525
export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> &
26+
// Omit<StyleProps<typeof inputSizeStyles>, 'inputSize'> &
2627
StyleProps<typeof inputSizeStyles> &
2728
BaseInputProps & {
2829
/**
@@ -41,6 +42,7 @@ export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> &
4142

4243
export interface StyledInputProps
4344
extends StyleProps<typeof conditionalStyles>,
45+
4446
InputProps {
4547
icon?: boolean;
4648
}
@@ -56,6 +58,10 @@ export interface InputWrapperProps extends InputProps {
5658
* A custom icon svg from gamut-icons.
5759
*/
5860
icon?: React.ComponentType<GamutIconProps>;
61+
/**
62+
* Adding this as a safeguard to prevent use of both `size` and `inputSize`
63+
*/
64+
inputSize?: never;
5965
}
6066

6167
/** We greatly prefer NOT to do this but ReactRecurly has some specific needs around focus-styles + padding that force us to export them seperately. If we ever stop using React-Recurly, this code will be 🔪.

0 commit comments

Comments
 (0)