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

This commit is contained in:
swcho
2025-07-10 15:48:10 +09:00
@@ -12,14 +12,12 @@ import { Popover, PopoverContent, PopoverTrigger } from "@common/components/ui";
type DatePickerRangeProps = {
placeholder?: string;
disabled?: boolean | ((date: Date) => boolean);
zIndex?: number; // z-index prop 추가
} & DayPickerSingleProps;
export function DatePickerRange({
className,
placeholder = "날짜 선택",
disabled,
zIndex,
...props
}: DatePickerRangeProps) {
return (
@@ -38,8 +36,8 @@ export function DatePickerRange({
)}
</Button>
</PopoverTrigger>
<PopoverContent className={cn("w-auto p-0", zIndex ? `!z-[${zIndex}]` : "")}>
<Calendar initialFocus classNames={{ cell: "rounded-md" }} {...props}
<PopoverContent className="w-auto p-0">
<Calendar initialFocus classNames={{ cell: "rounded-md" }} {...props}
disabled={typeof disabled === "function" ? disabled : undefined}
/>
</PopoverContent>