@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.
Files changed (359) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/cjs/Component.js +14 -0
  4. package/cjs/Component.js.map +1 -0
  5. package/cjs/DraggableLayout.css.js +6 -0
  6. package/cjs/DraggableLayout.css.js.map +1 -0
  7. package/cjs/DraggableLayout.js +33 -0
  8. package/cjs/DraggableLayout.js.map +1 -0
  9. package/cjs/dock-layout/DockLayout.css.js +6 -0
  10. package/cjs/dock-layout/DockLayout.css.js.map +1 -0
  11. package/cjs/dock-layout/DockLayout.js +36 -0
  12. package/cjs/dock-layout/DockLayout.js.map +1 -0
  13. package/cjs/dock-layout/Drawer.css.js +6 -0
  14. package/cjs/dock-layout/Drawer.css.js.map +1 -0
  15. package/cjs/dock-layout/Drawer.js +96 -0
  16. package/cjs/dock-layout/Drawer.js.map +1 -0
  17. package/cjs/drag-drop/BoxModel.js +422 -0
  18. package/cjs/drag-drop/BoxModel.js.map +1 -0
  19. package/cjs/drag-drop/DragState.js +154 -0
  20. package/cjs/drag-drop/DragState.js.map +1 -0
  21. package/cjs/drag-drop/Draggable.js +192 -0
  22. package/cjs/drag-drop/Draggable.js.map +1 -0
  23. package/cjs/drag-drop/DropMenu.css.js +6 -0
  24. package/cjs/drag-drop/DropMenu.css.js.map +1 -0
  25. package/cjs/drag-drop/DropMenu.js +55 -0
  26. package/cjs/drag-drop/DropMenu.js.map +1 -0
  27. package/cjs/drag-drop/DropTarget.js +244 -0
  28. package/cjs/drag-drop/DropTarget.js.map +1 -0
  29. package/cjs/drag-drop/DropTargetRenderer.js +244 -0
  30. package/cjs/drag-drop/DropTargetRenderer.js.map +1 -0
  31. package/cjs/flexbox/Flexbox.css.js +6 -0
  32. package/cjs/flexbox/Flexbox.css.js.map +1 -0
  33. package/cjs/flexbox/Flexbox.js +70 -0
  34. package/cjs/flexbox/Flexbox.js.map +1 -0
  35. package/cjs/flexbox/FlexboxLayout.js +30 -0
  36. package/cjs/flexbox/FlexboxLayout.js.map +1 -0
  37. package/cjs/flexbox/FluidGrid.css.js +6 -0
  38. package/cjs/flexbox/FluidGrid.css.js.map +1 -0
  39. package/cjs/flexbox/FluidGrid.js +87 -0
  40. package/cjs/flexbox/FluidGrid.js.map +1 -0
  41. package/cjs/flexbox/FluidGridLayout.js +14 -0
  42. package/cjs/flexbox/FluidGridLayout.js.map +1 -0
  43. package/cjs/flexbox/Splitter.css.js +6 -0
  44. package/cjs/flexbox/Splitter.css.js.map +1 -0
  45. package/cjs/flexbox/Splitter.js +122 -0
  46. package/cjs/flexbox/Splitter.js.map +1 -0
  47. package/cjs/flexbox/flexbox-utils.js +109 -0
  48. package/cjs/flexbox/flexbox-utils.js.map +1 -0
  49. package/cjs/flexbox/useResponsiveSizing.js +62 -0
  50. package/cjs/flexbox/useResponsiveSizing.js.map +1 -0
  51. package/cjs/flexbox/useSplitterResizing.js +209 -0
  52. package/cjs/flexbox/useSplitterResizing.js.map +1 -0
  53. package/cjs/index.js +133 -0
  54. package/cjs/index.js.map +1 -0
  55. package/cjs/layout-action.js +27 -0
  56. package/cjs/layout-action.js.map +1 -0
  57. package/cjs/layout-header/Header.css.js +6 -0
  58. package/cjs/layout-header/Header.css.js.map +1 -0
  59. package/cjs/layout-header/Header.js +131 -0
  60. package/cjs/layout-header/Header.js.map +1 -0
  61. package/cjs/layout-provider/LayoutProvider.js +178 -0
  62. package/cjs/layout-provider/LayoutProvider.js.map +1 -0
  63. package/cjs/layout-provider/LayoutProviderContext.js +14 -0
  64. package/cjs/layout-provider/LayoutProviderContext.js.map +1 -0
  65. package/cjs/layout-provider/useLayoutDragDrop.js +172 -0
  66. package/cjs/layout-provider/useLayoutDragDrop.js.map +1 -0
  67. package/cjs/layout-reducer/flexUtils.js +219 -0
  68. package/cjs/layout-reducer/flexUtils.js.map +1 -0
  69. package/cjs/layout-reducer/insert-layout-element.js +273 -0
  70. package/cjs/layout-reducer/insert-layout-element.js.map +1 -0
  71. package/cjs/layout-reducer/layout-reducer.js +198 -0
  72. package/cjs/layout-reducer/layout-reducer.js.map +1 -0
  73. package/cjs/layout-reducer/layoutTypes.js +41 -0
  74. package/cjs/layout-reducer/layoutTypes.js.map +1 -0
  75. package/cjs/layout-reducer/layoutUtils.js +226 -0
  76. package/cjs/layout-reducer/layoutUtils.js.map +1 -0
  77. package/cjs/layout-reducer/move-layout-element.js +31 -0
  78. package/cjs/layout-reducer/move-layout-element.js.map +1 -0
  79. package/cjs/layout-reducer/remove-layout-element.js +223 -0
  80. package/cjs/layout-reducer/remove-layout-element.js.map +1 -0
  81. package/cjs/layout-reducer/replace-layout-element.js +91 -0
  82. package/cjs/layout-reducer/replace-layout-element.js.map +1 -0
  83. package/cjs/layout-reducer/resize-flex-children.js +61 -0
  84. package/cjs/layout-reducer/resize-flex-children.js.map +1 -0
  85. package/cjs/layout-reducer/wrap-layout-element.js +212 -0
  86. package/cjs/layout-reducer/wrap-layout-element.js.map +1 -0
  87. package/cjs/layout-view/View.css.js +6 -0
  88. package/cjs/layout-view/View.css.js.map +1 -0
  89. package/cjs/layout-view/View.js +164 -0
  90. package/cjs/layout-view/View.js.map +1 -0
  91. package/cjs/layout-view/useView.js +92 -0
  92. package/cjs/layout-view/useView.js.map +1 -0
  93. package/cjs/layout-view/useViewResize.js +42 -0
  94. package/cjs/layout-view/useViewResize.js.map +1 -0
  95. package/cjs/layout-view-actions/ViewContext.js +16 -0
  96. package/cjs/layout-view-actions/ViewContext.js.map +1 -0
  97. package/cjs/layout-view-actions/useViewActionDispatcher.js +103 -0
  98. package/cjs/layout-view-actions/useViewActionDispatcher.js.map +1 -0
  99. package/cjs/palette/Palette.css.js +6 -0
  100. package/cjs/palette/Palette.css.js.map +1 -0
  101. package/cjs/palette/Palette.js +127 -0
  102. package/cjs/palette/Palette.js.map +1 -0
  103. package/cjs/placeholder/LayoutStartPanel.css.js +6 -0
  104. package/cjs/placeholder/LayoutStartPanel.css.js.map +1 -0
  105. package/cjs/placeholder/LayoutStartPanel.js +60 -0
  106. package/cjs/placeholder/LayoutStartPanel.js.map +1 -0
  107. package/cjs/placeholder/Placeholder.css.js +6 -0
  108. package/cjs/placeholder/Placeholder.css.js.map +1 -0
  109. package/cjs/placeholder/Placeholder.js +34 -0
  110. package/cjs/placeholder/Placeholder.js.map +1 -0
  111. package/cjs/registry/ComponentRegistry.js +27 -0
  112. package/cjs/registry/ComponentRegistry.js.map +1 -0
  113. package/cjs/responsive/breakpoints.js +36 -0
  114. package/cjs/responsive/breakpoints.js.map +1 -0
  115. package/cjs/responsive/use-breakpoints.js +76 -0
  116. package/cjs/responsive/use-breakpoints.js.map +1 -0
  117. package/cjs/responsive/useResizeObserver.js +118 -0
  118. package/cjs/responsive/useResizeObserver.js.map +1 -0
  119. package/cjs/responsive/utils.js +34 -0
  120. package/cjs/responsive/utils.js.map +1 -0
  121. package/cjs/stack/Stack.css.js +6 -0
  122. package/cjs/stack/Stack.css.js.map +1 -0
  123. package/cjs/stack/Stack.js +148 -0
  124. package/cjs/stack/Stack.js.map +1 -0
  125. package/cjs/stack/StackLayout.js +122 -0
  126. package/cjs/stack/StackLayout.js.map +1 -0
  127. package/cjs/use-persistent-state.js +109 -0
  128. package/cjs/use-persistent-state.js.map +1 -0
  129. package/cjs/utils/pathUtils.js +293 -0
  130. package/cjs/utils/pathUtils.js.map +1 -0
  131. package/cjs/utils/propUtils.js +27 -0
  132. package/cjs/utils/propUtils.js.map +1 -0
  133. package/cjs/utils/refUtils.js +12 -0
  134. package/cjs/utils/refUtils.js.map +1 -0
  135. package/cjs/utils/styleUtils.js +15 -0
  136. package/cjs/utils/styleUtils.js.map +1 -0
  137. package/cjs/utils/typeOf.js +27 -0
  138. package/cjs/utils/typeOf.js.map +1 -0
  139. package/esm/Component.js +12 -0
  140. package/esm/Component.js.map +1 -0
  141. package/esm/DraggableLayout.css.js +4 -0
  142. package/esm/DraggableLayout.css.js.map +1 -0
  143. package/esm/DraggableLayout.js +31 -0
  144. package/esm/DraggableLayout.js.map +1 -0
  145. package/esm/dock-layout/DockLayout.css.js +4 -0
  146. package/esm/dock-layout/DockLayout.css.js.map +1 -0
  147. package/esm/dock-layout/DockLayout.js +34 -0
  148. package/esm/dock-layout/DockLayout.js.map +1 -0
  149. package/esm/dock-layout/Drawer.css.js +4 -0
  150. package/esm/dock-layout/Drawer.css.js.map +1 -0
  151. package/esm/dock-layout/Drawer.js +94 -0
  152. package/esm/dock-layout/Drawer.js.map +1 -0
  153. package/esm/drag-drop/BoxModel.js +415 -0
  154. package/esm/drag-drop/BoxModel.js.map +1 -0
  155. package/esm/drag-drop/DragState.js +152 -0
  156. package/esm/drag-drop/DragState.js.map +1 -0
  157. package/esm/drag-drop/Draggable.js +190 -0
  158. package/esm/drag-drop/Draggable.js.map +1 -0
  159. package/esm/drag-drop/DropMenu.css.js +4 -0
  160. package/esm/drag-drop/DropMenu.css.js.map +1 -0
  161. package/esm/drag-drop/DropMenu.js +52 -0
  162. package/esm/drag-drop/DropMenu.js.map +1 -0
  163. package/esm/drag-drop/DropTarget.js +240 -0
  164. package/esm/drag-drop/DropTarget.js.map +1 -0
  165. package/esm/drag-drop/DropTargetRenderer.js +242 -0
  166. package/esm/drag-drop/DropTargetRenderer.js.map +1 -0
  167. package/esm/flexbox/Flexbox.css.js +4 -0
  168. package/esm/flexbox/Flexbox.css.js.map +1 -0
  169. package/esm/flexbox/Flexbox.js +68 -0
  170. package/esm/flexbox/Flexbox.js.map +1 -0
  171. package/esm/flexbox/FlexboxLayout.js +28 -0
  172. package/esm/flexbox/FlexboxLayout.js.map +1 -0
  173. package/esm/flexbox/FluidGrid.css.js +4 -0
  174. package/esm/flexbox/FluidGrid.css.js.map +1 -0
  175. package/esm/flexbox/FluidGrid.js +85 -0
  176. package/esm/flexbox/FluidGrid.js.map +1 -0
  177. package/esm/flexbox/FluidGridLayout.js +12 -0
  178. package/esm/flexbox/FluidGridLayout.js.map +1 -0
  179. package/esm/flexbox/Splitter.css.js +4 -0
  180. package/esm/flexbox/Splitter.css.js.map +1 -0
  181. package/esm/flexbox/Splitter.js +120 -0
  182. package/esm/flexbox/Splitter.js.map +1 -0
  183. package/esm/flexbox/flexbox-utils.js +103 -0
  184. package/esm/flexbox/flexbox-utils.js.map +1 -0
  185. package/esm/flexbox/useResponsiveSizing.js +60 -0
  186. package/esm/flexbox/useResponsiveSizing.js.map +1 -0
  187. package/esm/flexbox/useSplitterResizing.js +207 -0
  188. package/esm/flexbox/useSplitterResizing.js.map +1 -0
  189. package/esm/index.js +37 -0
  190. package/esm/index.js.map +1 -0
  191. package/esm/layout-action.js +25 -0
  192. package/esm/layout-action.js.map +1 -0
  193. package/esm/layout-header/Header.css.js +4 -0
  194. package/esm/layout-header/Header.css.js.map +1 -0
  195. package/esm/layout-header/Header.js +129 -0
  196. package/esm/layout-header/Header.js.map +1 -0
  197. package/esm/layout-provider/LayoutProvider.js +172 -0
  198. package/esm/layout-provider/LayoutProvider.js.map +1 -0
  199. package/esm/layout-provider/LayoutProviderContext.js +12 -0
  200. package/esm/layout-provider/LayoutProviderContext.js.map +1 -0
  201. package/esm/layout-provider/useLayoutDragDrop.js +170 -0
  202. package/esm/layout-provider/useLayoutDragDrop.js.map +1 -0
  203. package/esm/layout-reducer/flexUtils.js +210 -0
  204. package/esm/layout-reducer/flexUtils.js.map +1 -0
  205. package/esm/layout-reducer/insert-layout-element.js +269 -0
  206. package/esm/layout-reducer/insert-layout-element.js.map +1 -0
  207. package/esm/layout-reducer/layout-reducer.js +196 -0
  208. package/esm/layout-reducer/layout-reducer.js.map +1 -0
  209. package/esm/layout-reducer/layoutTypes.js +37 -0
  210. package/esm/layout-reducer/layoutTypes.js.map +1 -0
  211. package/esm/layout-reducer/layoutUtils.js +215 -0
  212. package/esm/layout-reducer/layoutUtils.js.map +1 -0
  213. package/esm/layout-reducer/move-layout-element.js +29 -0
  214. package/esm/layout-reducer/move-layout-element.js.map +1 -0
  215. package/esm/layout-reducer/remove-layout-element.js +221 -0
  216. package/esm/layout-reducer/remove-layout-element.js.map +1 -0
  217. package/esm/layout-reducer/replace-layout-element.js +87 -0
  218. package/esm/layout-reducer/replace-layout-element.js.map +1 -0
  219. package/esm/layout-reducer/resize-flex-children.js +58 -0
  220. package/esm/layout-reducer/resize-flex-children.js.map +1 -0
  221. package/esm/layout-reducer/wrap-layout-element.js +210 -0
  222. package/esm/layout-reducer/wrap-layout-element.js.map +1 -0
  223. package/esm/layout-view/View.css.js +4 -0
  224. package/esm/layout-view/View.css.js.map +1 -0
  225. package/esm/layout-view/View.js +162 -0
  226. package/esm/layout-view/View.js.map +1 -0
  227. package/esm/layout-view/useView.js +90 -0
  228. package/esm/layout-view/useView.js.map +1 -0
  229. package/esm/layout-view/useViewResize.js +40 -0
  230. package/esm/layout-view/useViewResize.js.map +1 -0
  231. package/esm/layout-view-actions/ViewContext.js +12 -0
  232. package/esm/layout-view-actions/ViewContext.js.map +1 -0
  233. package/esm/layout-view-actions/useViewActionDispatcher.js +101 -0
  234. package/esm/layout-view-actions/useViewActionDispatcher.js.map +1 -0
  235. package/esm/palette/Palette.css.js +4 -0
  236. package/esm/palette/Palette.css.js.map +1 -0
  237. package/esm/palette/Palette.js +124 -0
  238. package/esm/palette/Palette.js.map +1 -0
  239. package/esm/placeholder/LayoutStartPanel.css.js +4 -0
  240. package/esm/placeholder/LayoutStartPanel.css.js.map +1 -0
  241. package/esm/placeholder/LayoutStartPanel.js +58 -0
  242. package/esm/placeholder/LayoutStartPanel.js.map +1 -0
  243. package/esm/placeholder/Placeholder.css.js +4 -0
  244. package/esm/placeholder/Placeholder.css.js.map +1 -0
  245. package/esm/placeholder/Placeholder.js +32 -0
  246. package/esm/placeholder/Placeholder.js.map +1 -0
  247. package/esm/registry/ComponentRegistry.js +21 -0
  248. package/esm/registry/ComponentRegistry.js.map +1 -0
  249. package/esm/responsive/breakpoints.js +33 -0
  250. package/esm/responsive/breakpoints.js.map +1 -0
  251. package/esm/responsive/use-breakpoints.js +74 -0
  252. package/esm/responsive/use-breakpoints.js.map +1 -0
  253. package/esm/responsive/useResizeObserver.js +112 -0
  254. package/esm/responsive/useResizeObserver.js.map +1 -0
  255. package/esm/responsive/utils.js +31 -0
  256. package/esm/responsive/utils.js.map +1 -0
  257. package/esm/stack/Stack.css.js +4 -0
  258. package/esm/stack/Stack.css.js.map +1 -0
  259. package/esm/stack/Stack.js +146 -0
  260. package/esm/stack/Stack.js.map +1 -0
  261. package/esm/stack/StackLayout.js +120 -0
  262. package/esm/stack/StackLayout.js.map +1 -0
  263. package/esm/use-persistent-state.js +104 -0
  264. package/esm/use-persistent-state.js.map +1 -0
  265. package/esm/utils/pathUtils.js +280 -0
  266. package/esm/utils/pathUtils.js.map +1 -0
  267. package/esm/utils/propUtils.js +23 -0
  268. package/esm/utils/propUtils.js.map +1 -0
  269. package/esm/utils/refUtils.js +10 -0
  270. package/esm/utils/refUtils.js.map +1 -0
  271. package/esm/utils/styleUtils.js +13 -0
  272. package/esm/utils/styleUtils.js.map +1 -0
  273. package/esm/utils/typeOf.js +23 -0
  274. package/esm/utils/typeOf.js.map +1 -0
  275. package/package.json +43 -0
  276. package/types/Component.d.ts +7 -0
  277. package/types/DraggableLayout.d.ts +6 -0
  278. package/types/debug.d.ts +2 -0
  279. package/types/dock-layout/DockLayout.d.ts +9 -0
  280. package/types/dock-layout/Drawer.d.ts +17 -0
  281. package/types/dock-layout/index.d.ts +2 -0
  282. package/types/drag-drop/BoxModel.d.ts +143 -0
  283. package/types/drag-drop/DragState.d.ts +46 -0
  284. package/types/drag-drop/Draggable.d.ts +24 -0
  285. package/types/drag-drop/DropMenu.d.ts +9 -0
  286. package/types/drag-drop/DropTarget.d.ts +61 -0
  287. package/types/drag-drop/DropTargetRenderer.d.ts +17 -0
  288. package/types/drag-drop/dragDropTypes.d.ts +51 -0
  289. package/types/drag-drop/index.d.ts +4 -0
  290. package/types/flexbox/Flexbox.d.ts +4 -0
  291. package/types/flexbox/FlexboxLayout.d.ts +6 -0
  292. package/types/flexbox/FluidGrid.d.ts +6 -0
  293. package/types/flexbox/FluidGridLayout.d.ts +6 -0
  294. package/types/flexbox/Splitter.d.ts +12 -0
  295. package/types/flexbox/flexbox-utils.d.ts +12 -0
  296. package/types/flexbox/flexboxTypes.d.ts +51 -0
  297. package/types/flexbox/index.d.ts +4 -0
  298. package/types/flexbox/useResponsiveSizing.d.ts +10 -0
  299. package/types/flexbox/useSplitterResizing.d.ts +2 -0
  300. package/types/index.d.ts +18 -0
  301. package/types/layout-action.d.ts +22 -0
  302. package/types/layout-header/ActionButton.d.ts +8 -0
  303. package/types/layout-header/Header.d.ts +12 -0
  304. package/types/layout-header/index.d.ts +1 -0
  305. package/types/layout-provider/LayoutProvider.d.ts +15 -0
  306. package/types/layout-provider/LayoutProviderContext.d.ts +9 -0
  307. package/types/layout-provider/index.d.ts +2 -0
  308. package/types/layout-provider/useLayoutDragDrop.d.ts +4 -0
  309. package/types/layout-reducer/flexUtils.d.ts +22 -0
  310. package/types/layout-reducer/index.d.ts +4 -0
  311. package/types/layout-reducer/insert-layout-element.d.ts +8 -0
  312. package/types/layout-reducer/layout-reducer.d.ts +3 -0
  313. package/types/layout-reducer/layoutTypes.d.ts +193 -0
  314. package/types/layout-reducer/layoutUtils.d.ts +38 -0
  315. package/types/layout-reducer/move-layout-element.d.ts +3 -0
  316. package/types/layout-reducer/remove-layout-element.d.ts +3 -0
  317. package/types/layout-reducer/replace-layout-element.d.ts +6 -0
  318. package/types/layout-reducer/resize-flex-children.d.ts +4 -0
  319. package/types/layout-reducer/wrap-layout-element.d.ts +9 -0
  320. package/types/layout-view/View.d.ts +10 -0
  321. package/types/layout-view/index.d.ts +2 -0
  322. package/types/layout-view/useView.d.ts +21 -0
  323. package/types/layout-view/useViewResize.d.ts +7 -0
  324. package/types/layout-view/viewTypes.d.ts +21 -0
  325. package/types/layout-view-actions/ViewContext.d.ts +33 -0
  326. package/types/layout-view-actions/index.d.ts +2 -0
  327. package/types/layout-view-actions/useViewActionDispatcher.d.ts +9 -0
  328. package/types/palette/Palette.d.ts +21 -0
  329. package/types/palette/index.d.ts +1 -0
  330. package/types/placeholder/LayoutStartPanel.d.ts +5 -0
  331. package/types/placeholder/Placeholder.d.ts +17 -0
  332. package/types/placeholder/index.d.ts +1 -0
  333. package/types/registry/ComponentRegistry.d.ts +13 -0
  334. package/types/registry/index.d.ts +1 -0
  335. package/types/responsive/breakpoints.d.ts +4 -0
  336. package/types/responsive/index.d.ts +3 -0
  337. package/types/responsive/measureMinimumNodeSize.d.ts +1 -0
  338. package/types/responsive/overflowUtils.d.ts +2 -0
  339. package/types/responsive/use-breakpoints.d.ts +7 -0
  340. package/types/responsive/useResizeObserver.d.ts +13 -0
  341. package/types/responsive/utils.d.ts +6 -0
  342. package/types/stack/Stack.d.ts +3 -0
  343. package/types/stack/StackLayout.d.ts +6 -0
  344. package/types/stack/index.d.ts +3 -0
  345. package/types/stack/stackTypes.d.ts +22 -0
  346. package/types/tabs/TabPanel.d.ts +7 -0
  347. package/types/tabs/index.d.ts +1 -0
  348. package/types/tools/config-wrapper/ConfigWrapper.d.ts +2 -0
  349. package/types/tools/config-wrapper/index.d.ts +1 -0
  350. package/types/tools/devtools-box/layout-configurator.d.ts +31 -0
  351. package/types/tools/devtools-tree/layout-tree-viewer.d.ts +5 -0
  352. package/types/tools/index.d.ts +3 -0
  353. package/types/use-persistent-state.d.ts +11 -0
  354. package/types/utils/index.d.ts +5 -0
  355. package/types/utils/pathUtils.d.ts +31 -0
  356. package/types/utils/propUtils.d.ts +5 -0
  357. package/types/utils/refUtils.d.ts +2 -0
  358. package/types/utils/styleUtils.d.ts +3 -0
  359. package/types/utils/typeOf.d.ts +5 -0
