dev-front/src/components/ui/table.tsx
시골약사 c7b08005e9 Initial commit: YSL Frontend (Vite + React + TypeScript)
 주요 기능:
- 사이니지 태블릿 시스템 (SignageTabletScreen)
- 통합 관제실 인터페이스 (NewControlScreen)
- 슬라이드 관리 시스템 (SlideManager)
- 의료진 호출 시스템 (실시간 Socket.IO 연동)
- 타이머 시스템 (실시간 동기화)

🛠️ 기술 스택:
- Vite 7.0.6 + React 19 + TypeScript
- Tailwind CSS 4.0 (공식 @tailwindcss/vite 플러그인)
- Radix UI 컴포넌트 라이브러리
- Socket.IO 클라이언트
- @hello-pangea/dnd (드래그앤드롭)

🔧 주요 구성:
- 풀스크린 터치 인터페이스
- 반응형 UI/UX 디자인
- 실시간 서버 통신
- 터치 이벤트 최적화
- CSS 변수 기반 테마 시스템

🎯 개발 환경:
- 포트: 5070
- 허용 호스트: ysl.0bin.in
- 리버스 프록시 지원

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 06:50:25 +00:00

117 lines
2.4 KiB
TypeScript

"use client";
import * as React from "react";
import { cn } from "./utils";
function Table({ className, ...props }: React.ComponentProps<"table">) {
return (
<div
data-slot="table-container"
className="relative w-full overflow-x-auto"
>
<table
data-slot="table"
className={cn("w-full caption-bottom text-sm", className)}
{...props}
/>
</div>
);
}
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
return (
<thead
data-slot="table-header"
className={cn("[&_tr]:border-b", className)}
{...props}
/>
);
}
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
return (
<tbody
data-slot="table-body"
className={cn("[&_tr:last-child]:border-0", className)}
{...props}
/>
);
}
function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
return (
<tfoot
data-slot="table-footer"
className={cn(
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
className,
)}
{...props}
/>
);
}
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
return (
<tr
data-slot="table-row"
className={cn(
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
className,
)}
{...props}
/>
);
}
function TableHead({ className, ...props }: React.ComponentProps<"th">) {
return (
<th
data-slot="table-head"
className={cn(
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
className,
)}
{...props}
/>
);
}
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
return (
<td
data-slot="table-cell"
className={cn(
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
className,
)}
{...props}
/>
);
}
function TableCaption({
className,
...props
}: React.ComponentProps<"caption">) {
return (
<caption
data-slot="table-caption"
className={cn("text-muted-foreground mt-4 text-sm", className)}
{...props}
/>
);
}
export {
Table,
TableHeader,
TableBody,
TableFooter,
TableHead,
TableRow,
TableCell,
TableCaption,
};