@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.
@@ -2,4 +2,5 @@ import type React from "react";
2
2
  export interface DecorationPatternProps extends React.SVGAttributes<SVGElement> {
3
3
  children?: never;
4
4
  size?: string | number;
5
+ color?: string;
5
6
  }
@@ -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 { Resizable, type ResizableProps, type ResizeDirection, type Enable, type HandleStyles, type HandleClassName, type Size, type NumberSize, type HandleComponent, type ResizeCallback, type ResizeStartCallback, } from "re-resizable";
1
+ export * from "./Resizable";