@vuu-ui/vuu-layout 0.0.26
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/LICENSE +201 -0
- package/README.md +1 -0
- package/cjs/Component.js +14 -0
- package/cjs/Component.js.map +1 -0
- package/cjs/DraggableLayout.css.js +6 -0
- package/cjs/DraggableLayout.css.js.map +1 -0
- package/cjs/DraggableLayout.js +33 -0
- package/cjs/DraggableLayout.js.map +1 -0
- package/cjs/dock-layout/DockLayout.css.js +6 -0
- package/cjs/dock-layout/DockLayout.css.js.map +1 -0
- package/cjs/dock-layout/DockLayout.js +36 -0
- package/cjs/dock-layout/DockLayout.js.map +1 -0
- package/cjs/dock-layout/Drawer.css.js +6 -0
- package/cjs/dock-layout/Drawer.css.js.map +1 -0
- package/cjs/dock-layout/Drawer.js +96 -0
- package/cjs/dock-layout/Drawer.js.map +1 -0
- package/cjs/drag-drop/BoxModel.js +422 -0
- package/cjs/drag-drop/BoxModel.js.map +1 -0
- package/cjs/drag-drop/DragState.js +154 -0
- package/cjs/drag-drop/DragState.js.map +1 -0
- package/cjs/drag-drop/Draggable.js +192 -0
- package/cjs/drag-drop/Draggable.js.map +1 -0
- package/cjs/drag-drop/DropMenu.css.js +6 -0
- package/cjs/drag-drop/DropMenu.css.js.map +1 -0
- package/cjs/drag-drop/DropMenu.js +55 -0
- package/cjs/drag-drop/DropMenu.js.map +1 -0
- package/cjs/drag-drop/DropTarget.js +244 -0
- package/cjs/drag-drop/DropTarget.js.map +1 -0
- package/cjs/drag-drop/DropTargetRenderer.js +244 -0
- package/cjs/drag-drop/DropTargetRenderer.js.map +1 -0
- package/cjs/flexbox/Flexbox.css.js +6 -0
- package/cjs/flexbox/Flexbox.css.js.map +1 -0
- package/cjs/flexbox/Flexbox.js +70 -0
- package/cjs/flexbox/Flexbox.js.map +1 -0
- package/cjs/flexbox/FlexboxLayout.js +30 -0
- package/cjs/flexbox/FlexboxLayout.js.map +1 -0
- package/cjs/flexbox/FluidGrid.css.js +6 -0
- package/cjs/flexbox/FluidGrid.css.js.map +1 -0
- package/cjs/flexbox/FluidGrid.js +87 -0
- package/cjs/flexbox/FluidGrid.js.map +1 -0
- package/cjs/flexbox/FluidGridLayout.js +14 -0
- package/cjs/flexbox/FluidGridLayout.js.map +1 -0
- package/cjs/flexbox/Splitter.css.js +6 -0
- package/cjs/flexbox/Splitter.css.js.map +1 -0
- package/cjs/flexbox/Splitter.js +122 -0
- package/cjs/flexbox/Splitter.js.map +1 -0
- package/cjs/flexbox/flexbox-utils.js +109 -0
- package/cjs/flexbox/flexbox-utils.js.map +1 -0
- package/cjs/flexbox/useResponsiveSizing.js +62 -0
- package/cjs/flexbox/useResponsiveSizing.js.map +1 -0
- package/cjs/flexbox/useSplitterResizing.js +209 -0
- package/cjs/flexbox/useSplitterResizing.js.map +1 -0
- package/cjs/index.js +133 -0
- package/cjs/index.js.map +1 -0
- package/cjs/layout-action.js +27 -0
- package/cjs/layout-action.js.map +1 -0
- package/cjs/layout-header/Header.css.js +6 -0
- package/cjs/layout-header/Header.css.js.map +1 -0
- package/cjs/layout-header/Header.js +131 -0
- package/cjs/layout-header/Header.js.map +1 -0
- package/cjs/layout-provider/LayoutProvider.js +178 -0
- package/cjs/layout-provider/LayoutProvider.js.map +1 -0
- package/cjs/layout-provider/LayoutProviderContext.js +14 -0
- package/cjs/layout-provider/LayoutProviderContext.js.map +1 -0
- package/cjs/layout-provider/useLayoutDragDrop.js +172 -0
- package/cjs/layout-provider/useLayoutDragDrop.js.map +1 -0
- package/cjs/layout-reducer/flexUtils.js +219 -0
- package/cjs/layout-reducer/flexUtils.js.map +1 -0
- package/cjs/layout-reducer/insert-layout-element.js +273 -0
- package/cjs/layout-reducer/insert-layout-element.js.map +1 -0
- package/cjs/layout-reducer/layout-reducer.js +198 -0
- package/cjs/layout-reducer/layout-reducer.js.map +1 -0
- package/cjs/layout-reducer/layoutTypes.js +41 -0
- package/cjs/layout-reducer/layoutTypes.js.map +1 -0
- package/cjs/layout-reducer/layoutUtils.js +226 -0
- package/cjs/layout-reducer/layoutUtils.js.map +1 -0
- package/cjs/layout-reducer/move-layout-element.js +31 -0
- package/cjs/layout-reducer/move-layout-element.js.map +1 -0
- package/cjs/layout-reducer/remove-layout-element.js +223 -0
- package/cjs/layout-reducer/remove-layout-element.js.map +1 -0
- package/cjs/layout-reducer/replace-layout-element.js +91 -0
- package/cjs/layout-reducer/replace-layout-element.js.map +1 -0
- package/cjs/layout-reducer/resize-flex-children.js +61 -0
- package/cjs/layout-reducer/resize-flex-children.js.map +1 -0
- package/cjs/layout-reducer/wrap-layout-element.js +212 -0
- package/cjs/layout-reducer/wrap-layout-element.js.map +1 -0
- package/cjs/layout-view/View.css.js +6 -0
- package/cjs/layout-view/View.css.js.map +1 -0
- package/cjs/layout-view/View.js +164 -0
- package/cjs/layout-view/View.js.map +1 -0
- package/cjs/layout-view/useView.js +92 -0
- package/cjs/layout-view/useView.js.map +1 -0
- package/cjs/layout-view/useViewResize.js +42 -0
- package/cjs/layout-view/useViewResize.js.map +1 -0
- package/cjs/layout-view-actions/ViewContext.js +16 -0
- package/cjs/layout-view-actions/ViewContext.js.map +1 -0
- package/cjs/layout-view-actions/useViewActionDispatcher.js +103 -0
- package/cjs/layout-view-actions/useViewActionDispatcher.js.map +1 -0
- package/cjs/palette/Palette.css.js +6 -0
- package/cjs/palette/Palette.css.js.map +1 -0
- package/cjs/palette/Palette.js +127 -0
- package/cjs/palette/Palette.js.map +1 -0
- package/cjs/placeholder/LayoutStartPanel.css.js +6 -0
- package/cjs/placeholder/LayoutStartPanel.css.js.map +1 -0
- package/cjs/placeholder/LayoutStartPanel.js +60 -0
- package/cjs/placeholder/LayoutStartPanel.js.map +1 -0
- package/cjs/placeholder/Placeholder.css.js +6 -0
- package/cjs/placeholder/Placeholder.css.js.map +1 -0
- package/cjs/placeholder/Placeholder.js +34 -0
- package/cjs/placeholder/Placeholder.js.map +1 -0
- package/cjs/registry/ComponentRegistry.js +27 -0
- package/cjs/registry/ComponentRegistry.js.map +1 -0
- package/cjs/responsive/breakpoints.js +36 -0
- package/cjs/responsive/breakpoints.js.map +1 -0
- package/cjs/responsive/use-breakpoints.js +76 -0
- package/cjs/responsive/use-breakpoints.js.map +1 -0
- package/cjs/responsive/useResizeObserver.js +118 -0
- package/cjs/responsive/useResizeObserver.js.map +1 -0
- package/cjs/responsive/utils.js +34 -0
- package/cjs/responsive/utils.js.map +1 -0
- package/cjs/stack/Stack.css.js +6 -0
- package/cjs/stack/Stack.css.js.map +1 -0
- package/cjs/stack/Stack.js +148 -0
- package/cjs/stack/Stack.js.map +1 -0
- package/cjs/stack/StackLayout.js +122 -0
- package/cjs/stack/StackLayout.js.map +1 -0
- package/cjs/use-persistent-state.js +109 -0
- package/cjs/use-persistent-state.js.map +1 -0
- package/cjs/utils/pathUtils.js +293 -0
- package/cjs/utils/pathUtils.js.map +1 -0
- package/cjs/utils/propUtils.js +27 -0
- package/cjs/utils/propUtils.js.map +1 -0
- package/cjs/utils/refUtils.js +12 -0
- package/cjs/utils/refUtils.js.map +1 -0
- package/cjs/utils/styleUtils.js +15 -0
- package/cjs/utils/styleUtils.js.map +1 -0
- package/cjs/utils/typeOf.js +27 -0
- package/cjs/utils/typeOf.js.map +1 -0
- package/esm/Component.js +12 -0
- package/esm/Component.js.map +1 -0
- package/esm/DraggableLayout.css.js +4 -0
- package/esm/DraggableLayout.css.js.map +1 -0
- package/esm/DraggableLayout.js +31 -0
- package/esm/DraggableLayout.js.map +1 -0
- package/esm/dock-layout/DockLayout.css.js +4 -0
- package/esm/dock-layout/DockLayout.css.js.map +1 -0
- package/esm/dock-layout/DockLayout.js +34 -0
- package/esm/dock-layout/DockLayout.js.map +1 -0
- package/esm/dock-layout/Drawer.css.js +4 -0
- package/esm/dock-layout/Drawer.css.js.map +1 -0
- package/esm/dock-layout/Drawer.js +94 -0
- package/esm/dock-layout/Drawer.js.map +1 -0
- package/esm/drag-drop/BoxModel.js +415 -0
- package/esm/drag-drop/BoxModel.js.map +1 -0
- package/esm/drag-drop/DragState.js +152 -0
- package/esm/drag-drop/DragState.js.map +1 -0
- package/esm/drag-drop/Draggable.js +190 -0
- package/esm/drag-drop/Draggable.js.map +1 -0
- package/esm/drag-drop/DropMenu.css.js +4 -0
- package/esm/drag-drop/DropMenu.css.js.map +1 -0
- package/esm/drag-drop/DropMenu.js +52 -0
- package/esm/drag-drop/DropMenu.js.map +1 -0
- package/esm/drag-drop/DropTarget.js +240 -0
- package/esm/drag-drop/DropTarget.js.map +1 -0
- package/esm/drag-drop/DropTargetRenderer.js +242 -0
- package/esm/drag-drop/DropTargetRenderer.js.map +1 -0
- package/esm/flexbox/Flexbox.css.js +4 -0
- package/esm/flexbox/Flexbox.css.js.map +1 -0
- package/esm/flexbox/Flexbox.js +68 -0
- package/esm/flexbox/Flexbox.js.map +1 -0
- package/esm/flexbox/FlexboxLayout.js +28 -0
- package/esm/flexbox/FlexboxLayout.js.map +1 -0
- package/esm/flexbox/FluidGrid.css.js +4 -0
- package/esm/flexbox/FluidGrid.css.js.map +1 -0
- package/esm/flexbox/FluidGrid.js +85 -0
- package/esm/flexbox/FluidGrid.js.map +1 -0
- package/esm/flexbox/FluidGridLayout.js +12 -0
- package/esm/flexbox/FluidGridLayout.js.map +1 -0
- package/esm/flexbox/Splitter.css.js +4 -0
- package/esm/flexbox/Splitter.css.js.map +1 -0
- package/esm/flexbox/Splitter.js +120 -0
- package/esm/flexbox/Splitter.js.map +1 -0
- package/esm/flexbox/flexbox-utils.js +103 -0
- package/esm/flexbox/flexbox-utils.js.map +1 -0
- package/esm/flexbox/useResponsiveSizing.js +60 -0
- package/esm/flexbox/useResponsiveSizing.js.map +1 -0
- package/esm/flexbox/useSplitterResizing.js +207 -0
- package/esm/flexbox/useSplitterResizing.js.map +1 -0
- package/esm/index.js +37 -0
- package/esm/index.js.map +1 -0
- package/esm/layout-action.js +25 -0
- package/esm/layout-action.js.map +1 -0
- package/esm/layout-header/Header.css.js +4 -0
- package/esm/layout-header/Header.css.js.map +1 -0
- package/esm/layout-header/Header.js +129 -0
- package/esm/layout-header/Header.js.map +1 -0
- package/esm/layout-provider/LayoutProvider.js +172 -0
- package/esm/layout-provider/LayoutProvider.js.map +1 -0
- package/esm/layout-provider/LayoutProviderContext.js +12 -0
- package/esm/layout-provider/LayoutProviderContext.js.map +1 -0
- package/esm/layout-provider/useLayoutDragDrop.js +170 -0
- package/esm/layout-provider/useLayoutDragDrop.js.map +1 -0
- package/esm/layout-reducer/flexUtils.js +210 -0
- package/esm/layout-reducer/flexUtils.js.map +1 -0
- package/esm/layout-reducer/insert-layout-element.js +269 -0
- package/esm/layout-reducer/insert-layout-element.js.map +1 -0
- package/esm/layout-reducer/layout-reducer.js +196 -0
- package/esm/layout-reducer/layout-reducer.js.map +1 -0
- package/esm/layout-reducer/layoutTypes.js +37 -0
- package/esm/layout-reducer/layoutTypes.js.map +1 -0
- package/esm/layout-reducer/layoutUtils.js +215 -0
- package/esm/layout-reducer/layoutUtils.js.map +1 -0
- package/esm/layout-reducer/move-layout-element.js +29 -0
- package/esm/layout-reducer/move-layout-element.js.map +1 -0
- package/esm/layout-reducer/remove-layout-element.js +221 -0
- package/esm/layout-reducer/remove-layout-element.js.map +1 -0
- package/esm/layout-reducer/replace-layout-element.js +87 -0
- package/esm/layout-reducer/replace-layout-element.js.map +1 -0
- package/esm/layout-reducer/resize-flex-children.js +58 -0
- package/esm/layout-reducer/resize-flex-children.js.map +1 -0
- package/esm/layout-reducer/wrap-layout-element.js +210 -0
- package/esm/layout-reducer/wrap-layout-element.js.map +1 -0
- package/esm/layout-view/View.css.js +4 -0
- package/esm/layout-view/View.css.js.map +1 -0
- package/esm/layout-view/View.js +162 -0
- package/esm/layout-view/View.js.map +1 -0
- package/esm/layout-view/useView.js +90 -0
- package/esm/layout-view/useView.js.map +1 -0
- package/esm/layout-view/useViewResize.js +40 -0
- package/esm/layout-view/useViewResize.js.map +1 -0
- package/esm/layout-view-actions/ViewContext.js +12 -0
- package/esm/layout-view-actions/ViewContext.js.map +1 -0
- package/esm/layout-view-actions/useViewActionDispatcher.js +101 -0
- package/esm/layout-view-actions/useViewActionDispatcher.js.map +1 -0
- package/esm/palette/Palette.css.js +4 -0
- package/esm/palette/Palette.css.js.map +1 -0
- package/esm/palette/Palette.js +124 -0
- package/esm/palette/Palette.js.map +1 -0
- package/esm/placeholder/LayoutStartPanel.css.js +4 -0
- package/esm/placeholder/LayoutStartPanel.css.js.map +1 -0
- package/esm/placeholder/LayoutStartPanel.js +58 -0
- package/esm/placeholder/LayoutStartPanel.js.map +1 -0
- package/esm/placeholder/Placeholder.css.js +4 -0
- package/esm/placeholder/Placeholder.css.js.map +1 -0
- package/esm/placeholder/Placeholder.js +32 -0
- package/esm/placeholder/Placeholder.js.map +1 -0
- package/esm/registry/ComponentRegistry.js +21 -0
- package/esm/registry/ComponentRegistry.js.map +1 -0
- package/esm/responsive/breakpoints.js +33 -0
- package/esm/responsive/breakpoints.js.map +1 -0
- package/esm/responsive/use-breakpoints.js +74 -0
- package/esm/responsive/use-breakpoints.js.map +1 -0
- package/esm/responsive/useResizeObserver.js +112 -0
- package/esm/responsive/useResizeObserver.js.map +1 -0
- package/esm/responsive/utils.js +31 -0
- package/esm/responsive/utils.js.map +1 -0
- package/esm/stack/Stack.css.js +4 -0
- package/esm/stack/Stack.css.js.map +1 -0
- package/esm/stack/Stack.js +146 -0
- package/esm/stack/Stack.js.map +1 -0
- package/esm/stack/StackLayout.js +120 -0
- package/esm/stack/StackLayout.js.map +1 -0
- package/esm/use-persistent-state.js +104 -0
- package/esm/use-persistent-state.js.map +1 -0
- package/esm/utils/pathUtils.js +280 -0
- package/esm/utils/pathUtils.js.map +1 -0
- package/esm/utils/propUtils.js +23 -0
- package/esm/utils/propUtils.js.map +1 -0
- package/esm/utils/refUtils.js +10 -0
- package/esm/utils/refUtils.js.map +1 -0
- package/esm/utils/styleUtils.js +13 -0
- package/esm/utils/styleUtils.js.map +1 -0
- package/esm/utils/typeOf.js +23 -0
- package/esm/utils/typeOf.js.map +1 -0
- package/package.json +43 -0
- package/types/Component.d.ts +7 -0
- package/types/DraggableLayout.d.ts +6 -0
- package/types/debug.d.ts +2 -0
- package/types/dock-layout/DockLayout.d.ts +9 -0
- package/types/dock-layout/Drawer.d.ts +17 -0
- package/types/dock-layout/index.d.ts +2 -0
- package/types/drag-drop/BoxModel.d.ts +143 -0
- package/types/drag-drop/DragState.d.ts +46 -0
- package/types/drag-drop/Draggable.d.ts +24 -0
- package/types/drag-drop/DropMenu.d.ts +9 -0
- package/types/drag-drop/DropTarget.d.ts +61 -0
- package/types/drag-drop/DropTargetRenderer.d.ts +17 -0
- package/types/drag-drop/dragDropTypes.d.ts +51 -0
- package/types/drag-drop/index.d.ts +4 -0
- package/types/flexbox/Flexbox.d.ts +4 -0
- package/types/flexbox/FlexboxLayout.d.ts +6 -0
- package/types/flexbox/FluidGrid.d.ts +6 -0
- package/types/flexbox/FluidGridLayout.d.ts +6 -0
- package/types/flexbox/Splitter.d.ts +12 -0
- package/types/flexbox/flexbox-utils.d.ts +12 -0
- package/types/flexbox/flexboxTypes.d.ts +51 -0
- package/types/flexbox/index.d.ts +4 -0
- package/types/flexbox/useResponsiveSizing.d.ts +10 -0
- package/types/flexbox/useSplitterResizing.d.ts +2 -0
- package/types/index.d.ts +18 -0
- package/types/layout-action.d.ts +22 -0
- package/types/layout-header/ActionButton.d.ts +8 -0
- package/types/layout-header/Header.d.ts +12 -0
- package/types/layout-header/index.d.ts +1 -0
- package/types/layout-provider/LayoutProvider.d.ts +15 -0
- package/types/layout-provider/LayoutProviderContext.d.ts +9 -0
- package/types/layout-provider/index.d.ts +2 -0
- package/types/layout-provider/useLayoutDragDrop.d.ts +4 -0
- package/types/layout-reducer/flexUtils.d.ts +22 -0
- package/types/layout-reducer/index.d.ts +4 -0
- package/types/layout-reducer/insert-layout-element.d.ts +8 -0
- package/types/layout-reducer/layout-reducer.d.ts +3 -0
- package/types/layout-reducer/layoutTypes.d.ts +193 -0
- package/types/layout-reducer/layoutUtils.d.ts +38 -0
- package/types/layout-reducer/move-layout-element.d.ts +3 -0
- package/types/layout-reducer/remove-layout-element.d.ts +3 -0
- package/types/layout-reducer/replace-layout-element.d.ts +6 -0
- package/types/layout-reducer/resize-flex-children.d.ts +4 -0
- package/types/layout-reducer/wrap-layout-element.d.ts +9 -0
- package/types/layout-view/View.d.ts +10 -0
- package/types/layout-view/index.d.ts +2 -0
- package/types/layout-view/useView.d.ts +21 -0
- package/types/layout-view/useViewResize.d.ts +7 -0
- package/types/layout-view/viewTypes.d.ts +21 -0
- package/types/layout-view-actions/ViewContext.d.ts +33 -0
- package/types/layout-view-actions/index.d.ts +2 -0
- package/types/layout-view-actions/useViewActionDispatcher.d.ts +9 -0
- package/types/palette/Palette.d.ts +21 -0
- package/types/palette/index.d.ts +1 -0
- package/types/placeholder/LayoutStartPanel.d.ts +5 -0
- package/types/placeholder/Placeholder.d.ts +17 -0
- package/types/placeholder/index.d.ts +1 -0
- package/types/registry/ComponentRegistry.d.ts +13 -0
- package/types/registry/index.d.ts +1 -0
- package/types/responsive/breakpoints.d.ts +4 -0
- package/types/responsive/index.d.ts +3 -0
- package/types/responsive/measureMinimumNodeSize.d.ts +1 -0
- package/types/responsive/overflowUtils.d.ts +2 -0
- package/types/responsive/use-breakpoints.d.ts +7 -0
- package/types/responsive/useResizeObserver.d.ts +13 -0
- package/types/responsive/utils.d.ts +6 -0
- package/types/stack/Stack.d.ts +3 -0
- package/types/stack/StackLayout.d.ts +6 -0
- package/types/stack/index.d.ts +3 -0
- package/types/stack/stackTypes.d.ts +22 -0
- package/types/tabs/TabPanel.d.ts +7 -0
- package/types/tabs/index.d.ts +1 -0
- package/types/tools/config-wrapper/ConfigWrapper.d.ts +2 -0
- package/types/tools/config-wrapper/index.d.ts +1 -0
- package/types/tools/devtools-box/layout-configurator.d.ts +31 -0
- package/types/tools/devtools-tree/layout-tree-viewer.d.ts +5 -0
- package/types/tools/index.d.ts +3 -0
- package/types/use-persistent-state.d.ts +11 -0
- package/types/utils/index.d.ts +5 -0
- package/types/utils/pathUtils.d.ts +31 -0
- package/types/utils/propUtils.d.ts +5 -0
- package/types/utils/refUtils.d.ts +2 -0
- package/types/utils/styleUtils.d.ts +3 -0
- package/types/utils/typeOf.d.ts +5 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DragDropRect } from './dragDropTypes';
|
|
2
|
+
export type IntrinsicSizes = {
|
|
3
|
+
height?: number;
|
|
4
|
+
width?: number;
|
|
5
|
+
};
|
|
6
|
+
interface ZoneRange {
|
|
7
|
+
hi: number;
|
|
8
|
+
lo: number;
|
|
9
|
+
}
|
|
10
|
+
type DragConstraint = {
|
|
11
|
+
zone: {
|
|
12
|
+
x: ZoneRange;
|
|
13
|
+
y: ZoneRange;
|
|
14
|
+
};
|
|
15
|
+
pos: {
|
|
16
|
+
x: ZoneRange;
|
|
17
|
+
y: ZoneRange;
|
|
18
|
+
};
|
|
19
|
+
mouse: {
|
|
20
|
+
x: ZoneRange;
|
|
21
|
+
y: ZoneRange;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
interface ExtendedZoneRange {
|
|
25
|
+
lo: boolean;
|
|
26
|
+
hi: boolean;
|
|
27
|
+
mousePct: number;
|
|
28
|
+
mousePos: number;
|
|
29
|
+
pos: number;
|
|
30
|
+
}
|
|
31
|
+
export declare class DragState {
|
|
32
|
+
constraint: DragConstraint;
|
|
33
|
+
x: ExtendedZoneRange;
|
|
34
|
+
y: ExtendedZoneRange;
|
|
35
|
+
intrinsicSize: IntrinsicSizes | undefined;
|
|
36
|
+
constructor(zone: DragDropRect, mouseX: number, mouseY: number, measurements: DragDropRect, intrinsicSize?: IntrinsicSizes);
|
|
37
|
+
init(zone: DragDropRect, mouseX: number, mouseY: number, rect: DragDropRect, intrinsicSize?: IntrinsicSizes): void;
|
|
38
|
+
outOfBounds(): boolean;
|
|
39
|
+
inBounds(): boolean;
|
|
40
|
+
dropX(): number;
|
|
41
|
+
dropY(): number;
|
|
42
|
+
hasIntrinsicSize(): number | undefined;
|
|
43
|
+
update(xy: 'x' | 'y', mousePos: number): boolean;
|
|
44
|
+
private dropXY;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { rect } from "@vuu-ui/vuu-utils";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { IntrinsicSizes } from "./DragState";
|
|
4
|
+
import { DropTarget } from "./DropTarget";
|
|
5
|
+
export type DragStartCallback = (e: MouseEvent, x: number, y: number) => void;
|
|
6
|
+
export type DragMoveCallback = (x: number | undefined, y: number | undefined) => void;
|
|
7
|
+
export type DragEndCallback = (droppedTarget?: Partial<DropTarget>) => void;
|
|
8
|
+
export type DragInstructions = {
|
|
9
|
+
DoNotRemove?: boolean;
|
|
10
|
+
DoNotTransform?: boolean;
|
|
11
|
+
dragThreshold?: number;
|
|
12
|
+
DriftHomeIfNoDropTarget?: boolean;
|
|
13
|
+
RemoveDraggableOnDragEnd?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const Draggable: {
|
|
16
|
+
handleMousedown(e: MouseEvent, dragStartCallback: DragStartCallback, dragInstructions?: DragInstructions): void;
|
|
17
|
+
initDrag(rootContainer: ReactElement, dragContainerPath: string, { top, left, right, bottom }: rect, dragPos: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
}, dragHandler: {
|
|
21
|
+
drag: DragMoveCallback;
|
|
22
|
+
drop: DragEndCallback;
|
|
23
|
+
}, intrinsicSize?: IntrinsicSizes, dropTargets?: string[]): string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import { DropTarget } from "./DropTarget";
|
|
3
|
+
export declare function computeMenuPosition(dropTarget: DropTarget, offsetTop?: number, offsetLeft?: number): [number, number, "left" | "bottom" | "right" | "top"];
|
|
4
|
+
export interface DropMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
dropTarget: DropTarget;
|
|
6
|
+
onHover: (target: DropTarget | null) => void;
|
|
7
|
+
orientation?: "left" | "top" | "right" | "bottom";
|
|
8
|
+
}
|
|
9
|
+
export declare const DropMenu: ({ className, dropTarget, onHover, orientation, }: DropMenuProps) => JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { rectTuple } from "@vuu-ui/vuu-utils";
|
|
2
|
+
import { LayoutModel } from "../layout-reducer";
|
|
3
|
+
import { Measurements } from "./BoxModel";
|
|
4
|
+
import { DragDropRect, DropPos, DropPosTab } from "./dragDropTypes";
|
|
5
|
+
import { DragState } from "./DragState";
|
|
6
|
+
export declare const isTabstrip: (dropTarget: DropTarget) => boolean | undefined;
|
|
7
|
+
export interface DropTargetProps {
|
|
8
|
+
component: LayoutModel;
|
|
9
|
+
pos: DropPos;
|
|
10
|
+
clientRect: DragDropRect;
|
|
11
|
+
nextDropTarget: DropTarget | null;
|
|
12
|
+
}
|
|
13
|
+
export type GuideLine = [
|
|
14
|
+
number,
|
|
15
|
+
number,
|
|
16
|
+
number,
|
|
17
|
+
number,
|
|
18
|
+
number,
|
|
19
|
+
number,
|
|
20
|
+
number,
|
|
21
|
+
number
|
|
22
|
+
];
|
|
23
|
+
export interface TargetDropOutline {
|
|
24
|
+
l: number;
|
|
25
|
+
r: number;
|
|
26
|
+
t: number;
|
|
27
|
+
b: number;
|
|
28
|
+
tabLeft?: number;
|
|
29
|
+
tabWidth?: number;
|
|
30
|
+
tabHeight?: number;
|
|
31
|
+
guideLines?: GuideLine;
|
|
32
|
+
}
|
|
33
|
+
export declare class DropTarget {
|
|
34
|
+
private active;
|
|
35
|
+
box: unknown;
|
|
36
|
+
clientRect: DragDropRect;
|
|
37
|
+
component: LayoutModel;
|
|
38
|
+
dropRect: rectTuple | undefined;
|
|
39
|
+
nextDropTarget: DropTarget | null;
|
|
40
|
+
pos: DropPos;
|
|
41
|
+
constructor({ component, pos, clientRect, nextDropTarget, }: DropTargetProps);
|
|
42
|
+
targetTabPos(tab: DropPosTab): number;
|
|
43
|
+
/**
|
|
44
|
+
* Determine what will be rendered by the dropTargetRenderer
|
|
45
|
+
*
|
|
46
|
+
* @param {*} lineWidth
|
|
47
|
+
* @param {*} dragState
|
|
48
|
+
* @returns {l, t, r, b, tabLeft, tabWidth, tabHeight}
|
|
49
|
+
*/
|
|
50
|
+
getTargetDropOutline(lineWidth: number, dragState?: DragState): TargetDropOutline;
|
|
51
|
+
getDropTabOutline(lineWidth: number, tab: DropPosTab): TargetDropOutline;
|
|
52
|
+
getIntrinsicDropRect(dragState: DragState): TargetDropOutline;
|
|
53
|
+
/**
|
|
54
|
+
* @returns [left, top, right, bottom]
|
|
55
|
+
*/
|
|
56
|
+
getDropRectOutline(lineWidth: number, dragState?: DragState): number[] | null;
|
|
57
|
+
activate(): this;
|
|
58
|
+
toArray(this: DropTarget): DropTarget[];
|
|
59
|
+
static getActiveDropTarget(dropTarget: DropTarget | null): DropTarget | null;
|
|
60
|
+
}
|
|
61
|
+
export declare function identifyDropTarget(x: number, y: number, rootLayout: LayoutModel, measurements: Measurements, intrinsicSize?: number, validDropTargets?: string[]): DropTarget | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DragDropRect } from "./dragDropTypes";
|
|
2
|
+
import { DragState } from "./DragState";
|
|
3
|
+
import { DropTarget } from "./DropTarget";
|
|
4
|
+
type Point = [number, number];
|
|
5
|
+
type TabMode = "full-view" | "tab-only";
|
|
6
|
+
export default class DropTargetCanvas {
|
|
7
|
+
private currentPath;
|
|
8
|
+
private tabMode;
|
|
9
|
+
constructor();
|
|
10
|
+
prepare(dragRect: DragDropRect, tabMode?: TabMode): void;
|
|
11
|
+
clear(): void;
|
|
12
|
+
get hoverDropTarget(): DropTarget | null;
|
|
13
|
+
getPoints(x: number, y: number, width: number, height: number, tabLeft?: number, tabWidth?: number, tabHeight?: number): Point[];
|
|
14
|
+
draw(dropTarget: DropTarget, dragState: DragState): void;
|
|
15
|
+
drawTarget(dropTarget: DropTarget, dragState?: DragState): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { rect } from "@vuu-ui/vuu-utils";
|
|
2
|
+
export interface DragDropRect extends rect {
|
|
3
|
+
children?: DragDropRect[];
|
|
4
|
+
header?: {
|
|
5
|
+
top: number;
|
|
6
|
+
left: number;
|
|
7
|
+
right: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
titleWidth?: number;
|
|
10
|
+
};
|
|
11
|
+
height: number;
|
|
12
|
+
scrolling?: {
|
|
13
|
+
id: string;
|
|
14
|
+
scrollTop: number;
|
|
15
|
+
scrollHeight: number;
|
|
16
|
+
};
|
|
17
|
+
Stack?: {
|
|
18
|
+
left: number;
|
|
19
|
+
right: number;
|
|
20
|
+
}[];
|
|
21
|
+
width: number;
|
|
22
|
+
}
|
|
23
|
+
export interface DropPosition {
|
|
24
|
+
Absolute: boolean;
|
|
25
|
+
Centre: boolean;
|
|
26
|
+
East: boolean;
|
|
27
|
+
EastOrWest: boolean;
|
|
28
|
+
Header: boolean;
|
|
29
|
+
North: boolean;
|
|
30
|
+
NorthOrSouth: boolean;
|
|
31
|
+
offset: number;
|
|
32
|
+
South: boolean;
|
|
33
|
+
SouthOrEast: boolean;
|
|
34
|
+
West: boolean;
|
|
35
|
+
}
|
|
36
|
+
export type RelativePosition = "after" | "before";
|
|
37
|
+
export type DropPosTab = {
|
|
38
|
+
index: number;
|
|
39
|
+
left: number;
|
|
40
|
+
positionRelativeToTab: RelativePosition;
|
|
41
|
+
width: number;
|
|
42
|
+
};
|
|
43
|
+
export interface DropPos {
|
|
44
|
+
closeToTheEdge: number;
|
|
45
|
+
height?: number;
|
|
46
|
+
position: DropPosition;
|
|
47
|
+
tab?: DropPosTab;
|
|
48
|
+
width?: number;
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexboxProps } from "./flexboxTypes";
|
|
3
|
+
export interface FluidGridProps extends FlexboxProps {
|
|
4
|
+
showGrid?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const FluidGrid: import("react").ForwardRefExoticComponent<FluidGridProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
export type SplitterDragStartHandler = (index: number) => void;
|
|
3
|
+
export type SplitterDragHandler = (index: number, distance: number) => void;
|
|
4
|
+
export type SplitterDragEndHandler = () => void;
|
|
5
|
+
export interface SplitterProps extends Omit<HTMLAttributes<HTMLDivElement>, "onDrag" | "onDragStart"> {
|
|
6
|
+
column: boolean;
|
|
7
|
+
index: number;
|
|
8
|
+
onDragStart: SplitterDragStartHandler;
|
|
9
|
+
onDrag: SplitterDragHandler;
|
|
10
|
+
onDragEnd: SplitterDragEndHandler;
|
|
11
|
+
}
|
|
12
|
+
export declare const Splitter: React.NamedExoticComponent<SplitterProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import type { BreakPoint, ContentMeta } from "./flexboxTypes";
|
|
3
|
+
export declare const SPLITTER = 1;
|
|
4
|
+
export declare const PLACEHOLDER = 2;
|
|
5
|
+
export declare const gatherChildMeta: (children: ReactElement[], dimension: "width" | "height", breakPoints?: BreakPoint[]) => {
|
|
6
|
+
index: number;
|
|
7
|
+
flexOpen: boolean;
|
|
8
|
+
intrinsicSize: number | undefined;
|
|
9
|
+
resizeable: any;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const findSplitterAndPlaceholderPositions: (childMeta: ContentMeta[]) => any[];
|
|
12
|
+
export declare const identifyResizeParties: (contentMeta: ContentMeta[], idx: number) => (number[] | undefined)[];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, MutableRefObject, ReactElement, ReactNode } from "react";
|
|
2
|
+
import { SplitterProps } from "./Splitter";
|
|
3
|
+
export interface LayoutContainerProps {
|
|
4
|
+
resizeable?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface FlexboxProps extends LayoutContainerProps, HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
breakPoints?: BreakPointsProp;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
cols?: number;
|
|
10
|
+
column?: true;
|
|
11
|
+
fullPage?: number;
|
|
12
|
+
flexFill?: boolean;
|
|
13
|
+
gap?: number;
|
|
14
|
+
onSplitterMoved?: (content: ContentMeta[]) => void;
|
|
15
|
+
row?: true;
|
|
16
|
+
spacing?: number;
|
|
17
|
+
splitterSize?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface FlexboxLayoutProps extends FlexboxProps {
|
|
20
|
+
path?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SplitterHookProps {
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
onSplitterMoved?: (content: ContentMeta[]) => void;
|
|
25
|
+
style?: CSSProperties;
|
|
26
|
+
}
|
|
27
|
+
export interface SplitterHookResult {
|
|
28
|
+
content: ReactElement[];
|
|
29
|
+
rootRef: MutableRefObject<HTMLDivElement | null>;
|
|
30
|
+
}
|
|
31
|
+
export type SplitterFactory = (index: number) => ReactElement<SplitterProps>;
|
|
32
|
+
export type ContentMeta = {
|
|
33
|
+
currentSize?: number;
|
|
34
|
+
flexOpen?: boolean;
|
|
35
|
+
flexBasis?: number;
|
|
36
|
+
intrinsicSize?: number;
|
|
37
|
+
minSize?: number;
|
|
38
|
+
placeholder?: boolean;
|
|
39
|
+
resizeable?: boolean;
|
|
40
|
+
shim?: boolean;
|
|
41
|
+
splitter?: boolean;
|
|
42
|
+
};
|
|
43
|
+
export type FlexSize = {
|
|
44
|
+
size: number;
|
|
45
|
+
minSize: number;
|
|
46
|
+
};
|
|
47
|
+
export type BreakPoint = "xs" | "sm" | "md" | "lg" | "xl";
|
|
48
|
+
export type BreakPoints = BreakPoint[];
|
|
49
|
+
export type BreakPointsProp = {
|
|
50
|
+
[keys in BreakPoint]?: number;
|
|
51
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties, ReactElement } from "react";
|
|
2
|
+
export declare const useResponsiveSizing: ({ children: childrenProp, cols: colsProp, style, }: {
|
|
3
|
+
children: ReactElement[];
|
|
4
|
+
cols?: number | undefined;
|
|
5
|
+
style?: CSSProperties | undefined;
|
|
6
|
+
}) => {
|
|
7
|
+
cols: number;
|
|
8
|
+
content: ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | undefined;
|
|
9
|
+
rootRef: import("react").MutableRefObject<null>;
|
|
10
|
+
};
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./dock-layout";
|
|
2
|
+
export { default as Component } from "./Component";
|
|
3
|
+
export * from "./drag-drop";
|
|
4
|
+
export * from "./DraggableLayout";
|
|
5
|
+
export * from "./flexbox";
|
|
6
|
+
export { Action } from "./layout-action";
|
|
7
|
+
export * from "./layout-header";
|
|
8
|
+
export * from "./layout-provider";
|
|
9
|
+
export * from "./layout-reducer";
|
|
10
|
+
export * from "./layout-view";
|
|
11
|
+
export * from "./layout-view-actions";
|
|
12
|
+
export * from "./palette";
|
|
13
|
+
export * from "./placeholder";
|
|
14
|
+
export * from "./registry";
|
|
15
|
+
export * from "./responsive";
|
|
16
|
+
export * from "./stack";
|
|
17
|
+
export * from "./use-persistent-state";
|
|
18
|
+
export * from "./utils";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const Action: {
|
|
2
|
+
ADD: string;
|
|
3
|
+
BLUR: string;
|
|
4
|
+
BLUR_SPLITTER: string;
|
|
5
|
+
DRAG_START: string;
|
|
6
|
+
DRAG_STARTED: string;
|
|
7
|
+
DRAG_DROP: string;
|
|
8
|
+
FOCUS: string;
|
|
9
|
+
FOCUS_SPLITTER: string;
|
|
10
|
+
INITIALIZE: string;
|
|
11
|
+
LAYOUT_RESIZE: string;
|
|
12
|
+
MAXIMIZE: string;
|
|
13
|
+
MINIMIZE: string;
|
|
14
|
+
REMOVE: string;
|
|
15
|
+
REPLACE: string;
|
|
16
|
+
RESTORE: string;
|
|
17
|
+
SAVE: string;
|
|
18
|
+
SET_TITLE: string;
|
|
19
|
+
SPLITTER_RESIZE: string;
|
|
20
|
+
SWITCH_TAB: string;
|
|
21
|
+
TEAR_OUT: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes, MouseEvent } from "react";
|
|
2
|
+
export interface ActionButtonProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
3
|
+
actionId: "maximize" | "minimize" | "restore" | "tearout";
|
|
4
|
+
iconName?: string;
|
|
5
|
+
onClick: (evt: MouseEvent, actionId: "maximize" | "minimize" | "restore" | "tearout") => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ActionButton: ({ actionId, className, iconName, onClick, ...props }: ActionButtonProps) => JSX.Element;
|
|
8
|
+
export default ActionButton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import { Contribution } from "../layout-view-actions";
|
|
3
|
+
export interface HeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
collapsed?: boolean;
|
|
5
|
+
contributions?: Contribution[];
|
|
6
|
+
expanded?: boolean;
|
|
7
|
+
closeable?: boolean;
|
|
8
|
+
onEditTitle: (value: string) => void;
|
|
9
|
+
orientation?: "horizontal" | "vertical";
|
|
10
|
+
tearOut?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Header: ({ className: classNameProp, contributions, collapsed, closeable, onEditTitle, orientation: orientationProp, style, title, }: HeaderProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { LayoutChangeHandler, LayoutJSON } from "../layout-reducer";
|
|
3
|
+
import { LayoutProviderDispatch } from "./LayoutProviderContext";
|
|
4
|
+
export interface LayoutProviderProps {
|
|
5
|
+
children: ReactElement;
|
|
6
|
+
createNewChild?: (index?: number) => ReactElement;
|
|
7
|
+
pathToDropTarget?: string;
|
|
8
|
+
layout?: LayoutJSON;
|
|
9
|
+
onLayoutChange?: LayoutChangeHandler;
|
|
10
|
+
}
|
|
11
|
+
export declare const LayoutProviderVersion: () => JSX.Element;
|
|
12
|
+
export declare const LayoutProvider: (props: LayoutProviderProps) => ReactElement;
|
|
13
|
+
export declare const useLayoutProviderDispatch: () => LayoutProviderDispatch;
|
|
14
|
+
export declare const useLayoutCreateNewChild: () => ((index?: number | undefined) => ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
15
|
+
export declare const useLayoutProviderVersion: () => number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dispatch, ReactElement } from "react";
|
|
2
|
+
import { DragStartAction, LayoutReducerAction, QueryAction, SaveAction } from "../layout-reducer";
|
|
3
|
+
export type LayoutProviderDispatch = Dispatch<LayoutReducerAction | SaveAction | DragStartAction | QueryAction>;
|
|
4
|
+
export interface LayoutProviderContextProps {
|
|
5
|
+
createNewChild?: (index?: number) => ReactElement;
|
|
6
|
+
dispatchLayoutProvider: LayoutProviderDispatch;
|
|
7
|
+
version: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const LayoutProviderContext: import("react").Context<LayoutProviderContextProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MutableRefObject, ReactElement } from "react";
|
|
2
|
+
import { DragStartAction } from "../layout-reducer";
|
|
3
|
+
import { LayoutProviderDispatch } from "./LayoutProviderContext";
|
|
4
|
+
export declare const useLayoutDragDrop: (rootLayoutRef: MutableRefObject<ReactElement>, dispatch: LayoutProviderDispatch, pathToDropTarget?: string) => (action: DragStartAction) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { dimension, rect, rectTuple } from "@vuu-ui/vuu-utils";
|
|
2
|
+
import React, { CSSProperties, ReactElement, ReactNode } from "react";
|
|
3
|
+
import { DropPos } from "../drag-drop/dragDropTypes";
|
|
4
|
+
export type flexDirection = "row" | "column";
|
|
5
|
+
type contraDimension = dimension;
|
|
6
|
+
type flexDimensionTuple = [dimension, contraDimension, flexDirection];
|
|
7
|
+
export type position = {
|
|
8
|
+
height?: number;
|
|
9
|
+
width?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const getFlexDimensions: (flexDirection?: flexDirection) => flexDimensionTuple;
|
|
12
|
+
export declare const getIntrinsicSize: (component: ReactElement) => {
|
|
13
|
+
height?: number | undefined;
|
|
14
|
+
width?: number | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
export declare function getFlexStyle(component: ReactElement, dimension: dimension, pos?: DropPos): any;
|
|
17
|
+
export declare function hasUnboundedFlexStyle(component: ReactElement): boolean;
|
|
18
|
+
export declare function getFlexOrIntrinsicStyle(component: ReactElement, dimension: dimension, pos: position): any;
|
|
19
|
+
export declare function wrapIntrinsicSizeComponentWithFlexbox(component: ReactElement, flexDirection: flexDirection, path: string, clientRect?: rect, dropRect?: rectTuple): React.FunctionComponentElement<any>;
|
|
20
|
+
export declare function createFlexbox(flexDirection: flexDirection, props: any, children: ReactNode, path: string): React.FunctionComponentElement<any>;
|
|
21
|
+
export declare function createPlaceHolder(path: string, size: number, style?: CSSProperties, props?: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { DropPos } from "../drag-drop";
|
|
3
|
+
import { LayoutModel } from "./layoutTypes";
|
|
4
|
+
type insertionPosition = "before" | "after";
|
|
5
|
+
export declare function getInsertTabBeforeAfter(stack: LayoutModel, pos: DropPos): any[];
|
|
6
|
+
export declare function insertIntoContainer(container: ReactElement, targetContainer: ReactElement, newComponent: ReactElement): ReactElement;
|
|
7
|
+
export declare function insertBesideChild(container: ReactElement, existingComponent: any, newComponent: any, insertionPosition: insertionPosition, pos?: DropPos, clientRect?: any, dropRect?: any): ReactElement;
|
|
8
|
+
export {};
|