@@ -0,0 +1,193 @@
1
+ import { NamedFilter } from "@vuu-ui/vuu-filter-types";
2
+ import { CSSProperties, ReactElement } from "react";
3
+ import { DragDropRect, DragInstructions } from "../drag-drop";
4
+ import { DropTarget } from "../drag-drop/DropTarget";
5
+ import { ContributionLocation } from "../layout-view-actions";
6
+ export interface WithProps {
7
+ props?: {
8
+ [key: string]: any;
9
+ };
10
+ }
11
+ export interface WithType {
12
+ props?: any;
13
+ title?: string;
14
+ type: string;
15
+ }
16
+ export interface LayoutRoot extends WithProps {
17
+ active?: number;
18
+ children?: ReactElement[];
19
+ type: string;
20
+ }
21
+ export type ValueOf<T> = T[keyof T];
22
+ export interface ApplicationSettings {
23
+ leftNav?: {
24
+ activeTabIndex: number;
25
+ expanded: boolean;
26
+ };
27
+ /**
28
+ * filters are keyed by MODULE:tablename
29
+ */
30
+ filters?: {
31
+ [key: string]: NamedFilter[];
32
+ };
33
+ }
34
+ export type ApplicationSetting = ValueOf<ApplicationSettings>;
35
+ export interface ApplicationJSON {
36
+ layout: LayoutJSON;
37
+ settings?: ApplicationSettings;
38
+ }
39
+ export interface LayoutJSON extends WithType {
40
+ active?: number;
41
+ children?: LayoutJSON[];
42
+ id?: string;
43
+ props?: {
44
+ [key: string]: any;
45
+ };
46
+ state?: any;
47
+ type: string;
48
+ style?: CSSProperties;
49
+ }
50
+ export interface WithActive {
51
+ active?: number;
52
+ }
53
+ export type LayoutModel = LayoutRoot | ReactElement | WithType;
54
+ export type layoutType = "Flexbox" | "View" | "DraggableLayout" | "Stack";
55
+ export declare const LayoutActionType: {
56
+ readonly ADD: "add";
57
+ readonly DRAG_START: "drag-start";
58
+ readonly DRAG_DROP: "drag-drop";
59
+ readonly LAYOUT_RESIZE: "layout-resize";
60
+ readonly MAXIMIZE: "maximize";
61
+ readonly MINIMIZE: "minimize";
62
+ readonly MOVE_CHILD: "move-child";
63
+ readonly QUERY: "query";
64
+ readonly REMOVE: "remove";
65
+ readonly REPLACE: "replace";
66
+ readonly RESTORE: "restore";
67
+ readonly SAVE: "save";
68
+ readonly SET_PROP: "set-prop";
69
+ readonly SET_PROPS: "set-props";
70
+ readonly SET_TITLE: "set-title";
71
+ readonly SPLITTER_RESIZE: "splitter-resize";
72
+ readonly SWITCH_TAB: "switch-tab";
73
+ readonly TEAROUT: "tearout";
74
+ };
75
+ export type AddAction = {
76
+ component: any;
77
+ path: string;
78
+ type: typeof LayoutActionType.ADD;
79
+ };
80
+ export type DragDropAction = {
81
+ draggedReactElement: ReactElement;
82
+ dragInstructions: any;
83
+ dropTarget: Partial<DropTarget>;
84
+ type: typeof LayoutActionType.DRAG_DROP;
85
+ };
86
+ export type MaximizeAction = {
87
+ path?: string;
88
+ type: typeof LayoutActionType.MAXIMIZE;
89
+ };
90
+ export type MinimizeAction = {
91
+ path?: string;
92
+ type: typeof LayoutActionType.MINIMIZE;
93
+ };
94
+ export type MoveChildAction = {
95
+ fromIndex: number;
96
+ toIndex: number;
97
+ path: string;
98
+ type: typeof LayoutActionType.MOVE_CHILD;
99
+ };
100
+ export type QueryAction = {
101
+ path?: string;
102
+ query: string;
103
+ type: typeof LayoutActionType.QUERY;
104
+ };
105
+ export type RemoveAction = {
106
+ path?: string;
107
+ type: typeof LayoutActionType.REMOVE;
108
+ };
109
+ export type ReplaceAction = {
110
+ replacement: any;
111
+ target: any;
112
+ type: typeof LayoutActionType.REPLACE;
113
+ };
114
+ export type RestoreAction = {
115
+ path?: string;
116
+ type: typeof LayoutActionType.RESTORE;
117
+ };
118
+ export type SetPropAction = {
119
+ path: string;
120
+ propName: string;
121
+ propValue: string | number | boolean;
122
+ type: typeof LayoutActionType.SET_PROP;
123
+ };
124
+ export type SetPropsAction = {
125
+ path: string;
126
+ props: {
127
+ [key: string]: unknown;
128
+ };
129
+ type: typeof LayoutActionType.SET_PROPS;
130
+ };
131
+ export type SetTitleAction = {
132
+ path: string;
133
+ title: string;
134
+ type: typeof LayoutActionType.SET_TITLE;
135
+ };
136
+ export type SplitterResizeAction = {
137
+ path: string;
138
+ sizes: {
139
+ currentSize: number;
140
+ flexBasis: number;
141
+ }[];
142
+ type: typeof LayoutActionType.SPLITTER_RESIZE;
143
+ };
144
+ export type LayoutResizeAction = {
145
+ path: string;
146
+ size: number;
147
+ type: typeof LayoutActionType.LAYOUT_RESIZE;
148
+ };
149
+ export type SwitchTabAction = {
150
+ id?: string;
151
+ nextIdx: number;
152
+ path: string;
153
+ type: typeof LayoutActionType.SWITCH_TAB;
154
+ };
155
+ export type TearoutAction = {
156
+ path?: string;
157
+ type: typeof LayoutActionType.TEAROUT;
158
+ };
159
+ export type LayoutReducerAction = AddAction | DragDropAction | LayoutResizeAction | MaximizeAction | MinimizeAction | MoveChildAction | RemoveAction | ReplaceAction | RestoreAction | SetPropAction | SetPropsAction | SetTitleAction | SplitterResizeAction | SwitchTabAction;
160
+ export type SaveAction = {
161
+ type: typeof LayoutActionType.SAVE;
162
+ };
163
+ export type AddToolbarContributionViewAction = {
164
+ content: ReactElement;
165
+ location: ContributionLocation;
166
+ type: "add-toolbar-contribution";
167
+ };
168
+ export type RemoveToolbarContributionViewAction = {
169
+ location: ContributionLocation;
170
+ type: "remove-toolbar-contribution";
171
+ };
172
+ export type MousedownViewAction = {
173
+ preDragActivity?: any;
174
+ index?: number;
175
+ type: "mousedown";
176
+ };
177
+ export type DragStartAction = {
178
+ payload?: ReactElement;
179
+ dragContainerPath?: string;
180
+ dragElement?: HTMLElement;
181
+ dragRect: DragDropRect;
182
+ dropTargets?: string[];
183
+ evt: MouseEvent;
184
+ instructions?: DragInstructions;
185
+ path: string;
186
+ type: typeof LayoutActionType.DRAG_START;
187
+ };
188
+ export type LayoutLevelChange = "switch-active-tab" | "edit-feature-title" | "save-feature-props" | "resize-component" | "remove-component" | "drag-drop-operation";
189
+ export type ApplicationLevelChange = "switch-active-layout" | "open-layout" | "close-layout" | "rename-layout" | "resize-application-chrome";
190
+ export type LayoutChangeReason = LayoutLevelChange | ApplicationLevelChange;
191
+ export type LayoutChangeHandler = (layout: LayoutJSON, layoutChangeReason: LayoutChangeReason) => void;
192
+ export declare const isApplicationLevelChange: (layoutChangeReason: LayoutChangeReason) => layoutChangeReason is ApplicationLevelChange;
193
+ export declare const isLayoutLevelChange: (layoutChangeReason: LayoutChangeReason) => layoutChangeReason is LayoutLevelChange;
@@ -0,0 +1,38 @@
1
+ import { dimension } from "@vuu-ui/vuu-utils";
2
+ import React, { CSSProperties, ReactElement } from "react";
3
+ import { ComponentWithId } from "../registry/ComponentRegistry";
4
+ import { TabLabelFactory } from "../stack";
5
+ import { LayoutJSON, LayoutModel, layoutType } from "./layoutTypes";
6
+ export declare const getManagedDimension: (style: CSSProperties) => [dimension, dimension];
7
+ export declare const applyLayoutProps: (component: ReactElement, path?: string) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
8
+ export interface LayoutProps extends ComponentWithId {
9
+ active?: number;
10
+ "data-path"?: string;
11
+ children?: ReactElement[];
12
+ column?: any;
13
+ dropTarget?: any;
14
+ key: string;
15
+ layout?: any;
16
+ path?: string;
17
+ resizeable?: boolean;
18
+ style: CSSProperties;
19
+ type?: string;
20
+ version?: number;
21
+ }
22
+ /**
23
+ * parse the declarative JSX and clone adding layout attributes
24
+ */
25
+ export declare const processLayoutElement: (layoutElement: ReactElement, previousLayout?: ReactElement) => ReactElement;
26
+ export declare const applyLayout: (type: layoutType, props: LayoutProps, previousLayout?: LayoutModel) => LayoutModel;
27
+ export declare function layoutFromJson({ id, type, children, props, state }: LayoutJSON, path: string): ReactElement;
28
+ export declare function layoutToJSON(component: ReactElement): LayoutJSON;
29
+ export declare function componentToJson(component: ReactElement): LayoutJSON;
30
+ export declare function serializeProps(props?: LayoutProps): {
31
+ [key: string]: any;
32
+ } | undefined;
33
+ export type LayoutQuery = "PARENT_CONTAINER";
34
+ export declare const layoutQuery: (query: LayoutQuery, path?: string, layoutRoot?: ReactElement) => {
35
+ parentContainerId: any;
36
+ parentContainerType: string | undefined;
37
+ } | undefined;
38
+ export declare const getDefaultTabLabel: TabLabelFactory;
@@ -0,0 +1,3 @@
1
+ import { ReactElement } from "react";
2
+ import { MoveChildAction } from "./layoutTypes";
3
+ export declare function moveChild(layoutRoot: ReactElement, { fromIndex, path, toIndex }: MoveChildAction): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -0,0 +1,3 @@
1
+ import React, { ReactElement } from "react";
2
+ import { RemoveAction } from "./layoutTypes";
3
+ export declare function removeChild(layoutRoot: ReactElement, { path }: RemoveAction): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -0,0 +1,6 @@
1
+ import React, { ReactElement } from 'react';
2
+ import { ReplaceAction } from './layoutTypes';
3
+ import { LayoutProps } from './layoutUtils';
4
+ export declare function replaceChild(model: ReactElement, { target, replacement }: ReplaceAction): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
5
+ export declare function _replaceChild(model: ReactElement, child: ReactElement, replacement: ReactElement<LayoutProps>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
6
+ export declare function swapChild(model: ReactElement, child: ReactElement, replacement: ReactElement, op?: 'maximize' | 'minimize' | 'restore'): ReactElement;
@@ -0,0 +1,4 @@
1
+ import React, { ReactElement } from "react";
2
+ import { LayoutResizeAction, SplitterResizeAction } from "./layoutTypes";
3
+ export declare function resizeFlexChild(layoutRoot: ReactElement, { path, size }: LayoutResizeAction): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
4
+ export declare function resizeFlexChildren(layoutRoot: ReactElement, { path, sizes }: SplitterResizeAction): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from "react";
2
+ import { DropPos } from "../drag-drop/dragDropTypes";
3
+ import { DropTarget } from "../drag-drop/DropTarget";
4
+ export interface LayoutSpec {
5
+ type: "Stack" | "Flexbox";
6
+ flexDirection: "column" | "row";
7
+ showTabs?: boolean;
8
+ }
9
+ export declare function wrap(container: ReactElement, existingComponent: ReactElement, newComponent: any, pos: DropPos, clientRect?: DropTarget["clientRect"], dropRect?: DropTarget["dropRect"]): ReactElement;
@@ -0,0 +1,10 @@
1
+ import { ForwardedRef, ReactElement } from "react";
2
+ import { ViewProps } from "./viewTypes";
3
+ interface ViewComponentType {
4
+ (props: ViewProps & {
5
+ ref?: ForwardedRef<HTMLDivElement>;
6
+ }): ReactElement<ViewProps>;
7
+ displayName?: string;
8
+ }
9
+ declare const MemoView: ViewComponentType;
10
+ export { MemoView as View };
@@ -0,0 +1,2 @@
1
+ export * from "./View";
2
+ export * from "./viewTypes";
@@ -0,0 +1,21 @@
1
+ import { RefObject } from "react";
2
+ export interface ViewHookProps {
3
+ id: string;
4
+ rootRef: RefObject<HTMLDivElement>;
5
+ path?: string;
6
+ dropTargets?: string[];
7
+ title?: string;
8
+ }
9
+ export declare const useView: ({ id, rootRef, path, dropTargets, title: titleProp, }: ViewHookProps) => {
10
+ contributions: import("../layout-view-actions/useViewActionDispatcher").Contribution[] | undefined;
11
+ dispatchViewAction: import("..").ViewDispatch;
12
+ load: (key?: string) => any;
13
+ loadSession: (key?: string) => any;
14
+ onConfigChange: ({ type: key, ...config }: any) => void;
15
+ onEditTitle: (title: string) => void;
16
+ purge: (key: any) => void;
17
+ restoredState: any;
18
+ save: (state: any, key: any) => void;
19
+ saveSession: (state: any, key: any) => void;
20
+ title: any;
21
+ };
@@ -0,0 +1,7 @@
1
+ import { RefObject } from "react";
2
+ export interface ViewResizeHookProps {
3
+ mainRef: RefObject<HTMLDivElement>;
4
+ resize?: "defer" | "responsive";
5
+ rootRef: RefObject<HTMLDivElement>;
6
+ }
7
+ export declare const useViewResize: ({ mainRef, resize, rootRef, }: ViewResizeHookProps) => void;
@@ -0,0 +1,21 @@
1
+ import { FunctionComponent, HTMLAttributes } from "react";
2
+ import { HeaderProps } from "../layout-header";
3
+ import { AddToolbarContributionViewAction, MaximizeAction, MinimizeAction, MousedownViewAction, QueryAction, RemoveAction, RemoveToolbarContributionViewAction, RestoreAction, TearoutAction } from "../layout-reducer";
4
+ export type ViewAction = MaximizeAction | MinimizeAction | MousedownViewAction | QueryAction | RemoveAction | RestoreAction | TearoutAction | AddToolbarContributionViewAction | RemoveToolbarContributionViewAction;
5
+ export type ResizeStrategy = "defer" | "responsive";
6
+ export interface ViewProps extends HTMLAttributes<HTMLDivElement> {
7
+ Header?: FunctionComponent<HeaderProps>;
8
+ closeable?: boolean;
9
+ collapsed?: boolean;
10
+ "data-path"?: string;
11
+ "data-resizeable"?: boolean;
12
+ dropTargets?: string[];
13
+ expanded?: boolean;
14
+ flexFill?: boolean;
15
+ header?: boolean | Partial<HeaderProps>;
16
+ orientation?: "vertical" | "horizontal";
17
+ path?: string;
18
+ resize?: ResizeStrategy;
19
+ resizeable?: boolean;
20
+ tearOut?: boolean;
21
+ }
@@ -0,0 +1,33 @@
1
+ import React, { SyntheticEvent } from "react";
2
+ import { ViewAction } from "../layout-view/viewTypes";
3
+ export type QueryReponse = {
4
+ [key: string]: unknown;
5
+ };
6
+ export type ViewDispatch = <Action extends ViewAction = ViewAction>(action: Action, evt?: SyntheticEvent) => Promise<boolean | QueryReponse | void>;
7
+ /**
8
+ * This API is available to any Feature hosted within Vuu (as all Features are wrapped
9
+ * with View component). It offers metadata about the View as well as access to the
10
+ * Vuu persistencew API;
11
+ */
12
+ export interface ViewContextAPI {
13
+ /**
14
+ * dispatcher for View actions. These are a subset of LayoutActions, specifically for
15
+ * View manipulation
16
+ */
17
+ dispatch?: ViewDispatch | null;
18
+ id?: string;
19
+ load?: (key?: string) => unknown;
20
+ loadSession?: (key?: string) => unknown;
21
+ onConfigChange?: (config: unknown) => void;
22
+ path?: string;
23
+ purge?: (key: string) => void;
24
+ save?: (state: unknown, key: string) => void;
25
+ saveSession?: (state: unknown, key: string) => void;
26
+ setComponentProps: (props: {
27
+ [key: string]: unknown;
28
+ }) => void;
29
+ title?: string;
30
+ }
31
+ export declare const ViewContext: React.Context<ViewContextAPI>;
32
+ export declare const useViewDispatch: () => ViewDispatch | null;
33
+ export declare const useViewContext: () => ViewContextAPI;
@@ -0,0 +1,2 @@
1
+ export * from "./useViewActionDispatcher";
2
+ export * from "./ViewContext";
@@ -0,0 +1,9 @@
1
+ import { ReactElement, RefObject } from "react";
2
+ import { ViewDispatch } from "./ViewContext";
3
+ export type ContributionLocation = "post-title" | "pre-title";
4
+ export type Contribution = {
5
+ index?: number;
6
+ location?: ContributionLocation;
7
+ content: ReactElement;
8
+ };
9
+ export declare const useViewActionDispatcher: (id: string, root: RefObject<HTMLDivElement>, viewPath?: string, dropTargets?: string[]) => [ViewDispatch, Contribution[] | undefined];
@@ -0,0 +1,21 @@
1
+ import { ListItemProps, ListProps } from "@vuu-ui/vuu-ui-controls";
2
+ import { HTMLAttributes, ReactElement } from "react";
3
+ import { ViewProps } from "../layout-view";
4
+ export interface PaletteItemProps extends ListItemProps {
5
+ children: ReactElement;
6
+ closeable?: boolean;
7
+ header?: boolean;
8
+ idx?: number;
9
+ resize?: "defer";
10
+ resizeable?: boolean;
11
+ }
12
+ export declare const PaletteItem: import("react").MemoExoticComponent<({ className, children: component, idx, resizeable, header, closeable, ...props }: PaletteItemProps) => JSX.Element>;
13
+ export interface PaletteProps extends Omit<HTMLAttributes<HTMLDivElement>, "onDragStart" | "onDrop" | "onSelect"> {
14
+ ListProps?: Partial<ListProps>;
15
+ ViewProps?: Partial<ViewProps>;
16
+ children: ReactElement[];
17
+ itemHeight?: number;
18
+ orientation: "horizontal" | "vertical";
19
+ selection?: string;
20
+ }
21
+ export declare const Palette: ({ ListProps, ViewProps, children, className, itemHeight, orientation, ...props }: PaletteProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Palette";
@@ -0,0 +1,5 @@
1
+ import { HTMLAttributes } from "react";
2
+ export interface LayoutStartPanelProps extends HTMLAttributes<HTMLDivElement> {
3
+ label?: string;
4
+ }
5
+ export declare const LayoutStartPanel: (htmlAttributes: LayoutStartPanelProps) => JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from "../layout-view";
3
+ export interface PlaceholderProps extends ViewProps {
4
+ closeable?: boolean;
5
+ flexFill?: boolean;
6
+ resizeable?: boolean;
7
+ showStartMenu?: boolean;
8
+ /**
9
+ * shim is only when we're dealing with intrinsically sized children, which is never
10
+ * in an actual application. Intrinsic sizing is still experimental.
11
+ */
12
+ shim?: boolean;
13
+ }
14
+ export declare const Placeholder: {
15
+ ({ className: classNameProp, showStartMenu, ...viewProps }: PlaceholderProps): JSX.Element;
16
+ displayName: string;
17
+ };
@@ -0,0 +1 @@
1
+ export * from './Placeholder';
@@ -0,0 +1,13 @@
1
+ import { FunctionComponent } from "react";
2
+ export type layoutComponentType = "component" | "container" | "view";
3
+ export interface ComponentWithId {
4
+ id: string;
5
+ [key: string]: unknown;
6
+ }
7
+ export declare const ComponentRegistry: {
8
+ [key: string]: FunctionComponent<ComponentWithId>;
9
+ };
10
+ export declare function isContainer(componentType: string): boolean;
11
+ export declare function isView(componentType: string): boolean;
12
+ export declare const isLayoutComponent: (type: string) => boolean;
13
+ export declare function registerComponent(componentName: string, component: FunctionComponent<any>, type?: layoutComponentType): void;
@@ -0,0 +1 @@
1
+ export * from './ComponentRegistry';
@@ -0,0 +1,4 @@
1
+ import { BreakPointsProp } from "../flexbox/flexboxTypes";
2
+ export type BreakPointRamp = [string, number, number];
3
+ export declare const breakpointRamp: (breakpoints: BreakPointsProp) => BreakPointRamp[];
4
+ export declare const getBreakPoints: (themeName?: string) => BreakPointRamp[];
@@ -0,0 +1,3 @@
1
+ export * from "./use-breakpoints";
2
+ export * from "./useResizeObserver";
3
+ export * from "./utils";
@@ -0,0 +1 @@
1
+ export declare function measureMinimumNodeSize(node: HTMLElement, dimension?: 'width' | 'height'): number;
@@ -0,0 +1,2 @@
1
+ export function getOverflowedItems(containerRef: any, height?: number): any[][];
2
+ export function findFirstOverflow(elements: any, height: any): number;
@@ -0,0 +1,7 @@
1
+ import { RefObject } from "react";
2
+ import { BreakPointsProp } from "../flexbox/flexboxTypes";
3
+ export interface BreakpointsHookProps {
4
+ breakPoints?: BreakPointsProp;
5
+ smallerThan?: string;
6
+ }
7
+ export declare const useBreakpoints: ({ breakPoints: breakPointsProp, smallerThan }: BreakpointsHookProps, ref: RefObject<HTMLElement>) => string | boolean;
@@ -0,0 +1,13 @@
1
+ import { RefObject } from "react";
2
+ export declare const WidthHeight: string[];
3
+ export declare const HeightOnly: string[];
4
+ export declare const WidthOnly: string[];
5
+ export type measurements<T = string | number> = {
6
+ height?: T;
7
+ scrollHeight?: T;
8
+ scrollWidth?: T;
9
+ width?: T;
10
+ };
11
+ export type ResizeHandler = (measurements: measurements<number>) => void;
12
+ export declare const resizeObserver: ResizeObserver;
13
+ export declare function useResizeObserver(ref: RefObject<Element | HTMLElement | null>, dimensions: string[], onResize: ResizeHandler, reportInitialSize?: boolean): void;
@@ -0,0 +1,6 @@
1
+ export declare const isResponsiveAttribute: (propName: string) => boolean;
2
+ type Props = {
3
+ [key: string]: any;
4
+ };
5
+ export declare const extractResponsiveProps: (props: Props) => [Props, Props];
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { StackProps } from "./stackTypes";
3
+ export declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { StackProps } from "./stackTypes";
3
+ export declare const StackLayout: {
4
+ (props: StackProps): JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./Stack";
2
+ export * from "./StackLayout";
3
+ export * from "./stackTypes";
@@ -0,0 +1,22 @@
1
+ import { TabstripProps } from "@vuu-ui/vuu-ui-controls";
2
+ import { HTMLAttributes, MouseEvent, ReactElement, ReactNode } from "react";
3
+ export type TabLabelFactory = (component: ReactElement, index: number, existingLabels: string[]) => string;
4
+ export type TabPosition = "top" | "left" | "right" | "bottom";
5
+ export interface StackProps extends Omit<HTMLAttributes<HTMLDivElement>, "onMouseDown"> {
6
+ active?: number;
7
+ createNewChild?: (index: number) => ReactElement;
8
+ getTabIcon?: (component: ReactElement, index: number) => string | undefined;
9
+ getTabLabel?: TabLabelFactory;
10
+ keyBoardActivation?: "automatic" | "manual";
11
+ onAddTab?: () => void;
12
+ onMoveTab?: (fromIndex: number, toIndex: number) => void;
13
+ onMouseDown?: (e: MouseEvent, tabIndex: number) => void;
14
+ onTabClose?: (tabIndex: number) => void;
15
+ onTabEdit?: (tabIndex: number, label: string) => void;
16
+ onTabSelectionChanged?: (nextIndex: number) => void;
17
+ path?: string;
18
+ /** should the Stack display a Tabstrip and where ? default top */
19
+ showTabs?: false | TabPosition;
20
+ toolbarContent?: ReactNode;
21
+ TabstripProps?: Partial<TabstripProps>;
22
+ }
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import './TabPanel.css';
3
+ export interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
4
+ ariaLabelledBy: string;
5
+ }
6
+ declare const TabPanel: ({ ariaLabelledBy, children, id }: TabPanelProps) => JSX.Element;
7
+ export default TabPanel;
@@ -0,0 +1 @@
1
+ export { default as TabPanel } from './TabPanel';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ConfigWrapper: ({ children }: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ConfigWrapper';
@@ -0,0 +1,31 @@
1
+ export function XXXnormalizeStyles(layoutStyle?: {}, visualStyle?: {}): {};
2
+ export namespace MARGIN_STYLES {
3
+ const margin: boolean;
4
+ const marginTop: boolean;
5
+ const marginRight: boolean;
6
+ const marginBottom: boolean;
7
+ const marginLeft: boolean;
8
+ }
9
+ export namespace PADDING_STYLES {
10
+ const padding: boolean;
11
+ const paddingTop: boolean;
12
+ const paddingRight: boolean;
13
+ const paddingBottom: boolean;
14
+ const paddingLeft: boolean;
15
+ }
16
+ export namespace BORDER_STYLES {
17
+ const border: boolean;
18
+ const borderColor: boolean;
19
+ const borderWidth: boolean;
20
+ const borderTopWidth: boolean;
21
+ const borderRightWidth: boolean;
22
+ const borderBottomWidth: boolean;
23
+ const borderLeftWidth: boolean;
24
+ }
25
+ export function LayoutConfigurator({ height, managedStyle, onChange, style, width, }: {
26
+ height: any;
27
+ managedStyle: any;
28
+ onChange: any;
29
+ style: any;
30
+ width: any;
31
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ export function LayoutTreeViewer({ layout, onSelect, style }: {
2
+ layout: any;
3
+ onSelect: any;
4
+ style: any;
5
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './config-wrapper';
2
+ export * from './devtools-box/layout-configurator';
3
+ export * from './devtools-tree/layout-tree-viewer';
@@ -0,0 +1,11 @@
1
+ export declare const getPersistentState: (id: string) => any;
2
+ export declare const hasPersistentState: (id: string) => boolean;
3
+ export declare const setPersistentState: (id: string, value: any) => Map<string, any>;
4
+ export declare const usePersistentState: () => {
5
+ loadSessionState: (id: any, key: any) => any;
6
+ loadState: (id: string, key?: string) => any;
7
+ saveSessionState: (id: any, key: any, data: any) => void;
8
+ saveState: (id: string, key: string | undefined, data: unknown) => void;
9
+ purgeState: (id: string, key?: string) => void;
10
+ purgeSessionState: (id: string, key?: string) => void;
11
+ };
@@ -0,0 +1,5 @@
1
+ export * from "./pathUtils";
2
+ export * from "./propUtils";
3
+ export * from "./refUtils";
4
+ export * from "./styleUtils";
5
+ export * from "./typeOf";