260706_03_ENH: DateTimePicker 수정 및 TimePicker 추가

This commit is contained in:
2026-07-06 15:44:35 +09:00
parent 99e7acf584
commit 6a2aa2088c
7 changed files with 194 additions and 23 deletions

View File

@@ -12,12 +12,14 @@ type CalendarSingleProps = CalendarBaseProps & {
mode: "single";
selected?: Date;
onSelect?: (date: Date | undefined) => void;
initialFocus?: boolean;
};
type CalendarRangeProps = CalendarBaseProps & {
mode: "range";
selected?: CalendarDateRange;
onSelect?: (range: CalendarDateRange | undefined) => void;
initialFocus?: boolean;
};
export type CalendarProps = CalendarSingleProps | CalendarRangeProps;

View File

@@ -0,0 +1,14 @@
import type { HTMLAttributes } from "react";
import { cn } from "@/lib/utils";
export function ScrollArea({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
return <div className={cn(className)} {...props} />;
}
export function ScrollBar({
className,
orientation,
...props
}: HTMLAttributes<HTMLDivElement> & { orientation?: "horizontal" | "vertical" }) {
return <div data-orientation={orientation} className={cn(className)} {...props} />;
}