react-beauty-calendar 2.0.1 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/@types/booking.d.ts +1 -0
- package/dist/@types/calendar-instance.d.ts +39 -7
- package/dist/@types/calendar.d.ts +1 -2
- package/dist/@types/index.d.ts +2 -2
- package/dist/@types/profile.d.ts +1 -1
- package/dist/@types/user.d.ts +4 -1
- package/dist/build/assets/main.css +1 -1
- package/dist/build/main.cjs.js +60 -70
- package/dist/build/main.es.js +10762 -8422
- package/dist/components/ui/Avatar.d.ts +10 -0
- package/dist/components/ui/Button-group.d.ts +11 -0
- package/dist/components/ui/Dialog.d.ts +14 -0
- package/dist/components/ui/Sidebar.d.ts +70 -0
- package/dist/components/ui/sheet.d.ts +12 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/constants/booking-view-type.constant.d.ts +2 -0
- package/dist/constants/card.constant.d.ts +7 -0
- package/dist/constants/index.d.ts +4 -10
- package/dist/constants/month.constant.d.ts +12 -0
- package/dist/constants/user-colors-constants.d.ts +40 -0
- package/dist/context/drag/useDragStateAtStore.d.ts +0 -2
- package/dist/context/global/booking-info/booking-info.d.ts +1 -0
- package/dist/context/global/config/config-store.d.ts +7 -2
- package/dist/context/global/days-and-week/day-and-week-store.d.ts +1 -0
- package/dist/context/new-event/new-event-store.d.ts +2 -1
- package/dist/context/users-info/users-info-store.d.ts +3 -3
- package/dist/core/Root.d.ts +1 -1
- package/dist/core/avatar/UserAvatar.d.ts +6 -0
- package/dist/core/booking-card/BookingCard.d.ts +1 -1
- package/dist/core/booking-card/BookingCardOnResize.d.ts +1 -1
- package/dist/core/booking-card/CardContent.d.ts +1 -1
- package/dist/core/booking-creation-dialog/BookingCreationDialog.d.ts +1 -1
- package/dist/core/booking-creation-dialog/ConfirmationModal.d.ts +10 -0
- package/dist/core/calendar/AllDayCard.d.ts +2 -0
- package/dist/core/calendar/CalendarDays.d.ts +1 -1
- package/dist/core/calendar/DateCalendarIndicator.d.ts +1 -1
- package/dist/core/calendar/ScheduleSlots.d.ts +3 -9
- package/dist/core/calendar/SlotRender.d.ts +1 -1
- package/dist/core/calendar/SlotRenderMonth.d.ts +3 -0
- package/dist/core/card-slots/CardBlockContent.d.ts +4 -3
- package/dist/core/card-slots/CardResizeEventOpened.d.ts +12 -0
- package/dist/core/card-slots/MonthIndicator.d.ts +8 -0
- package/dist/core/card-slots/ResizableTimeSlot.d.ts +2 -16
- package/dist/core/card-slots/SlotTrigger.d.ts +2 -2
- package/dist/core/card-slots/TimeInfo.d.ts +2 -4
- package/dist/core/card-slots/UniSlot.d.ts +1 -1
- package/dist/core/header-calendar/HeaderTodayAction.d.ts +1 -1
- package/dist/core/sidebar/Sidebar.d.ts +8 -0
- package/dist/core/sidebar/SidebarWrapper.d.ts +7 -0
- package/dist/core/slots/Card.d.ts +5 -4
- package/dist/core/table-view-type/TableViewType.d.ts +2 -2
- package/dist/hooks/useResizableCardHook.d.ts +3 -2
- package/dist/mock/booking-mock.d.ts +8 -2
- package/dist/user1.webp +0 -0
- package/dist/user2.jpeg +0 -0
- package/dist/user3.png +0 -0
- package/dist/user4.webp +0 -0
- package/dist/utils/blockSlotDays.d.ts +12 -0
- package/dist/utils/date.utils.d.ts +9 -2
- package/dist/utils/forward.d.ts +9 -6
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/permissions.d.ts +6 -0
- package/dist/utils/props.d.ts +38 -20
- package/dist/utils/string.utils.d.ts +1 -0
- package/dist/utils/types.d.ts +5 -1
- package/package.json +4 -2
- package/dist/@types/working-time.d.ts +0 -10
- package/dist/constants/day-time-starter.constant.d.ts +0 -2
- package/dist/constants/payment.constant.d.ts +0 -11
- package/dist/constants/resize-base-value.constant.d.ts +0 -1
- package/dist/constants/side-options.constant.d.ts +0 -1
- package/dist/constants/system-colors.constant.d.ts +0 -40
- package/dist/constants/url-param.constant.d.ts +0 -6
- package/dist/constants/week.constant.d.ts +0 -3
- package/dist/core/calendar/TableDayOfWeekColumn.d.ts +0 -6
- package/dist/core/slots/CardContentWithResize.d.ts +0 -17
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BusinessInterval, Periods, UnavailablePeriods } from '../@types/calendar-instance';
|
|
2
|
+
export declare const blockSlotDays: {
|
|
3
|
+
isDisabledSlot(slotId: string | Date, targetSlot: string | Date): boolean;
|
|
4
|
+
isTimeSlotWithinRange(slotTime: string, from: string, to: string): boolean;
|
|
5
|
+
isDisabledByDay({ slotId, slotTime, unavailablePeriods, }: {
|
|
6
|
+
slotId: string;
|
|
7
|
+
slotTime?: string;
|
|
8
|
+
unavailablePeriods: UnavailablePeriods[];
|
|
9
|
+
}): boolean;
|
|
10
|
+
findSlotAndCommit(slotTime: string, periods?: Periods[]): boolean;
|
|
11
|
+
isDisabledByInterval(slotId: string, slotTime: string, businessInterval?: BusinessInterval[]): boolean;
|
|
12
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Booking } from '../@types';
|
|
2
|
-
import { WeekDays } from '../constants
|
|
2
|
+
import { WeekDays } from '../constants';
|
|
3
3
|
import { DaysOfWeek, NextAndPreviousWeek } from '../context/global/days-and-week/day-and-week-store';
|
|
4
4
|
export type DatesData = {
|
|
5
5
|
week: Date[];
|
|
@@ -30,11 +30,18 @@ export declare const dateUtils: {
|
|
|
30
30
|
addMinutesToDate(targetDate: Date, minutes: number): Date;
|
|
31
31
|
newDateKey(date: string, hour: string): string;
|
|
32
32
|
addMinutesToHour(startAt: string, interval: number): string;
|
|
33
|
-
convertStringTimeToDateFormat(timeString: string): Date;
|
|
33
|
+
convertStringTimeToDateFormat(timeString: string, day?: string): Date;
|
|
34
|
+
setToMidnight(day: string): Date;
|
|
35
|
+
isSameDayMonthAndYear(initialDate: Date, dateToCompare: Date): boolean;
|
|
34
36
|
isTodayDate(date: Date): boolean;
|
|
37
|
+
isSameDay(initialDate: Date, dateToCompare: Date): boolean;
|
|
35
38
|
firstAndLastWeekDays(week: DaysOfWeek): NextAndPreviousWeek;
|
|
36
39
|
generateWeekMonthLabel(week: DaysOfWeek): string;
|
|
37
40
|
isFinishDateAnotherDay(finish: Date, start: Date): boolean;
|
|
38
41
|
compareSameDate(firstDate: Date, secondDate: Date): boolean;
|
|
39
42
|
isMidnight(closureDate: Date): boolean;
|
|
43
|
+
getDayOfWeek(day: string | Date): WeekDays;
|
|
44
|
+
isWeekend(day: string | Date): boolean;
|
|
45
|
+
isWithinRange(start: Date | null, end: Date | null, target: string | Date): boolean;
|
|
46
|
+
convertDateToTimeString(dateTime: Date): string;
|
|
40
47
|
};
|
package/dist/utils/forward.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { Booking } from '../@types';
|
|
2
|
+
import { Booking, BookingDateAndTime } from '../@types';
|
|
3
3
|
export type CardContentRef = HTMLDivElement;
|
|
4
4
|
export interface BookingCardRef {
|
|
5
5
|
changeCurrentCardResize: () => void;
|
|
6
6
|
}
|
|
7
|
-
export interface TimeInfoRef {
|
|
8
|
-
show: () => void;
|
|
9
|
-
hide: () => void;
|
|
10
|
-
changeIsOpen: (isOpen: boolean) => void;
|
|
11
|
-
}
|
|
12
7
|
export interface BlockTimeRef {
|
|
13
8
|
ref: (element: HTMLElement | null) => void;
|
|
14
9
|
style: CSSProperties;
|
|
@@ -38,4 +33,12 @@ export interface UsersInfoRef {
|
|
|
38
33
|
export interface ResizableTimeSlotRef {
|
|
39
34
|
resetState: () => void;
|
|
40
35
|
resetHeightStyle: () => void;
|
|
36
|
+
resetResizeTimeSlots: () => void;
|
|
37
|
+
}
|
|
38
|
+
export interface CardResizeEventRef {
|
|
39
|
+
updateCardEventHeight: (finish: Date, start: Date) => void;
|
|
40
|
+
}
|
|
41
|
+
export interface ConfirmModalRef {
|
|
42
|
+
showConfirmationModal: (booking: Booking, slotData: BookingDateAndTime) => void;
|
|
43
|
+
hideConfirmationModal: () => void;
|
|
41
44
|
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import { bookingUtils } from './booking.utils';
|
|
|
2
2
|
import { buildEmptyTimeSlotKey } from './buildEmptyTimeSlotKey';
|
|
3
3
|
import { cardResizeUtils } from './cardResize.utils';
|
|
4
4
|
import { dateUtils } from './date.utils';
|
|
5
|
-
import {
|
|
5
|
+
import { BookingCardRef, SlotTriggerForwardRef, BookingCreationDialogRef, BookingCardContentRef } from './forward';
|
|
6
6
|
import { generateTimes, generateWorkingTimes } from './hours';
|
|
7
7
|
import { SlotTriggerProps, CardContentProps, BlockTimeData, EmptySlotProps, TimeInfoProps, useResizableCardHookProps, BlocksTimeStructure, SlotRenderProps, BookingCarContextProps, CalendarHolderProps, ColumnsProps, BookingCarOnResizeProps } from './props';
|
|
8
8
|
import { stringUtils } from './string.utils';
|
|
9
|
-
export { bookingUtils, dateUtils, stringUtils, cardResizeUtils, generateTimes, generateWorkingTimes, buildEmptyTimeSlotKey, type BookingCardRef, type SlotTriggerForwardRef, type BookingCreationDialogRef, type
|
|
9
|
+
export { bookingUtils, dateUtils, stringUtils, cardResizeUtils, generateTimes, generateWorkingTimes, buildEmptyTimeSlotKey, type BookingCardRef, type SlotTriggerForwardRef, type BookingCreationDialogRef, type BookingCardContentRef, type BlockTimeData, type BlocksTimeStructure, type SlotTriggerProps, type CardContentProps, type EmptySlotProps, type TimeInfoProps, type useResizableCardHookProps, type BookingCarContextProps, type SlotRenderProps, type CalendarHolderProps, type ColumnsProps, type BookingCarOnResizeProps, };
|
|
10
|
+
export { hasPermission, canCreateBooking, canDragBooking, canResizeBooking, } from './permissions';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserAccessProfile } from '../@types';
|
|
2
|
+
import { Permissions } from '../@types/user';
|
|
3
|
+
export declare const hasPermission: (actor: UserAccessProfile, permission: Permissions) => boolean;
|
|
4
|
+
export declare const canCreateBooking: (actor: UserAccessProfile, targetActorId?: string) => boolean;
|
|
5
|
+
export declare const canDragBooking: (actor: UserAccessProfile, targetActorId?: string) => boolean;
|
|
6
|
+
export declare const canResizeBooking: (actor: UserAccessProfile, targetActorId?: string) => boolean;
|
package/dist/utils/props.d.ts
CHANGED
|
@@ -2,22 +2,24 @@ import { DraggableAttributes } from '@dnd-kit/core';
|
|
|
2
2
|
import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
|
|
3
3
|
import { ColumnDef } from '@tanstack/react-table';
|
|
4
4
|
import { CSSProperties, JSX, PropsWithChildren, ReactNode, Ref } from 'react';
|
|
5
|
-
import { Booking, BookingDateAndTime, Bookings,
|
|
5
|
+
import { Booking, BookingDateAndTime, Bookings, UserAccessProfile } from '../@types';
|
|
6
6
|
import { Side } from '../core/booking-options/BookingInfoOptions';
|
|
7
|
-
import { BlockTimeRef, BookingCardContentRef, BookingCardRef, BookingCreationDialogRef, CardContentRef, SlotTriggerForwardRef } from './forward';
|
|
7
|
+
import { BlockTimeRef, BookingCardContentRef, BookingCardRef, BookingCreationDialogRef, CardContentRef, ResizableTimeSlotRef, SlotTriggerForwardRef } from './forward';
|
|
8
8
|
import { ResizableParam, TimesBlock } from './types';
|
|
9
9
|
export interface CardContentProps {
|
|
10
10
|
resize?: boolean;
|
|
11
11
|
bookingInit: Booking;
|
|
12
|
-
slotData:
|
|
12
|
+
slotData: BlocksTimeStructure;
|
|
13
|
+
selected?: boolean;
|
|
13
14
|
heightStyle: number;
|
|
15
|
+
canResize?: boolean;
|
|
14
16
|
topHeightIncrement?: number;
|
|
15
17
|
customClasses?: string;
|
|
16
18
|
open?: boolean;
|
|
17
19
|
lastCard?: boolean;
|
|
18
20
|
half?: boolean;
|
|
19
21
|
cardsQuantity?: number;
|
|
20
|
-
|
|
22
|
+
index?: number;
|
|
21
23
|
resizableParam?: ResizableParam;
|
|
22
24
|
events?: {
|
|
23
25
|
onUnmount?: () => void;
|
|
@@ -32,20 +34,24 @@ export interface CardContentProps {
|
|
|
32
34
|
export interface BookingCardProps {
|
|
33
35
|
booking: Booking;
|
|
34
36
|
slotData: BookingDateAndTime;
|
|
37
|
+
selected?: boolean;
|
|
35
38
|
customClasses?: string;
|
|
36
39
|
hoveringAdditionalCardId?: string;
|
|
40
|
+
isResizing?: boolean;
|
|
37
41
|
ref?: Ref<BookingCardRef>;
|
|
38
42
|
}
|
|
39
43
|
export type TimeInfoPropsWithChildren = PropsWithChildren<TimeInfoProps>;
|
|
40
44
|
export interface TimeInfoProps {
|
|
41
|
-
|
|
45
|
+
isCreatingOnResize: boolean;
|
|
42
46
|
}
|
|
43
47
|
export interface BlockTimeData {
|
|
44
48
|
key: string;
|
|
45
49
|
time: string;
|
|
46
50
|
userId?: string;
|
|
47
51
|
}
|
|
48
|
-
export type BlocksTimeStructure =
|
|
52
|
+
export type BlocksTimeStructure = {
|
|
53
|
+
bookingQuantity?: number;
|
|
54
|
+
} & BlockTimeRef & BlockTimeData;
|
|
49
55
|
export interface EmptySlotProps {
|
|
50
56
|
bookings: Booking[];
|
|
51
57
|
dayHour: BookingDateAndTime;
|
|
@@ -54,17 +60,15 @@ export interface EmptySlotProps {
|
|
|
54
60
|
firstDay: boolean;
|
|
55
61
|
}
|
|
56
62
|
export interface SlotEvents {
|
|
57
|
-
onMouseEnterEvent: () =>
|
|
63
|
+
onMouseEnterEvent: () => void;
|
|
58
64
|
}
|
|
59
65
|
export interface SlotTriggerProps {
|
|
60
66
|
slotData: BlocksTimeStructure;
|
|
61
67
|
blockTimeString?: string;
|
|
62
|
-
dayHour?: BookingDateAndTime;
|
|
63
|
-
disabledCss?: string;
|
|
64
|
-
events: SlotEvents;
|
|
65
68
|
bookings?: Bookings;
|
|
66
69
|
children?: ReactNode;
|
|
67
70
|
lastPosition?: boolean;
|
|
71
|
+
fromMonth?: boolean;
|
|
68
72
|
getCreationDialogRef: () => BookingCreationDialogRef | null;
|
|
69
73
|
ref: Ref<SlotTriggerForwardRef>;
|
|
70
74
|
}
|
|
@@ -87,6 +91,9 @@ export type BookingCarOnResizeProps = Omit<BookingCarContextProps & {
|
|
|
87
91
|
export interface useResizableCardHookProps {
|
|
88
92
|
starter?: boolean;
|
|
89
93
|
booking: Booking;
|
|
94
|
+
activeUser: UserAccessProfile;
|
|
95
|
+
skipUpdate?: boolean;
|
|
96
|
+
isMonthView?: boolean;
|
|
90
97
|
onAddTime?: (datetime: Date) => void;
|
|
91
98
|
onAddStartTime?: (datetime: Date) => void;
|
|
92
99
|
onStartAtChange?: (datetime: Date) => void;
|
|
@@ -104,14 +111,17 @@ export interface BookingTabsProps {
|
|
|
104
111
|
onClose: (event: React.MouseEvent) => void;
|
|
105
112
|
onOpenChange: (status: boolean) => void;
|
|
106
113
|
}
|
|
114
|
+
export interface BookingCreationDialogEvent {
|
|
115
|
+
onClose: () => void;
|
|
116
|
+
onOpenChange: (status: boolean) => void;
|
|
117
|
+
}
|
|
107
118
|
export interface BookingCreationDialogProps {
|
|
108
119
|
modal?: boolean;
|
|
109
120
|
side?: Side;
|
|
110
121
|
buttonTrigger?: JSX.Element;
|
|
122
|
+
fromMonth?: boolean;
|
|
123
|
+
events?: BookingCreationDialogEvent;
|
|
111
124
|
ref: Ref<BookingCreationDialogRef>;
|
|
112
|
-
slotTrigger?: () => SlotTriggerForwardRef | null;
|
|
113
|
-
onClose?: () => void;
|
|
114
|
-
onOpenChange?: (status: boolean) => void;
|
|
115
125
|
}
|
|
116
126
|
export interface BlockTimeDataChunk {
|
|
117
127
|
firstBlockTimeData: BlocksTimeStructure;
|
|
@@ -121,13 +131,10 @@ export interface BlockTimeDataChunk {
|
|
|
121
131
|
}
|
|
122
132
|
export interface SlotRenderProps {
|
|
123
133
|
bookings: Booking[];
|
|
124
|
-
lunchTimeBlock?: {
|
|
125
|
-
startAt: string;
|
|
126
|
-
finishAt: string;
|
|
127
|
-
};
|
|
128
134
|
firstDay: boolean;
|
|
129
135
|
dayHour: BookingDateAndTime;
|
|
130
|
-
user?:
|
|
136
|
+
user?: UserAccessProfile;
|
|
137
|
+
index?: number;
|
|
131
138
|
}
|
|
132
139
|
export interface CalendarHolderProps {
|
|
133
140
|
tableAccessors: ColumnDef<unknown>[];
|
|
@@ -138,13 +145,24 @@ export interface ColumnsProps<T> {
|
|
|
138
145
|
}
|
|
139
146
|
export interface UniSlotProps {
|
|
140
147
|
dayHour: BookingDateAndTime;
|
|
141
|
-
slotPosition
|
|
148
|
+
slotPosition?: TimesBlock;
|
|
142
149
|
firstDay: boolean;
|
|
143
150
|
bookings: Booking[];
|
|
144
151
|
userId?: string;
|
|
145
152
|
lastPosition?: boolean;
|
|
153
|
+
bookingQuantity?: number;
|
|
154
|
+
fromMonth?: boolean;
|
|
155
|
+
closeRenderedEvent?: () => void;
|
|
146
156
|
}
|
|
147
157
|
export interface HeaderTodayActionProps {
|
|
148
|
-
|
|
158
|
+
onClickToday: () => void;
|
|
149
159
|
showCreationModal: () => void;
|
|
150
160
|
}
|
|
161
|
+
export interface ResizableTimeSlotProps {
|
|
162
|
+
isCreatingOnResize: boolean;
|
|
163
|
+
slotData: BlocksTimeStructure;
|
|
164
|
+
renderEvent: boolean;
|
|
165
|
+
resetPrevView: () => void;
|
|
166
|
+
startCounter: () => void;
|
|
167
|
+
ref: Ref<ResizableTimeSlotRef>;
|
|
168
|
+
}
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface RootProps extends RootEventsProps {
|
|
|
14
14
|
export interface RootEventsProps {
|
|
15
15
|
onChangeViewType: (bookingViewType: BookingViewType) => void;
|
|
16
16
|
onTodayClick: (date: Date) => void;
|
|
17
|
-
|
|
17
|
+
onCardDrop: (booking: Booking, overId: string, slotData: BookingDateAndTime) => Promise<void>;
|
|
18
18
|
onDayChange: (date: Date[], actionType: ActionType) => void;
|
|
19
19
|
onModalClose: () => void;
|
|
20
20
|
onSlotClick: (slotData: BlockTimeData) => void;
|
|
@@ -39,4 +39,8 @@ interface ShortcutButtons {
|
|
|
39
39
|
onClick: () => void;
|
|
40
40
|
}
|
|
41
41
|
export type ShortcutButtonsList = ShortcutButtons[];
|
|
42
|
+
export interface Layers {
|
|
43
|
+
left: number;
|
|
44
|
+
right: number;
|
|
45
|
+
}
|
|
42
46
|
export {};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "2.0.
|
|
14
|
+
"version": "2.0.4",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"react",
|
|
17
17
|
"component",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@dnd-kit/core": "^6.3.1",
|
|
52
52
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
53
53
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
54
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
54
55
|
"@react-spring/web": "^10.0.3",
|
|
55
56
|
"@tailwindcss/vite": "^4.0.15",
|
|
56
57
|
"@tanstack/react-query": "^5.69.0",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"date-fns": "^4.1.0",
|
|
62
63
|
"dayjs": "^1.11.13",
|
|
63
64
|
"motion": "^12.12.1",
|
|
65
|
+
"radix-ui": "^1.4.3",
|
|
64
66
|
"react-resizable": "^3.0.5",
|
|
65
67
|
"react-router": "^7.4.0",
|
|
66
68
|
"react-spinners": "^0.16.1",
|
|
@@ -82,7 +84,7 @@
|
|
|
82
84
|
"@radix-ui/react-popover": "^1.1.6",
|
|
83
85
|
"@radix-ui/react-select": "^2.1.6",
|
|
84
86
|
"@radix-ui/react-separator": "^1.1.2",
|
|
85
|
-
"@radix-ui/react-slot": "^1.
|
|
87
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
86
88
|
"@radix-ui/react-tabs": "^1.1.3",
|
|
87
89
|
"@radix-ui/react-toggle": "^1.1.2",
|
|
88
90
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const DayOfWeek: {
|
|
2
|
-
readonly SUN: "SUN";
|
|
3
|
-
readonly MON: "MON";
|
|
4
|
-
readonly TUE: "TUE";
|
|
5
|
-
readonly WED: "WED";
|
|
6
|
-
readonly THU: "THU";
|
|
7
|
-
readonly FRI: "FRI";
|
|
8
|
-
readonly SAT: "SAT";
|
|
9
|
-
};
|
|
10
|
-
export type DayOfWeek = (typeof DayOfWeek)[keyof typeof DayOfWeek];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const BASE_VALUE: number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const SYSTEM_COLORS_THEME_1: {
|
|
2
|
-
readonly "#3b82f6": "#3b82f6";
|
|
3
|
-
readonly "#059669": "#059669";
|
|
4
|
-
readonly "#dc2626": "#dc2626";
|
|
5
|
-
readonly "#7c3aed": "#7c3aed";
|
|
6
|
-
readonly "#ea580c": "#ea580c";
|
|
7
|
-
readonly "#0891b2": "#0891b2";
|
|
8
|
-
readonly "#be185d": "#be185d";
|
|
9
|
-
readonly "#374151": "#374151";
|
|
10
|
-
};
|
|
11
|
-
export declare const SYSTEM_COLORS_THEME_2: {
|
|
12
|
-
readonly "#1e40af": "#1e40af";
|
|
13
|
-
readonly "#166534": "#166534";
|
|
14
|
-
readonly "#b91c1c": "#b91c1c";
|
|
15
|
-
readonly "#6b21a8": "#6b21a8";
|
|
16
|
-
readonly "#c2410c": "#c2410c";
|
|
17
|
-
readonly "#0e7490": "#0e7490";
|
|
18
|
-
readonly "#be123c": "#be123c";
|
|
19
|
-
readonly "#1f2937": "#1f2937";
|
|
20
|
-
};
|
|
21
|
-
export declare const SYSTEM_COLORS_THEME_3: {
|
|
22
|
-
readonly "#2563eb": "#2563eb";
|
|
23
|
-
readonly "#16a34a": "#16a34a";
|
|
24
|
-
readonly "#dc2626": "#dc2626";
|
|
25
|
-
readonly "#9333ea": "#9333ea";
|
|
26
|
-
readonly "#ea580c": "#ea580c";
|
|
27
|
-
readonly "#0d9488": "#0d9488";
|
|
28
|
-
readonly "#e11d48": "#e11d48";
|
|
29
|
-
readonly "#4b5563": "#4b5563";
|
|
30
|
-
};
|
|
31
|
-
export declare const SYSTEM_COLORS_THEME_4: {
|
|
32
|
-
readonly "#1d4ed8": "#1d4ed8";
|
|
33
|
-
readonly "#047857": "#047857";
|
|
34
|
-
readonly "#b91c1c": "#b91c1c";
|
|
35
|
-
readonly "#7c2d12": "#7c2d12";
|
|
36
|
-
readonly "#7c3aed": "#7c3aed";
|
|
37
|
-
readonly "#0369a1": "#0369a1";
|
|
38
|
-
readonly "#be185d": "#be185d";
|
|
39
|
-
readonly "#374151": "#374151";
|
|
40
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
interface CalendarDayProps {
|
|
3
|
-
handleClickDay: (day: Date) => void;
|
|
4
|
-
}
|
|
5
|
-
declare const TableDayOfWeekColumn: ({ handleClickDay, children, }: PropsWithChildren<CalendarDayProps>) => import("react/jsx-runtime").JSX.Element[];
|
|
6
|
-
export default TableDayOfWeekColumn;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { Booking, BookingDateAndTime } from '../../@types/booking';
|
|
3
|
-
interface CardProps {
|
|
4
|
-
booking: Booking;
|
|
5
|
-
slotData: BookingDateAndTime;
|
|
6
|
-
lastCard?: boolean;
|
|
7
|
-
half?: boolean;
|
|
8
|
-
cardsQuantity?: number;
|
|
9
|
-
cardIndex?: number;
|
|
10
|
-
hoveringAdditionalCardId?: string;
|
|
11
|
-
ref?: Ref<CardRef>;
|
|
12
|
-
}
|
|
13
|
-
export interface CardRef {
|
|
14
|
-
bookingId: string;
|
|
15
|
-
}
|
|
16
|
-
declare const CardContentWithResize: ({ booking, slotData, cardsQuantity, cardIndex, lastCard, half, hoveringAdditionalCardId, ref, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export default CardContentWithResize;
|