@vuu-ui/vuu-layout 2.1.19-beta.2 → 2.1.19-beta.3

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 (353) hide show
  1. package/cjs/Component.js +14 -0
  2. package/cjs/Component.js.map +1 -0
  3. package/cjs/LayoutContainer.css.js +6 -0
  4. package/cjs/LayoutContainer.css.js.map +1 -0
  5. package/cjs/LayoutContainer.js +33 -0
  6. package/cjs/LayoutContainer.js.map +1 -0
  7. package/cjs/dock-layout/DockLayout.css.js +6 -0
  8. package/cjs/dock-layout/DockLayout.css.js.map +1 -0
  9. package/cjs/dock-layout/DockLayout.js +41 -0
  10. package/cjs/dock-layout/DockLayout.js.map +1 -0
  11. package/cjs/dock-layout/Drawer.css.js +6 -0
  12. package/cjs/dock-layout/Drawer.css.js.map +1 -0
  13. package/cjs/dock-layout/Drawer.js +95 -0
  14. package/cjs/dock-layout/Drawer.js.map +1 -0
  15. package/cjs/drag-drop/BoxModel.js +416 -0
  16. package/cjs/drag-drop/BoxModel.js.map +1 -0
  17. package/cjs/drag-drop/DragState.js +161 -0
  18. package/cjs/drag-drop/DragState.js.map +1 -0
  19. package/cjs/drag-drop/Draggable.js +192 -0
  20. package/cjs/drag-drop/Draggable.js.map +1 -0
  21. package/cjs/drag-drop/DropTarget.js +257 -0
  22. package/cjs/drag-drop/DropTarget.js.map +1 -0
  23. package/cjs/drag-drop/DropTargetRenderer.js +218 -0
  24. package/cjs/drag-drop/DropTargetRenderer.js.map +1 -0
  25. package/cjs/flexbox/Flexbox.css.js +6 -0
  26. package/cjs/flexbox/Flexbox.css.js.map +1 -0
  27. package/cjs/flexbox/Flexbox.js +69 -0
  28. package/cjs/flexbox/Flexbox.js.map +1 -0
  29. package/cjs/flexbox/FlexboxLayout.js +30 -0
  30. package/cjs/flexbox/FlexboxLayout.js.map +1 -0
  31. package/cjs/flexbox/Splitter.css.js +6 -0
  32. package/cjs/flexbox/Splitter.css.js.map +1 -0
  33. package/cjs/flexbox/Splitter.js +122 -0
  34. package/cjs/flexbox/Splitter.js.map +1 -0
  35. package/cjs/flexbox/flexbox-utils.js +95 -0
  36. package/cjs/flexbox/flexbox-utils.js.map +1 -0
  37. package/cjs/flexbox/useSplitterResizing.js +197 -0
  38. package/cjs/flexbox/useSplitterResizing.js.map +1 -0
  39. package/cjs/index.js +122 -0
  40. package/cjs/index.js.map +1 -0
  41. package/cjs/layout-action.js +24 -0
  42. package/cjs/layout-action.js.map +1 -0
  43. package/cjs/layout-header/Header.css.js +6 -0
  44. package/cjs/layout-header/Header.css.js.map +1 -0
  45. package/cjs/layout-header/Header.js +152 -0
  46. package/cjs/layout-header/Header.js.map +1 -0
  47. package/cjs/layout-header/useHeader.js +85 -0
  48. package/cjs/layout-header/useHeader.js.map +1 -0
  49. package/cjs/layout-provider/LayoutProvider.js +304 -0
  50. package/cjs/layout-provider/LayoutProvider.js.map +1 -0
  51. package/cjs/layout-provider/LayoutProviderContext.js +23 -0
  52. package/cjs/layout-provider/LayoutProviderContext.js.map +1 -0
  53. package/cjs/layout-provider/useLayoutDragDrop.js +177 -0
  54. package/cjs/layout-provider/useLayoutDragDrop.js.map +1 -0
  55. package/cjs/layout-reducer/flexUtils.js +227 -0
  56. package/cjs/layout-reducer/flexUtils.js.map +1 -0
  57. package/cjs/layout-reducer/insert-layout-element.js +286 -0
  58. package/cjs/layout-reducer/insert-layout-element.js.map +1 -0
  59. package/cjs/layout-reducer/layout-reducer.js +202 -0
  60. package/cjs/layout-reducer/layout-reducer.js.map +1 -0
  61. package/cjs/layout-reducer/layoutTypes.js +40 -0
  62. package/cjs/layout-reducer/layoutTypes.js.map +1 -0
  63. package/cjs/layout-reducer/layoutUtils.js +237 -0
  64. package/cjs/layout-reducer/layoutUtils.js.map +1 -0
  65. package/cjs/layout-reducer/move-layout-element.js +31 -0
  66. package/cjs/layout-reducer/move-layout-element.js.map +1 -0
  67. package/cjs/layout-reducer/remove-layout-element.js +237 -0
  68. package/cjs/layout-reducer/remove-layout-element.js.map +1 -0
  69. package/cjs/layout-reducer/replace-layout-element.js +96 -0
  70. package/cjs/layout-reducer/replace-layout-element.js.map +1 -0
  71. package/cjs/layout-reducer/resize-flex-children.js +62 -0
  72. package/cjs/layout-reducer/resize-flex-children.js.map +1 -0
  73. package/cjs/layout-reducer/wrap-layout-element.js +211 -0
  74. package/cjs/layout-reducer/wrap-layout-element.js.map +1 -0
  75. package/cjs/layout-view/View.css.js +6 -0
  76. package/cjs/layout-view/View.css.js.map +1 -0
  77. package/cjs/layout-view/View.js +160 -0
  78. package/cjs/layout-view/View.js.map +1 -0
  79. package/cjs/layout-view/useView.js +75 -0
  80. package/cjs/layout-view/useView.js.map +1 -0
  81. package/cjs/layout-view/useViewBroadcastChannel.js +35 -0
  82. package/cjs/layout-view/useViewBroadcastChannel.js.map +1 -0
  83. package/cjs/layout-view/useViewResize.js +42 -0
  84. package/cjs/layout-view/useViewResize.js.map +1 -0
  85. package/cjs/layout-view-actions/ViewContext.js +16 -0
  86. package/cjs/layout-view-actions/ViewContext.js.map +1 -0
  87. package/cjs/layout-view-actions/useViewActionDispatcher.js +112 -0
  88. package/cjs/layout-view-actions/useViewActionDispatcher.js.map +1 -0
  89. package/cjs/layout-view-actions/useViewContributions.js +33 -0
  90. package/cjs/layout-view-actions/useViewContributions.js.map +1 -0
  91. package/cjs/palette/Palette.css.js +6 -0
  92. package/cjs/palette/Palette.css.js.map +1 -0
  93. package/cjs/palette/Palette.js +115 -0
  94. package/cjs/palette/Palette.js.map +1 -0
  95. package/cjs/placeholder/LayoutStartPanel.css.js +6 -0
  96. package/cjs/placeholder/LayoutStartPanel.css.js.map +1 -0
  97. package/cjs/placeholder/LayoutStartPanel.js +56 -0
  98. package/cjs/placeholder/LayoutStartPanel.js.map +1 -0
  99. package/cjs/placeholder/Placeholder.css.js +6 -0
  100. package/cjs/placeholder/Placeholder.css.js.map +1 -0
  101. package/cjs/placeholder/Placeholder.js +34 -0
  102. package/cjs/placeholder/Placeholder.js.map +1 -0
  103. package/cjs/responsive/useResizeObserver.js +118 -0
  104. package/cjs/responsive/useResizeObserver.js.map +1 -0
  105. package/cjs/responsive/utils.js +34 -0
  106. package/cjs/responsive/utils.js.map +1 -0
  107. package/cjs/stack/Stack.css.js +6 -0
  108. package/cjs/stack/Stack.css.js.map +1 -0
  109. package/cjs/stack/Stack.js +150 -0
  110. package/cjs/stack/Stack.js.map +1 -0
  111. package/cjs/stack/StackLayout.js +116 -0
  112. package/cjs/stack/StackLayout.js.map +1 -0
  113. package/cjs/use-persistent-state.js +63 -0
  114. package/cjs/use-persistent-state.js.map +1 -0
  115. package/cjs/utils/pathUtils.js +293 -0
  116. package/cjs/utils/pathUtils.js.map +1 -0
  117. package/cjs/utils/propUtils.js +27 -0
  118. package/cjs/utils/propUtils.js.map +1 -0
  119. package/cjs/utils/refUtils.js +12 -0
  120. package/cjs/utils/refUtils.js.map +1 -0
  121. package/cjs/utils/styleUtils.js +15 -0
  122. package/cjs/utils/styleUtils.js.map +1 -0
  123. package/cjs/utils/typeOf.js +27 -0
  124. package/cjs/utils/typeOf.js.map +1 -0
  125. package/esm/Component.js +12 -0
  126. package/esm/Component.js.map +1 -0
  127. package/esm/LayoutContainer.css.js +4 -0
  128. package/esm/LayoutContainer.css.js.map +1 -0
  129. package/esm/LayoutContainer.js +31 -0
  130. package/esm/LayoutContainer.js.map +1 -0
  131. package/esm/dock-layout/DockLayout.css.js +4 -0
  132. package/esm/dock-layout/DockLayout.css.js.map +1 -0
  133. package/esm/dock-layout/DockLayout.js +39 -0
  134. package/esm/dock-layout/DockLayout.js.map +1 -0
  135. package/esm/dock-layout/Drawer.css.js +4 -0
  136. package/esm/dock-layout/Drawer.css.js.map +1 -0
  137. package/esm/dock-layout/Drawer.js +93 -0
  138. package/esm/dock-layout/Drawer.js.map +1 -0
  139. package/esm/drag-drop/BoxModel.js +409 -0
  140. package/esm/drag-drop/BoxModel.js.map +1 -0
  141. package/esm/drag-drop/DragState.js +159 -0
  142. package/esm/drag-drop/DragState.js.map +1 -0
  143. package/esm/drag-drop/Draggable.js +190 -0
  144. package/esm/drag-drop/Draggable.js.map +1 -0
  145. package/esm/drag-drop/DropTarget.js +253 -0
  146. package/esm/drag-drop/DropTarget.js.map +1 -0
  147. package/esm/drag-drop/DropTargetRenderer.js +216 -0
  148. package/esm/drag-drop/DropTargetRenderer.js.map +1 -0
  149. package/esm/flexbox/Flexbox.css.js +4 -0
  150. package/esm/flexbox/Flexbox.css.js.map +1 -0
  151. package/esm/flexbox/Flexbox.js +67 -0
  152. package/esm/flexbox/Flexbox.js.map +1 -0
  153. package/esm/flexbox/FlexboxLayout.js +28 -0
  154. package/esm/flexbox/FlexboxLayout.js.map +1 -0
  155. package/esm/flexbox/Splitter.css.js +4 -0
  156. package/esm/flexbox/Splitter.css.js.map +1 -0
  157. package/esm/flexbox/Splitter.js +120 -0
  158. package/esm/flexbox/Splitter.js.map +1 -0
  159. package/esm/flexbox/flexbox-utils.js +89 -0
  160. package/esm/flexbox/flexbox-utils.js.map +1 -0
  161. package/esm/flexbox/useSplitterResizing.js +195 -0
  162. package/esm/flexbox/useSplitterResizing.js.map +1 -0
  163. package/esm/index.js +33 -0
  164. package/esm/index.js.map +1 -0
  165. package/esm/layout-action.js +22 -0
  166. package/esm/layout-action.js.map +1 -0
  167. package/esm/layout-header/Header.css.js +4 -0
  168. package/esm/layout-header/Header.css.js.map +1 -0
  169. package/esm/layout-header/Header.js +150 -0
  170. package/esm/layout-header/Header.js.map +1 -0
  171. package/esm/layout-header/useHeader.js +83 -0
  172. package/esm/layout-header/useHeader.js.map +1 -0
  173. package/esm/layout-provider/LayoutProvider.js +297 -0
  174. package/esm/layout-provider/LayoutProvider.js.map +1 -0
  175. package/esm/layout-provider/LayoutProviderContext.js +20 -0
  176. package/esm/layout-provider/LayoutProviderContext.js.map +1 -0
  177. package/esm/layout-provider/useLayoutDragDrop.js +175 -0
  178. package/esm/layout-provider/useLayoutDragDrop.js.map +1 -0
  179. package/esm/layout-reducer/flexUtils.js +218 -0
  180. package/esm/layout-reducer/flexUtils.js.map +1 -0
  181. package/esm/layout-reducer/insert-layout-element.js +282 -0
  182. package/esm/layout-reducer/insert-layout-element.js.map +1 -0
  183. package/esm/layout-reducer/layout-reducer.js +200 -0
  184. package/esm/layout-reducer/layout-reducer.js.map +1 -0
  185. package/esm/layout-reducer/layoutTypes.js +36 -0
  186. package/esm/layout-reducer/layoutTypes.js.map +1 -0
  187. package/esm/layout-reducer/layoutUtils.js +226 -0
  188. package/esm/layout-reducer/layoutUtils.js.map +1 -0
  189. package/esm/layout-reducer/move-layout-element.js +29 -0
  190. package/esm/layout-reducer/move-layout-element.js.map +1 -0
  191. package/esm/layout-reducer/remove-layout-element.js +235 -0
  192. package/esm/layout-reducer/remove-layout-element.js.map +1 -0
  193. package/esm/layout-reducer/replace-layout-element.js +92 -0
  194. package/esm/layout-reducer/replace-layout-element.js.map +1 -0
  195. package/esm/layout-reducer/resize-flex-children.js +59 -0
  196. package/esm/layout-reducer/resize-flex-children.js.map +1 -0
  197. package/esm/layout-reducer/wrap-layout-element.js +209 -0
  198. package/esm/layout-reducer/wrap-layout-element.js.map +1 -0
  199. package/esm/layout-view/View.css.js +4 -0
  200. package/esm/layout-view/View.css.js.map +1 -0
  201. package/esm/layout-view/View.js +158 -0
  202. package/esm/layout-view/View.js.map +1 -0
  203. package/esm/layout-view/useView.js +73 -0
  204. package/esm/layout-view/useView.js.map +1 -0
  205. package/esm/layout-view/useViewBroadcastChannel.js +33 -0
  206. package/esm/layout-view/useViewBroadcastChannel.js.map +1 -0
  207. package/esm/layout-view/useViewResize.js +40 -0
  208. package/esm/layout-view/useViewResize.js.map +1 -0
  209. package/esm/layout-view-actions/ViewContext.js +12 -0
  210. package/esm/layout-view-actions/ViewContext.js.map +1 -0
  211. package/esm/layout-view-actions/useViewActionDispatcher.js +110 -0
  212. package/esm/layout-view-actions/useViewActionDispatcher.js.map +1 -0
  213. package/esm/layout-view-actions/useViewContributions.js +31 -0
  214. package/esm/layout-view-actions/useViewContributions.js.map +1 -0
  215. package/esm/palette/Palette.css.js +4 -0
  216. package/esm/palette/Palette.css.js.map +1 -0
  217. package/esm/palette/Palette.js +112 -0
  218. package/esm/palette/Palette.js.map +1 -0
  219. package/esm/placeholder/LayoutStartPanel.css.js +4 -0
  220. package/esm/placeholder/LayoutStartPanel.css.js.map +1 -0
  221. package/esm/placeholder/LayoutStartPanel.js +54 -0
  222. package/esm/placeholder/LayoutStartPanel.js.map +1 -0
  223. package/esm/placeholder/Placeholder.css.js +4 -0
  224. package/esm/placeholder/Placeholder.css.js.map +1 -0
  225. package/esm/placeholder/Placeholder.js +32 -0
  226. package/esm/placeholder/Placeholder.js.map +1 -0
  227. package/esm/responsive/useResizeObserver.js +112 -0
  228. package/esm/responsive/useResizeObserver.js.map +1 -0
  229. package/esm/responsive/utils.js +31 -0
  230. package/esm/responsive/utils.js.map +1 -0
  231. package/esm/stack/Stack.css.js +4 -0
  232. package/esm/stack/Stack.css.js.map +1 -0
  233. package/esm/stack/Stack.js +148 -0
  234. package/esm/stack/Stack.js.map +1 -0
  235. package/esm/stack/StackLayout.js +114 -0
  236. package/esm/stack/StackLayout.js.map +1 -0
  237. package/esm/use-persistent-state.js +58 -0
  238. package/esm/use-persistent-state.js.map +1 -0
  239. package/esm/utils/pathUtils.js +280 -0
  240. package/esm/utils/pathUtils.js.map +1 -0
  241. package/esm/utils/propUtils.js +23 -0
  242. package/esm/utils/propUtils.js.map +1 -0
  243. package/esm/utils/refUtils.js +10 -0
  244. package/esm/utils/refUtils.js.map +1 -0
  245. package/esm/utils/styleUtils.js +13 -0
  246. package/esm/utils/styleUtils.js.map +1 -0
  247. package/esm/utils/typeOf.js +23 -0
  248. package/esm/utils/typeOf.js.map +1 -0
  249. package/package.json +18 -15
  250. package/types/dock-layout/DockLayout.d.ts +4 -4
  251. package/types/dock-layout/Drawer.d.ts +4 -4
  252. package/types/drag-drop/BoxModel.d.ts +7 -7
  253. package/types/flexbox/FlexboxLayout.d.ts +4 -4
  254. package/types/flexbox/Splitter.d.ts +1 -1
  255. package/types/layout-reducer/layoutUtils.d.ts +1 -1
  256. package/types/layout-reducer/remove-layout-element.d.ts +1 -1
  257. package/types/layout-reducer/replace-layout-element.d.ts +2 -2
  258. package/types/layout-reducer/resize-flex-children.d.ts +2 -2
  259. package/types/layout-view/useView.d.ts +1 -1
  260. package/types/placeholder/Placeholder.d.ts +4 -4
  261. package/types/responsive/overflowUtils.d.ts +2 -2
  262. package/types/stack/StackLayout.d.ts +4 -4
  263. package/types/tools/devtools-box/layout-configurator.d.ts +26 -26
  264. package/types/tools/devtools-tree/layout-tree-viewer.d.ts +2 -2
  265. package/types/utils/pathUtils.d.ts +1 -1
  266. package/src/Component.js +0 -14
  267. package/src/LayoutContainer.css.js +0 -24
  268. package/src/LayoutContainer.js +0 -26
  269. package/src/debug.js +0 -16
  270. package/src/dock-layout/DockLayout.css.js +0 -36
  271. package/src/dock-layout/DockLayout.js +0 -43
  272. package/src/dock-layout/Drawer.css.js +0 -150
  273. package/src/dock-layout/Drawer.js +0 -82
  274. package/src/dock-layout/index.js +0 -2
  275. package/src/drag-drop/BoxModel.js +0 -337
  276. package/src/drag-drop/DragState.js +0 -119
  277. package/src/drag-drop/Draggable.js +0 -140
  278. package/src/drag-drop/DropTarget.js +0 -286
  279. package/src/drag-drop/DropTargetRenderer.js +0 -275
  280. package/src/drag-drop/dragDropTypes.js +0 -0
  281. package/src/drag-drop/index.js +0 -3
  282. package/src/flexbox/Flexbox.css.js +0 -45
  283. package/src/flexbox/Flexbox.js +0 -45
  284. package/src/flexbox/FlexboxLayout.js +0 -27
  285. package/src/flexbox/Splitter.css.js +0 -57
  286. package/src/flexbox/Splitter.js +0 -112
  287. package/src/flexbox/flexbox-utils.js +0 -92
  288. package/src/flexbox/flexboxTypes.js +0 -0
  289. package/src/flexbox/index.js +0 -2
  290. package/src/flexbox/useSplitterResizing.js +0 -181
  291. package/src/index.js +0 -20
  292. package/src/layout-action.js +0 -20
  293. package/src/layout-header/ActionButton.js +0 -15
  294. package/src/layout-header/Header.css.js +0 -32
  295. package/src/layout-header/Header.js +0 -99
  296. package/src/layout-header/index.js +0 -1
  297. package/src/layout-header/useHeader.js +0 -76
  298. package/src/layout-provider/LayoutProvider.js +0 -242
  299. package/src/layout-provider/LayoutProviderContext.js +0 -13
  300. package/src/layout-provider/index.js +0 -2
  301. package/src/layout-provider/useLayoutDragDrop.js +0 -147
  302. package/src/layout-reducer/flexUtils.js +0 -186
  303. package/src/layout-reducer/index.js +0 -4
  304. package/src/layout-reducer/insert-layout-element.js +0 -179
  305. package/src/layout-reducer/layout-reducer.js +0 -121
  306. package/src/layout-reducer/layoutTypes.js +0 -34
  307. package/src/layout-reducer/layoutUtils.js +0 -178
  308. package/src/layout-reducer/move-layout-element.js +0 -18
  309. package/src/layout-reducer/remove-layout-element.js +0 -161
  310. package/src/layout-reducer/replace-layout-element.js +0 -70
  311. package/src/layout-reducer/resize-flex-children.js +0 -48
  312. package/src/layout-reducer/wrap-layout-element.js +0 -134
  313. package/src/layout-view/View.css.js +0 -76
  314. package/src/layout-view/View.js +0 -116
  315. package/src/layout-view/useView.js +0 -69
  316. package/src/layout-view/useViewBroadcastChannel.js +0 -29
  317. package/src/layout-view/useViewResize.js +0 -27
  318. package/src/layout-view/viewTypes.js +0 -0
  319. package/src/layout-view-actions/ViewContext.js +0 -11
  320. package/src/layout-view-actions/useViewActionDispatcher.js +0 -116
  321. package/src/layout-view-actions/useViewContributions.js +0 -31
  322. package/src/palette/Palette.css.js +0 -31
  323. package/src/palette/Palette.js +0 -85
  324. package/src/palette/index.js +0 -1
  325. package/src/placeholder/LayoutStartPanel.css.js +0 -35
  326. package/src/placeholder/LayoutStartPanel.js +0 -57
  327. package/src/placeholder/Placeholder.css.js +0 -20
  328. package/src/placeholder/Placeholder.js +0 -33
  329. package/src/placeholder/index.js +0 -1
  330. package/src/responsive/index.js +0 -2
  331. package/src/responsive/measureMinimumNodeSize.js +0 -24
  332. package/src/responsive/useResizeObserver.js +0 -109
  333. package/src/responsive/utils.js +0 -27
  334. package/src/stack/Stack.css.js +0 -44
  335. package/src/stack/Stack.js +0 -98
  336. package/src/stack/StackLayout.js +0 -116
  337. package/src/stack/index.js +0 -3
  338. package/src/stack/stackTypes.js +0 -0
  339. package/src/tabs/TabPanel.css.js +0 -17
  340. package/src/tabs/TabPanel.js +0 -11
  341. package/src/tabs/index.js +0 -1
  342. package/src/tools/config-wrapper/ConfigWrapper.js +0 -55
  343. package/src/tools/config-wrapper/index.js +0 -1
  344. package/src/tools/devtools-box/layout-configurator.css.js +0 -113
  345. package/src/tools/devtools-tree/layout-tree-viewer.css.js +0 -17
  346. package/src/tools/index.js +0 -3
  347. package/src/use-persistent-state.js +0 -43
  348. package/src/utils/index.js +0 -5
  349. package/src/utils/pathUtils.js +0 -212
  350. package/src/utils/propUtils.js +0 -15
  351. package/src/utils/refUtils.js +0 -5
  352. package/src/utils/styleUtils.js +0 -9
  353. package/src/utils/typeOf.js +0 -15
