chore: commit pending gateway changes
This commit is contained in:
@@ -1,8 +1,28 @@
|
||||
import * as React from 'react';
|
||||
import { cva, type VariantProps } from 'class-variance-authority';
|
||||
import { cn } from '../../lib/utils';
|
||||
|
||||
export const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
|
||||
({ className, ...props }, ref) => <input ref={ref} className={cn('shInput', className)} {...props} />,
|
||||
const inputVariants = cva('shInput', {
|
||||
variants: {
|
||||
size: {
|
||||
xs: 'shControlXs',
|
||||
sm: 'shControlSm',
|
||||
md: 'shControlMd',
|
||||
lg: 'shControlLg',
|
||||
xl: 'shControlXl',
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
size: 'md',
|
||||
},
|
||||
});
|
||||
|
||||
export interface InputProps
|
||||
extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>,
|
||||
VariantProps<typeof inputVariants> {}
|
||||
|
||||
export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
||||
({ className, size, ...props }, ref) => <input ref={ref} className={cn(inputVariants({ size, className }))} {...props} />,
|
||||
);
|
||||
|
||||
Input.displayName = 'Input';
|
||||
|
||||
Reference in New Issue
Block a user