diff --git a/package-lock.json b/package-lock.json index aa8b1bf..d140a95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,6 +45,7 @@ "next-themes": "^0.3.0", "react": "^18", "react-countup": "^6.5.3", + "react-day-picker": "^9", "react-dom": "^18", "react-file-icon": "^1.5.0", "react-hook-form": "^7.53.0", @@ -453,6 +454,11 @@ "node": ">=6.9.0" } }, + "node_modules/@date-fns/tz": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@date-fns/tz/-/tz-1.2.0.tgz", + "integrity": "sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==" + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", @@ -2020,9 +2026,9 @@ } }, "node_modules/@supabase-cache-helpers/postgrest-react-query": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@supabase-cache-helpers/postgrest-react-query/-/postgrest-react-query-1.10.1.tgz", - "integrity": "sha512-BGGrEKue6mSH0el1iO1+iOSuyGqQxsHQ2B8dXWlDvYGmU7rmw5AGqXqDWngMBX68LcoHVJEogdbXP0pH4+1Tuw==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@supabase-cache-helpers/postgrest-react-query/-/postgrest-react-query-1.11.0.tgz", + "integrity": "sha512-qJoFfdqfuYTXvmuzPO7ggAoxTmsuufmuZWkI8kMWhceItp+AOdvTzU7AmbVUxMAUBm3e8qSSj3Li7Saj77fFyA==", "dependencies": { "@supabase-cache-helpers/postgrest-core": "0.8.1", "flat": "6.0.1" @@ -2162,18 +2168,18 @@ } }, "node_modules/@tanstack/query-devtools": { - "version": "5.58.0", - "resolved": "https://registry.npmjs.org/@tanstack/query-devtools/-/query-devtools-5.58.0.tgz", - "integrity": "sha512-iFdQEFXaYYxqgrv63ots+65FGI+tNp5ZS5PdMU1DWisxk3fez5HG3FyVlbUva+RdYS5hSLbxZ9aw3yEs97GNTw==", + "version": "5.59.19", + "resolved": "https://registry.npmjs.org/@tanstack/query-devtools/-/query-devtools-5.59.19.tgz", + "integrity": "sha512-Gw+3zsADpqiYgx/6MMr9bP1+x2LR8vOuGjo5Un/89qwwP3z7WAHPWFagLFDYkLq68NX7ekUpW/EOYlUMugMXGA==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.59.17", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.59.17.tgz", - "integrity": "sha512-2taBKHT3LrRmS9ttUOmtaekVOXlZ5JXzNhL9Kmi6BSBdfIAZwEinMXZ8hffVuDpFoRCWlBaGcNkhP/zXgzq5ow==", + "version": "5.59.19", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.59.19.tgz", + "integrity": "sha512-xLRfyFyQOFcLltKCds0LijfC6/HQJrrTTnZB8ciyn74LIkVAm++vZJ6eUVG20RmJtdP8REdy7vSOYW4M3//XLA==", "dependencies": { "@tanstack/query-core": "5.59.17" }, @@ -2186,18 +2192,18 @@ } }, "node_modules/@tanstack/react-query-devtools": { - "version": "5.59.17", - "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-5.59.17.tgz", - "integrity": "sha512-P5lRlPmSKXQZ+pzVFPMCrwKPyRtUk/yggtuceB435JPLiaP7UGoO6JQfSsaXHnVC9+LzRMYJjIEq6zm+1HteeQ==", + "version": "5.59.19", + "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-5.59.19.tgz", + "integrity": "sha512-mYFWTHLtJr2HdyYPZPzzvQ2ksCsSL6L04fCtusPFD3waskXrtmvWvyuDIGeEGdVAYS0Urwxw/0sYvcTVQZH+zQ==", "dependencies": { - "@tanstack/query-devtools": "5.58.0" + "@tanstack/query-devtools": "5.59.19" }, "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" }, "peerDependencies": { - "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query": "^5.59.19", "react": "^18 || ^19" } }, @@ -8425,6 +8431,25 @@ "react": ">= 16.3.0" } }, + "node_modules/react-day-picker": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.2.1.tgz", + "integrity": "sha512-rCoK4oJi9NBXt1nNdQFSa7gBG+hWsqVCtoLFLxvMzkVxDp+rSqsuUQ0LccJyLigwp/hX8XnAokTsT03+5lbjyA==", + "dependencies": { + "@date-fns/tz": "^1.1.2", + "date-fns": "^4.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/gpbl" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, "node_modules/react-dom": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", diff --git a/package.json b/package.json index f6dab3f..a9a75f8 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "next-themes": "^0.3.0", "react": "^18", "react-countup": "^6.5.3", - "react-day-picker": "8.10.1", + "react-day-picker": "^9", "react-dom": "^18", "react-file-icon": "^1.5.0", "react-hook-form": "^7.53.0", diff --git a/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsx index 61d2b45..5c2ac6c 100644 --- a/src/components/ui/calendar.tsx +++ b/src/components/ui/calendar.tsx @@ -1,20 +1,15 @@ -"use client" +"use client"; -import * as React from "react" -import { ChevronLeft, ChevronRight } from "lucide-react" -import { DayPicker } from "react-day-picker" +import * as React from "react"; +import { ChevronLeft, ChevronRight } from "lucide-react"; +import { DayPicker } from "react-day-picker"; -import { cn } from "@/lib/utils" -import { buttonVariants } from "@/components/ui/button" +import { cn } from "@/lib/utils"; +import { buttonVariants } from "@/components/ui/button"; -export type CalendarProps = React.ComponentProps +export type CalendarProps = React.ComponentProps; -function Calendar({ - className, - classNames, - showOutsideDays = true, - ...props -}: CalendarProps) { +function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) { return ( , - IconRight: ({ ...props }) => , - }} + components={ + { + IconLeft: () => , + IconRight: () => , + } as any + } {...props} /> - ) + ); } -Calendar.displayName = "Calendar" +Calendar.displayName = "Calendar"; -export { Calendar } +export { Calendar };