@xyo-network/react-appbar 2.62.3 → 2.63.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (449) hide show
  1. package/dist/cjs/components/AppBar/Application.js +13 -0
  2. package/dist/cjs/components/AppBar/Application.js.map +1 -0
  3. package/dist/cjs/components/AppBar/index.js +5 -0
  4. package/dist/cjs/components/AppBar/index.js.map +1 -0
  5. package/dist/cjs/components/CollapsibleDrawer/CollapseToggle.js +21 -0
  6. package/dist/cjs/components/CollapsibleDrawer/CollapseToggle.js.map +1 -0
  7. package/dist/cjs/components/CollapsibleDrawer/CollapsibleDrawer.js +23 -0
  8. package/dist/cjs/components/CollapsibleDrawer/CollapsibleDrawer.js.map +1 -0
  9. package/dist/cjs/components/CollapsibleDrawer/index.js +6 -0
  10. package/dist/cjs/components/CollapsibleDrawer/index.js.map +1 -0
  11. package/dist/cjs/components/CollapsibleDrawer/storyExampleMenuData.js +69 -0
  12. package/dist/cjs/components/CollapsibleDrawer/storyExampleMenuData.js.map +1 -0
  13. package/dist/cjs/components/MobileSystemControls/SystemControls.js +11 -0
  14. package/dist/cjs/components/MobileSystemControls/SystemControls.js.map +1 -0
  15. package/dist/cjs/components/MobileSystemControls/SystemControlsRoot.js +62 -0
  16. package/dist/cjs/components/MobileSystemControls/SystemControlsRoot.js.map +1 -0
  17. package/dist/cjs/components/MobileSystemControls/SystemControlsType.js +10 -0
  18. package/dist/cjs/components/MobileSystemControls/SystemControlsType.js.map +1 -0
  19. package/dist/cjs/components/MobileSystemControls/SystemControlsUnstyled.js +22 -0
  20. package/dist/cjs/components/MobileSystemControls/SystemControlsUnstyled.js.map +1 -0
  21. package/dist/cjs/components/MobileSystemControls/controls/SystemControl.js +23 -0
  22. package/dist/cjs/components/MobileSystemControls/controls/SystemControl.js.map +1 -0
  23. package/dist/cjs/components/MobileSystemControls/controls/SystemControlText.js +13 -0
  24. package/dist/cjs/components/MobileSystemControls/controls/SystemControlText.js.map +1 -0
  25. package/dist/cjs/components/MobileSystemControls/controls/index.js +6 -0
  26. package/dist/cjs/components/MobileSystemControls/controls/index.js.map +1 -0
  27. package/dist/cjs/components/MobileSystemControls/index.js +7 -0
  28. package/dist/cjs/components/MobileSystemControls/index.js.map +1 -0
  29. package/dist/cjs/components/SearchBar/SearchBar.js +20 -0
  30. package/dist/cjs/components/SearchBar/SearchBar.js.map +1 -0
  31. package/dist/cjs/components/SearchBar/index.js +5 -0
  32. package/dist/cjs/components/SearchBar/index.js.map +1 -0
  33. package/dist/cjs/components/SiteMenu/Menu.js +23 -0
  34. package/dist/cjs/components/SiteMenu/Menu.js.map +1 -0
  35. package/dist/cjs/components/SiteMenu/MenuListItem/MenuListItemContainer.js +29 -0
  36. package/dist/cjs/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +1 -0
  37. package/dist/cjs/components/SiteMenu/MenuListItem/index.js +5 -0
  38. package/dist/cjs/components/SiteMenu/MenuListItem/index.js.map +1 -0
  39. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +14 -0
  40. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +1 -0
  41. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +12 -0
  42. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +1 -0
  43. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +17 -0
  44. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +1 -0
  45. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/index.js +7 -0
  46. package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/index.js.map +1 -0
  47. package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +12 -0
  48. package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +1 -0
  49. package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +15 -0
  50. package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +1 -0
  51. package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/index.js +6 -0
  52. package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/index.js.map +1 -0
  53. package/dist/cjs/components/SiteMenu/MenuSection.js +14 -0
  54. package/dist/cjs/components/SiteMenu/MenuSection.js.map +1 -0
  55. package/dist/cjs/components/SiteMenu/hooks/index.js +5 -0
  56. package/dist/cjs/components/SiteMenu/hooks/index.js.map +1 -0
  57. package/dist/cjs/components/SiteMenu/hooks/useMenuItemsShared.js +23 -0
  58. package/dist/cjs/components/SiteMenu/hooks/useMenuItemsShared.js.map +1 -0
  59. package/dist/cjs/components/SiteMenu/index.js +9 -0
  60. package/dist/cjs/components/SiteMenu/index.js.map +1 -0
  61. package/dist/cjs/components/SiteMenu/lib/MenuListItemBase.js +3 -0
  62. package/dist/cjs/components/SiteMenu/lib/MenuListItemBase.js.map +1 -0
  63. package/dist/cjs/components/SiteMenu/lib/NavListItemProps.js +3 -0
  64. package/dist/cjs/components/SiteMenu/lib/NavListItemProps.js.map +1 -0
  65. package/dist/cjs/components/SiteMenu/lib/index.js +6 -0
  66. package/dist/cjs/components/SiteMenu/lib/index.js.map +1 -0
  67. package/dist/cjs/components/Toolbar/Context/ContextToolbar.js +13 -0
  68. package/dist/cjs/components/Toolbar/Context/ContextToolbar.js.map +1 -0
  69. package/dist/cjs/components/Toolbar/Context/Logo.js +14 -0
  70. package/dist/cjs/components/Toolbar/Context/Logo.js.map +1 -0
  71. package/dist/cjs/components/Toolbar/Context/LogoLinkEx.js +16 -0
  72. package/dist/cjs/components/Toolbar/Context/LogoLinkEx.js.map +1 -0
  73. package/dist/cjs/components/Toolbar/Context/index.js +5 -0
  74. package/dist/cjs/components/Toolbar/Context/index.js.map +1 -0
  75. package/dist/cjs/components/Toolbar/System/SystemToolbar.js +16 -0
  76. package/dist/cjs/components/Toolbar/System/SystemToolbar.js.map +1 -0
  77. package/dist/cjs/components/Toolbar/System/index.js +5 -0
  78. package/dist/cjs/components/Toolbar/System/index.js.map +1 -0
  79. package/dist/cjs/components/Toolbar/index.js +6 -0
  80. package/dist/cjs/components/Toolbar/index.js.map +1 -0
  81. package/dist/cjs/components/index.js +10 -0
  82. package/dist/cjs/components/index.js.map +1 -0
  83. package/dist/cjs/contexts/Collapsible/State.js +3 -0
  84. package/dist/cjs/contexts/Collapsible/State.js.map +1 -0
  85. package/dist/cjs/contexts/Collapsible/context.js +6 -0
  86. package/dist/cjs/contexts/Collapsible/context.js.map +1 -0
  87. package/dist/cjs/contexts/Collapsible/index.js +7 -0
  88. package/dist/cjs/contexts/Collapsible/index.js.map +1 -0
  89. package/dist/cjs/contexts/Collapsible/provider.js +19 -0
  90. package/dist/cjs/contexts/Collapsible/provider.js.map +1 -0
  91. package/dist/cjs/contexts/Collapsible/use.js +8 -0
  92. package/dist/cjs/contexts/Collapsible/use.js.map +1 -0
  93. package/dist/cjs/contexts/index.js +5 -0
  94. package/dist/cjs/contexts/index.js.map +1 -0
  95. package/dist/cjs/index.js +6 -0
  96. package/dist/cjs/index.js.map +1 -0
  97. package/dist/docs.json +92 -92
  98. package/dist/esm/components/AppBar/Application.js +7 -0
  99. package/dist/esm/components/AppBar/Application.js.map +1 -0
  100. package/dist/esm/components/AppBar/index.js +2 -0
  101. package/dist/esm/components/AppBar/index.js.map +1 -0
  102. package/dist/esm/components/CollapsibleDrawer/CollapseToggle.js +17 -0
  103. package/dist/esm/components/CollapsibleDrawer/CollapseToggle.js.map +1 -0
  104. package/dist/esm/components/CollapsibleDrawer/CollapsibleDrawer.js +21 -0
  105. package/dist/esm/components/CollapsibleDrawer/CollapsibleDrawer.js.map +1 -0
  106. package/dist/{components/CollapsibleDrawer/index.d.mts → esm/components/CollapsibleDrawer/index.js} +1 -1
  107. package/dist/esm/components/CollapsibleDrawer/index.js.map +1 -0
  108. package/dist/esm/components/CollapsibleDrawer/storyExampleMenuData.js +66 -0
  109. package/dist/esm/components/CollapsibleDrawer/storyExampleMenuData.js.map +1 -0
  110. package/dist/esm/components/MobileSystemControls/SystemControls.js +8 -0
  111. package/dist/esm/components/MobileSystemControls/SystemControls.js.map +1 -0
  112. package/dist/esm/components/MobileSystemControls/SystemControlsRoot.js +59 -0
  113. package/dist/esm/components/MobileSystemControls/SystemControlsRoot.js.map +1 -0
  114. package/dist/esm/components/MobileSystemControls/SystemControlsType.js +7 -0
  115. package/dist/esm/components/MobileSystemControls/SystemControlsType.js.map +1 -0
  116. package/dist/esm/components/MobileSystemControls/SystemControlsUnstyled.js +17 -0
  117. package/dist/esm/components/MobileSystemControls/SystemControlsUnstyled.js.map +1 -0
  118. package/dist/esm/components/MobileSystemControls/controls/SystemControl.js +18 -0
  119. package/dist/esm/components/MobileSystemControls/controls/SystemControl.js.map +1 -0
  120. package/dist/esm/components/MobileSystemControls/controls/SystemControlText.js +8 -0
  121. package/dist/esm/components/MobileSystemControls/controls/SystemControlText.js.map +1 -0
  122. package/dist/{components/MobileSystemControls/controls/index.d.mts → esm/components/MobileSystemControls/controls/index.js} +1 -1
  123. package/dist/esm/components/MobileSystemControls/controls/index.js.map +1 -0
  124. package/dist/{components/MobileSystemControls/index.d.mts → esm/components/MobileSystemControls/index.js} +1 -1
  125. package/dist/esm/components/MobileSystemControls/index.js.map +1 -0
  126. package/dist/esm/components/SearchBar/SearchBar.js +14 -0
  127. package/dist/esm/components/SearchBar/SearchBar.js.map +1 -0
  128. package/dist/esm/components/SearchBar/index.js +2 -0
  129. package/dist/esm/components/SearchBar/index.js.map +1 -0
  130. package/dist/esm/components/SiteMenu/Menu.js +17 -0
  131. package/dist/esm/components/SiteMenu/Menu.js.map +1 -0
  132. package/dist/esm/components/SiteMenu/MenuListItem/MenuListItemContainer.js +23 -0
  133. package/dist/esm/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +1 -0
  134. package/dist/{components/SiteMenu/MenuListItem/index.d.mts → esm/components/SiteMenu/MenuListItem/index.js} +1 -1
  135. package/dist/esm/components/SiteMenu/MenuListItem/index.js.map +1 -0
  136. package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +8 -0
  137. package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +1 -0
  138. package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +6 -0
  139. package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +1 -0
  140. package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +11 -0
  141. package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +1 -0
  142. package/dist/{components/SiteMenu/MenuListItem/list-item-components/index.d.mts → esm/components/SiteMenu/MenuListItem/list-item-components/index.js} +1 -1
  143. package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/index.js.map +1 -0
  144. package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +6 -0
  145. package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +1 -0
  146. package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +11 -0
  147. package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +1 -0
  148. package/dist/{components/SiteMenu/MenuListItem/sub-nav/index.d.mts → esm/components/SiteMenu/MenuListItem/sub-nav/index.js} +1 -1
  149. package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/index.js.map +1 -0
  150. package/dist/esm/components/SiteMenu/MenuSection.js +8 -0
  151. package/dist/esm/components/SiteMenu/MenuSection.js.map +1 -0
  152. package/dist/{components/SiteMenu/hooks/index.d.mts → esm/components/SiteMenu/hooks/index.js} +1 -1
  153. package/dist/esm/components/SiteMenu/hooks/index.js.map +1 -0
  154. package/dist/esm/components/SiteMenu/hooks/useMenuItemsShared.js +19 -0
  155. package/dist/esm/components/SiteMenu/hooks/useMenuItemsShared.js.map +1 -0
  156. package/dist/{components/SiteMenu/index.d.mts → esm/components/SiteMenu/index.js} +1 -1
  157. package/dist/esm/components/SiteMenu/index.js.map +1 -0
  158. package/dist/esm/components/SiteMenu/lib/MenuListItemBase.js +2 -0
  159. package/dist/esm/components/SiteMenu/lib/MenuListItemBase.js.map +1 -0
  160. package/dist/esm/components/SiteMenu/lib/NavListItemProps.js +2 -0
  161. package/dist/esm/components/SiteMenu/lib/NavListItemProps.js.map +1 -0
  162. package/dist/{components/SiteMenu/lib/index.d.mts → esm/components/SiteMenu/lib/index.js} +1 -1
  163. package/dist/esm/components/SiteMenu/lib/index.js.map +1 -0
  164. package/dist/esm/components/Toolbar/Context/ContextToolbar.js +7 -0
  165. package/dist/esm/components/Toolbar/Context/ContextToolbar.js.map +1 -0
  166. package/dist/esm/components/Toolbar/Context/Logo.js +10 -0
  167. package/dist/esm/components/Toolbar/Context/Logo.js.map +1 -0
  168. package/dist/esm/components/Toolbar/Context/LogoLinkEx.js +10 -0
  169. package/dist/esm/components/Toolbar/Context/LogoLinkEx.js.map +1 -0
  170. package/dist/esm/components/Toolbar/Context/index.js +2 -0
  171. package/dist/esm/components/Toolbar/Context/index.js.map +1 -0
  172. package/dist/esm/components/Toolbar/System/SystemToolbar.js +10 -0
  173. package/dist/esm/components/Toolbar/System/SystemToolbar.js.map +1 -0
  174. package/dist/esm/components/Toolbar/System/index.js +2 -0
  175. package/dist/esm/components/Toolbar/System/index.js.map +1 -0
  176. package/dist/{components/Toolbar/index.d.mts → esm/components/Toolbar/index.js} +1 -1
  177. package/dist/esm/components/Toolbar/index.js.map +1 -0
  178. package/dist/{components/index.d.mts → esm/components/index.js} +1 -1
  179. package/dist/esm/components/index.js.map +1 -0
  180. package/dist/esm/contexts/Collapsible/State.js +2 -0
  181. package/dist/esm/contexts/Collapsible/State.js.map +1 -0
  182. package/dist/esm/contexts/Collapsible/context.js +3 -0
  183. package/dist/esm/contexts/Collapsible/context.js.map +1 -0
  184. package/dist/{contexts/Collapsible/index.d.mts → esm/contexts/Collapsible/index.js} +1 -1
  185. package/dist/esm/contexts/Collapsible/index.js.map +1 -0
  186. package/dist/esm/contexts/Collapsible/provider.js +15 -0
  187. package/dist/esm/contexts/Collapsible/provider.js.map +1 -0
  188. package/dist/esm/contexts/Collapsible/use.js +4 -0
  189. package/dist/esm/contexts/Collapsible/use.js.map +1 -0
  190. package/dist/esm/contexts/index.js +2 -0
  191. package/dist/esm/contexts/index.js.map +1 -0
  192. package/dist/{index.d.mts → esm/index.js} +1 -1
  193. package/dist/esm/index.js.map +1 -0
  194. package/dist/types/components/AppBar/Application.d.ts.map +1 -0
  195. package/dist/types/components/AppBar/index.d.ts.map +1 -0
  196. package/dist/types/components/CollapsibleDrawer/CollapseToggle.d.ts.map +1 -0
  197. package/dist/types/components/CollapsibleDrawer/CollapsibleDrawer.d.ts.map +1 -0
  198. package/dist/types/components/CollapsibleDrawer/index.d.ts.map +1 -0
  199. package/dist/types/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +1 -0
  200. package/dist/types/components/MobileSystemControls/SystemControls.d.ts.map +1 -0
  201. package/dist/types/components/MobileSystemControls/SystemControlsRoot.d.ts.map +1 -0
  202. package/dist/types/components/MobileSystemControls/SystemControlsType.d.ts.map +1 -0
  203. package/dist/types/components/MobileSystemControls/SystemControlsUnstyled.d.ts.map +1 -0
  204. package/dist/types/components/MobileSystemControls/controls/SystemControl.d.ts.map +1 -0
  205. package/dist/types/components/MobileSystemControls/controls/SystemControlText.d.ts.map +1 -0
  206. package/dist/types/components/MobileSystemControls/controls/index.d.ts.map +1 -0
  207. package/dist/types/components/MobileSystemControls/index.d.ts.map +1 -0
  208. package/dist/types/components/SearchBar/SearchBar.d.ts.map +1 -0
  209. package/dist/types/components/SearchBar/index.d.ts.map +1 -0
  210. package/dist/types/components/SiteMenu/Menu.d.ts.map +1 -0
  211. package/dist/types/components/SiteMenu/MenuListItem/MenuListItemContainer.d.ts.map +1 -0
  212. package/dist/types/components/SiteMenu/MenuListItem/index.d.ts.map +1 -0
  213. package/dist/types/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +1 -0
  214. package/dist/types/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.ts.map +1 -0
  215. package/dist/types/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.ts.map +1 -0
  216. package/dist/types/components/SiteMenu/MenuListItem/list-item-components/index.d.ts.map +1 -0
  217. package/dist/types/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.ts.map +1 -0
  218. package/dist/types/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +1 -0
  219. package/dist/types/components/SiteMenu/MenuListItem/sub-nav/index.d.ts.map +1 -0
  220. package/dist/types/components/SiteMenu/MenuSection.d.ts.map +1 -0
  221. package/dist/types/components/SiteMenu/hooks/index.d.ts.map +1 -0
  222. package/dist/types/components/SiteMenu/hooks/useMenuItemsShared.d.ts.map +1 -0
  223. package/dist/types/components/SiteMenu/index.d.ts.map +1 -0
  224. package/dist/types/components/SiteMenu/lib/MenuListItemBase.d.ts.map +1 -0
  225. package/dist/types/components/SiteMenu/lib/NavListItemProps.d.ts.map +1 -0
  226. package/dist/types/components/SiteMenu/lib/index.d.ts.map +1 -0
  227. package/dist/types/components/Toolbar/Context/ContextToolbar.d.ts.map +1 -0
  228. package/dist/types/components/Toolbar/Context/Logo.d.ts.map +1 -0
  229. package/dist/types/components/Toolbar/Context/LogoLinkEx.d.ts.map +1 -0
  230. package/dist/types/components/Toolbar/Context/index.d.ts.map +1 -0
  231. package/dist/types/components/Toolbar/System/SystemToolbar.d.ts.map +1 -0
  232. package/dist/types/components/Toolbar/System/index.d.ts.map +1 -0
  233. package/dist/types/components/Toolbar/index.d.ts.map +1 -0
  234. package/dist/types/components/index.d.ts.map +1 -0
  235. package/dist/types/contexts/Collapsible/State.d.ts.map +1 -0
  236. package/dist/types/contexts/Collapsible/context.d.ts.map +1 -0
  237. package/dist/types/contexts/Collapsible/index.d.ts.map +1 -0
  238. package/dist/types/contexts/Collapsible/provider.d.ts.map +1 -0
  239. package/dist/types/contexts/Collapsible/use.d.ts.map +1 -0
  240. package/dist/types/contexts/index.d.ts.map +1 -0
  241. package/dist/types/index.d.ts.map +1 -0
  242. package/package.json +25 -33
  243. package/dist/components/AppBar/Application.d.mts +0 -10
  244. package/dist/components/AppBar/Application.d.mts.map +0 -1
  245. package/dist/components/AppBar/Application.d.ts.map +0 -1
  246. package/dist/components/AppBar/Application.stories.d.mts +0 -7
  247. package/dist/components/AppBar/Application.stories.d.mts.map +0 -1
  248. package/dist/components/AppBar/Application.stories.d.ts +0 -7
  249. package/dist/components/AppBar/Application.stories.d.ts.map +0 -1
  250. package/dist/components/AppBar/index.d.mts +0 -2
  251. package/dist/components/AppBar/index.d.mts.map +0 -1
  252. package/dist/components/AppBar/index.d.ts.map +0 -1
  253. package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.mts +0 -10
  254. package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.mts.map +0 -1
  255. package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.ts +0 -10
  256. package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.ts.map +0 -1
  257. package/dist/components/CollapsibleDrawer/CollapseToggle.d.mts +0 -4
  258. package/dist/components/CollapsibleDrawer/CollapseToggle.d.mts.map +0 -1
  259. package/dist/components/CollapsibleDrawer/CollapseToggle.d.ts.map +0 -1
  260. package/dist/components/CollapsibleDrawer/CollapsibleDrawer.d.mts +0 -5
  261. package/dist/components/CollapsibleDrawer/CollapsibleDrawer.d.mts.map +0 -1
  262. package/dist/components/CollapsibleDrawer/CollapsibleDrawer.d.ts.map +0 -1
  263. package/dist/components/CollapsibleDrawer/index.d.mts.map +0 -1
  264. package/dist/components/CollapsibleDrawer/index.d.ts.map +0 -1
  265. package/dist/components/CollapsibleDrawer/storyExampleMenuData.d.mts +0 -4
  266. package/dist/components/CollapsibleDrawer/storyExampleMenuData.d.mts.map +0 -1
  267. package/dist/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +0 -1
  268. package/dist/components/MobileSystemControls/SystemControls.d.mts +0 -5
  269. package/dist/components/MobileSystemControls/SystemControls.d.mts.map +0 -1
  270. package/dist/components/MobileSystemControls/SystemControls.d.ts.map +0 -1
  271. package/dist/components/MobileSystemControls/SystemControls.stories.d.mts +0 -7
  272. package/dist/components/MobileSystemControls/SystemControls.stories.d.mts.map +0 -1
  273. package/dist/components/MobileSystemControls/SystemControls.stories.d.ts +0 -7
  274. package/dist/components/MobileSystemControls/SystemControls.stories.d.ts.map +0 -1
  275. package/dist/components/MobileSystemControls/SystemControlsRoot.d.mts +0 -4
  276. package/dist/components/MobileSystemControls/SystemControlsRoot.d.mts.map +0 -1
  277. package/dist/components/MobileSystemControls/SystemControlsRoot.d.ts.map +0 -1
  278. package/dist/components/MobileSystemControls/SystemControlsType.d.mts +0 -6
  279. package/dist/components/MobileSystemControls/SystemControlsType.d.mts.map +0 -1
  280. package/dist/components/MobileSystemControls/SystemControlsType.d.ts.map +0 -1
  281. package/dist/components/MobileSystemControls/SystemControlsUnstyled.d.mts +0 -11
  282. package/dist/components/MobileSystemControls/SystemControlsUnstyled.d.mts.map +0 -1
  283. package/dist/components/MobileSystemControls/SystemControlsUnstyled.d.ts.map +0 -1
  284. package/dist/components/MobileSystemControls/controls/SystemControl.d.mts +0 -11
  285. package/dist/components/MobileSystemControls/controls/SystemControl.d.mts.map +0 -1
  286. package/dist/components/MobileSystemControls/controls/SystemControl.d.ts.map +0 -1
  287. package/dist/components/MobileSystemControls/controls/SystemControlText.d.mts +0 -8
  288. package/dist/components/MobileSystemControls/controls/SystemControlText.d.mts.map +0 -1
  289. package/dist/components/MobileSystemControls/controls/SystemControlText.d.ts.map +0 -1
  290. package/dist/components/MobileSystemControls/controls/index.d.mts.map +0 -1
  291. package/dist/components/MobileSystemControls/controls/index.d.ts.map +0 -1
  292. package/dist/components/MobileSystemControls/index.d.mts.map +0 -1
  293. package/dist/components/MobileSystemControls/index.d.ts.map +0 -1
  294. package/dist/components/SearchBar/SearchBar.d.mts +0 -7
  295. package/dist/components/SearchBar/SearchBar.d.mts.map +0 -1
  296. package/dist/components/SearchBar/SearchBar.d.ts.map +0 -1
  297. package/dist/components/SearchBar/index.d.mts +0 -2
  298. package/dist/components/SearchBar/index.d.mts.map +0 -1
  299. package/dist/components/SearchBar/index.d.ts.map +0 -1
  300. package/dist/components/SiteMenu/Menu.d.mts +0 -9
  301. package/dist/components/SiteMenu/Menu.d.mts.map +0 -1
  302. package/dist/components/SiteMenu/Menu.d.ts.map +0 -1
  303. package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.d.mts +0 -11
  304. package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.d.mts.map +0 -1
  305. package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.d.ts.map +0 -1
  306. package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.mts +0 -7
  307. package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.mts.map +0 -1
  308. package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.ts +0 -7
  309. package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.ts.map +0 -1
  310. package/dist/components/SiteMenu/MenuListItem/index.d.mts.map +0 -1
  311. package/dist/components/SiteMenu/MenuListItem/index.d.ts.map +0 -1
  312. package/dist/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts +0 -7
  313. package/dist/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts.map +0 -1
  314. package/dist/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +0 -1
  315. package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.mts +0 -7
  316. package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.mts.map +0 -1
  317. package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.ts.map +0 -1
  318. package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.mts +0 -7
  319. package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.mts.map +0 -1
  320. package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.ts.map +0 -1
  321. package/dist/components/SiteMenu/MenuListItem/list-item-components/index.d.mts.map +0 -1
  322. package/dist/components/SiteMenu/MenuListItem/list-item-components/index.d.ts.map +0 -1
  323. package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.mts +0 -11
  324. package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.mts.map +0 -1
  325. package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.ts.map +0 -1
  326. package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts +0 -8
  327. package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts.map +0 -1
  328. package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +0 -1
  329. package/dist/components/SiteMenu/MenuListItem/sub-nav/index.d.mts.map +0 -1
  330. package/dist/components/SiteMenu/MenuListItem/sub-nav/index.d.ts.map +0 -1
  331. package/dist/components/SiteMenu/MenuSection.d.mts +0 -11
  332. package/dist/components/SiteMenu/MenuSection.d.mts.map +0 -1
  333. package/dist/components/SiteMenu/MenuSection.d.ts.map +0 -1
  334. package/dist/components/SiteMenu/hooks/index.d.mts.map +0 -1
  335. package/dist/components/SiteMenu/hooks/index.d.ts.map +0 -1
  336. package/dist/components/SiteMenu/hooks/useMenuItemsShared.d.mts +0 -7
  337. package/dist/components/SiteMenu/hooks/useMenuItemsShared.d.mts.map +0 -1
  338. package/dist/components/SiteMenu/hooks/useMenuItemsShared.d.ts.map +0 -1
  339. package/dist/components/SiteMenu/index.d.mts.map +0 -1
  340. package/dist/components/SiteMenu/index.d.ts.map +0 -1
  341. package/dist/components/SiteMenu/lib/MenuListItemBase.d.mts +0 -5
  342. package/dist/components/SiteMenu/lib/MenuListItemBase.d.mts.map +0 -1
  343. package/dist/components/SiteMenu/lib/MenuListItemBase.d.ts.map +0 -1
  344. package/dist/components/SiteMenu/lib/NavListItemProps.d.mts +0 -12
  345. package/dist/components/SiteMenu/lib/NavListItemProps.d.mts.map +0 -1
  346. package/dist/components/SiteMenu/lib/NavListItemProps.d.ts.map +0 -1
  347. package/dist/components/SiteMenu/lib/index.d.mts.map +0 -1
  348. package/dist/components/SiteMenu/lib/index.d.ts.map +0 -1
  349. package/dist/components/Toolbar/Context/ContextToolbar.d.mts +0 -9
  350. package/dist/components/Toolbar/Context/ContextToolbar.d.mts.map +0 -1
  351. package/dist/components/Toolbar/Context/ContextToolbar.d.ts.map +0 -1
  352. package/dist/components/Toolbar/Context/ContextToolbar.stories.d.mts +0 -6
  353. package/dist/components/Toolbar/Context/ContextToolbar.stories.d.mts.map +0 -1
  354. package/dist/components/Toolbar/Context/ContextToolbar.stories.d.ts +0 -6
  355. package/dist/components/Toolbar/Context/ContextToolbar.stories.d.ts.map +0 -1
  356. package/dist/components/Toolbar/Context/Logo.d.mts +0 -3
  357. package/dist/components/Toolbar/Context/Logo.d.mts.map +0 -1
  358. package/dist/components/Toolbar/Context/Logo.d.ts.map +0 -1
  359. package/dist/components/Toolbar/Context/LogoLinkEx.d.mts +0 -7
  360. package/dist/components/Toolbar/Context/LogoLinkEx.d.mts.map +0 -1
  361. package/dist/components/Toolbar/Context/LogoLinkEx.d.ts.map +0 -1
  362. package/dist/components/Toolbar/Context/index.d.mts +0 -2
  363. package/dist/components/Toolbar/Context/index.d.mts.map +0 -1
  364. package/dist/components/Toolbar/Context/index.d.ts.map +0 -1
  365. package/dist/components/Toolbar/System/SystemToolbar.d.mts +0 -15
  366. package/dist/components/Toolbar/System/SystemToolbar.d.mts.map +0 -1
  367. package/dist/components/Toolbar/System/SystemToolbar.d.ts.map +0 -1
  368. package/dist/components/Toolbar/System/SystemToolbar.stories.d.mts +0 -8
  369. package/dist/components/Toolbar/System/SystemToolbar.stories.d.mts.map +0 -1
  370. package/dist/components/Toolbar/System/SystemToolbar.stories.d.ts +0 -8
  371. package/dist/components/Toolbar/System/SystemToolbar.stories.d.ts.map +0 -1
  372. package/dist/components/Toolbar/System/index.d.mts +0 -2
  373. package/dist/components/Toolbar/System/index.d.mts.map +0 -1
  374. package/dist/components/Toolbar/System/index.d.ts.map +0 -1
  375. package/dist/components/Toolbar/index.d.mts.map +0 -1
  376. package/dist/components/Toolbar/index.d.ts.map +0 -1
  377. package/dist/components/index.d.mts.map +0 -1
  378. package/dist/components/index.d.ts.map +0 -1
  379. package/dist/contexts/Collapsible/State.d.mts +0 -9
  380. package/dist/contexts/Collapsible/State.d.mts.map +0 -1
  381. package/dist/contexts/Collapsible/State.d.ts.map +0 -1
  382. package/dist/contexts/Collapsible/context.d.mts +0 -4
  383. package/dist/contexts/Collapsible/context.d.mts.map +0 -1
  384. package/dist/contexts/Collapsible/context.d.ts.map +0 -1
  385. package/dist/contexts/Collapsible/index.d.mts.map +0 -1
  386. package/dist/contexts/Collapsible/index.d.ts.map +0 -1
  387. package/dist/contexts/Collapsible/provider.d.mts +0 -8
  388. package/dist/contexts/Collapsible/provider.d.mts.map +0 -1
  389. package/dist/contexts/Collapsible/provider.d.ts.map +0 -1
  390. package/dist/contexts/Collapsible/use.d.mts +0 -2
  391. package/dist/contexts/Collapsible/use.d.mts.map +0 -1
  392. package/dist/contexts/Collapsible/use.d.ts.map +0 -1
  393. package/dist/contexts/index.d.mts +0 -2
  394. package/dist/contexts/index.d.mts.map +0 -1
  395. package/dist/contexts/index.d.ts.map +0 -1
  396. package/dist/index.d.mts.map +0 -1
  397. package/dist/index.d.ts.map +0 -1
  398. package/dist/index.js +0 -598
  399. package/dist/index.js.map +0 -1
  400. package/dist/index.mjs +0 -547
  401. package/dist/index.mjs.map +0 -1
  402. /package/dist/{components → types/components}/AppBar/Application.d.ts +0 -0
  403. /package/dist/{components → types/components}/AppBar/index.d.ts +0 -0
  404. /package/dist/{components → types/components}/CollapsibleDrawer/CollapseToggle.d.ts +0 -0
  405. /package/dist/{components → types/components}/CollapsibleDrawer/CollapsibleDrawer.d.ts +0 -0
  406. /package/dist/{components → types/components}/CollapsibleDrawer/index.d.ts +0 -0
  407. /package/dist/{components → types/components}/CollapsibleDrawer/storyExampleMenuData.d.ts +0 -0
  408. /package/dist/{components → types/components}/MobileSystemControls/SystemControls.d.ts +0 -0
  409. /package/dist/{components → types/components}/MobileSystemControls/SystemControlsRoot.d.ts +0 -0
  410. /package/dist/{components → types/components}/MobileSystemControls/SystemControlsType.d.ts +0 -0
  411. /package/dist/{components → types/components}/MobileSystemControls/SystemControlsUnstyled.d.ts +0 -0
  412. /package/dist/{components → types/components}/MobileSystemControls/controls/SystemControl.d.ts +0 -0
  413. /package/dist/{components → types/components}/MobileSystemControls/controls/SystemControlText.d.ts +0 -0
  414. /package/dist/{components → types/components}/MobileSystemControls/controls/index.d.ts +0 -0
  415. /package/dist/{components → types/components}/MobileSystemControls/index.d.ts +0 -0
  416. /package/dist/{components → types/components}/SearchBar/SearchBar.d.ts +0 -0
  417. /package/dist/{components → types/components}/SearchBar/index.d.ts +0 -0
  418. /package/dist/{components → types/components}/SiteMenu/Menu.d.ts +0 -0
  419. /package/dist/{components → types/components}/SiteMenu/MenuListItem/MenuListItemContainer.d.ts +0 -0
  420. /package/dist/{components → types/components}/SiteMenu/MenuListItem/index.d.ts +0 -0
  421. /package/dist/{components → types/components}/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts +0 -0
  422. /package/dist/{components → types/components}/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.ts +0 -0
  423. /package/dist/{components → types/components}/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.ts +0 -0
  424. /package/dist/{components → types/components}/SiteMenu/MenuListItem/list-item-components/index.d.ts +0 -0
  425. /package/dist/{components → types/components}/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.ts +0 -0
  426. /package/dist/{components → types/components}/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts +0 -0
  427. /package/dist/{components → types/components}/SiteMenu/MenuListItem/sub-nav/index.d.ts +0 -0
  428. /package/dist/{components → types/components}/SiteMenu/MenuSection.d.ts +0 -0
  429. /package/dist/{components → types/components}/SiteMenu/hooks/index.d.ts +0 -0
  430. /package/dist/{components → types/components}/SiteMenu/hooks/useMenuItemsShared.d.ts +0 -0
  431. /package/dist/{components → types/components}/SiteMenu/index.d.ts +0 -0
  432. /package/dist/{components → types/components}/SiteMenu/lib/MenuListItemBase.d.ts +0 -0
  433. /package/dist/{components → types/components}/SiteMenu/lib/NavListItemProps.d.ts +0 -0
  434. /package/dist/{components → types/components}/SiteMenu/lib/index.d.ts +0 -0
  435. /package/dist/{components → types/components}/Toolbar/Context/ContextToolbar.d.ts +0 -0
  436. /package/dist/{components → types/components}/Toolbar/Context/Logo.d.ts +0 -0
  437. /package/dist/{components → types/components}/Toolbar/Context/LogoLinkEx.d.ts +0 -0
  438. /package/dist/{components → types/components}/Toolbar/Context/index.d.ts +0 -0
  439. /package/dist/{components → types/components}/Toolbar/System/SystemToolbar.d.ts +0 -0
  440. /package/dist/{components → types/components}/Toolbar/System/index.d.ts +0 -0
  441. /package/dist/{components → types/components}/Toolbar/index.d.ts +0 -0
  442. /package/dist/{components → types/components}/index.d.ts +0 -0
  443. /package/dist/{contexts → types/contexts}/Collapsible/State.d.ts +0 -0
  444. /package/dist/{contexts → types/contexts}/Collapsible/context.d.ts +0 -0
  445. /package/dist/{contexts → types/contexts}/Collapsible/index.d.ts +0 -0
  446. /package/dist/{contexts → types/contexts}/Collapsible/provider.d.ts +0 -0
  447. /package/dist/{contexts → types/contexts}/Collapsible/use.d.ts +0 -0
  448. /package/dist/{contexts → types/contexts}/index.d.ts +0 -0
  449. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts","../src/components/AppBar/Application.tsx","../src/components/Toolbar/Context/ContextToolbar.tsx","../src/components/Toolbar/Context/LogoLinkEx.tsx","../src/components/Toolbar/Context/Logo.tsx","../src/components/Toolbar/System/SystemToolbar.tsx","../src/components/SiteMenu/hooks/useMenuItemsShared.tsx","../src/contexts/Collapsible/provider.tsx","../src/contexts/Collapsible/context.ts","../src/contexts/Collapsible/use.tsx","../src/components/SiteMenu/Menu.tsx","../src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx","../src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx","../src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx","../src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx","../src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx","../src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx","../src/components/SiteMenu/MenuSection.tsx","../src/components/CollapsibleDrawer/CollapseToggle.tsx","../src/components/CollapsibleDrawer/CollapsibleDrawer.tsx","../src/components/MobileSystemControls/SystemControls.tsx","../src/components/MobileSystemControls/SystemControlsRoot.tsx","../src/components/MobileSystemControls/SystemControlsType.ts","../src/components/MobileSystemControls/SystemControlsUnstyled.tsx","../src/components/MobileSystemControls/controls/SystemControl.tsx","../src/components/SearchBar/SearchBar.tsx"],"sourcesContent":["export * from './components'\nexport * from './contexts'\n","import { ToolbarProps } from '@mui/material'\nimport { AppBarEx, AppBarExProps } from '@xylabs/react-appbar'\nimport { ReactElement } from 'react'\n\nimport { ContextToolbar, SystemToolbar } from '../Toolbar'\n\nexport interface ApplicationAppBarProps extends AppBarExProps {\n contextToolbar?: ReactElement<ToolbarProps>\n responsive?: boolean\n systemToolbar?: ReactElement<ToolbarProps>\n}\n\nexport const ApplicationAppBar: React.FC<ApplicationAppBarProps> = ({ systemToolbar, contextToolbar, responsive = true, ...props }) => {\n return (\n <AppBarEx\n systemToolbar={systemToolbar ?? <SystemToolbar />}\n contextToolbar={contextToolbar ?? <ContextToolbar />}\n position=\"sticky\"\n responsive={responsive}\n {...props}\n />\n )\n}\n","import { Toolbar, ToolbarProps } from '@mui/material'\nimport { To } from 'react-router-dom'\n\nimport { LogoLinkEx } from './LogoLinkEx'\n\nexport interface ContextToolbarProps extends ToolbarProps {\n logoTo?: To\n version?: boolean\n}\n\nexport const ContextToolbar: React.FC<ContextToolbarProps> = ({ logoTo = '/', version = false, ...props }) => {\n return (\n <Toolbar {...props}>\n <LogoLinkEx version={version} to={logoTo} />\n </Toolbar>\n )\n}\n","import { Typography, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx, LinkExProps } from '@xylabs/react-link'\n\nimport { Logo } from './Logo'\n\nexport interface LogoLinkExProps extends LinkExProps {\n version?: boolean | string\n}\n\nexport const LogoLinkEx: React.FC<LogoLinkExProps> = ({ to = '/', version = false, ...props }) => {\n const theme = useTheme()\n return (\n <LinkEx to={to} {...props}>\n <FlexRow paddingX=\"4px\">\n <Logo height=\"40\" width=\"43\" />\n {version ? (\n <Typography\n position=\"absolute\"\n borderRadius={1}\n right={6}\n color={theme.palette.getContrastText(theme.palette.text.primary)}\n bottom={0}\n bgcolor={theme.palette.text.primary}\n paddingX=\"2px\"\n lineHeight={1}\n variant=\"caption\"\n border={`1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`}\n >\n {typeof version === 'string' ? version : '2.1'}\n </Typography>\n ) : null}\n </FlexRow>\n </LinkEx>\n )\n}\n","import { useTheme } from '@mui/material'\n\nexport const Logo: React.FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>> = (props) => {\n const theme = useTheme()\n const logoUrl =\n theme.palette.mode === 'dark'\n ? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n : 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n return <img src={logoUrl} {...props} />\n}\n","import { Paper, Toolbar, ToolbarProps } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { DarkModeIconButton } from '@xyo-network/react-app-settings'\nimport { NetworkSelectEx, NetworkSelectExProps } from '@xyo-network/react-network'\nimport { ReactNode } from 'react'\n\nimport { SiteMenu, SiteMenuProps } from '../../SiteMenu'\n\nexport interface SystemToolbarProps extends ToolbarProps {\n darkModeButton?: boolean\n developerMode?: boolean\n hideNetworkSelect?: boolean\n menuItems?: ReactNode\n networkSelectProps?: NetworkSelectExProps\n onMenuToggle?: SiteMenuProps['onMenuToggle']\n precedingChildren?: ReactNode\n}\n\nexport const SystemToolbar: React.FC<SystemToolbarProps> = ({\n children,\n darkModeButton = false,\n hideNetworkSelect,\n menuItems,\n networkSelectProps,\n onMenuToggle,\n precedingChildren,\n ...props\n}) => {\n return (\n <Toolbar {...props}>\n {precedingChildren}\n {hideNetworkSelect ? null : (\n <FlexRow marginX={0.5}>\n <Paper variant=\"elevation\">\n <NetworkSelectEx fullWidth {...networkSelectProps} />\n </Paper>\n </FlexRow>\n )}\n {children}\n {darkModeButton ? <DarkModeIconButton color=\"inherit\" /> : null}\n {menuItems ? <SiteMenu onMenuToggle={onMenuToggle}>{menuItems}</SiteMenu> : null}\n </Toolbar>\n )\n}\n","import { useMemo } from 'react'\n\nimport { useCollapsible } from '../../../contexts'\nimport { MenuListItemProps } from '../MenuListItem'\n\nexport type DefaultSiteMenuListItemProps = Pick<MenuListItemProps, 'collapseEnd' | 'dense' | 'iconOnly' | 'sx'>\n\nexport const useMenuItemsShared = () => {\n const { collapse, collapseEnd, setCollapse, setCollapseEnd } = useCollapsible()\n\n const onMenuItemToggle = (open?: boolean) => {\n setCollapse?.((previous) => (open ? false : previous))\n setCollapseEnd?.((previous) => (open ? false : previous))\n }\n\n const defaultSiteMenuListItemProps: DefaultSiteMenuListItemProps = useMemo(\n () => ({\n collapseEnd,\n dense: true,\n iconOnly: collapse,\n sx: {\n px: '8px',\n },\n }),\n [collapse, collapseEnd],\n )\n\n return { defaultSiteMenuListItemProps, onMenuItemToggle }\n}\n","import { WithChildren } from '@xylabs/react-shared'\nimport { useEffect, useState } from 'react'\n\nimport { CollapsibleContext } from './context'\n\nexport interface CollapsibleProviderProps extends WithChildren {\n defaultCollapse?: boolean\n defaultCollapseEnd?: boolean\n}\n\nexport const CollapsibleProvider: React.FC<CollapsibleProviderProps> = ({ defaultCollapse = false, defaultCollapseEnd = false, children }) => {\n const [collapse, setCollapse] = useState(defaultCollapse)\n const [collapseEnd, setCollapseEnd] = useState(defaultCollapseEnd)\n\n useEffect(() => {\n setCollapse(defaultCollapse)\n }, [defaultCollapse])\n\n useEffect(() => {\n setCollapseEnd(defaultCollapseEnd)\n }, [defaultCollapseEnd])\n\n return (\n <CollapsibleContext.Provider value={{ collapse, collapseEnd, provided: true, setCollapse, setCollapseEnd }}>\n {children}\n </CollapsibleContext.Provider>\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { CollapsibleState } from './State'\n\nexport const CollapsibleContext = createContextEx<CollapsibleState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { CollapsibleContext } from './context'\n\nexport const useCollapsible = () => useContextEx(CollapsibleContext, 'Collapsible', false)\n","import MenuIcon from '@mui/icons-material/Menu'\nimport SettingsIcon from '@mui/icons-material/Settings'\nimport { IconButton, List, SwipeableDrawer } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useEffect, useState } from 'react'\n\nimport { MenuListItemContainer } from './MenuListItem'\n\nexport interface SiteMenuProps extends FlexBoxProps {\n hideSettingsMenuItem?: boolean\n onMenuToggle?: (state?: boolean) => void\n side?: 'left' | 'right' | 'top' | 'bottom'\n}\n\nexport const SiteMenu: React.FC<SiteMenuProps> = ({ children, onMenuToggle, side = 'right', ...props }) => {\n const [open, setOpen] = useState(false)\n\n useEffect(() => {\n onMenuToggle?.(open)\n }, [onMenuToggle, open])\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <IconButton\n size=\"small\"\n color=\"inherit\"\n onClick={() => {\n setOpen(!open)\n }}\n >\n <MenuIcon fontSize=\"large\" />\n </IconButton>\n <SwipeableDrawer\n anchor={side}\n open={open}\n onClick={() => setOpen(false)}\n onKeyDown={() => setOpen(false)}\n onClose={() => setOpen(false)}\n onOpen={() => setOpen(true)}\n >\n {children ?? (\n <List>\n <MenuListItemContainer primary=\"Settings\" icon={<SettingsIcon />} to=\"/settings\" />\n </List>\n )}\n </SwipeableDrawer>\n </FlexRow>\n )\n}\n","import { ListItemProps, ListItemText, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx } from '@xylabs/react-link'\nimport { useState } from 'react'\n\nimport { useCollapsible } from '../../../contexts'\nimport { MenuListItemBase, NavListItemProps } from '../lib'\nimport { ListItemTooltip, MenuIcon, MenuListItem } from './list-item-components'\nimport { SubNavListItemsCollapse, SubNavToggleIconButton } from './sub-nav'\n\nexport interface MenuListItemProps extends NavListItemProps, MenuListItemBase, ListItemProps {\n iconMenuTextSpacing?: string\n iconOnly?: boolean\n subNavListItems?: NavListItemProps[]\n subNavOpen?: boolean\n}\n\nexport const MenuListItemContainer: React.FC<MenuListItemProps> = ({\n style,\n icon,\n iconMenuTextSpacing,\n iconOnly,\n onButtonClick,\n primary,\n subNavListItems,\n sx,\n tooltip,\n to,\n ...props\n}) => {\n const { dense } = props\n const theme = useTheme()\n const { collapse } = useCollapsible()\n const [openSubNav, setOpenSubNav] = useState(false)\n const [hovered, setHovered] = useState(false)\n const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1)\n\n return (\n <>\n <MenuListItem\n disableGutters\n iconOnly={iconOnly}\n onClick={onButtonClick}\n dense={dense}\n sx={{ justifyContent: 'space-between', ...sx }}\n style={{ whiteSpace: 'nowrap', ...style }}\n {...props}\n >\n <LinkEx\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n color=\"inherit\"\n to={to}\n sx={{\n '& :hover': {\n cursor: 'pointer',\n textDecoration: 'underline',\n },\n }}\n >\n <FlexRow>\n <MenuIcon icon={icon} paddingRight={resolvedIconMenuTextSpacing} color={hovered ? 'secondary' : 'inherit'} />\n <ListItemText primary={primary} />\n </FlexRow>\n </LinkEx>\n <FlexRow style={{ marginLeft: theme.spacing(1) }}>\n {subNavListItems ? <SubNavToggleIconButton setOpenSubNav={setOpenSubNav} openSubNav={openSubNav} /> : null}\n {tooltip ? <ListItemTooltip title={tooltip} /> : null}\n </FlexRow>\n </MenuListItem>\n {subNavListItems ? (\n <SubNavListItemsCollapse openSubNav={openSubNav} collapse={collapse}>\n {subNavListItems?.map((item, index) => <MenuListItemContainer dense={dense} sx={{ pl: theme.spacing(1) }} key={index} {...item} />)}\n </SubNavListItemsCollapse>\n ) : null}\n </>\n )\n}\n","import { Tooltip, TooltipProps } from '@mui/material'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport { VscInfo } from 'react-icons/vsc'\n\nexport interface ListItemTooltipProps extends Omit<TooltipProps, 'children'> {\n title: string\n}\n\nexport const ListItemTooltip: React.FC<ListItemTooltipProps> = ({ title, ...props }) => {\n return (\n <Tooltip title={title} placement=\"right\" {...props}>\n {/* Needs div so it can work, the hovering doesn't work with a FlexCol */}\n <div>\n <FlexCol justifyContent=\"center\">\n <VscInfo color=\"grey\" />\n </FlexCol>\n </div>\n </Tooltip>\n )\n}\n","import { Typography, TypographyProps } from '@mui/material'\nimport { ReactNode } from 'react'\n\nexport interface MenuIconProps extends TypographyProps {\n icon?: ReactNode\n}\n\nexport const MenuIcon: React.FC<MenuIconProps> = ({ icon, ...props }) => {\n return (\n <Typography display=\"flex\" {...props}>\n {icon}\n </Typography>\n )\n}\n","import { ListItem, ListItemProps } from '@mui/material'\n\nimport { MenuListItemBase } from '../../lib'\n\nexport interface ListItemExProps extends MenuListItemBase, ListItemProps {}\n\nexport const MenuListItem: React.FC<ListItemExProps> = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {\n const listItemSx = iconOnly ? { borderRadius: '50%', display: 'inline-flex', flexGrow: 0, width: 'auto' } : { width: '100%' }\n // wait till collapseEnds to remove the spacing between items\n const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 }\n // adjusts to the paddingY value which does NOT scale along the theme.spacing\n const paddingSx = dense ? { px: '8px' } : { px: '12px' }\n return (\n <ListItem sx={{ ...listItemSx, ...spacingSx, ...paddingSx, ...sx }} {...props}>\n {children}\n </ListItem>\n )\n}\n","import { Collapse, CollapseProps, List } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { NavListItemProps } from '../../lib'\n\nexport interface SubNavListItemsCollapseProps extends WithChildren, CollapseProps {\n collapse?: boolean\n openSubNav?: boolean\n subNavListItems?: NavListItemProps[]\n}\n\nexport const SubNavListItemsCollapse: React.FC<SubNavListItemsCollapseProps> = ({ collapse, openSubNav, children, ...props }) => {\n return (\n <Collapse in={collapse == true ? false : openSubNav} {...props}>\n <List>{children}</List>\n </Collapse>\n )\n}\n","import { IconButton, IconButtonProps, useTheme } from '@mui/material'\nimport { Dispatch, SetStateAction, SyntheticEvent } from 'react'\nimport { VscChevronDown } from 'react-icons/vsc'\n\nexport interface SubNavToggleIconButtonProps extends IconButtonProps {\n openSubNav?: boolean\n setOpenSubNav?: Dispatch<SetStateAction<boolean>>\n}\n\nexport const SubNavToggleIconButton: React.FC<SubNavToggleIconButtonProps> = ({ setOpenSubNav, openSubNav }) => {\n const theme = useTheme()\n return (\n <IconButton\n onClick={(event: SyntheticEvent) => {\n event.stopPropagation()\n setOpenSubNav?.(!openSubNav)\n }}\n sx={{ marginRight: theme.spacing(0.5) }}\n >\n <VscChevronDown fontSize=\"16px\" />\n </IconButton>\n )\n}\n","import { Collapse, ListSubheader } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\n\nimport { MenuListItemContainer, MenuListItemProps } from './MenuListItem'\n\nexport interface MenuSectionProps extends FlexBoxProps {\n iconMenuTextSpacing?: string\n listItems: MenuListItemProps[]\n showTitle?: boolean\n title: string\n}\n\nexport const MenuSection: React.FC<MenuSectionProps> = ({ iconMenuTextSpacing, listItems, showTitle = true, title, ...props }) => {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n <Collapse in={showTitle} timeout={700}>\n <ListSubheader>{title}</ListSubheader>\n </Collapse>\n\n {listItems.map((item, index) => (\n <MenuListItemContainer key={index} iconMenuTextSpacing={iconMenuTextSpacing} {...item}></MenuListItemContainer>\n ))}\n </FlexCol>\n )\n}\n","import { Icon, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\nimport { VscArrowSmallLeft, VscArrowSmallRight } from 'react-icons/vsc'\n\nimport { useCollapsible } from '../../contexts'\n\nexport const CollapseToggleFlex: React.FC<FlexBoxProps> = (props) => {\n const { collapse, setCollapse, setCollapseEnd } = useCollapsible()\n const [hover, setHover] = useState(false)\n const theme = useTheme()\n\n const handleCollapseToggle = () => {\n setCollapse?.(!collapse)\n setCollapseEnd?.((previous) => (previous ? false : previous))\n }\n\n return (\n <FlexRow mt={2} py={2} justifyContent={collapse ? 'start' : 'center'} {...props}>\n <Icon\n onClick={handleCollapseToggle}\n onMouseEnter={() => setHover(true)}\n onMouseLeave={() => setHover(false)}\n fontSize={'large'}\n sx={{ color: hover ? theme.palette.secondary.main : 'inherit', cursor: 'pointer' }}\n >\n {!collapse ? <VscArrowSmallLeft /> : <VscArrowSmallRight />}\n </Icon>\n </FlexRow>\n )\n}\n","import { Collapse, CollapseProps, styled, useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useCollapsible } from '../../contexts'\n\nexport const CollapsibleDrawer: React.FC<WithChildren<CollapseProps>> = ({ children, sx, ...props }) => {\n const { collapse, setCollapseEnd } = useCollapsible()\n const theme = useTheme()\n\n const collapsedSize = props.collapsedSize ?? theme.spacing(5)\n\n return (\n <CollapsibleFlexInner\n in={!collapse}\n orientation=\"horizontal\"\n collapsedSize={collapsedSize}\n onExited={() => setCollapseEnd?.(true)}\n sx={{\n alignItems: 'start',\n display: 'flex',\n height: '100%',\n ...sx,\n }}\n {...props}\n >\n {children}\n </CollapsibleFlexInner>\n )\n}\n\nconst CollapsibleFlexInner = styled(Collapse)(() => ({\n '& .MuiCollapse-wrapperInner': {\n display: 'flex',\n flexDirection: 'column',\n },\n}))\n","import { FlexCol } from '@xylabs/react-flexbox'\n\nimport { SystemControlsRoot } from './SystemControlsRoot'\nimport { SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControls: React.FC<SystemControlsUnstyledProps> = (props) => {\n return (\n <FlexCol>\n <SystemControlsRoot {...props} />\n </FlexCol>\n )\n}\n\nexport { SystemControls }\n","import { styled } from '@mui/material'\n\nimport { SystemControlsType } from './SystemControlsType'\nimport { SystemControlsUnstyled, SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControlsRoot = styled(SystemControlsUnstyled, { name: 'SystemControls', slot: 'Root' })<SystemControlsUnstyledProps>(({ theme }) => ({\n // shared defaults\n ['&']: {\n '.toggle': {\n backgroundColor: theme.palette.primary.main,\n },\n alignItems: 'start',\n zIndex: 1,\n },\n // WindowShade System Controls styles\n [`&.system-controls-type-${SystemControlsType.WindowShade}`]: {\n '.control': {\n borderRadius: '0 0 5px 5px',\n flexDirection: 'row',\n flexGrow: 1,\n justifyContent: 'space-around',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.controls': {\n alignItems: 'stretch',\n flexDirection: 'column',\n flexGrow: 1,\n },\n '.toggle': {\n borderRadius: '0 0 5px 5px',\n padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,\n },\n flexDirection: 'row',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n // Left System Control styles\n [`&.system-controls-type-${SystemControlsType.Left}`]: {\n '.control': {\n alignItems: 'start',\n flexDirection: 'column',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.control-wrap': {\n marginBottom: `${theme.spacing(2)}`,\n },\n '.toggle': {\n borderRadius: '0 5px 5px 0',\n padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,\n writingMode: 'vertical-rl',\n },\n flexDirection: 'column',\n left: 0,\n position: 'fixed',\n top: '30vh',\n width: 'auto',\n },\n}))\n\nexport { SystemControlsRoot }\n","export enum SystemControlsType {\n Left = 'Left',\n Right = 'Right',\n WindowShade = 'WindowShade',\n}\n","import { Paper, Theme, useMediaQuery } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { NetworkSelectEx } from '@xyo-network/react-network'\n\nimport { SystemControl } from './controls'\nimport { SystemControlsType } from './SystemControlsType'\n\ninterface SystemControlsUnstyledProps extends FlexBoxProps {\n systemControlsType?: SystemControlsType\n visible?: boolean\n}\n\nconst SystemControlsUnstyled: React.FC<SystemControlsUnstyledProps> = ({\n visible,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const isSmall = useMediaQuery<Theme>((theme) => theme.breakpoints.down('sm'))\n\n if (visible || isSmall) {\n return (\n <FlexCol {...props} className={`${props.className} system-controls-type-${systemControlsType}`}>\n <SystemControl\n systemControlsType={systemControlsType}\n controlElement={\n <>\n <FlexRow className={'control-wrap'}>\n <Paper variant=\"elevation\" elevation={0}>\n <NetworkSelectEx responsive={false} className=\"network-ex\" />\n </Paper>\n </FlexRow>\n </>\n }\n />\n </FlexCol>\n )\n } else {\n return <FlexCol />\n }\n}\n\nexport type { SystemControlsUnstyledProps }\nexport { SystemControlsUnstyled }\n","import { Collapse, CollapseProps } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { SystemControlsType } from '../SystemControlsType'\n\ninterface SystemControlProps extends FlexBoxProps {\n controlElement: React.ReactNode\n systemControlsType?: SystemControlsType\n}\n\nconst SystemControl: React.FC<WithChildren<SystemControlProps>> = ({\n children,\n controlElement,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const [toggleControls, setToggleControls] = useState(false)\n\n let orientation: CollapseProps['orientation'] = 'vertical'\n\n switch (systemControlsType) {\n case SystemControlsType.Left: {\n orientation = 'horizontal'\n break\n }\n }\n\n return (\n <FlexRow className=\"controls\" {...props}>\n <Collapse in={toggleControls} orientation={orientation} timeout={500}>\n <FlexRow bgcolor=\"primary.main\" className=\"control\">\n {controlElement}\n </FlexRow>\n </Collapse>\n <FlexCol style={{ cursor: 'pointer' }} onClick={() => setToggleControls(!toggleControls)}>\n {children}\n </FlexCol>\n </FlexRow>\n )\n}\n\nexport { SystemControl }\n","import SearchIcon from '@mui/icons-material/Search'\nimport { Paper, TextField } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nexport interface SearchBarProps extends FlexBoxProps {\n onSearch?: (term?: string) => void\n}\n\nexport const SearchBar: React.FC<SearchBarProps> = ({ defaultValue, onSearch, ...props }) => {\n const [term, setTerm] = useState<string>()\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <Paper variant=\"elevation\" elevation={0} style={{ display: 'flex', overflow: 'hidden', width: '100%' }}>\n <TextField\n InputProps={{ color: 'secondary', style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } }}\n variant=\"outlined\"\n size=\"small\"\n defaultValue={defaultValue}\n fullWidth\n onChange={(event) => setTerm(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') onSearch?.(term)\n }}\n />\n <ButtonEx variant=\"contained\" style={{ borderRadius: 0, borderTopLeftRadius: 0 }} color=\"secondary\" onClick={() => onSearch?.(term)}>\n <SearchIcon />\n </ButtonEx>\n </Paper>\n </FlexRow>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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C,UAAU,QAAQ,MAAM,OAAO,KAAK;AAAA,QAC/C,WAAW,CAAC,UAAU;AACpB,cAAI,MAAM,QAAQ;AAAS,uBAAW,IAAI;AAAA,QAC5C;AAAA;AAAA,IACF;AAAA,IACA,8CAAC,gCAAS,SAAQ,aAAY,OAAO,EAAE,cAAc,GAAG,qBAAqB,EAAE,GAAG,OAAM,aAAY,SAAS,MAAM,WAAW,IAAI,GAChI,wDAAC,cAAAC,SAAA,EAAW,GACd;AAAA,KACF,GACF;AAEJ;","names":["import_material","import_material","import_jsx_runtime","import_jsx_runtime","import_material","import_react_flexbox","import_react","import_jsx_runtime","import_react_shared","import_material","import_react_flexbox","import_react","import_material","import_react_flexbox","import_react_link","import_react","import_material","import_react_flexbox","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_vsc","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","MenuIcon","SettingsIcon","import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","import_material","import_react_flexbox","import_react","import_vsc","import_jsx_runtime","import_material","import_jsx_runtime","import_react_flexbox","import_material","SystemControlsType","import_material","import_react_flexbox","import_react_network","import_material","import_react_flexbox","import_react","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","import_material","import_react_flexbox","import_react","import_jsx_runtime","SearchIcon"]}
package/dist/index.mjs DELETED
@@ -1,547 +0,0 @@
1
- // src/components/AppBar/Application.tsx
2
- import { AppBarEx } from "@xylabs/react-appbar";
3
-
4
- // src/components/Toolbar/Context/ContextToolbar.tsx
5
- import { Toolbar } from "@mui/material";
6
-
7
- // src/components/Toolbar/Context/LogoLinkEx.tsx
8
- import { Typography, useTheme as useTheme2 } from "@mui/material";
9
- import { FlexRow } from "@xylabs/react-flexbox";
10
- import { LinkEx } from "@xylabs/react-link";
11
-
12
- // src/components/Toolbar/Context/Logo.tsx
13
- import { useTheme } from "@mui/material";
14
- import { jsx } from "react/jsx-runtime";
15
- var Logo = (props) => {
16
- const theme = useTheme();
17
- const logoUrl = theme.palette.mode === "dark" ? "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg" : "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg";
18
- return /* @__PURE__ */ jsx("img", { src: logoUrl, ...props });
19
- };
20
-
21
- // src/components/Toolbar/Context/LogoLinkEx.tsx
22
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
23
- var LogoLinkEx = ({ to = "/", version = false, ...props }) => {
24
- const theme = useTheme2();
25
- return /* @__PURE__ */ jsx2(LinkEx, { to, ...props, children: /* @__PURE__ */ jsxs(FlexRow, { paddingX: "4px", children: [
26
- /* @__PURE__ */ jsx2(Logo, { height: "40", width: "43" }),
27
- version ? /* @__PURE__ */ jsx2(
28
- Typography,
29
- {
30
- position: "absolute",
31
- borderRadius: 1,
32
- right: 6,
33
- color: theme.palette.getContrastText(theme.palette.text.primary),
34
- bottom: 0,
35
- bgcolor: theme.palette.text.primary,
36
- paddingX: "2px",
37
- lineHeight: 1,
38
- variant: "caption",
39
- border: `1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`,
40
- children: typeof version === "string" ? version : "2.1"
41
- }
42
- ) : null
43
- ] }) });
44
- };
45
-
46
- // src/components/Toolbar/Context/ContextToolbar.tsx
47
- import { jsx as jsx3 } from "react/jsx-runtime";
48
- var ContextToolbar = ({ logoTo = "/", version = false, ...props }) => {
49
- return /* @__PURE__ */ jsx3(Toolbar, { ...props, children: /* @__PURE__ */ jsx3(LogoLinkEx, { version, to: logoTo }) });
50
- };
51
-
52
- // src/components/Toolbar/System/SystemToolbar.tsx
53
- import { Paper, Toolbar as Toolbar2 } from "@mui/material";
54
- import { FlexRow as FlexRow4 } from "@xylabs/react-flexbox";
55
- import { DarkModeIconButton } from "@xyo-network/react-app-settings";
56
- import { NetworkSelectEx } from "@xyo-network/react-network";
57
-
58
- // src/components/SiteMenu/hooks/useMenuItemsShared.tsx
59
- import { useMemo } from "react";
60
-
61
- // src/contexts/Collapsible/provider.tsx
62
- import { useEffect, useState } from "react";
63
-
64
- // src/contexts/Collapsible/context.ts
65
- import { createContextEx } from "@xyo-network/react-shared";
66
- var CollapsibleContext = createContextEx();
67
-
68
- // src/contexts/Collapsible/provider.tsx
69
- import { jsx as jsx4 } from "react/jsx-runtime";
70
- var CollapsibleProvider = ({ defaultCollapse = false, defaultCollapseEnd = false, children }) => {
71
- const [collapse, setCollapse] = useState(defaultCollapse);
72
- const [collapseEnd, setCollapseEnd] = useState(defaultCollapseEnd);
73
- useEffect(() => {
74
- setCollapse(defaultCollapse);
75
- }, [defaultCollapse]);
76
- useEffect(() => {
77
- setCollapseEnd(defaultCollapseEnd);
78
- }, [defaultCollapseEnd]);
79
- return /* @__PURE__ */ jsx4(CollapsibleContext.Provider, { value: { collapse, collapseEnd, provided: true, setCollapse, setCollapseEnd }, children });
80
- };
81
-
82
- // src/contexts/Collapsible/use.tsx
83
- import { useContextEx } from "@xyo-network/react-shared";
84
- var useCollapsible = () => useContextEx(CollapsibleContext, "Collapsible", false);
85
-
86
- // src/components/SiteMenu/hooks/useMenuItemsShared.tsx
87
- var useMenuItemsShared = () => {
88
- const { collapse, collapseEnd, setCollapse, setCollapseEnd } = useCollapsible();
89
- const onMenuItemToggle = (open) => {
90
- setCollapse?.((previous) => open ? false : previous);
91
- setCollapseEnd?.((previous) => open ? false : previous);
92
- };
93
- const defaultSiteMenuListItemProps = useMemo(
94
- () => ({
95
- collapseEnd,
96
- dense: true,
97
- iconOnly: collapse,
98
- sx: {
99
- px: "8px"
100
- }
101
- }),
102
- [collapse, collapseEnd]
103
- );
104
- return { defaultSiteMenuListItemProps, onMenuItemToggle };
105
- };
106
-
107
- // src/components/SiteMenu/Menu.tsx
108
- import MenuIcon2 from "@mui/icons-material/Menu";
109
- import SettingsIcon from "@mui/icons-material/Settings";
110
- import { IconButton as IconButton2, List as List2, SwipeableDrawer } from "@mui/material";
111
- import { FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
112
- import { useEffect as useEffect2, useState as useState3 } from "react";
113
-
114
- // src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
115
- import { ListItemText, useTheme as useTheme4 } from "@mui/material";
116
- import { FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
117
- import { LinkEx as LinkEx2 } from "@xylabs/react-link";
118
- import { useState as useState2 } from "react";
119
-
120
- // src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx
121
- import { Tooltip } from "@mui/material";
122
- import { FlexCol } from "@xylabs/react-flexbox";
123
- import { VscInfo } from "react-icons/vsc";
124
- import { jsx as jsx5 } from "react/jsx-runtime";
125
- var ListItemTooltip = ({ title, ...props }) => {
126
- return /* @__PURE__ */ jsx5(Tooltip, { title, placement: "right", ...props, children: /* @__PURE__ */ jsx5("div", { children: /* @__PURE__ */ jsx5(FlexCol, { justifyContent: "center", children: /* @__PURE__ */ jsx5(VscInfo, { color: "grey" }) }) }) });
127
- };
128
-
129
- // src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx
130
- import { Typography as Typography2 } from "@mui/material";
131
- import { jsx as jsx6 } from "react/jsx-runtime";
132
- var MenuIcon = ({ icon, ...props }) => {
133
- return /* @__PURE__ */ jsx6(Typography2, { display: "flex", ...props, children: icon });
134
- };
135
-
136
- // src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx
137
- import { ListItem } from "@mui/material";
138
- import { jsx as jsx7 } from "react/jsx-runtime";
139
- var MenuListItem = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {
140
- const listItemSx = iconOnly ? { borderRadius: "50%", display: "inline-flex", flexGrow: 0, width: "auto" } : { width: "100%" };
141
- const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 };
142
- const paddingSx = dense ? { px: "8px" } : { px: "12px" };
143
- return /* @__PURE__ */ jsx7(ListItem, { sx: { ...listItemSx, ...spacingSx, ...paddingSx, ...sx }, ...props, children });
144
- };
145
-
146
- // src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx
147
- import { Collapse, List } from "@mui/material";
148
- import { jsx as jsx8 } from "react/jsx-runtime";
149
- var SubNavListItemsCollapse = ({ collapse, openSubNav, children, ...props }) => {
150
- return /* @__PURE__ */ jsx8(Collapse, { in: collapse == true ? false : openSubNav, ...props, children: /* @__PURE__ */ jsx8(List, { children }) });
151
- };
152
-
153
- // src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx
154
- import { IconButton, useTheme as useTheme3 } from "@mui/material";
155
- import { VscChevronDown } from "react-icons/vsc";
156
- import { jsx as jsx9 } from "react/jsx-runtime";
157
- var SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
158
- const theme = useTheme3();
159
- return /* @__PURE__ */ jsx9(
160
- IconButton,
161
- {
162
- onClick: (event) => {
163
- event.stopPropagation();
164
- setOpenSubNav?.(!openSubNav);
165
- },
166
- sx: { marginRight: theme.spacing(0.5) },
167
- children: /* @__PURE__ */ jsx9(VscChevronDown, { fontSize: "16px" })
168
- }
169
- );
170
- };
171
-
172
- // src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
173
- import { Fragment, jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
174
- var MenuListItemContainer = ({
175
- style,
176
- icon,
177
- iconMenuTextSpacing,
178
- iconOnly,
179
- onButtonClick,
180
- primary,
181
- subNavListItems,
182
- sx,
183
- tooltip,
184
- to,
185
- ...props
186
- }) => {
187
- const { dense } = props;
188
- const theme = useTheme4();
189
- const { collapse } = useCollapsible();
190
- const [openSubNav, setOpenSubNav] = useState2(false);
191
- const [hovered, setHovered] = useState2(false);
192
- const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1);
193
- return /* @__PURE__ */ jsxs2(Fragment, { children: [
194
- /* @__PURE__ */ jsxs2(
195
- MenuListItem,
196
- {
197
- disableGutters: true,
198
- iconOnly,
199
- onClick: onButtonClick,
200
- dense,
201
- sx: { justifyContent: "space-between", ...sx },
202
- style: { whiteSpace: "nowrap", ...style },
203
- ...props,
204
- children: [
205
- /* @__PURE__ */ jsx10(
206
- LinkEx2,
207
- {
208
- onMouseEnter: () => setHovered(true),
209
- onMouseLeave: () => setHovered(false),
210
- color: "inherit",
211
- to,
212
- sx: {
213
- "& :hover": {
214
- cursor: "pointer",
215
- textDecoration: "underline"
216
- }
217
- },
218
- children: /* @__PURE__ */ jsxs2(FlexRow2, { children: [
219
- /* @__PURE__ */ jsx10(MenuIcon, { icon, paddingRight: resolvedIconMenuTextSpacing, color: hovered ? "secondary" : "inherit" }),
220
- /* @__PURE__ */ jsx10(ListItemText, { primary })
221
- ] })
222
- }
223
- ),
224
- /* @__PURE__ */ jsxs2(FlexRow2, { style: { marginLeft: theme.spacing(1) }, children: [
225
- subNavListItems ? /* @__PURE__ */ jsx10(SubNavToggleIconButton, { setOpenSubNav, openSubNav }) : null,
226
- tooltip ? /* @__PURE__ */ jsx10(ListItemTooltip, { title: tooltip }) : null
227
- ] })
228
- ]
229
- }
230
- ),
231
- subNavListItems ? /* @__PURE__ */ jsx10(SubNavListItemsCollapse, { openSubNav, collapse, children: subNavListItems?.map((item, index) => /* @__PURE__ */ jsx10(MenuListItemContainer, { dense, sx: { pl: theme.spacing(1) }, ...item }, index)) }) : null
232
- ] });
233
- };
234
-
235
- // src/components/SiteMenu/Menu.tsx
236
- import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
237
- var SiteMenu = ({ children, onMenuToggle, side = "right", ...props }) => {
238
- const [open, setOpen] = useState3(false);
239
- useEffect2(() => {
240
- onMenuToggle?.(open);
241
- }, [onMenuToggle, open]);
242
- return /* @__PURE__ */ jsxs3(FlexRow3, { alignItems: "stretch", ...props, children: [
243
- /* @__PURE__ */ jsx11(
244
- IconButton2,
245
- {
246
- size: "small",
247
- color: "inherit",
248
- onClick: () => {
249
- setOpen(!open);
250
- },
251
- children: /* @__PURE__ */ jsx11(MenuIcon2, { fontSize: "large" })
252
- }
253
- ),
254
- /* @__PURE__ */ jsx11(
255
- SwipeableDrawer,
256
- {
257
- anchor: side,
258
- open,
259
- onClick: () => setOpen(false),
260
- onKeyDown: () => setOpen(false),
261
- onClose: () => setOpen(false),
262
- onOpen: () => setOpen(true),
263
- children: children ?? /* @__PURE__ */ jsx11(List2, { children: /* @__PURE__ */ jsx11(MenuListItemContainer, { primary: "Settings", icon: /* @__PURE__ */ jsx11(SettingsIcon, {}), to: "/settings" }) })
264
- }
265
- )
266
- ] });
267
- };
268
-
269
- // src/components/SiteMenu/MenuSection.tsx
270
- import { Collapse as Collapse2, ListSubheader } from "@mui/material";
271
- import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
272
- import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
273
- var MenuSection = ({ iconMenuTextSpacing, listItems, showTitle = true, title, ...props }) => {
274
- return /* @__PURE__ */ jsxs4(FlexCol2, { alignItems: "stretch", ...props, children: [
275
- /* @__PURE__ */ jsx12(Collapse2, { in: showTitle, timeout: 700, children: /* @__PURE__ */ jsx12(ListSubheader, { children: title }) }),
276
- listItems.map((item, index) => /* @__PURE__ */ jsx12(MenuListItemContainer, { iconMenuTextSpacing, ...item }, index))
277
- ] });
278
- };
279
-
280
- // src/components/Toolbar/System/SystemToolbar.tsx
281
- import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
282
- var SystemToolbar = ({
283
- children,
284
- darkModeButton = false,
285
- hideNetworkSelect,
286
- menuItems,
287
- networkSelectProps,
288
- onMenuToggle,
289
- precedingChildren,
290
- ...props
291
- }) => {
292
- return /* @__PURE__ */ jsxs5(Toolbar2, { ...props, children: [
293
- precedingChildren,
294
- hideNetworkSelect ? null : /* @__PURE__ */ jsx13(FlexRow4, { marginX: 0.5, children: /* @__PURE__ */ jsx13(Paper, { variant: "elevation", children: /* @__PURE__ */ jsx13(NetworkSelectEx, { fullWidth: true, ...networkSelectProps }) }) }),
295
- children,
296
- darkModeButton ? /* @__PURE__ */ jsx13(DarkModeIconButton, { color: "inherit" }) : null,
297
- menuItems ? /* @__PURE__ */ jsx13(SiteMenu, { onMenuToggle, children: menuItems }) : null
298
- ] });
299
- };
300
-
301
- // src/components/AppBar/Application.tsx
302
- import { jsx as jsx14 } from "react/jsx-runtime";
303
- var ApplicationAppBar = ({ systemToolbar, contextToolbar, responsive = true, ...props }) => {
304
- return /* @__PURE__ */ jsx14(
305
- AppBarEx,
306
- {
307
- systemToolbar: systemToolbar ?? /* @__PURE__ */ jsx14(SystemToolbar, {}),
308
- contextToolbar: contextToolbar ?? /* @__PURE__ */ jsx14(ContextToolbar, {}),
309
- position: "sticky",
310
- responsive,
311
- ...props
312
- }
313
- );
314
- };
315
-
316
- // src/components/CollapsibleDrawer/CollapseToggle.tsx
317
- import { Icon, useTheme as useTheme5 } from "@mui/material";
318
- import { FlexRow as FlexRow5 } from "@xylabs/react-flexbox";
319
- import { useState as useState4 } from "react";
320
- import { VscArrowSmallLeft, VscArrowSmallRight } from "react-icons/vsc";
321
- import { jsx as jsx15 } from "react/jsx-runtime";
322
- var CollapseToggleFlex = (props) => {
323
- const { collapse, setCollapse, setCollapseEnd } = useCollapsible();
324
- const [hover, setHover] = useState4(false);
325
- const theme = useTheme5();
326
- const handleCollapseToggle = () => {
327
- setCollapse?.(!collapse);
328
- setCollapseEnd?.((previous) => previous ? false : previous);
329
- };
330
- return /* @__PURE__ */ jsx15(FlexRow5, { mt: 2, py: 2, justifyContent: collapse ? "start" : "center", ...props, children: /* @__PURE__ */ jsx15(
331
- Icon,
332
- {
333
- onClick: handleCollapseToggle,
334
- onMouseEnter: () => setHover(true),
335
- onMouseLeave: () => setHover(false),
336
- fontSize: "large",
337
- sx: { color: hover ? theme.palette.secondary.main : "inherit", cursor: "pointer" },
338
- children: !collapse ? /* @__PURE__ */ jsx15(VscArrowSmallLeft, {}) : /* @__PURE__ */ jsx15(VscArrowSmallRight, {})
339
- }
340
- ) });
341
- };
342
-
343
- // src/components/CollapsibleDrawer/CollapsibleDrawer.tsx
344
- import { Collapse as Collapse3, styled, useTheme as useTheme6 } from "@mui/material";
345
- import { jsx as jsx16 } from "react/jsx-runtime";
346
- var CollapsibleDrawer = ({ children, sx, ...props }) => {
347
- const { collapse, setCollapseEnd } = useCollapsible();
348
- const theme = useTheme6();
349
- const collapsedSize = props.collapsedSize ?? theme.spacing(5);
350
- return /* @__PURE__ */ jsx16(
351
- CollapsibleFlexInner,
352
- {
353
- in: !collapse,
354
- orientation: "horizontal",
355
- collapsedSize,
356
- onExited: () => setCollapseEnd?.(true),
357
- sx: {
358
- alignItems: "start",
359
- display: "flex",
360
- height: "100%",
361
- ...sx
362
- },
363
- ...props,
364
- children
365
- }
366
- );
367
- };
368
- var CollapsibleFlexInner = styled(Collapse3)(() => ({
369
- "& .MuiCollapse-wrapperInner": {
370
- display: "flex",
371
- flexDirection: "column"
372
- }
373
- }));
374
-
375
- // src/components/MobileSystemControls/SystemControls.tsx
376
- import { FlexCol as FlexCol5 } from "@xylabs/react-flexbox";
377
-
378
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
379
- import { styled as styled2 } from "@mui/material";
380
-
381
- // src/components/MobileSystemControls/SystemControlsType.ts
382
- var SystemControlsType = /* @__PURE__ */ ((SystemControlsType2) => {
383
- SystemControlsType2["Left"] = "Left";
384
- SystemControlsType2["Right"] = "Right";
385
- SystemControlsType2["WindowShade"] = "WindowShade";
386
- return SystemControlsType2;
387
- })(SystemControlsType || {});
388
-
389
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
390
- import { Paper as Paper2, useMediaQuery } from "@mui/material";
391
- import { FlexCol as FlexCol4, FlexRow as FlexRow7 } from "@xylabs/react-flexbox";
392
- import { NetworkSelectEx as NetworkSelectEx2 } from "@xyo-network/react-network";
393
-
394
- // src/components/MobileSystemControls/controls/SystemControl.tsx
395
- import { Collapse as Collapse4 } from "@mui/material";
396
- import { FlexCol as FlexCol3, FlexRow as FlexRow6 } from "@xylabs/react-flexbox";
397
- import { useState as useState5 } from "react";
398
- import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
399
- var SystemControl = ({
400
- children,
401
- controlElement,
402
- systemControlsType = "WindowShade" /* WindowShade */,
403
- ...props
404
- }) => {
405
- const [toggleControls, setToggleControls] = useState5(false);
406
- let orientation = "vertical";
407
- switch (systemControlsType) {
408
- case "Left" /* Left */: {
409
- orientation = "horizontal";
410
- break;
411
- }
412
- }
413
- return /* @__PURE__ */ jsxs6(FlexRow6, { className: "controls", ...props, children: [
414
- /* @__PURE__ */ jsx17(Collapse4, { in: toggleControls, orientation, timeout: 500, children: /* @__PURE__ */ jsx17(FlexRow6, { bgcolor: "primary.main", className: "control", children: controlElement }) }),
415
- /* @__PURE__ */ jsx17(FlexCol3, { style: { cursor: "pointer" }, onClick: () => setToggleControls(!toggleControls), children })
416
- ] });
417
- };
418
-
419
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
420
- import { Fragment as Fragment2, jsx as jsx18 } from "react/jsx-runtime";
421
- var SystemControlsUnstyled = ({
422
- visible,
423
- systemControlsType = "WindowShade" /* WindowShade */,
424
- ...props
425
- }) => {
426
- const isSmall = useMediaQuery((theme) => theme.breakpoints.down("sm"));
427
- if (visible || isSmall) {
428
- return /* @__PURE__ */ jsx18(FlexCol4, { ...props, className: `${props.className} system-controls-type-${systemControlsType}`, children: /* @__PURE__ */ jsx18(
429
- SystemControl,
430
- {
431
- systemControlsType,
432
- controlElement: /* @__PURE__ */ jsx18(Fragment2, { children: /* @__PURE__ */ jsx18(FlexRow7, { className: "control-wrap", children: /* @__PURE__ */ jsx18(Paper2, { variant: "elevation", elevation: 0, children: /* @__PURE__ */ jsx18(NetworkSelectEx2, { responsive: false, className: "network-ex" }) }) }) })
433
- }
434
- ) });
435
- } else {
436
- return /* @__PURE__ */ jsx18(FlexCol4, {});
437
- }
438
- };
439
-
440
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
441
- var SystemControlsRoot = styled2(SystemControlsUnstyled, { name: "SystemControls", slot: "Root" })(({ theme }) => ({
442
- // shared defaults
443
- ["&"]: {
444
- ".toggle": {
445
- backgroundColor: theme.palette.primary.main
446
- },
447
- alignItems: "start",
448
- zIndex: 1
449
- },
450
- // WindowShade System Controls styles
451
- [`&.system-controls-type-${"WindowShade" /* WindowShade */}`]: {
452
- ".control": {
453
- borderRadius: "0 0 5px 5px",
454
- flexDirection: "row",
455
- flexGrow: 1,
456
- justifyContent: "space-around",
457
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
458
- },
459
- ".controls": {
460
- alignItems: "stretch",
461
- flexDirection: "column",
462
- flexGrow: 1
463
- },
464
- ".toggle": {
465
- borderRadius: "0 0 5px 5px",
466
- padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`
467
- },
468
- flexDirection: "row",
469
- position: "absolute",
470
- top: 0,
471
- width: "100%"
472
- },
473
- // Left System Control styles
474
- [`&.system-controls-type-${"Left" /* Left */}`]: {
475
- ".control": {
476
- alignItems: "start",
477
- flexDirection: "column",
478
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
479
- },
480
- ".control-wrap": {
481
- marginBottom: `${theme.spacing(2)}`
482
- },
483
- ".toggle": {
484
- borderRadius: "0 5px 5px 0",
485
- padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,
486
- writingMode: "vertical-rl"
487
- },
488
- flexDirection: "column",
489
- left: 0,
490
- position: "fixed",
491
- top: "30vh",
492
- width: "auto"
493
- }
494
- }));
495
-
496
- // src/components/MobileSystemControls/SystemControls.tsx
497
- import { jsx as jsx19 } from "react/jsx-runtime";
498
- var SystemControls = (props) => {
499
- return /* @__PURE__ */ jsx19(FlexCol5, { children: /* @__PURE__ */ jsx19(SystemControlsRoot, { ...props }) });
500
- };
501
-
502
- // src/components/SearchBar/SearchBar.tsx
503
- import SearchIcon from "@mui/icons-material/Search";
504
- import { Paper as Paper3, TextField } from "@mui/material";
505
- import { ButtonEx } from "@xylabs/react-button";
506
- import { FlexRow as FlexRow8 } from "@xylabs/react-flexbox";
507
- import { useState as useState6 } from "react";
508
- import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
509
- var SearchBar = ({ defaultValue, onSearch, ...props }) => {
510
- const [term, setTerm] = useState6();
511
- return /* @__PURE__ */ jsx20(FlexRow8, { alignItems: "stretch", ...props, children: /* @__PURE__ */ jsxs7(Paper3, { variant: "elevation", elevation: 0, style: { display: "flex", overflow: "hidden", width: "100%" }, children: [
512
- /* @__PURE__ */ jsx20(
513
- TextField,
514
- {
515
- InputProps: { color: "secondary", style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } },
516
- variant: "outlined",
517
- size: "small",
518
- defaultValue,
519
- fullWidth: true,
520
- onChange: (event) => setTerm(event.target.value),
521
- onKeyDown: (event) => {
522
- if (event.key === "Enter")
523
- onSearch?.(term);
524
- }
525
- }
526
- ),
527
- /* @__PURE__ */ jsx20(ButtonEx, { variant: "contained", style: { borderRadius: 0, borderTopLeftRadius: 0 }, color: "secondary", onClick: () => onSearch?.(term), children: /* @__PURE__ */ jsx20(SearchIcon, {}) })
528
- ] }) });
529
- };
530
- export {
531
- ApplicationAppBar,
532
- CollapseToggleFlex,
533
- CollapsibleDrawer,
534
- CollapsibleProvider,
535
- ContextToolbar,
536
- MenuListItemContainer,
537
- MenuSection,
538
- SearchBar,
539
- SiteMenu,
540
- SystemControls,
541
- SystemControlsType,
542
- SystemControlsUnstyled,
543
- SystemToolbar,
544
- useCollapsible,
545
- useMenuItemsShared
546
- };
547
- //# sourceMappingURL=index.mjs.map