@gusarov-studio/rubik-ui 4.3.0 → 5.0.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.
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Resizable as ReResizable, type ResizableProps as ReResizableProps, type ResizeDirection, type ResizeStartCallback as ReResizeStartCallback, type ResizeCallback as ReResizeCallback, type NumberSize, type HandleComponent, type HandleClassName, type HandleStyles, type Enable } from "re-resizable";
|
|
3
|
+
interface ResizeData {
|
|
4
|
+
dir: ResizeDirection;
|
|
5
|
+
refToElement: HTMLElement;
|
|
6
|
+
delta: NumberSize;
|
|
7
|
+
}
|
|
8
|
+
type ResizeStartCallback = (resizeData: Omit<ResizeData, "delta">, event: Parameters<ReResizeStartCallback>[0]) => ReturnType<ReResizeStartCallback>;
|
|
9
|
+
type ResizeCallback = (resizeData: ResizeData, event: Parameters<ReResizeCallback>[0]) => ReturnType<ReResizeCallback>;
|
|
10
|
+
interface ResizableProps extends Omit<ReResizableProps, "onResizeStart" | "onResize" | "onResizeStop"> {
|
|
11
|
+
onResizeStart?: ResizeStartCallback;
|
|
12
|
+
onResize?: ResizeCallback;
|
|
13
|
+
onResizeStop?: ResizeCallback;
|
|
14
|
+
}
|
|
15
|
+
declare const Resizable: React.ForwardRefExoticComponent<ResizableProps & React.RefAttributes<ReResizable>>;
|
|
16
|
+
export { Resizable, type ResizableProps, type ResizeDirection, type ResizeData, type ResizeStartCallback, type ResizeCallback, type HandleComponent, type HandleClassName, type HandleStyles, type Enable, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./Resizable";
|