@@ -10,7 +10,7 @@ export interface PlaceholderProps extends ViewProps {
10
10
  */
11
11
  shim?: boolean;
12
12
  }
13
- export declare function Placeholder({ className: classNameProp, showStartMenu, ...viewProps }: PlaceholderProps): import("react/jsx-runtime").JSX.Element;
14
- export declare namespace Placeholder {
15
- var displayName: string;
16
- }
13
+ export declare const Placeholder: {
14
+ ({ className: classNameProp, showStartMenu, ...viewProps }: PlaceholderProps): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
@@ -1,2 +1,2 @@
1
- export declare const getOverflowedItems: (containerRef: any, height?: number) => any[][];
2
- export declare const findFirstOverflow: (elements: any, height: any) => number;
1
+ export function getOverflowedItems(containerRef: any, height?: number): any[][];
2
+ export function findFirstOverflow(elements: any, height: any): number;
@@ -1,5 +1,5 @@
1
1
  import { StackProps } from "./stackTypes";
2
- export declare function StackLayout(props: StackProps): import("react/jsx-runtime").JSX.Element;
3
- export declare namespace StackLayout {
4
- var displayName: string;
5
- }
2
+ export declare const StackLayout: {
3
+ (props: StackProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
@@ -1,31 +1,31 @@
1
- export declare const MARGIN_STYLES: {
2
- margin: boolean;
3
- marginTop: boolean;
4
- marginRight: boolean;
5
- marginBottom: boolean;
6
- marginLeft: boolean;
7
- };
8
- export declare const PADDING_STYLES: {
9
- padding: boolean;
10
- paddingTop: boolean;
11
- paddingRight: boolean;
12
- paddingBottom: boolean;
13
- paddingLeft: boolean;
14
- };
15
- export declare const BORDER_STYLES: {
16
- border: boolean;
17
- borderColor: boolean;
18
- borderWidth: boolean;
19
- borderTopWidth: boolean;
20
- borderRightWidth: boolean;
21
- borderBottomWidth: boolean;
22
- borderLeftWidth: boolean;
23
- };
24
- export declare const LayoutConfigurator: ({ height, managedStyle, onChange, style, width, }: {
1
+ export function XXXnormalizeStyles(layoutStyle?: {}, visualStyle?: {}): {};
2
+ export namespace MARGIN_STYLES {
3
+ let margin: boolean;
4
+ let marginTop: boolean;
5
+ let marginRight: boolean;
6
+ let marginBottom: boolean;
7
+ let marginLeft: boolean;
8
+ }
9
+ export namespace PADDING_STYLES {
10
+ let padding: boolean;
11
+ let paddingTop: boolean;
12
+ let paddingRight: boolean;
13
+ let paddingBottom: boolean;
14
+ let paddingLeft: boolean;
15
+ }
16
+ export namespace BORDER_STYLES {
17
+ let border: boolean;
18
+ let borderColor: boolean;
19
+ let borderWidth: boolean;
20
+ let borderTopWidth: boolean;
21
+ let borderRightWidth: boolean;
22
+ let borderBottomWidth: boolean;
23
+ let borderLeftWidth: boolean;
24
+ }
25
+ export function LayoutConfigurator({ height, managedStyle, onChange, style, width, }: {
25
26
  height: any;
26
27
  managedStyle: any;
27
28
  onChange: any;
28
29
  style: any;
29
30
  width: any;
30
- }) => import("react/jsx-runtime").JSX.Element;
31
- export declare function XXXnormalizeStyles(layoutStyle?: {}, visualStyle?: {}): {};
31
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- export declare const LayoutTreeViewer: ({ layout, onSelect: _, style }: {
1
+ export function LayoutTreeViewer({ layout, onSelect: _, style }: {
2
2
  layout: any;
3
3
  onSelect: any;
4
4
  style: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -17,7 +17,7 @@ export declare function followPathToParent(source: ReactElement, path: string):
17
17
  export declare function findTarget(source: LayoutModel | undefined, test: (props: any) => boolean): LayoutModel | undefined;
18
18
  export declare function containerOf(source: LayoutModel, target: LayoutModel): LayoutModel | null;
19
19
  export declare const getChild: (children: ReactElement[], idx: number) => ReactElement | undefined;
20
- export declare function followPathToComponent(component: ReactElement, path: string): ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
20
+ export declare function followPathToComponent(component: ReactElement, path: string): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
21
21
  export declare function followPath(source: LayoutModel, path: string): LayoutModel | undefined;
22
22
  export declare function followPath(source: ReactElement, path: string, throwIfNotFound: true): ReactElement;
23
23
  export declare function nextLeaf(root: ReactElement, path: string): any;
package/src/Component.js DELETED
@@ -1,14 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { registerComponent } from "@vuu-ui/vuu-utils";
4
- const Component_Component = /*#__PURE__*/ forwardRef(function({ resizeable, ...props }, ref) {
5
- return /*#__PURE__*/ jsx("div", {
6
- ...props,
7
- className: "Component",
8
- ref: ref
9
- });
10
- });
11
- Component_Component.displayName = "Component";
12
- var src_Component = Component_Component;
13
- registerComponent("Component", Component_Component, "component");
14
- export default src_Component;
@@ -1,24 +0,0 @@
1
- const css = `
2
- .vuuLayoutContainer {
3
- outline: none;
4
- display: inline-block;
5
- }
6
-
7
- [data-dragging="true"] {
8
- z-index: 100;
9
- position: absolute !important;
10
- }
11
-
12
- .vuuSimpleDraggableWrapper {
13
- background-color: #fff;
14
- box-shadow: 0 6px 10px #0003;
15
- }
16
-
17
- .vuuSimpleDraggableWrapper > * {
18
- width: 100%;
19
- height: 100%;
20
- }
21
-
22
-
23
- `;
24
- export default css;
@@ -1,26 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { registerComponent } from "@vuu-ui/vuu-utils";
3
- import { useComponentCssInjection } from "@salt-ds/styles";
4
- import { useWindow } from "@salt-ds/window";
5
- import clsx from "clsx";
6
- import { forwardRef } from "react";
7
- import LayoutContainer_0 from "./LayoutContainer.css";
8
- const LayoutContainer_LayoutContainer = /*#__PURE__*/ forwardRef(function({ children, className: classNameProp, dropTarget, resizeable: _, ...htmlAttributes }, forwardedRef) {
9
- const targetWindow = useWindow();
10
- useComponentCssInjection({
11
- testId: "vuu-layout-container",
12
- css: LayoutContainer_0,
13
- window: targetWindow
14
- });
15
- const className = clsx("vuuLayoutContainer", classNameProp);
16
- return /*#__PURE__*/ jsx("div", {
17
- className: className,
18
- ref: forwardedRef,
19
- ...htmlAttributes,
20
- children: children
21
- });
22
- });
23
- const componentName = "LayoutContainer";
24
- LayoutContainer_LayoutContainer.displayName = componentName;
25
- registerComponent(componentName, LayoutContainer_LayoutContainer, "container");
26
- export { LayoutContainer_LayoutContainer as LayoutContainer };
package/src/debug.js DELETED
@@ -1,16 +0,0 @@
1
- import { typeOf } from "./utils/index.js";
2
- const tree = (el, depth = 0)=>{
3
- const type = typeOf(el);
4
- const spaces = " ";
5
- let str = `\n${spaces.slice(0, depth)}${type}`;
6
- if ("View" !== type) {
7
- const els = el.props.children || [];
8
- (Array.isArray(els) ? els : [
9
- els
10
- ]).forEach((child)=>{
11
- str += tree(child, depth + 1);
12
- });
13
- }
14
- return str;
15
- };
16
- export { tree };
@@ -1,36 +0,0 @@
1
- const css = `
2
- .vuuDockLayout {
3
- --chest-bg: var(--hw-chest-bg, inherit);
4
- --drawer-bg: var(--hw-drawer-bg, inherit);
5
- --drawer-size: var(--hw-drawer-size, 200px);
6
- --drawer-peek-size: var(--hw-drawer-peek-size, 32px);
7
- --drawer-transition-duration: var(--hw-drawer-transition-duration, .4s);
8
- background-color: var(--chest-bg);
9
- display: flex;
10
- }
11
-
12
- .vuuDockLayout-horizontal {
13
- flex-direction: row;
14
- }
15
-
16
- .vuuDockLayout-vertical {
17
- flex-direction: column;
18
- }
19
-
20
- .vuuDockLayout-content {
21
- background-color: var(--chest-bg);
22
- flex-grow: 1;
23
- flex-shrink: 1;
24
- justify-content: center;
25
- align-items: center;
26
- display: flex;
27
- overflow: hidden;
28
- }
29
-
30
- .vuuDockLayout-horizontal .vuuDockLayout-content, .vuuDockLayout-vertical .vuuDockLayout-content {
31
- flex-basis: 100%;
32
- }
33
-
34
-
35
- `;
36
- export default css;
@@ -1,43 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { asReactElements, partition, registerComponent } from "@vuu-ui/vuu-utils";
3
- import clsx from "clsx";
4
- import { useComponentCssInjection } from "@salt-ds/styles";
5
- import { useWindow } from "@salt-ds/window";
6
- import { useMemo } from "react";
7
- import Drawer from "./Drawer.js";
8
- import DockLayout from "./DockLayout.css";
9
- const isDrawer = (component)=>component.type === Drawer;
10
- const isVertical = (element)=>element.props.position && element.props.position.match(/top|bottom/);
11
- const classBase = "vuuDockLayout";
12
- const DockLayout_DockLayout = (props)=>{
13
- const targetWindow = useWindow();
14
- useComponentCssInjection({
15
- testId: "vuu-dock-layput",
16
- css: DockLayout,
17
- window: targetWindow
18
- });
19
- const { children, className: classNameProp, id, style } = props;
20
- const childElements = useMemo(()=>asReactElements(children), [
21
- children
22
- ]);
23
- const [drawers, content] = partition(childElements, isDrawer);
24
- const [verticalDrawers, horizontalDrawers] = partition(drawers, isVertical);
25
- const orientation = 0 === verticalDrawers.length ? "horizontal" : 0 === horizontalDrawers.length ? "vertical" : "both";
26
- const className = clsx(classBase, classNameProp, `${classBase}-${orientation}`);
27
- return /*#__PURE__*/ jsxs("div", {
28
- className: className,
29
- id: id,
30
- style: style,
31
- children: [
32
- drawers,
33
- /*#__PURE__*/ jsx("div", {
34
- className: `${classBase}-content`,
35
- children: content
36
- })
37
- ]
38
- });
39
- };
40
- DockLayout_DockLayout.displayName = "DockLayout";
41
- var dock_layout_DockLayout = DockLayout_DockLayout;
42
- registerComponent("DockLayout", DockLayout_DockLayout, "container");
43
- export default dock_layout_DockLayout;
@@ -1,150 +0,0 @@
1
- const css = `
2
- .vuuDrawer {
3
- --drawer-leading-edge-border: solid 1px var(--salt-container-primary-borderColor, none);
4
- --vuu-close-icon-svg: var(--svg-chevron-double-right);
5
- transition: flex-basis;
6
- transition-duration: var(--drawer-transition-duration);
7
- z-index: 1;
8
- flex: 1 1 0;
9
- min-width: 0;
10
- min-height: 0;
11
- display: flex;
12
- position: relative;
13
- }
14
-
15
- .vuuDrawer-peekaboo {
16
- flex-basis: var(--drawer-peek-size);
17
- flex-grow: 0;
18
- flex-shrink: 0;
19
- }
20
-
21
- .vuuDrawer-inline.vuuDrawer-open {
22
- flex-basis: var(--drawer-size);
23
- flex-grow: 0;
24
- flex-shrink: 0;
25
- }
26
-
27
- .vuuDrawer-liner {
28
- background-color: var(--drawer-bg);
29
- position: relative;
30
- overflow: hidden;
31
- }
32
-
33
- .vuuDrawer-content {
34
- height: 100%;
35
- top: 0;
36
- right: var(--drawer-peek-size);
37
- transition: right;
38
- transition-duration: var(--drawer-transition-duration);
39
- flex: 100%;
40
- width: 100%;
41
- position: absolute;
42
- overflow: hidden;
43
- }
44
-
45
- .vuuDrawer-open .vuuDrawer-content {
46
- right: 0;
47
- }
48
-
49
- .vuuDrawer-left {
50
- border-right: var(--drawer-leading-edge-border);
51
- }
52
-
53
- .vuuDrawer-right {
54
- border-left: var(--drawer-leading-edge-border);
55
- }
56
-
57
- .vuuDrawer-top {
58
- border-bottom: var(--drawer-leading-edge-border);
59
- }
60
-
61
- .vuuDrawer-bottom {
62
- border-top: var(--drawer-leading-edge-border);
63
- }
64
-
65
- .vuuDrawer-left .vuuDrawer-liner, .vuuDrawer-right .vuuDrawer-liner {
66
- height: 100%;
67
- transition: width;
68
- }
69
-
70
- .vuuDrawer-top .vuuDrawer-liner, .vuuDrawer-bottom .vuuDrawer-liner {
71
- width: 100%;
72
- transition: height;
73
- }
74
-
75
- .vuuDrawer-inline .vuuDrawer-liner {
76
- width: 100%;
77
- height: 100%;
78
- }
79
-
80
- .vuuDrawer-over .vuuDrawer-liner {
81
- transition-duration: .4s;
82
- position: absolute;
83
- }
84
-
85
- .vuuDrawer-over.vuuDrawer-left .vuuDrawer-liner {
86
- width: 0;
87
- top: 0;
88
- left: 0;
89
- }
90
-
91
- .vuuDrawer-over.vuuDrawer-right .vuuDrawer-liner {
92
- width: 0;
93
- top: 0;
94
- right: 0;
95
- }
96
-
97
- .vuuDrawer-over.vuuDrawer-top .vuuDrawer-liner {
98
- height: 0;
99
- top: 0;
100
- left: 0;
101
- }
102
-
103
- .vuuDrawer-over.vuuDrawer-bottom .vuuDrawer-liner {
104
- height: 0;
105
- bottom: 0;
106
- left: 0;
107
- }
108
-
109
- .vuuDrawer-left.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner, .vuuDrawer-right.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner {
110
- width: var(--drawer-peek-size);
111
- }
112
-
113
- .vuuDrawer-top.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner, .vuuDrawer-bottom.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner {
114
- height: var(--drawer-peek-size);
115
- }
116
-
117
- .vuuDrawer-left.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner, .vuuDrawer-right.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner {
118
- width: var(--drawer-size);
119
- }
120
-
121
- .vuuDrawer-top.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner, .vuuDrawer-bottom.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner {
122
- height: var(--drawer-size);
123
- }
124
-
125
- .vuuDrawer-top, .vuuDrawer-left {
126
- order: 0;
127
- }
128
-
129
- .vuuDrawer-bottom, .vuuDrawer-right {
130
- order: 99;
131
- }
132
-
133
- .vuuDrawer-left, .vuuDrawer-right {
134
- flex-direction: column;
135
- }
136
-
137
- .vuuToggleButton-container {
138
- --saltButton-height: 28px;
139
- --saltButton-width: 28px;
140
- --vuu-icon-size: 12px;
141
- flex: 0 0 28px;
142
- }
143
-
144
- .vuuDrawer-open {
145
- --vuu-close-icon-svg: var(--svg-chevron-double-left);
146
- }
147
-
148
-
149
- `;
150
- export default css;
@@ -1,82 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Button, useControlled } from "@salt-ds/core";
3
- import clsx from "clsx";
4
- import { useComponentCssInjection } from "@salt-ds/styles";
5
- import { useWindow } from "@salt-ds/window";
6
- import { useCallback } from "react";
7
- import Drawer from "./Drawer.css";
8
- const classBase = "vuuDrawer";
9
- const sizeAttribute = (value)=>"string" == typeof value ? value : value + "px";
10
- const getStyle = (styleProp, sizeOpen, sizeClosed)=>{
11
- const hasSizeOpen = void 0 !== sizeOpen;
12
- const hasSizeClosed = void 0 !== sizeClosed;
13
- if (!styleProp && !hasSizeClosed && !hasSizeOpen) return;
14
- if (!hasSizeClosed && !hasSizeOpen) return styleProp;
15
- return {
16
- ...styleProp,
17
- "--drawer-size": hasSizeOpen ? sizeAttribute(sizeOpen) : void 0,
18
- "--drawer-peek-size": hasSizeClosed ? sizeAttribute(sizeClosed) : void 0
19
- };
20
- };
21
- const Drawer_Drawer = ({ children, className: classNameProp, clickToOpen, defaultOpen, sizeOpen, sizeClosed, style: styleProp, open: openProp, position = "left", inline, onClick, peekaboo = false, toggleButton, ...props })=>{
22
- const targetWindow = useWindow();
23
- useComponentCssInjection({
24
- testId: "vuu-drawer",
25
- css: Drawer,
26
- window: targetWindow
27
- });
28
- const [open, setOpen] = useControlled({
29
- controlled: openProp,
30
- default: defaultOpen ?? false,
31
- name: "Drawer",
32
- state: "open"
33
- });
34
- const className = clsx(classBase, classNameProp, `${classBase}-${position}`, {
35
- [`${classBase}-open`]: open,
36
- [`${classBase}-inline`]: inline,
37
- [`${classBase}-over`]: !inline,
38
- [`${classBase}-peekaboo`]: peekaboo
39
- });
40
- const toggleDrawer = useCallback(()=>{
41
- setOpen(!open);
42
- }, [
43
- open,
44
- setOpen
45
- ]);
46
- const style = getStyle(styleProp, sizeOpen, sizeClosed);
47
- const handleClick = clickToOpen ? toggleDrawer : onClick;
48
- const renderToggleButton = ()=>/*#__PURE__*/ jsx("div", {
49
- className: clsx("vuuToggleButton-container"),
50
- children: open ? /*#__PURE__*/ jsx(Button, {
51
- "aria-label": "close",
52
- onClick: toggleDrawer,
53
- "data-icon": "close",
54
- variant: "secondary"
55
- }) : /*#__PURE__*/ jsx(Button, {
56
- "aria-label": "open",
57
- onClick: toggleDrawer,
58
- "data-icon": "close",
59
- variant: "secondary"
60
- })
61
- });
62
- return /*#__PURE__*/ jsxs("div", {
63
- ...props,
64
- className: className,
65
- onClick: handleClick,
66
- style: style,
67
- children: [
68
- "start" == toggleButton ? renderToggleButton() : null,
69
- /*#__PURE__*/ jsx("div", {
70
- className: `${classBase}-liner`,
71
- children: /*#__PURE__*/ jsx("div", {
72
- className: `${classBase}-content`,
73
- children: children
74
- })
75
- }),
76
- "end" == toggleButton ? renderToggleButton() : null
77
- ]
78
- });
79
- };
80
- Drawer_Drawer.displayName = "Drawer";
81
- var dock_layout_Drawer = Drawer_Drawer;
82
- export default dock_layout_Drawer;
@@ -1,2 +0,0 @@
1
- export { default as DockLayout } from "./DockLayout.js";
2
- export { default as Drawer } from "./Drawer.js";