diff --git a/web/src/components/ui/calendar.tsx b/web/src/components/ui/calendar.tsx index e22f1b3b5..b91518d2a 100644 --- a/web/src/components/ui/calendar.tsx +++ b/web/src/components/ui/calendar.tsx @@ -17,45 +17,59 @@ function Calendar({ return ( button]:bg-selected [&>button]:text-white [&>button]:hover:bg-selected [&>button]:hover:text-white", + range_end: + "day-range-end !bg-accent rounded-r-md [&>button]:bg-selected [&>button]:text-white [&>button]:hover:bg-selected [&>button]:hover:text-white", + selected: cn( + props.mode === "range" + ? " [&>button]:hover:bg-selected [&>button]:hover:text-white focus:bg-selected focus:text-white [&>button]:aria-selected:text-primary" + : " [&>button]:bg-selected [&>button]:text-white [&>button]:hover:bg-selected [&>button]:hover:text-white focus:bg-selected focus:text-white rounded-md", + ), + today: "bg-muted text-muted-foreground !rounded-md", + outside: + "day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30", + disabled: "text-muted-foreground opacity-50", + range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground", - day_hidden: "invisible", + hidden: "invisible", ...classNames, }} components={{ - IconLeft: () => , - IconRight: () => , + Chevron: ({ ...props }) => + props.orientation === "left" ? ( + + ) : ( + + ), }} {...props} />