Reapply "Merge branch 'iipbs/sn/ii' into iipbs/sn/main"

This reverts commit 2aa202ace3.
This commit is contained in:
swcho
2025-07-09 11:55:08 +09:00
parent 5a13a7cf38
commit e4426d61b3
20 changed files with 572 additions and 238 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,10 @@ export function DatePicker({
)}
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto p-0">
<PopoverContent
className="w-auto p-0"
style={{ zIndex: zIndex || 'auto' }}
>
<Calendar classNames={{ cell: "rounded-md" }} {...props} />
</PopoverContent>
</Popover>