From f864b365d006ca3add6ccd31dba3a6944864c243 Mon Sep 17 00:00:00 2001 From: baegofda Date: Sun, 7 Jan 2024 22:41:17 +0900 Subject: [PATCH] (#0) npm publish (0.0.141) --- package.json | 2 +- .../Calendar/DatePickerCalendar/index.tsx | 19 ++++++------ .../subs/CalendarComponentDaySubText.tsx | 2 +- .../subs/CalendarComponentDayText.tsx | 10 +++---- .../Calendar/ScheduleCalendar/index.tsx | 16 +++++----- .../subs/CalendarDayComponent.tsx | 30 +++++++++---------- .../Calendar/common/subs/CalendarHeader.tsx | 4 +-- .../common/subs/CalendarWeekdayComponent.tsx | 9 +++--- src/core/components/Drawer/index.tsx | 2 +- .../Input/InputDatePicker/DatePicker.tsx | 14 +++++---- .../Tab/GeneralTab/GeneralTab/index.tsx | 2 +- .../Tab/GeneralTab/GeneralTabItem/index.tsx | 4 +-- 12 files changed, 60 insertions(+), 54 deletions(-) diff --git a/package.json b/package.json index ac436e6..2ddaa71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bbodek-ui", - "version": "0.0.135", + "version": "0.0.141", "type": "module", "author": "Bbodek", "license": "MIT", diff --git a/src/core/components/Calendar/DatePickerCalendar/index.tsx b/src/core/components/Calendar/DatePickerCalendar/index.tsx index 6c9c0ee..7fd330d 100644 --- a/src/core/components/Calendar/DatePickerCalendar/index.tsx +++ b/src/core/components/Calendar/DatePickerCalendar/index.tsx @@ -135,14 +135,15 @@ const DatePickerCalendar = ({ monthButtonStatus = {monthButtonStatus} /> -
+
{commonModels.calendarDates.map((calendarWeekDates: CalendarDateDto[], index: number) => (
{calendarWeekDates.map((calendarDate: CalendarDateDto, index: number) => { const disabled = calendarDate.isHoliday || !calendarDate.isThisMonth || disabledDates?.includes(calendarDate.dayjs.format("YYYY-MM-DD")) || isCutoffDateValidation({ cutoffDate, cutoffAfterDate, calendarDate: calendarDate.dayjs.format("YYYY-MM-DD") }); - return
- -
; +
+ +
); })}
))} diff --git a/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDaySubText.tsx b/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDaySubText.tsx index 3a31604..e81635a 100644 --- a/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDaySubText.tsx +++ b/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDaySubText.tsx @@ -19,7 +19,7 @@ export const CalendarComponentDaySubText = ({ return (
  diff --git a/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDayText.tsx b/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDayText.tsx index e325642..e064d65 100644 --- a/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDayText.tsx +++ b/src/core/components/Calendar/DatePickerCalendar/subs/CalendarComponentDayText.tsx @@ -34,12 +34,12 @@ export const CalendarComponentDayText = ({ }, )}>
- - + +
+ +
); }; diff --git a/src/core/components/Calendar/ScheduleCalendar/subs/CalendarDayComponent.tsx b/src/core/components/Calendar/ScheduleCalendar/subs/CalendarDayComponent.tsx index 2dc2578..c114d03 100644 --- a/src/core/components/Calendar/ScheduleCalendar/subs/CalendarDayComponent.tsx +++ b/src/core/components/Calendar/ScheduleCalendar/subs/CalendarDayComponent.tsx @@ -16,10 +16,10 @@ export const CalendarDayComponent = ({ }: CalendarDayComponentProps) => { return( <> - { calendarDates.map((calendarWeekDates: CalendarDateDto[], index) => ( + {calendarDates.map((calendarWeekDates: CalendarDateDto[], index) => (
{calendarWeekDates.map((calendarDate: CalendarDateDto, index: number) => { const currentDate: string = calendarDate.dayjs.format("YYYY-MM-DD"); @@ -35,36 +35,37 @@ export const CalendarDayComponent = ({ key = {index} type = "button" disabled = {!calendarDate.isThisMonth} - className = "flex-v-stack items-center h-full text-center" + className = "flex-v-stack items-center h-full text-center bg-white" onClick = {(): void => onDateClick(currentDate)} >
{quantity !== undefined && }
{schedulesData && Object.keys(schedulesData).map(markedDate => ( (markedDate === calendarDate.dayjs.format("YYYY-MM-DD")) && -
+
{ - schedulesData[markedDate].markedDates?.slice(0, 2).map((markedDateValue, index) => ( + schedulesData[markedDate].markedDates?.slice(0, 3).map((markedDateValue, index) => (
)) } - {(schedulesData[markedDate].markedDates?.length ?? 0) > 2 && -
+ {(schedulesData[markedDate].markedDates?.length ?? 0) > 3 && +
} diff --git a/src/core/components/Calendar/common/subs/CalendarHeader.tsx b/src/core/components/Calendar/common/subs/CalendarHeader.tsx index 5f4870a..6de647e 100644 --- a/src/core/components/Calendar/common/subs/CalendarHeader.tsx +++ b/src/core/components/Calendar/common/subs/CalendarHeader.tsx @@ -17,7 +17,7 @@ export const CalendarHeader = ({ const iconClassNames = "text-gray-05 group-disabled:text-gray-03 group-disabled:cursor-not-allowed"; return ( -
+
- +