react-beauty-calendar 1.4.0 → 1.5.0
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/dist/@types/booking.d.ts +1 -0
- package/dist/@types/calendar-instance.d.ts +13 -4
- package/dist/@types/index.d.ts +2 -2
- package/dist/@types/profile.d.ts +2 -0
- package/dist/@types/user.d.ts +3 -0
- package/dist/build/assets/main.css +1 -1
- package/dist/build/main.cjs.js +80 -39
- package/dist/build/main.es.js +15316 -13194
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Checkbox.d.ts +4 -0
- package/dist/constants/index.d.ts +3 -2
- package/dist/constants/resize-base-value.constant.d.ts +1 -0
- package/dist/constants/system-colors.constant.d.ts +39 -9
- package/dist/constants/user-colors-constants.d.ts +30 -0
- package/dist/context/date-and-time/DateAndTimeContext.d.ts +1 -1
- package/dist/context/emptySlotsStore/useEmptySlotStore.d.ts +3 -3
- package/dist/context/global/booking-info/booking-info.d.ts +0 -3
- package/dist/context/global/config/config-store.d.ts +4 -1
- package/dist/context/global/days-and-week/day-and-week-store.d.ts +8 -5
- package/dist/context/index.d.ts +4 -1
- package/dist/context/users-info/users-info-context.d.ts +2 -0
- package/dist/context/users-info/users-info-store.d.ts +15 -0
- package/dist/context/users-info/usersInfoProvider.d.ts +5 -0
- package/dist/core/Root.d.ts +1 -1
- package/dist/core/booking-card/BookingCardContent.d.ts +2 -2
- package/dist/core/booking-card/BookingCardOnResize.d.ts +3 -0
- package/dist/core/booking-card/CardContent.d.ts +3 -0
- package/dist/core/booking-card/inner-card-handle.d.ts +4 -0
- package/dist/core/booking-creation-dialog/BookingCreationDialog.d.ts +3 -0
- package/dist/core/booking-creation-dialog/BookingTabs.d.ts +4 -0
- package/dist/core/{header-calendar → booking-options}/SelectItem.d.ts +1 -1
- package/dist/core/calendar/CalendarHolder.d.ts +2 -1
- package/dist/core/calendar/HourWithActions.d.ts +2 -8
- package/dist/core/calendar/SlotRender.d.ts +3 -0
- package/dist/core/{slots → calendar}/Slots.d.ts +3 -1
- package/dist/core/card-slots/EmptySlot.d.ts +3 -0
- package/dist/core/card-slots/SlotTrigger.d.ts +1 -1
- package/dist/core/{slots → card-slots}/TimeInfo.d.ts +1 -2
- package/dist/core/slots/CardContentWithResize.d.ts +17 -0
- package/dist/core/table-view-type/BadgeCustom.d.ts +5 -0
- package/dist/core/table-view-type/Columns.d.ts +4 -0
- package/dist/core/table-view-type/TableViewType.d.ts +10 -1
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/useCalendarInstance.d.ts +1 -1
- package/dist/{core/slots → hooks}/useResizableBothSides.d.ts +2 -9
- package/dist/{core/slots → hooks}/useResizableCardHook.d.ts +1 -2
- package/dist/hooks/useUserInfoStore.d.ts +3 -0
- package/dist/mock/booking-mock.d.ts +2 -0
- package/dist/utils/buildEmptyTimeSlotKey.d.ts +2 -0
- package/dist/utils/date.utils.d.ts +3 -1
- package/dist/utils/forward.d.ts +8 -0
- package/dist/utils/hours.d.ts +1 -2
- package/dist/utils/index.d.ts +6 -2
- package/dist/utils/props.d.ts +47 -7
- package/dist/utils/string.utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/context/emptySlotsStore/emptySlotKey.d.ts +0 -3
- package/dist/core/booking-create/BookingCreate.d.ts +0 -17
- package/dist/core/calendar/ViewTypes.d.ts +0 -4
- package/dist/core/info/Info.d.ts +0 -7
- package/dist/core/slots/CardContent.d.ts +0 -3
- package/dist/core/slots/EmptySlot.d.ts +0 -3
- package/dist/core/slots/EventsTab.d.ts +0 -12
- package/dist/core/slots/SlotRender.d.ts +0 -14
- package/dist/core/slots/innerCardHandle/inner-card-handle.d.ts +0 -5
- /package/dist/core/{favorite-booking → booking-options}/FavoriteBooking.d.ts +0 -0
- /package/dist/core/{header-calendar → calendar}/DaysOfWeek.d.ts +0 -0
- /package/dist/core/{slots → card-slots}/CardBlockContent.d.ts +0 -0
- /package/dist/core/{slots → card-slots}/actualTimeIndicator/ActualTimeIndicator.d.ts +0 -0
- /package/dist/core/{slots → card-slots}/actualTimeIndicator/FirstDaySlot.d.ts +0 -0
- /package/dist/core/{slots → card-slots}/actualTimeIndicator/position-based-on-seconds.d.ts +0 -0
- /package/dist/core/{shortcut-commands → header-calendar}/ShortcutCommands.d.ts +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { JSX, Ref } from 'react';
|
|
2
|
-
import { Side } from '../booking-options/BookingInfoOptions';
|
|
3
|
-
interface BookingCreateProps {
|
|
4
|
-
modal?: boolean;
|
|
5
|
-
side?: Side;
|
|
6
|
-
buttonTrigger?: JSX.Element;
|
|
7
|
-
onClose?: () => void;
|
|
8
|
-
onOpenChange?: (status: boolean) => void;
|
|
9
|
-
ref: Ref<BookingCreateRef>;
|
|
10
|
-
}
|
|
11
|
-
export interface BookingCreateRef {
|
|
12
|
-
showCreationModal: () => void;
|
|
13
|
-
closeModal: () => void;
|
|
14
|
-
isModalOpen: () => boolean;
|
|
15
|
-
}
|
|
16
|
-
declare const BookingCreate: ({ modal, side, onClose, onOpenChange, buttonTrigger, ref, }: BookingCreateProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export default BookingCreate;
|
package/dist/core/info/Info.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { CardContentProps } from '../../utils/props';
|
|
2
|
-
declare const CardContent: ({ bookingInit, slotData, heightStyle, topHeightIncrement, customClasses, bookingViewType, resizableParam, events, open, lastCard, half, cardContentRef: dataRef, cardsQuantity, cardIndex, hoveringAdditionalCardId, ref, }: CardContentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
-
export default CardContent;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { JSX, PropsWithChildren } from 'react';
|
|
2
|
-
import { Side } from '../booking-options/BookingInfoOptions';
|
|
3
|
-
interface EventTabsProps {
|
|
4
|
-
side?: Side;
|
|
5
|
-
buttonTrigger?: JSX.Element;
|
|
6
|
-
modal?: boolean;
|
|
7
|
-
onClose: (event: React.MouseEvent) => void;
|
|
8
|
-
onOpenChange: (status: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
type EventTabsWithChildren = PropsWithChildren<EventTabsProps>;
|
|
11
|
-
declare const EventTabs: ({ onClose, side, onOpenChange, buttonTrigger, modal, children, }: EventTabsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default EventTabs;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Booking, BookingDateAndTime } from '../../@types/booking';
|
|
2
|
-
import { BlocksTimeStructure } from '../../utils/props';
|
|
3
|
-
interface SlotRenderProps {
|
|
4
|
-
firstDay: boolean;
|
|
5
|
-
booking: Booking[];
|
|
6
|
-
dayHour: BookingDateAndTime;
|
|
7
|
-
disabledCss: string;
|
|
8
|
-
firstBlockTimeData: BlocksTimeStructure;
|
|
9
|
-
secondBlockTimeData: BlocksTimeStructure;
|
|
10
|
-
thirdBlockTimeData: BlocksTimeStructure;
|
|
11
|
-
fourthBlockTimeData: BlocksTimeStructure;
|
|
12
|
-
}
|
|
13
|
-
declare const SlotRender: import('react').MemoExoticComponent<({ firstDay, booking, dayHour, disabledCss, firstBlockTimeData, secondBlockTimeData, thirdBlockTimeData, fourthBlockTimeData, }: SlotRenderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
-
export default SlotRender;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|