Skip to content

Commit

Permalink
fix: omit size from htmlattributes of all inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Mar 12, 2022
1 parent b3147bd commit 41daea4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Input/Input.tsx
Expand Up @@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge'

import { IComponentBaseProps, ComponentColor, ComponentSize } from '../types'

export type InputProps = React.InputHTMLAttributes<HTMLInputElement> &
export type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> &
IComponentBaseProps & {
value?: string
placeholder?: string
Expand Down
2 changes: 1 addition & 1 deletion src/Radio/Radio.tsx
Expand Up @@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge'

import { IComponentBaseProps, ComponentSize } from '../types'

export type RadioProps = React.InputHTMLAttributes<HTMLInputElement> &
export type RadioProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> &
IComponentBaseProps & {
color?: 'primary' | 'secondary' | 'accent'
size?: ComponentSize
Expand Down
2 changes: 1 addition & 1 deletion src/Range/Range.tsx
Expand Up @@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge'

import { IComponentBaseProps, ComponentSize } from '../types'

export type RangeProps = React.InputHTMLAttributes<HTMLInputElement> &
export type RangeProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> &
IComponentBaseProps & {
value: number
min?: number
Expand Down
2 changes: 1 addition & 1 deletion src/Toggle/Toggle.tsx
Expand Up @@ -9,7 +9,7 @@ import {
ComponentStatus,
} from '../types'

export type ToggleProps = React.InputHTMLAttributes<HTMLInputElement> &
export type ToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> &
IComponentBaseProps & {
color?: Omit<ComponentColor, ComponentStatus | 'ghost'>
size?: ComponentSize
Expand Down

0 comments on commit 41daea4

Please sign in to comment.