platform-calendar-seatmap 1.0.9 → 1.0.11
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/components/background/Background.d.ts +5 -2
- package/dist/components/elementWrapper/ElementWrapper.d.ts +2 -0
- package/dist/components/mouseSeatSelector/MouseSeatSelector.d.ts +2 -5
- package/dist/components/rotate/Rotate.d.ts +2 -0
- package/dist/hooks/useElementWrapperActionHandlers.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { FC,
|
|
2
|
-
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
type T_Props = {
|
|
3
|
+
children: (ref: React.MutableRefObject<HTMLDivElement>) => ReactNode;
|
|
4
|
+
};
|
|
5
|
+
declare const Background: FC<T_Props>;
|
|
3
6
|
export { Background };
|
|
@@ -4,9 +4,11 @@ type T_Props = {
|
|
|
4
4
|
rotateContainer: MutableRefObject<HTMLElement | null>;
|
|
5
5
|
elementId: T_Element['id'];
|
|
6
6
|
disablePadding?: boolean;
|
|
7
|
+
initialRotateAngle?: number;
|
|
7
8
|
onEdit?: () => void;
|
|
8
9
|
onDelete?: () => void;
|
|
9
10
|
onDuplicate?: () => void;
|
|
11
|
+
onRotate?: (angle: number) => void;
|
|
10
12
|
};
|
|
11
13
|
declare const ElementWrapper: FC<PropsWithChildren<T_Props>>;
|
|
12
14
|
export { ElementWrapper };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FC, RefObject } from 'react';
|
|
1
|
+
import { FC } from 'react';
|
|
3
2
|
type T_Props = {
|
|
4
|
-
|
|
5
|
-
elementType?: typeof SEAT_MAP_ELEMENTS.tables | typeof SEAT_MAP_ELEMENTS.seatingGroup;
|
|
6
|
-
elementId?: T_Element['id'];
|
|
3
|
+
wrapperRef: React.MutableRefObject<HTMLDivElement>;
|
|
7
4
|
};
|
|
8
5
|
declare const MouseSeatSelector: FC<T_Props>;
|
|
9
6
|
export { MouseSeatSelector };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FC, MutableRefObject, PropsWithChildren } from 'react';
|
|
2
2
|
type T_Props = {
|
|
3
3
|
rotateContainer: MutableRefObject<HTMLElement | null>;
|
|
4
|
+
onRotateEnd: (angle: number) => void;
|
|
5
|
+
initialAngle?: number;
|
|
4
6
|
};
|
|
5
7
|
declare const Rotate: FC<PropsWithChildren<T_Props>>;
|
|
6
8
|
export { Rotate };
|