feat(ui): Created design and added core components for ui-next (#4324)

This commit is contained in:
Dan Rukas authored and GitHub committed 2024-08-02 12:35:07 -04:00
1 parent 00707db1ad
commit 90364189b8
32 files changed
+1004 -34

No files matched your search

@@ -0,0 +1,24 @@
import * as React from 'react';
import { cn } from '../../lib/utils';
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
'border-input text-foreground bg-background hover:bg-primary/10 placeholder:text-muted-foreground focus-visible:ring-ring flex h-7 w-full rounded border px-2 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
className
)}
ref={ref}
{...props}
/>
);
}
);
Input.displayName = 'Input';
export { Input };
@@ -0,0 +1,3 @@
import { Input } from './Input';
export { Input };