Skip to content

Commit 7c38e8e

Browse files
authored
fix(deps): update dependency react-day-picker to v9.14.0 (#401)
* fix(deps): update dependency react-day-picker to v9.14.0 * refactor(calendar): use custom class names for navigation buttons to improve maintainability
1 parent 82738c3 commit 7c38e8e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"next-themes": "0.4.6",
168168
"nuqs": "^2.8.6",
169169
"react": "^19.2.3",
170-
"react-day-picker": "9.13.2",
170+
"react-day-picker": "9.14.0",
171171
"react-dom": "^19.2.3",
172172
"react-hook-form": "7.71.2",
173173
"react-icons": "^5.5.0",

src/components/ui/calendar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ function Calendar({
4747
showOutsideDays={showOutsideDays}
4848
className={cn(
4949
'bg-background group/calendar p-3 [--cell-size:2rem] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent',
50+
'rtl:**:[.calendar-next>svg]:rotate-180',
51+
'rtl:**:[.calendar-prev>svg]:rotate-180',
5052
className,
5153
)}
5254
captionLayout={captionLayout}
@@ -64,12 +66,12 @@ function Calendar({
6466
),
6567
button_previous: cn(
6668
buttonVariants({ variant: buttonVariant }),
67-
'h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50 rtl:[&>svg]:rotate-180',
69+
'calendar-prev h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50',
6870
defaultClassNames.button_previous,
6971
),
7072
button_next: cn(
7173
buttonVariants({ variant: buttonVariant }),
72-
'h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50 rtl:[&>svg]:rotate-180',
74+
'calendar-next h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50',
7375
defaultClassNames.button_next,
7476
),
7577
month_caption: cn(

0 commit comments

Comments
 (0)