@gusarov-studio/rubik-ui 20.3.0 → 20.4.0
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/DnD/index.d.ts +3 -0
- package/dist/DnD/utils/getEmptyImage.d.ts +2 -0
- package/dist/FileTabs/hooks/useDragFileTab.d.ts +1 -1
- package/dist/FileTabs/hooks/useDropFileTab.d.ts +1 -1
- package/dist/FileTabs/utils/getDropSide.d.ts +1 -1
- package/dist/FileTabs/utils/getItemStyles.d.ts +1 -1
- package/dist/TreeView/TreeView.d.ts +13 -0
- package/dist/TreeView/TreeViewItem.d.ts +16 -0
- package/dist/TreeView/index.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DropTargetMonitor } from "
|
|
1
|
+
import type { DropTargetMonitor } from "../../DnD";
|
|
2
2
|
export declare const getDropSide: (monitor: DropTargetMonitor, element: HTMLElement) => "left" | "right" | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Tree, useDragOver, type TreeProps, type NodeModel, type RenderParams, type TreeMethods, type DragOverProps, type DragLayerMonitorProps, type DropOptions, type CanDropHandler, type CanDragHandler } from "@minoru/react-dnd-treeview";
|
|
3
|
+
interface TreeViewProps<T> extends Omit<TreeProps<T>, "tree" | "onDrop" | "render" | "onChangeOpen"> {
|
|
4
|
+
items: TreeProps<T>["tree"];
|
|
5
|
+
onChange: TreeProps<T>["onDrop"];
|
|
6
|
+
itemRender: TreeProps<T>["render"];
|
|
7
|
+
onOpenChange?: TreeProps<T>["onChangeOpen"];
|
|
8
|
+
}
|
|
9
|
+
type TTree<T> = typeof Tree<T>;
|
|
10
|
+
declare const MemorizedTreeView: <T>(props: TreeViewProps<T> & {
|
|
11
|
+
ref?: React.Ref<React.ComponentRef<TTree<T>>> | null;
|
|
12
|
+
}) => ReturnType<TTree<T>>;
|
|
13
|
+
export { MemorizedTreeView as TreeView, useDragOver, type NodeModel, type RenderParams, type TreeViewProps, type TreeMethods, type DragOverProps, type DragLayerMonitorProps, type DropOptions, type CanDropHandler, type CanDragHandler, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface TreeViewItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "prefix"> {
|
|
3
|
+
prefix?: React.ReactNode;
|
|
4
|
+
suffix?: React.ReactNode;
|
|
5
|
+
variant?: "primary" | "secondary";
|
|
6
|
+
width?: React.CSSProperties["width"];
|
|
7
|
+
height?: React.CSSProperties["height"];
|
|
8
|
+
className?: string;
|
|
9
|
+
withShadow?: boolean;
|
|
10
|
+
withBorder?: boolean;
|
|
11
|
+
isDropTarget?: boolean;
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const MemorizedTreeViewItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<TreeViewItemProps & React.RefAttributes<HTMLDivElement>>>;
|
|
16
|
+
export { MemorizedTreeViewItem as TreeViewItem, type TreeViewItemProps };
|