react-beauty-calendar 1.0.6 → 1.0.7

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.
@@ -2,6 +2,9 @@ import { Booking, BookingDateAndTime } from '../../@types/booking';
2
2
  interface BookingCardProps {
3
3
  booking: Booking;
4
4
  slotData: BookingDateAndTime;
5
+ customClasses?: string | undefined;
6
+ heightStyleTransformer?: string;
7
+ onClick?: (() => void) | undefined;
5
8
  }
6
- declare const BookingCard: ({ booking, slotData }: BookingCardProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const BookingCard: ({ booking, slotData, onClick, heightStyleTransformer, customClasses, }: BookingCardProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export default BookingCard;
@@ -0,0 +1,12 @@
1
+ import { Transform } from '@dnd-kit/utilities';
2
+ import { PropsWithChildren } from 'react';
3
+ import { Side } from './BookingInfoOptions';
4
+ interface BookingInfoContextProps {
5
+ side: Side;
6
+ xAxis: number;
7
+ yAxis: number;
8
+ updatePosition: (transform: Transform | null) => void;
9
+ }
10
+ type BookingInfoContextPropsWithChild = PropsWithChildren<BookingInfoContextProps>;
11
+ declare const BookingInfoContext: ({ side, xAxis, yAxis, updatePosition, children, }: BookingInfoContextPropsWithChild) => import("react/jsx-runtime").JSX.Element;
12
+ export default BookingInfoContext;
@@ -1,10 +1,10 @@
1
- import { Dispatch, PropsWithChildren, SetStateAction } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { Booking } from '../../@types/booking';
3
3
  import { SIDE_OPTIONS } from '../../constants';
4
4
  interface BookingInfoOptionsProps {
5
5
  side: Side;
6
6
  booking: Booking;
7
- onOpenChange: Dispatch<SetStateAction<boolean>>;
7
+ onOpenChange: React.Dispatch<React.SetStateAction<boolean>>;
8
8
  isEditingOpen: boolean;
9
9
  }
10
10
  export type Side = (typeof SIDE_OPTIONS)[number];
@@ -1,4 +1,4 @@
1
- import { CSSProperties, Ref, SyntheticEvent } from 'react';
1
+ import { Ref, SyntheticEvent } from 'react';
2
2
  import { Booking } from '../../@types';
3
3
  import { BookingDateAndTime } from '../../@types/booking';
4
4
  import { DraggableAttributes } from '@dnd-kit/core';
@@ -21,8 +21,6 @@ interface CardContentProps {
21
21
  bookingViewType: string;
22
22
  slotData: BookingDateAndTime;
23
23
  heightStyleTransformer: string;
24
- pendingStyle?: React.CSSProperties;
25
- style?: CSSProperties | undefined;
26
24
  listeners?: SyntheticListenerMap | undefined;
27
25
  attributes?: DraggableAttributes;
28
26
  onClick?: () => void;
@@ -35,5 +33,5 @@ interface CardContentProps {
35
33
  ref?: Ref<CardContentForward>;
36
34
  }
37
35
  type CardContentForward = HTMLDivElement;
38
- declare const CardContent: ({ bookingInit, slotData, heightStyleTransformer, onClick, pendingStyle, style, listeners, attributes, customClasses, bookingViewType, resizableParam, events, open, ref, }: CardContentProps) => import("react/jsx-runtime").JSX.Element | null;
36
+ declare const CardContent: ({ bookingInit, slotData, heightStyleTransformer, onClick, customClasses, bookingViewType, resizableParam, events, open, }: CardContentProps) => import("react/jsx-runtime").JSX.Element | null;
39
37
  export default CardContent;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "private": false,
14
- "version": "1.0.6",
14
+ "version": "1.0.7",
15
15
  "keywords": [
16
16
  "react",
17
17
  "component",