Merge branch 'iipbs/common/main' into iipbs/sn/ii

This commit is contained in:
swcho
2025-07-08 19:21:17 +09:00
4 changed files with 98 additions and 32 deletions
@@ -13,12 +13,14 @@ type DatePickerProps = {
placeholder?: string;
disabled?: boolean;
selected?: Date;
zIndex?: number; // z-index prop 추가
} & React.ComponentProps<typeof DayPicker>;
export function DatePicker({
className,
placeholder = "날짜 선택",
disabled,
zIndex, // zIndex prop 받기
...props
}: DatePickerProps) {
return (
@@ -37,7 +39,12 @@ export function DatePicker({
)}
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto p-0">
<PopoverContent
className={cn(
"w-auto p-0",
zIndex ? `z-[${zIndex}]` : "" // zIndex가 있으면 적용, 없으면 기본값
)}
>
<Calendar classNames={{ cell: "rounded-md" }} {...props} />
</PopoverContent>
</Popover>