feat: button, calendar, datePicker, input, pagination, icons 추가

This commit is contained in:
2026-04-09 11:02:18 +09:00
parent 6da730f014
commit 34d5a56a80
19 changed files with 1048 additions and 27 deletions

View File

@@ -0,0 +1,13 @@
import { CalendarDate, type DateValue, fromDate, toCalendarDate } from '@internationalized/date';
const TIMEZONE = 'Asia/Seoul';
export function dateToCalendarDate(date: Date | null): CalendarDate | null {
if (!date) return null;
return toCalendarDate(fromDate(date, TIMEZONE));
}
export function calendarDateToDate(value: DateValue | null): Date | null {
if (!value) return null;
return value.toDate(TIMEZONE);
}