Files
sam-react-prod/src/components/ui/input.tsx
byeongcheolryu 56386e6d88 [feat]: 테마 선택 및 언어 선택 기능 추가 (다국어 지원)
- 3가지 테마 모드 구현 (일반, 다크, 시니어) 및 localStorage 저장
- 언어 선택 기능 추가 (한국어, 영어, 일본어) 국기 아이콘 포함
- 전역 테마 관리를 위한 ThemeContext 생성
- 테마별 CSS 변수 및 시니어 모드 접근성 기능 추가
- 로그인/회원가입 페이지에 ThemeSelect, LanguageSelect 컴포넌트 추가
- ThemeProvider 사용하도록 루트 레이아웃 리팩토링
- 다단계 폼 검증을 포함한 인증 페이지 생성 (로그인, 회원가입)
- 다국어 지원 대시보드 페이지 추가
- layout, NavigationMenu, i18n/request의 TypeScript 'any' 타입 경고 수정
- 깨끗한 빌드를 위해 미사용 import 및 변수 제거
- .gitignore 업데이트 및 .env.example 추가

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 20:24:15 +09:00

22 lines
967 B
TypeScript

import * as React from "react";
import { cn } from "@/lib/utils";
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
return (
<input
type={type}
data-slot="input"
className={cn(
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
className,
)}
{...props}
/>
);
}
export { Input };