From e6a86e3786db3bc938757014d5c2280bf55ac1c2 Mon Sep 17 00:00:00 2001 From: Ayoub FEJJAL Date: Sun, 3 May 2026 17:09:36 +0100 Subject: [PATCH 1/4] feat(datepicker): add outside days styling support --- packages/ui/src/components/Datepicker/Views/Days.tsx | 6 ++++-- packages/ui/src/components/Datepicker/theme.ts | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/components/Datepicker/Views/Days.tsx b/packages/ui/src/components/Datepicker/Views/Days.tsx index f91a0843f..bf11d519e 100644 --- a/packages/ui/src/components/Datepicker/Views/Days.tsx +++ b/packages/ui/src/components/Datepicker/Views/Days.tsx @@ -25,6 +25,7 @@ export interface DatepickerViewsDaysTheme { selected: string; disabled: string; today: string; + outside: string; // ← ajouté }; }; } @@ -65,6 +66,7 @@ export function DatepickerViewsDays() { const isDisabled = !isDateInRange(currentDate, minDate, maxDate) || (filterDate && !filterDate(currentDate, Views.Days)); const isToday = isDateToday(currentDate); + const isOutside = currentDate.getMonth() !== viewDate.getMonth(); // ← ajouté return (