react-beauty-calendar 1.4.1 → 1.5.1

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.
Files changed (72) hide show
  1. package/dist/@types/booking.d.ts +1 -0
  2. package/dist/@types/calendar-instance.d.ts +13 -4
  3. package/dist/@types/index.d.ts +2 -2
  4. package/dist/@types/profile.d.ts +2 -0
  5. package/dist/@types/user.d.ts +3 -0
  6. package/dist/build/assets/main.css +1 -1
  7. package/dist/build/main.cjs.js +80 -39
  8. package/dist/build/main.es.js +15317 -13194
  9. package/dist/components/ui/Button.d.ts +1 -1
  10. package/dist/components/ui/Checkbox.d.ts +4 -0
  11. package/dist/constants/index.d.ts +3 -2
  12. package/dist/constants/resize-base-value.constant.d.ts +1 -0
  13. package/dist/constants/system-colors.constant.d.ts +39 -9
  14. package/dist/constants/user-colors-constants.d.ts +30 -0
  15. package/dist/context/date-and-time/DateAndTimeContext.d.ts +1 -1
  16. package/dist/context/emptySlotsStore/useEmptySlotStore.d.ts +3 -3
  17. package/dist/context/global/booking-info/booking-info.d.ts +0 -3
  18. package/dist/context/global/config/config-store.d.ts +4 -1
  19. package/dist/context/global/days-and-week/day-and-week-store.d.ts +8 -5
  20. package/dist/context/index.d.ts +4 -1
  21. package/dist/context/users-info/users-info-context.d.ts +2 -0
  22. package/dist/context/users-info/users-info-store.d.ts +15 -0
  23. package/dist/context/users-info/usersInfoProvider.d.ts +5 -0
  24. package/dist/core/Root.d.ts +1 -1
  25. package/dist/core/booking-card/BookingCardContent.d.ts +2 -2
  26. package/dist/core/booking-card/BookingCardOnResize.d.ts +3 -0
  27. package/dist/core/booking-card/CardContent.d.ts +3 -0
  28. package/dist/core/booking-card/inner-card-handle.d.ts +4 -0
  29. package/dist/core/booking-creation-dialog/BookingCreationDialog.d.ts +3 -0
  30. package/dist/core/booking-creation-dialog/BookingTabs.d.ts +4 -0
  31. package/dist/core/{header-calendar → booking-options}/SelectItem.d.ts +1 -1
  32. package/dist/core/calendar/CalendarHolder.d.ts +2 -1
  33. package/dist/core/calendar/HourWithActions.d.ts +2 -8
  34. package/dist/core/calendar/SlotRender.d.ts +3 -0
  35. package/dist/core/{slots → calendar}/Slots.d.ts +3 -1
  36. package/dist/core/card-slots/EmptySlot.d.ts +3 -0
  37. package/dist/core/card-slots/SlotTrigger.d.ts +1 -1
  38. package/dist/core/{slots → card-slots}/TimeInfo.d.ts +1 -2
  39. package/dist/core/slots/CardContentWithResize.d.ts +17 -0
  40. package/dist/core/table-view-type/BadgeCustom.d.ts +5 -0
  41. package/dist/core/table-view-type/Columns.d.ts +4 -0
  42. package/dist/core/table-view-type/TableViewType.d.ts +10 -1
  43. package/dist/hooks/index.d.ts +3 -1
  44. package/dist/hooks/useCalendarInstance.d.ts +1 -1
  45. package/dist/{core/slots → hooks}/useResizableBothSides.d.ts +2 -9
  46. package/dist/{core/slots → hooks}/useResizableCardHook.d.ts +1 -2
  47. package/dist/hooks/useUserInfoStore.d.ts +3 -0
  48. package/dist/mock/booking-mock.d.ts +2 -0
  49. package/dist/utils/buildEmptyTimeSlotKey.d.ts +2 -0
  50. package/dist/utils/date.utils.d.ts +3 -1
  51. package/dist/utils/forward.d.ts +8 -0
  52. package/dist/utils/hours.d.ts +1 -2
  53. package/dist/utils/index.d.ts +6 -2
  54. package/dist/utils/props.d.ts +47 -7
  55. package/dist/utils/string.utils.d.ts +1 -1
  56. package/package.json +1 -1
  57. package/dist/context/emptySlotsStore/emptySlotKey.d.ts +0 -3
  58. package/dist/core/booking-create/BookingCreate.d.ts +0 -17
  59. package/dist/core/calendar/ViewTypes.d.ts +0 -4
  60. package/dist/core/info/Info.d.ts +0 -7
  61. package/dist/core/slots/CardContent.d.ts +0 -3
  62. package/dist/core/slots/EmptySlot.d.ts +0 -3
  63. package/dist/core/slots/EventsTab.d.ts +0 -12
  64. package/dist/core/slots/SlotRender.d.ts +0 -14
  65. package/dist/core/slots/innerCardHandle/inner-card-handle.d.ts +0 -5
  66. /package/dist/core/{favorite-booking → booking-options}/FavoriteBooking.d.ts +0 -0
  67. /package/dist/core/{header-calendar → calendar}/DaysOfWeek.d.ts +0 -0
  68. /package/dist/core/{slots → card-slots}/CardBlockContent.d.ts +0 -0
  69. /package/dist/core/{slots → card-slots}/actualTimeIndicator/ActualTimeIndicator.d.ts +0 -0
  70. /package/dist/core/{slots → card-slots}/actualTimeIndicator/FirstDaySlot.d.ts +0 -0
  71. /package/dist/core/{slots → card-slots}/actualTimeIndicator/position-based-on-seconds.d.ts +0 -0
  72. /package/dist/core/{shortcut-commands → header-calendar}/ShortcutCommands.d.ts +0 -0
@@ -1,3 +0,0 @@
1
- import { BlockTimeData } from '../../utils/props';
2
- declare const buildEmptyTimeSlotKey: (slotData: BlockTimeData) => string;
3
- export default buildEmptyTimeSlotKey;
@@ -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;
@@ -1,4 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- type HandleViewTypePropsWithChildren = PropsWithChildren;
3
- declare const HandleViewType: ({ children }: HandleViewTypePropsWithChildren) => import('react').ReactNode;
4
- export default HandleViewType;
@@ -1,7 +0,0 @@
1
- type InfoLevel = "info" | "warning" | "error";
2
- interface InfoProps {
3
- message: string;
4
- level: InfoLevel;
5
- }
6
- declare const Info: ({ message, level }: InfoProps) => import("react/jsx-runtime").JSX.Element;
7
- export default Info;
@@ -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,3 +0,0 @@
1
- import { EmptySlotProps } from '../../utils/props';
2
- declare const EmptySlot: ({ bookings, first, second, third, fourth, disabledCss, firstDay, dayHour, }: EmptySlotProps) => import("react/jsx-runtime").JSX.Element;
3
- export default EmptySlot;
@@ -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;
@@ -1,5 +0,0 @@
1
- import { Booking } from '../../../@types';
2
- declare const InnerCardsHandle: {
3
- calculateOverlappingBookings: (currentBooking: Booking, allBookings: Booking[]) => number;
4
- };
5
- export { InnerCardsHandle };