260706_03_ENH: DateTimePicker 수정 및 TimePicker 추가
This commit is contained in:
@@ -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;
|
||||
|
||||
14
.tooling/components/ui/scroll-area.tsx
Normal file
14
.tooling/components/ui/scroll-area.tsx
Normal 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} />;
|
||||
}
|
||||
Reference in New Issue
Block a user