@xyo-network/react-appbar 2.64.0-rc.6 → 2.64.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (630) hide show
  1. package/dist/browser/components/AppBar/Application.cjs +286 -0
  2. package/dist/browser/components/AppBar/Application.cjs.map +1 -0
  3. package/dist/browser/components/AppBar/Application.d.cts +10 -0
  4. package/dist/browser/components/AppBar/Application.d.cts.map +1 -0
  5. package/dist/browser/components/AppBar/index.cjs +288 -0
  6. package/dist/browser/components/AppBar/index.cjs.map +1 -0
  7. package/dist/browser/components/AppBar/index.d.cts +2 -0
  8. package/dist/browser/components/AppBar/index.d.cts.map +1 -0
  9. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs +61 -0
  10. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs.map +1 -0
  11. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.cts +4 -0
  12. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.cts.map +1 -0
  13. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.mts.map +1 -1
  14. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.ts.map +1 -1
  15. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js.map +1 -1
  16. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs +66 -0
  17. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +1 -0
  18. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.d.cts +5 -0
  19. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.d.cts.map +1 -0
  20. package/dist/browser/components/CollapsibleDrawer/index.cjs +96 -0
  21. package/dist/browser/components/CollapsibleDrawer/index.cjs.map +1 -0
  22. package/dist/browser/components/CollapsibleDrawer/index.d.cts +3 -0
  23. package/dist/browser/components/CollapsibleDrawer/index.d.cts.map +1 -0
  24. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs +92 -0
  25. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +1 -0
  26. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.cts +4 -0
  27. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.cts.map +1 -0
  28. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.mts.map +1 -1
  29. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +1 -1
  30. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js.map +1 -1
  31. package/dist/browser/components/MobileSystemControls/SystemControls.cjs +143 -0
  32. package/dist/browser/components/MobileSystemControls/SystemControls.cjs.map +1 -0
  33. package/dist/browser/components/MobileSystemControls/SystemControls.d.cts +5 -0
  34. package/dist/browser/components/MobileSystemControls/SystemControls.d.cts.map +1 -0
  35. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs +134 -0
  36. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs.map +1 -0
  37. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.d.cts +4 -0
  38. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.d.cts.map +1 -0
  39. package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs +32 -0
  40. package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs.map +1 -0
  41. package/dist/browser/components/MobileSystemControls/SystemControlsType.d.cts +6 -0
  42. package/dist/browser/components/MobileSystemControls/SystemControlsType.d.cts.map +1 -0
  43. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs +75 -0
  44. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +1 -0
  45. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.d.cts +11 -0
  46. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.d.cts.map +1 -0
  47. package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs +49 -0
  48. package/dist/{node/components/MobileSystemControls/controls/SystemControl.mjs.map → browser/components/MobileSystemControls/controls/SystemControl.cjs.map} +1 -1
  49. package/dist/browser/components/MobileSystemControls/controls/SystemControl.d.cts +11 -0
  50. package/dist/browser/components/MobileSystemControls/controls/SystemControl.d.cts.map +1 -0
  51. package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs +32 -0
  52. package/dist/{node/components/MobileSystemControls/controls/SystemControlText.mjs.map → browser/components/MobileSystemControls/controls/SystemControlText.cjs.map} +1 -1
  53. package/dist/browser/components/MobileSystemControls/controls/SystemControlText.d.cts +8 -0
  54. package/dist/browser/components/MobileSystemControls/controls/SystemControlText.d.cts.map +1 -0
  55. package/dist/browser/components/MobileSystemControls/controls/index.cjs +60 -0
  56. package/dist/browser/components/MobileSystemControls/controls/index.cjs.map +1 -0
  57. package/dist/browser/components/MobileSystemControls/controls/index.d.cts +3 -0
  58. package/dist/browser/components/MobileSystemControls/controls/index.d.cts.map +1 -0
  59. package/dist/browser/components/MobileSystemControls/index.cjs +155 -0
  60. package/dist/browser/components/MobileSystemControls/index.cjs.map +1 -0
  61. package/dist/browser/components/MobileSystemControls/index.d.cts +4 -0
  62. package/dist/browser/components/MobileSystemControls/index.d.cts.map +1 -0
  63. package/dist/browser/components/SearchBar/SearchBar.cjs +53 -0
  64. package/dist/browser/components/SearchBar/SearchBar.cjs.map +1 -0
  65. package/dist/browser/components/SearchBar/SearchBar.d.cts +7 -0
  66. package/dist/browser/components/SearchBar/SearchBar.d.cts.map +1 -0
  67. package/dist/browser/components/SearchBar/index.cjs +55 -0
  68. package/dist/browser/components/SearchBar/index.cjs.map +1 -0
  69. package/dist/browser/components/SearchBar/index.d.cts +2 -0
  70. package/dist/browser/components/SearchBar/index.d.cts.map +1 -0
  71. package/dist/browser/components/SiteMenu/Menu.cjs +193 -0
  72. package/dist/browser/components/SiteMenu/Menu.cjs.map +1 -0
  73. package/dist/browser/components/SiteMenu/Menu.d.cts +9 -0
  74. package/dist/browser/components/SiteMenu/Menu.d.cts.map +1 -0
  75. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +153 -0
  76. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +1 -0
  77. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts +11 -0
  78. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts.map +1 -0
  79. package/dist/browser/components/SiteMenu/MenuListItem/index.cjs +155 -0
  80. package/dist/browser/components/SiteMenu/MenuListItem/index.cjs.map +1 -0
  81. package/dist/browser/components/SiteMenu/MenuListItem/index.d.cts +2 -0
  82. package/dist/browser/components/SiteMenu/MenuListItem/index.d.cts.map +1 -0
  83. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +33 -0
  84. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +1 -0
  85. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts +7 -0
  86. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts.map +1 -0
  87. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts.map +1 -1
  88. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +1 -1
  89. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +1 -1
  90. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +31 -0
  91. package/dist/{node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.mjs.map → browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map} +1 -1
  92. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts +7 -0
  93. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts.map +1 -0
  94. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +34 -0
  95. package/dist/{node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.mjs.map → browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map} +1 -1
  96. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts +7 -0
  97. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts.map +1 -0
  98. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs +54 -0
  99. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +1 -0
  100. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.d.cts +4 -0
  101. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.d.cts.map +1 -0
  102. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +31 -0
  103. package/dist/{node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.mjs.map → browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map} +1 -1
  104. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts +11 -0
  105. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts.map +1 -0
  106. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +43 -0
  107. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +1 -0
  108. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts +8 -0
  109. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts.map +1 -0
  110. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts.map +1 -1
  111. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +1 -1
  112. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +1 -1
  113. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs +53 -0
  114. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +1 -0
  115. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.d.cts +3 -0
  116. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.d.cts.map +1 -0
  117. package/dist/browser/components/SiteMenu/MenuSection.cjs +166 -0
  118. package/dist/browser/components/SiteMenu/MenuSection.cjs.map +1 -0
  119. package/dist/browser/components/SiteMenu/MenuSection.d.cts +11 -0
  120. package/dist/browser/components/SiteMenu/MenuSection.d.cts.map +1 -0
  121. package/dist/browser/components/SiteMenu/hooks/index.cjs +58 -0
  122. package/dist/browser/components/SiteMenu/hooks/index.cjs.map +1 -0
  123. package/dist/browser/components/SiteMenu/hooks/index.d.cts +2 -0
  124. package/dist/browser/components/SiteMenu/hooks/index.d.cts.map +1 -0
  125. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs +56 -0
  126. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +1 -0
  127. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.d.cts +7 -0
  128. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.d.cts.map +1 -0
  129. package/dist/browser/components/SiteMenu/index.cjs +233 -0
  130. package/dist/browser/components/SiteMenu/index.cjs.map +1 -0
  131. package/dist/browser/components/SiteMenu/index.d.cts +6 -0
  132. package/dist/browser/components/SiteMenu/index.d.cts.map +1 -0
  133. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs +19 -0
  134. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs.map +1 -0
  135. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.d.cts +5 -0
  136. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.d.cts.map +1 -0
  137. package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs +19 -0
  138. package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs.map +1 -0
  139. package/dist/browser/components/SiteMenu/lib/NavListItemProps.d.cts +12 -0
  140. package/dist/browser/components/SiteMenu/lib/NavListItemProps.d.cts.map +1 -0
  141. package/dist/browser/components/SiteMenu/lib/index.cjs +19 -0
  142. package/dist/{node/components/SiteMenu/lib/index.mjs.map → browser/components/SiteMenu/lib/index.cjs.map} +1 -1
  143. package/dist/browser/components/SiteMenu/lib/index.d.cts +3 -0
  144. package/dist/browser/components/SiteMenu/lib/index.d.cts.map +1 -0
  145. package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs +72 -0
  146. package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs.map +1 -0
  147. package/dist/browser/components/Toolbar/Context/ContextToolbar.d.cts +9 -0
  148. package/dist/browser/components/Toolbar/Context/ContextToolbar.d.cts.map +1 -0
  149. package/dist/browser/components/Toolbar/Context/Logo.cjs +33 -0
  150. package/dist/{node/components/Toolbar/Context/Logo.mjs.map → browser/components/Toolbar/Context/Logo.cjs.map} +1 -1
  151. package/dist/browser/components/Toolbar/Context/Logo.d.cts +3 -0
  152. package/dist/browser/components/Toolbar/Context/Logo.d.cts.map +1 -0
  153. package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs +63 -0
  154. package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs.map +1 -0
  155. package/dist/browser/components/Toolbar/Context/LogoLinkEx.d.cts +7 -0
  156. package/dist/browser/components/Toolbar/Context/LogoLinkEx.d.cts.map +1 -0
  157. package/dist/browser/components/Toolbar/Context/index.cjs +74 -0
  158. package/dist/browser/components/Toolbar/Context/index.cjs.map +1 -0
  159. package/dist/browser/components/Toolbar/Context/index.d.cts +2 -0
  160. package/dist/browser/components/Toolbar/Context/index.d.cts.map +1 -0
  161. package/dist/browser/components/Toolbar/System/SystemToolbar.cjs +220 -0
  162. package/dist/browser/components/Toolbar/System/SystemToolbar.cjs.map +1 -0
  163. package/dist/browser/components/Toolbar/System/SystemToolbar.d.cts +15 -0
  164. package/dist/browser/components/Toolbar/System/SystemToolbar.d.cts.map +1 -0
  165. package/dist/browser/components/Toolbar/System/index.cjs +222 -0
  166. package/dist/browser/components/Toolbar/System/index.cjs.map +1 -0
  167. package/dist/browser/components/Toolbar/System/index.d.cts +2 -0
  168. package/dist/browser/components/Toolbar/System/index.d.cts.map +1 -0
  169. package/dist/browser/components/Toolbar/index.cjs +271 -0
  170. package/dist/browser/components/Toolbar/index.cjs.map +1 -0
  171. package/dist/browser/components/Toolbar/index.d.cts +3 -0
  172. package/dist/browser/components/Toolbar/index.d.cts.map +1 -0
  173. package/dist/browser/components/index.cjs +550 -0
  174. package/dist/browser/components/index.cjs.map +1 -0
  175. package/dist/browser/components/index.d.cts +7 -0
  176. package/dist/browser/components/index.d.cts.map +1 -0
  177. package/dist/browser/contexts/Collapsible/State.cjs +19 -0
  178. package/dist/browser/contexts/Collapsible/State.cjs.map +1 -0
  179. package/dist/browser/contexts/Collapsible/State.d.cts +9 -0
  180. package/dist/browser/contexts/Collapsible/State.d.cts.map +1 -0
  181. package/dist/browser/contexts/Collapsible/context.cjs +28 -0
  182. package/dist/{node/contexts/Collapsible/context.mjs.map → browser/contexts/Collapsible/context.cjs.map} +1 -1
  183. package/dist/browser/contexts/Collapsible/context.d.cts +4 -0
  184. package/dist/browser/contexts/Collapsible/context.d.cts.map +1 -0
  185. package/dist/browser/contexts/Collapsible/index.cjs +52 -0
  186. package/dist/browser/contexts/Collapsible/index.cjs.map +1 -0
  187. package/dist/browser/contexts/Collapsible/index.d.cts +4 -0
  188. package/dist/browser/contexts/Collapsible/index.d.cts.map +1 -0
  189. package/dist/browser/contexts/Collapsible/provider.cjs +45 -0
  190. package/dist/browser/contexts/Collapsible/provider.cjs.map +1 -0
  191. package/dist/browser/contexts/Collapsible/provider.d.cts +8 -0
  192. package/dist/browser/contexts/Collapsible/provider.d.cts.map +1 -0
  193. package/dist/browser/contexts/Collapsible/use.cjs +34 -0
  194. package/dist/browser/contexts/Collapsible/use.cjs.map +1 -0
  195. package/dist/browser/contexts/Collapsible/use.d.cts +2 -0
  196. package/dist/browser/contexts/Collapsible/use.d.cts.map +1 -0
  197. package/dist/browser/contexts/index.cjs +52 -0
  198. package/dist/browser/contexts/index.cjs.map +1 -0
  199. package/dist/browser/contexts/index.d.cts +2 -0
  200. package/dist/browser/contexts/index.d.cts.map +1 -0
  201. package/dist/browser/index.cjs +569 -0
  202. package/dist/browser/index.cjs.map +1 -0
  203. package/dist/browser/index.d.cts +3 -0
  204. package/dist/browser/index.d.cts.map +1 -0
  205. package/dist/docs.json +96215 -0
  206. package/dist/node/components/AppBar/Application.cjs +290 -0
  207. package/dist/node/components/AppBar/Application.cjs.map +1 -0
  208. package/dist/node/components/AppBar/Application.d.cts +10 -0
  209. package/dist/node/components/AppBar/Application.d.cts.map +1 -0
  210. package/dist/node/components/AppBar/Application.js +256 -34
  211. package/dist/node/components/AppBar/Application.js.map +1 -1
  212. package/dist/node/components/AppBar/index.cjs +292 -0
  213. package/dist/node/components/AppBar/index.cjs.map +1 -0
  214. package/dist/node/components/AppBar/index.d.cts +2 -0
  215. package/dist/node/components/AppBar/index.d.cts.map +1 -0
  216. package/dist/node/components/AppBar/index.js +264 -22
  217. package/dist/node/components/AppBar/index.js.map +1 -1
  218. package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs +65 -0
  219. package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs.map +1 -0
  220. package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.cts +4 -0
  221. package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.cts.map +1 -0
  222. package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.mts.map +1 -1
  223. package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.ts.map +1 -1
  224. package/dist/node/components/CollapsibleDrawer/CollapseToggle.js +27 -41
  225. package/dist/node/components/CollapsibleDrawer/CollapseToggle.js.map +1 -1
  226. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs +70 -0
  227. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +1 -0
  228. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.d.cts +5 -0
  229. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.d.cts.map +1 -0
  230. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js +21 -35
  231. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js.map +1 -1
  232. package/dist/node/components/CollapsibleDrawer/index.cjs +101 -0
  233. package/dist/node/components/CollapsibleDrawer/index.cjs.map +1 -0
  234. package/dist/node/components/CollapsibleDrawer/index.d.cts +3 -0
  235. package/dist/node/components/CollapsibleDrawer/index.d.cts.map +1 -0
  236. package/dist/node/components/CollapsibleDrawer/index.js +70 -22
  237. package/dist/node/components/CollapsibleDrawer/index.js.map +1 -1
  238. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs +97 -0
  239. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +1 -0
  240. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.cts +4 -0
  241. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.cts.map +1 -0
  242. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.mts.map +1 -1
  243. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +1 -1
  244. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js +32 -43
  245. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js.map +1 -1
  246. package/dist/node/components/MobileSystemControls/SystemControls.cjs +147 -0
  247. package/dist/node/components/MobileSystemControls/SystemControls.cjs.map +1 -0
  248. package/dist/node/components/MobileSystemControls/SystemControls.d.cts +5 -0
  249. package/dist/node/components/MobileSystemControls/SystemControls.d.cts.map +1 -0
  250. package/dist/node/components/MobileSystemControls/SystemControls.js +116 -28
  251. package/dist/node/components/MobileSystemControls/SystemControls.js.map +1 -1
  252. package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs +138 -0
  253. package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs.map +1 -0
  254. package/dist/node/components/MobileSystemControls/SystemControlsRoot.d.cts +4 -0
  255. package/dist/node/components/MobileSystemControls/SystemControlsRoot.d.cts.map +1 -0
  256. package/dist/node/components/MobileSystemControls/SystemControlsRoot.js +57 -29
  257. package/dist/node/components/MobileSystemControls/SystemControlsRoot.js.map +1 -1
  258. package/dist/node/components/MobileSystemControls/SystemControlsType.cjs +36 -0
  259. package/dist/node/components/MobileSystemControls/SystemControlsType.cjs.map +1 -0
  260. package/dist/node/components/MobileSystemControls/SystemControlsType.d.cts +6 -0
  261. package/dist/node/components/MobileSystemControls/SystemControlsType.d.cts.map +1 -0
  262. package/dist/node/components/MobileSystemControls/SystemControlsType.js +3 -26
  263. package/dist/node/components/MobileSystemControls/SystemControlsType.js.map +1 -1
  264. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs +79 -0
  265. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +1 -0
  266. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.d.cts +11 -0
  267. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.d.cts.map +1 -0
  268. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js +39 -37
  269. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js.map +1 -1
  270. package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs +53 -0
  271. package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs.map +1 -0
  272. package/dist/node/components/MobileSystemControls/controls/SystemControl.d.cts +11 -0
  273. package/dist/node/components/MobileSystemControls/controls/SystemControl.d.cts.map +1 -0
  274. package/dist/node/components/MobileSystemControls/controls/SystemControl.js +14 -38
  275. package/dist/node/components/MobileSystemControls/controls/SystemControl.js.map +1 -1
  276. package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs +36 -0
  277. package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs.map +1 -0
  278. package/dist/node/components/MobileSystemControls/controls/SystemControlText.d.cts +8 -0
  279. package/dist/node/components/MobileSystemControls/controls/SystemControlText.d.cts.map +1 -0
  280. package/dist/node/components/MobileSystemControls/controls/SystemControlText.js +8 -31
  281. package/dist/node/components/MobileSystemControls/controls/SystemControlText.js.map +1 -1
  282. package/dist/node/components/MobileSystemControls/controls/index.cjs +65 -0
  283. package/dist/node/components/MobileSystemControls/controls/index.cjs.map +1 -0
  284. package/dist/node/components/MobileSystemControls/controls/index.d.cts +3 -0
  285. package/dist/node/components/MobileSystemControls/controls/index.d.cts.map +1 -0
  286. package/dist/node/components/MobileSystemControls/controls/index.js +34 -22
  287. package/dist/node/components/MobileSystemControls/controls/index.js.map +1 -1
  288. package/dist/node/components/MobileSystemControls/index.cjs +161 -0
  289. package/dist/node/components/MobileSystemControls/index.cjs.map +1 -0
  290. package/dist/node/components/MobileSystemControls/index.d.cts +4 -0
  291. package/dist/node/components/MobileSystemControls/index.d.cts.map +1 -0
  292. package/dist/node/components/MobileSystemControls/index.js +129 -24
  293. package/dist/node/components/MobileSystemControls/index.js.map +1 -1
  294. package/dist/node/components/SearchBar/SearchBar.cjs +57 -0
  295. package/dist/node/components/SearchBar/{SearchBar.mjs.map → SearchBar.cjs.map} +1 -1
  296. package/dist/node/components/SearchBar/SearchBar.d.cts +7 -0
  297. package/dist/node/components/SearchBar/SearchBar.d.cts.map +1 -0
  298. package/dist/node/components/SearchBar/SearchBar.js +16 -39
  299. package/dist/node/components/SearchBar/SearchBar.js.map +1 -1
  300. package/dist/node/components/SearchBar/index.cjs +59 -0
  301. package/dist/node/components/SearchBar/index.cjs.map +1 -0
  302. package/dist/node/components/SearchBar/index.d.cts +2 -0
  303. package/dist/node/components/SearchBar/index.d.cts.map +1 -0
  304. package/dist/node/components/SearchBar/index.js +30 -21
  305. package/dist/node/components/SearchBar/index.js.map +1 -1
  306. package/dist/node/components/SiteMenu/Menu.cjs +197 -0
  307. package/dist/node/components/SiteMenu/Menu.cjs.map +1 -0
  308. package/dist/node/components/SiteMenu/Menu.d.cts +9 -0
  309. package/dist/node/components/SiteMenu/Menu.d.cts.map +1 -0
  310. package/dist/node/components/SiteMenu/Menu.js +148 -41
  311. package/dist/node/components/SiteMenu/Menu.js.map +1 -1
  312. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +157 -0
  313. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +1 -0
  314. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts +11 -0
  315. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts.map +1 -0
  316. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js +85 -49
  317. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +1 -1
  318. package/dist/node/components/SiteMenu/MenuListItem/index.cjs +159 -0
  319. package/dist/node/components/SiteMenu/MenuListItem/index.cjs.map +1 -0
  320. package/dist/node/components/SiteMenu/MenuListItem/index.d.cts +2 -0
  321. package/dist/node/components/SiteMenu/MenuListItem/index.d.cts.map +1 -0
  322. package/dist/node/components/SiteMenu/MenuListItem/index.js +130 -21
  323. package/dist/node/components/SiteMenu/MenuListItem/index.js.map +1 -1
  324. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +37 -0
  325. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +1 -0
  326. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts +7 -0
  327. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts.map +1 -0
  328. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts.map +1 -1
  329. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +1 -1
  330. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +9 -32
  331. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +1 -1
  332. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +35 -0
  333. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +1 -0
  334. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts +7 -0
  335. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts.map +1 -0
  336. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +7 -30
  337. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +1 -1
  338. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +38 -0
  339. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +1 -0
  340. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts +7 -0
  341. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts.map +1 -0
  342. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +7 -30
  343. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +1 -1
  344. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs +60 -0
  345. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +1 -0
  346. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.d.cts +4 -0
  347. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.d.cts.map +1 -0
  348. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js +29 -25
  349. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js.map +1 -1
  350. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +35 -0
  351. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +1 -0
  352. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts +11 -0
  353. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts.map +1 -0
  354. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +7 -30
  355. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +1 -1
  356. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +47 -0
  357. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +1 -0
  358. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts +8 -0
  359. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts.map +1 -0
  360. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts.map +1 -1
  361. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +1 -1
  362. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +12 -35
  363. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +1 -1
  364. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs +58 -0
  365. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +1 -0
  366. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.d.cts +3 -0
  367. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.d.cts.map +1 -0
  368. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js +28 -23
  369. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js.map +1 -1
  370. package/dist/node/components/SiteMenu/MenuSection.cjs +170 -0
  371. package/dist/node/components/SiteMenu/MenuSection.cjs.map +1 -0
  372. package/dist/node/components/SiteMenu/MenuSection.d.cts +11 -0
  373. package/dist/node/components/SiteMenu/MenuSection.d.cts.map +1 -0
  374. package/dist/node/components/SiteMenu/MenuSection.js +141 -34
  375. package/dist/node/components/SiteMenu/MenuSection.js.map +1 -1
  376. package/dist/node/components/SiteMenu/hooks/index.cjs +62 -0
  377. package/dist/node/components/SiteMenu/hooks/index.cjs.map +1 -0
  378. package/dist/node/components/SiteMenu/hooks/index.d.cts +2 -0
  379. package/dist/node/components/SiteMenu/hooks/index.d.cts.map +1 -0
  380. package/dist/node/components/SiteMenu/hooks/index.js +33 -21
  381. package/dist/node/components/SiteMenu/hooks/index.js.map +1 -1
  382. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs +60 -0
  383. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +1 -0
  384. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.d.cts +7 -0
  385. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.d.cts.map +1 -0
  386. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js +19 -33
  387. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js.map +1 -1
  388. package/dist/node/components/SiteMenu/index.cjs +240 -0
  389. package/dist/node/components/SiteMenu/index.cjs.map +1 -0
  390. package/dist/node/components/SiteMenu/index.d.cts +6 -0
  391. package/dist/node/components/SiteMenu/index.d.cts.map +1 -0
  392. package/dist/node/components/SiteMenu/index.js +209 -30
  393. package/dist/node/components/SiteMenu/index.js.map +1 -1
  394. package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs +19 -0
  395. package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs.map +1 -0
  396. package/dist/node/components/SiteMenu/lib/MenuListItemBase.d.cts +5 -0
  397. package/dist/node/components/SiteMenu/lib/MenuListItemBase.d.cts.map +1 -0
  398. package/dist/node/components/SiteMenu/lib/MenuListItemBase.js +0 -16
  399. package/dist/node/components/SiteMenu/lib/MenuListItemBase.js.map +1 -1
  400. package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs +19 -0
  401. package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs.map +1 -0
  402. package/dist/node/components/SiteMenu/lib/NavListItemProps.d.cts +12 -0
  403. package/dist/node/components/SiteMenu/lib/NavListItemProps.d.cts.map +1 -0
  404. package/dist/node/components/SiteMenu/lib/NavListItemProps.js +0 -16
  405. package/dist/node/components/SiteMenu/lib/NavListItemProps.js.map +1 -1
  406. package/dist/node/components/SiteMenu/lib/index.cjs +19 -0
  407. package/dist/node/components/SiteMenu/lib/index.cjs.map +1 -0
  408. package/dist/node/components/SiteMenu/lib/index.d.cts +3 -0
  409. package/dist/node/components/SiteMenu/lib/index.d.cts.map +1 -0
  410. package/dist/node/components/SiteMenu/lib/index.js +0 -24
  411. package/dist/node/components/SiteMenu/lib/index.js.map +1 -1
  412. package/dist/node/components/Toolbar/Context/ContextToolbar.cjs +76 -0
  413. package/dist/node/components/Toolbar/Context/ContextToolbar.cjs.map +1 -0
  414. package/dist/node/components/Toolbar/Context/ContextToolbar.d.cts +9 -0
  415. package/dist/node/components/Toolbar/Context/ContextToolbar.d.cts.map +1 -0
  416. package/dist/node/components/Toolbar/Context/ContextToolbar.js +46 -29
  417. package/dist/node/components/Toolbar/Context/ContextToolbar.js.map +1 -1
  418. package/dist/node/components/Toolbar/Context/Logo.cjs +37 -0
  419. package/dist/node/components/Toolbar/Context/Logo.cjs.map +1 -0
  420. package/dist/node/components/Toolbar/Context/Logo.d.cts +3 -0
  421. package/dist/node/components/Toolbar/Context/Logo.d.cts.map +1 -0
  422. package/dist/node/components/Toolbar/Context/Logo.js +8 -31
  423. package/dist/node/components/Toolbar/Context/Logo.js.map +1 -1
  424. package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs +67 -0
  425. package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs.map +1 -0
  426. package/dist/node/components/Toolbar/Context/LogoLinkEx.d.cts +7 -0
  427. package/dist/node/components/Toolbar/Context/LogoLinkEx.d.cts.map +1 -0
  428. package/dist/node/components/Toolbar/Context/LogoLinkEx.js +23 -36
  429. package/dist/node/components/Toolbar/Context/LogoLinkEx.js.map +1 -1
  430. package/dist/node/components/Toolbar/Context/index.cjs +78 -0
  431. package/dist/node/components/Toolbar/Context/index.cjs.map +1 -0
  432. package/dist/node/components/Toolbar/Context/index.d.cts +2 -0
  433. package/dist/node/components/Toolbar/Context/index.d.cts.map +1 -0
  434. package/dist/node/components/Toolbar/Context/index.js +49 -21
  435. package/dist/node/components/Toolbar/Context/index.js.map +1 -1
  436. package/dist/node/components/Toolbar/System/SystemToolbar.cjs +224 -0
  437. package/dist/node/components/Toolbar/System/SystemToolbar.cjs.map +1 -0
  438. package/dist/node/components/Toolbar/System/SystemToolbar.d.cts +15 -0
  439. package/dist/node/components/Toolbar/System/SystemToolbar.d.cts.map +1 -0
  440. package/dist/node/components/Toolbar/System/SystemToolbar.js +184 -37
  441. package/dist/node/components/Toolbar/System/SystemToolbar.js.map +1 -1
  442. package/dist/node/components/Toolbar/System/index.cjs +226 -0
  443. package/dist/node/components/Toolbar/System/index.cjs.map +1 -0
  444. package/dist/node/components/Toolbar/System/index.d.cts +2 -0
  445. package/dist/node/components/Toolbar/System/index.d.cts.map +1 -0
  446. package/dist/node/components/Toolbar/System/index.js +198 -22
  447. package/dist/node/components/Toolbar/System/index.js.map +1 -1
  448. package/dist/node/components/Toolbar/index.cjs +276 -0
  449. package/dist/node/components/Toolbar/index.cjs.map +1 -0
  450. package/dist/node/components/Toolbar/index.d.cts +3 -0
  451. package/dist/node/components/Toolbar/index.d.cts.map +1 -0
  452. package/dist/node/components/Toolbar/index.js +247 -24
  453. package/dist/node/components/Toolbar/index.js.map +1 -1
  454. package/dist/node/components/index.cjs +566 -0
  455. package/dist/node/components/index.cjs.map +1 -0
  456. package/dist/node/components/index.d.cts +7 -0
  457. package/dist/node/components/index.d.cts.map +1 -0
  458. package/dist/node/components/index.js +525 -31
  459. package/dist/node/components/index.js.map +1 -1
  460. package/dist/node/contexts/Collapsible/State.cjs +19 -0
  461. package/dist/node/contexts/Collapsible/State.cjs.map +1 -0
  462. package/dist/node/contexts/Collapsible/State.d.cts +9 -0
  463. package/dist/node/contexts/Collapsible/State.d.cts.map +1 -0
  464. package/dist/node/contexts/Collapsible/State.js +0 -16
  465. package/dist/node/contexts/Collapsible/State.js.map +1 -1
  466. package/dist/node/contexts/Collapsible/context.cjs +32 -0
  467. package/dist/node/contexts/Collapsible/context.cjs.map +1 -0
  468. package/dist/node/contexts/Collapsible/context.d.cts +4 -0
  469. package/dist/node/contexts/Collapsible/context.d.cts.map +1 -0
  470. package/dist/node/contexts/Collapsible/context.js +5 -28
  471. package/dist/node/contexts/Collapsible/context.js.map +1 -1
  472. package/dist/node/contexts/Collapsible/index.cjs +57 -0
  473. package/dist/node/contexts/Collapsible/index.cjs.map +1 -0
  474. package/dist/node/contexts/Collapsible/index.d.cts +4 -0
  475. package/dist/node/contexts/Collapsible/index.d.cts.map +1 -0
  476. package/dist/node/contexts/Collapsible/index.js +27 -25
  477. package/dist/node/contexts/Collapsible/index.js.map +1 -1
  478. package/dist/node/contexts/Collapsible/provider.cjs +49 -0
  479. package/dist/node/contexts/Collapsible/provider.cjs.map +1 -0
  480. package/dist/node/contexts/Collapsible/provider.d.cts +8 -0
  481. package/dist/node/contexts/Collapsible/provider.d.cts.map +1 -0
  482. package/dist/node/contexts/Collapsible/provider.js +17 -35
  483. package/dist/node/contexts/Collapsible/provider.js.map +1 -1
  484. package/dist/node/contexts/Collapsible/use.cjs +38 -0
  485. package/dist/node/contexts/Collapsible/use.cjs.map +1 -0
  486. package/dist/node/contexts/Collapsible/use.d.cts +2 -0
  487. package/dist/node/contexts/Collapsible/use.d.cts.map +1 -0
  488. package/dist/node/contexts/Collapsible/use.js +11 -29
  489. package/dist/node/contexts/Collapsible/use.js.map +1 -1
  490. package/dist/node/contexts/index.cjs +57 -0
  491. package/dist/node/contexts/index.cjs.map +1 -0
  492. package/dist/node/contexts/index.d.cts +2 -0
  493. package/dist/node/contexts/index.d.cts.map +1 -0
  494. package/dist/node/contexts/index.js +27 -21
  495. package/dist/node/contexts/index.js.map +1 -1
  496. package/dist/node/index.cjs +587 -0
  497. package/dist/node/index.cjs.map +1 -0
  498. package/dist/node/index.d.cts +3 -0
  499. package/dist/node/index.d.cts.map +1 -0
  500. package/dist/node/index.js +544 -23
  501. package/dist/node/index.js.map +1 -1
  502. package/package.json +23 -23
  503. package/src/components/CollapsibleDrawer/CollapseToggle.tsx +1 -0
  504. package/src/components/CollapsibleDrawer/storyExampleMenuData.tsx +1 -0
  505. package/src/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.tsx +1 -0
  506. package/src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx +1 -0
  507. package/src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx +1 -0
  508. package/dist/browser/components/AppBar/Application.stories.js +0 -64
  509. package/dist/browser/components/AppBar/Application.stories.js.map +0 -1
  510. package/dist/browser/components/CollapsibleDrawer/CollapseDrawer.stories.js +0 -45
  511. package/dist/browser/components/CollapsibleDrawer/CollapseDrawer.stories.js.map +0 -1
  512. package/dist/browser/components/MobileSystemControls/SystemControls.stories.js +0 -34
  513. package/dist/browser/components/MobileSystemControls/SystemControls.stories.js.map +0 -1
  514. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js +0 -46
  515. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js.map +0 -1
  516. package/dist/browser/components/Toolbar/Context/ContextToolbar.stories.js +0 -25
  517. package/dist/browser/components/Toolbar/Context/ContextToolbar.stories.js.map +0 -1
  518. package/dist/browser/components/Toolbar/System/SystemToolbar.stories.js +0 -48
  519. package/dist/browser/components/Toolbar/System/SystemToolbar.stories.js.map +0 -1
  520. package/dist/node/components/AppBar/Application.mjs +0 -19
  521. package/dist/node/components/AppBar/Application.mjs.map +0 -1
  522. package/dist/node/components/AppBar/Application.stories.js +0 -90
  523. package/dist/node/components/AppBar/Application.stories.js.map +0 -1
  524. package/dist/node/components/AppBar/Application.stories.mjs +0 -64
  525. package/dist/node/components/AppBar/Application.stories.mjs.map +0 -1
  526. package/dist/node/components/AppBar/index.mjs +0 -2
  527. package/dist/node/components/AppBar/index.mjs.map +0 -1
  528. package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.js +0 -69
  529. package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.js.map +0 -1
  530. package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.mjs +0 -45
  531. package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.mjs.map +0 -1
  532. package/dist/node/components/CollapsibleDrawer/CollapseToggle.mjs +0 -30
  533. package/dist/node/components/CollapsibleDrawer/CollapseToggle.mjs.map +0 -1
  534. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.mjs +0 -35
  535. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.mjs.map +0 -1
  536. package/dist/node/components/CollapsibleDrawer/index.mjs +0 -3
  537. package/dist/node/components/CollapsibleDrawer/index.mjs.map +0 -1
  538. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.mjs +0 -83
  539. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.mjs.map +0 -1
  540. package/dist/node/components/MobileSystemControls/SystemControls.mjs +0 -10
  541. package/dist/node/components/MobileSystemControls/SystemControls.mjs.map +0 -1
  542. package/dist/node/components/MobileSystemControls/SystemControls.stories.js +0 -59
  543. package/dist/node/components/MobileSystemControls/SystemControls.stories.js.map +0 -1
  544. package/dist/node/components/MobileSystemControls/SystemControls.stories.mjs +0 -34
  545. package/dist/node/components/MobileSystemControls/SystemControls.stories.mjs.map +0 -1
  546. package/dist/node/components/MobileSystemControls/SystemControlsRoot.mjs +0 -61
  547. package/dist/node/components/MobileSystemControls/SystemControlsRoot.mjs.map +0 -1
  548. package/dist/node/components/MobileSystemControls/SystemControlsType.mjs +0 -10
  549. package/dist/node/components/MobileSystemControls/SystemControlsType.mjs.map +0 -1
  550. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.mjs +0 -28
  551. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.mjs.map +0 -1
  552. package/dist/node/components/MobileSystemControls/controls/SystemControl.mjs +0 -28
  553. package/dist/node/components/MobileSystemControls/controls/SystemControlText.mjs +0 -10
  554. package/dist/node/components/MobileSystemControls/controls/index.mjs +0 -3
  555. package/dist/node/components/MobileSystemControls/controls/index.mjs.map +0 -1
  556. package/dist/node/components/MobileSystemControls/index.mjs +0 -4
  557. package/dist/node/components/MobileSystemControls/index.mjs.map +0 -1
  558. package/dist/node/components/SearchBar/SearchBar.mjs +0 -31
  559. package/dist/node/components/SearchBar/index.mjs +0 -2
  560. package/dist/node/components/SearchBar/index.mjs.map +0 -1
  561. package/dist/node/components/SiteMenu/Menu.mjs +0 -41
  562. package/dist/node/components/SiteMenu/Menu.mjs.map +0 -1
  563. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.mjs +0 -72
  564. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.mjs.map +0 -1
  565. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js +0 -71
  566. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js.map +0 -1
  567. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.mjs +0 -46
  568. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.mjs.map +0 -1
  569. package/dist/node/components/SiteMenu/MenuListItem/index.mjs +0 -2
  570. package/dist/node/components/SiteMenu/MenuListItem/index.mjs.map +0 -1
  571. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.mjs +0 -11
  572. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.mjs.map +0 -1
  573. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.mjs +0 -9
  574. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.mjs +0 -12
  575. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.mjs +0 -4
  576. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.mjs.map +0 -1
  577. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.mjs +0 -9
  578. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.mjs +0 -21
  579. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.mjs.map +0 -1
  580. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.mjs +0 -3
  581. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.mjs.map +0 -1
  582. package/dist/node/components/SiteMenu/MenuSection.mjs +0 -14
  583. package/dist/node/components/SiteMenu/MenuSection.mjs.map +0 -1
  584. package/dist/node/components/SiteMenu/hooks/index.mjs +0 -2
  585. package/dist/node/components/SiteMenu/hooks/index.mjs.map +0 -1
  586. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.mjs +0 -25
  587. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.mjs.map +0 -1
  588. package/dist/node/components/SiteMenu/index.mjs +0 -6
  589. package/dist/node/components/SiteMenu/index.mjs.map +0 -1
  590. package/dist/node/components/SiteMenu/lib/MenuListItemBase.mjs +0 -1
  591. package/dist/node/components/SiteMenu/lib/MenuListItemBase.mjs.map +0 -1
  592. package/dist/node/components/SiteMenu/lib/NavListItemProps.mjs +0 -1
  593. package/dist/node/components/SiteMenu/lib/NavListItemProps.mjs.map +0 -1
  594. package/dist/node/components/SiteMenu/lib/index.mjs +0 -3
  595. package/dist/node/components/Toolbar/Context/ContextToolbar.mjs +0 -10
  596. package/dist/node/components/Toolbar/Context/ContextToolbar.mjs.map +0 -1
  597. package/dist/node/components/Toolbar/Context/ContextToolbar.stories.js +0 -50
  598. package/dist/node/components/Toolbar/Context/ContextToolbar.stories.js.map +0 -1
  599. package/dist/node/components/Toolbar/Context/ContextToolbar.stories.mjs +0 -25
  600. package/dist/node/components/Toolbar/Context/ContextToolbar.stories.mjs.map +0 -1
  601. package/dist/node/components/Toolbar/Context/Logo.mjs +0 -11
  602. package/dist/node/components/Toolbar/Context/LogoLinkEx.mjs +0 -31
  603. package/dist/node/components/Toolbar/Context/LogoLinkEx.mjs.map +0 -1
  604. package/dist/node/components/Toolbar/Context/index.mjs +0 -2
  605. package/dist/node/components/Toolbar/Context/index.mjs.map +0 -1
  606. package/dist/node/components/Toolbar/System/SystemToolbar.mjs +0 -28
  607. package/dist/node/components/Toolbar/System/SystemToolbar.mjs.map +0 -1
  608. package/dist/node/components/Toolbar/System/SystemToolbar.stories.js +0 -74
  609. package/dist/node/components/Toolbar/System/SystemToolbar.stories.js.map +0 -1
  610. package/dist/node/components/Toolbar/System/SystemToolbar.stories.mjs +0 -48
  611. package/dist/node/components/Toolbar/System/SystemToolbar.stories.mjs.map +0 -1
  612. package/dist/node/components/Toolbar/System/index.mjs +0 -2
  613. package/dist/node/components/Toolbar/System/index.mjs.map +0 -1
  614. package/dist/node/components/Toolbar/index.mjs +0 -3
  615. package/dist/node/components/Toolbar/index.mjs.map +0 -1
  616. package/dist/node/components/index.mjs +0 -7
  617. package/dist/node/components/index.mjs.map +0 -1
  618. package/dist/node/contexts/Collapsible/State.mjs +0 -1
  619. package/dist/node/contexts/Collapsible/State.mjs.map +0 -1
  620. package/dist/node/contexts/Collapsible/context.mjs +0 -6
  621. package/dist/node/contexts/Collapsible/index.mjs +0 -4
  622. package/dist/node/contexts/Collapsible/index.mjs.map +0 -1
  623. package/dist/node/contexts/Collapsible/provider.mjs +0 -18
  624. package/dist/node/contexts/Collapsible/provider.mjs.map +0 -1
  625. package/dist/node/contexts/Collapsible/use.mjs +0 -7
  626. package/dist/node/contexts/Collapsible/use.mjs.map +0 -1
  627. package/dist/node/contexts/index.mjs +0 -2
  628. package/dist/node/contexts/index.mjs.map +0 -1
  629. package/dist/node/index.mjs +0 -3
  630. package/dist/node/index.mjs.map +0 -1
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/SiteMenu/MenuListItem/sub-nav/index.ts
21
+ var sub_nav_exports = {};
22
+ __export(sub_nav_exports, {
23
+ SubNavListItemsCollapse: () => SubNavListItemsCollapse,
24
+ SubNavToggleIconButton: () => SubNavToggleIconButton
25
+ });
26
+ module.exports = __toCommonJS(sub_nav_exports);
27
+
28
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx
29
+ var import_material = require("@mui/material");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var SubNavListItemsCollapse = ({ collapse, openSubNav, children, ...props }) => {
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Collapse, { in: collapse == true ? false : openSubNav, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.List, { children }) });
33
+ };
34
+
35
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx
36
+ var import_material2 = require("@mui/material");
37
+ var import_vsc = require("react-icons/vsc/index.js");
38
+ var import_jsx_runtime2 = require("react/jsx-runtime");
39
+ var SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
40
+ const theme = (0, import_material2.useTheme)();
41
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
42
+ import_material2.IconButton,
43
+ {
44
+ onClick: (event) => {
45
+ event.stopPropagation();
46
+ setOpenSubNav == null ? void 0 : setOpenSubNav(!openSubNav);
47
+ },
48
+ sx: { marginRight: theme.spacing(0.5) },
49
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_vsc.VscChevronDown, { fontSize: "16px" })
50
+ }
51
+ );
52
+ };
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ SubNavListItemsCollapse,
56
+ SubNavToggleIconButton
57
+ });
58
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/index.ts","../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx","../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx"],"sourcesContent":["export * from './SubNavListItemCollapse'\nexport * from './SubNavToggleIconButton'\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'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscChevronDown } from 'react-icons/vsc/index.js'\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAA8C;AAcxC;AAHC,IAAM,0BAAkE,CAAC,EAAE,UAAU,YAAY,UAAU,GAAG,MAAM,MAAM;AAC/H,SACE,4CAAC,4BAAS,IAAI,YAAY,OAAO,QAAQ,YAAa,GAAG,OACvD,sDAAC,wBAAM,UAAS,GAClB;AAEJ;;;ACjBA,IAAAA,mBAAsD;AAGtD,iBAA+B;AAiBzB,IAAAC,sBAAA;AAVC,IAAM,yBAAgE,CAAC,EAAE,eAAe,WAAW,MAAM;AAC9G,QAAM,YAAQ,2BAAS;AACvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,CAAC,UAA0B;AAClC,cAAM,gBAAgB;AACtB,uDAAgB,CAAC;AAAA,MACnB;AAAA,MACA,IAAI,EAAE,aAAa,MAAM,QAAQ,GAAG,EAAE;AAAA,MAEtC,uDAAC,6BAAe,UAAS,QAAO;AAAA;AAAA,EAClC;AAEJ;","names":["import_material","import_jsx_runtime"]}
@@ -0,0 +1,3 @@
1
+ export * from './SubNavListItemCollapse';
2
+ export * from './SubNavToggleIconButton';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
@@ -1,25 +1,30 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
1
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx
2
+ import { Collapse, List } from "@mui/material";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var SubNavListItemsCollapse = ({ collapse, openSubNav, children, ...props }) => {
5
+ return /* @__PURE__ */ jsx(Collapse, { in: collapse == true ? false : openSubNav, ...props, children: /* @__PURE__ */ jsx(List, { children }) });
6
+ };
7
+
8
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx
9
+ import { IconButton, useTheme } from "@mui/material";
10
+ import { VscChevronDown } from "react-icons/vsc/index.js";
11
+ import { jsx as jsx2 } from "react/jsx-runtime";
12
+ var SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
13
+ const theme = useTheme();
14
+ return /* @__PURE__ */ jsx2(
15
+ IconButton,
16
+ {
17
+ onClick: (event) => {
18
+ event.stopPropagation();
19
+ setOpenSubNav == null ? void 0 : setOpenSubNav(!openSubNav);
20
+ },
21
+ sx: { marginRight: theme.spacing(0.5) },
22
+ children: /* @__PURE__ */ jsx2(VscChevronDown, { fontSize: "16px" })
23
+ }
24
+ );
25
+ };
26
+ export {
27
+ SubNavListItemsCollapse,
28
+ SubNavToggleIconButton
13
29
  };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var sub_nav_exports = {};
17
- module.exports = __toCommonJS(sub_nav_exports);
18
- __reExport(sub_nav_exports, require("./SubNavListItemCollapse"), module.exports);
19
- __reExport(sub_nav_exports, require("./SubNavToggleIconButton"), module.exports);
20
- // Annotate the CommonJS export names for ESM import in node:
21
- 0 && (module.exports = {
22
- ...require("./SubNavListItemCollapse"),
23
- ...require("./SubNavToggleIconButton")
24
- });
25
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/index.ts"],"sourcesContent":["export * from './SubNavListItemCollapse'\nexport * from './SubNavToggleIconButton'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,qCAAd;AACA,4BAAc,qCADd;","names":[]}
1
+ {"version":3,"sources":["../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx","../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx"],"sourcesContent":["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'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscChevronDown } from 'react-icons/vsc/index.js'\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"],"mappings":";AAAA,SAAS,UAAyB,YAAY;AAcxC;AAHC,IAAM,0BAAkE,CAAC,EAAE,UAAU,YAAY,UAAU,GAAG,MAAM,MAAM;AAC/H,SACE,oBAAC,YAAS,IAAI,YAAY,OAAO,QAAQ,YAAa,GAAG,OACvD,8BAAC,QAAM,UAAS,GAClB;AAEJ;;;ACjBA,SAAS,YAA6B,gBAAgB;AAGtD,SAAS,sBAAsB;AAiBzB,gBAAAA,YAAA;AAVC,IAAM,yBAAgE,CAAC,EAAE,eAAe,WAAW,MAAM;AAC9G,QAAM,QAAQ,SAAS;AACvB,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,CAAC,UAA0B;AAClC,cAAM,gBAAgB;AACtB,uDAAgB,CAAC;AAAA,MACnB;AAAA,MACA,IAAI,EAAE,aAAa,MAAM,QAAQ,GAAG,EAAE;AAAA,MAEtC,0BAAAA,KAAC,kBAAe,UAAS,QAAO;AAAA;AAAA,EAClC;AAEJ;","names":["jsx"]}
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/SiteMenu/MenuSection.tsx
21
+ var MenuSection_exports = {};
22
+ __export(MenuSection_exports, {
23
+ MenuSection: () => MenuSection
24
+ });
25
+ module.exports = __toCommonJS(MenuSection_exports);
26
+ var import_material7 = require("@mui/material");
27
+ var import_react_flexbox3 = require("@xylabs/react-flexbox");
28
+
29
+ // src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
30
+ var import_material6 = require("@mui/material");
31
+ var import_react_flexbox2 = require("@xylabs/react-flexbox");
32
+ var import_react_link = require("@xylabs/react-link");
33
+ var import_react = require("react");
34
+
35
+ // src/contexts/Collapsible/context.ts
36
+ var import_react_shared = require("@xyo-network/react-shared");
37
+ var CollapsibleContext = (0, import_react_shared.createContextEx)();
38
+
39
+ // src/contexts/Collapsible/use.tsx
40
+ var import_react_shared2 = require("@xyo-network/react-shared");
41
+ var useCollapsible = () => (0, import_react_shared2.useContextEx)(CollapsibleContext, "Collapsible", false);
42
+
43
+ // src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx
44
+ var import_material = require("@mui/material");
45
+ var import_react_flexbox = require("@xylabs/react-flexbox");
46
+ var import_vsc = require("react-icons/vsc/index.js");
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ var ListItemTooltip = ({ title, ...props }) => {
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Tooltip, { title, placement: "right", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscInfo, { color: "grey" }) }) }) });
50
+ };
51
+
52
+ // src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx
53
+ var import_material2 = require("@mui/material");
54
+ var import_jsx_runtime2 = require("react/jsx-runtime");
55
+ var MenuIcon = ({ icon, ...props }) => {
56
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Typography, { display: "flex", ...props, children: icon });
57
+ };
58
+
59
+ // src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx
60
+ var import_material3 = require("@mui/material");
61
+ var import_jsx_runtime3 = require("react/jsx-runtime");
62
+ var MenuListItem = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {
63
+ const listItemSx = iconOnly ? { borderRadius: "50%", display: "inline-flex", flexGrow: 0, width: "auto" } : { width: "100%" };
64
+ const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 };
65
+ const paddingSx = dense ? { px: "8px" } : { px: "12px" };
66
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.ListItem, { sx: { ...listItemSx, ...spacingSx, ...paddingSx, ...sx }, ...props, children });
67
+ };
68
+
69
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx
70
+ var import_material4 = require("@mui/material");
71
+ var import_jsx_runtime4 = require("react/jsx-runtime");
72
+ var SubNavListItemsCollapse = ({ collapse, openSubNav, children, ...props }) => {
73
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Collapse, { in: collapse == true ? false : openSubNav, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.List, { children }) });
74
+ };
75
+
76
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx
77
+ var import_material5 = require("@mui/material");
78
+ var import_vsc2 = require("react-icons/vsc/index.js");
79
+ var import_jsx_runtime5 = require("react/jsx-runtime");
80
+ var SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
81
+ const theme = (0, import_material5.useTheme)();
82
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
83
+ import_material5.IconButton,
84
+ {
85
+ onClick: (event) => {
86
+ event.stopPropagation();
87
+ setOpenSubNav == null ? void 0 : setOpenSubNav(!openSubNav);
88
+ },
89
+ sx: { marginRight: theme.spacing(0.5) },
90
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_vsc2.VscChevronDown, { fontSize: "16px" })
91
+ }
92
+ );
93
+ };
94
+
95
+ // src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
96
+ var import_jsx_runtime6 = require("react/jsx-runtime");
97
+ var MenuListItemContainer = ({
98
+ style,
99
+ icon,
100
+ iconMenuTextSpacing,
101
+ iconOnly,
102
+ onButtonClick,
103
+ primary,
104
+ subNavListItems,
105
+ sx,
106
+ tooltip,
107
+ to,
108
+ ...props
109
+ }) => {
110
+ const { dense } = props;
111
+ const theme = (0, import_material6.useTheme)();
112
+ const { collapse } = useCollapsible();
113
+ const [openSubNav, setOpenSubNav] = (0, import_react.useState)(false);
114
+ const [hovered, setHovered] = (0, import_react.useState)(false);
115
+ const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1);
116
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
117
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
118
+ MenuListItem,
119
+ {
120
+ disableGutters: true,
121
+ iconOnly,
122
+ onClick: onButtonClick,
123
+ dense,
124
+ sx: { justifyContent: "space-between", ...sx },
125
+ style: { whiteSpace: "nowrap", ...style },
126
+ ...props,
127
+ children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
129
+ import_react_link.LinkEx,
130
+ {
131
+ onMouseEnter: () => setHovered(true),
132
+ onMouseLeave: () => setHovered(false),
133
+ color: "inherit",
134
+ to,
135
+ sx: {
136
+ "& :hover": {
137
+ cursor: "pointer",
138
+ textDecoration: "underline"
139
+ }
140
+ },
141
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_flexbox2.FlexRow, { children: [
142
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuIcon, { icon, paddingRight: resolvedIconMenuTextSpacing, color: hovered ? "secondary" : "inherit" }),
143
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.ListItemText, { primary })
144
+ ] })
145
+ }
146
+ ),
147
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_flexbox2.FlexRow, { style: { marginLeft: theme.spacing(1) }, children: [
148
+ subNavListItems ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SubNavToggleIconButton, { setOpenSubNav, openSubNav }) : null,
149
+ tooltip ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ListItemTooltip, { title: tooltip }) : null
150
+ ] })
151
+ ]
152
+ }
153
+ ),
154
+ subNavListItems ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SubNavListItemsCollapse, { openSubNav, collapse, children: subNavListItems == null ? void 0 : subNavListItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuListItemContainer, { dense, sx: { pl: theme.spacing(1) }, ...item }, index)) }) : null
155
+ ] });
156
+ };
157
+
158
+ // src/components/SiteMenu/MenuSection.tsx
159
+ var import_jsx_runtime7 = require("react/jsx-runtime");
160
+ var MenuSection = ({ iconMenuTextSpacing, listItems, showTitle = true, title, ...props }) => {
161
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_flexbox3.FlexCol, { alignItems: "stretch", ...props, children: [
162
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.Collapse, { in: showTitle, timeout: 700, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.ListSubheader, { children: title }) }),
163
+ listItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MenuListItemContainer, { iconMenuTextSpacing, ...item }, index))
164
+ ] });
165
+ };
166
+ // Annotate the CommonJS export names for ESM import in node:
167
+ 0 && (module.exports = {
168
+ MenuSection
169
+ });
170
+ //# sourceMappingURL=MenuSection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/SiteMenu/MenuSection.tsx","../../../../src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.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"],"sourcesContent":["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 { 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 { 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 { Tooltip, TooltipProps } from '@mui/material'\nimport { FlexCol } from '@xylabs/react-flexbox'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscInfo } from 'react-icons/vsc/index.js'\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'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscChevronDown } from 'react-icons/vsc/index.js'\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"],"mappings":"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","names":["import_material","import_react_flexbox","import_material","import_react_flexbox","import_react_shared","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"]}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
3
+ import { MenuListItemProps } from './MenuListItem';
4
+ export interface MenuSectionProps extends FlexBoxProps {
5
+ iconMenuTextSpacing?: string;
6
+ listItems: MenuListItemProps[];
7
+ showTitle?: boolean;
8
+ title: string;
9
+ }
10
+ export declare const MenuSection: React.FC<MenuSectionProps>;
11
+ //# sourceMappingURL=MenuSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSection.d.ts","sourceRoot":"","sources":["../../../../src/components/SiteMenu/MenuSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAyB,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAEzE,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAYlD,CAAA"}
@@ -1,38 +1,145 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var MenuSection_exports = {};
20
- __export(MenuSection_exports, {
21
- MenuSection: () => MenuSection
22
- });
23
- module.exports = __toCommonJS(MenuSection_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_material = require("@mui/material");
26
- var import_react_flexbox = require("@xylabs/react-flexbox");
27
- var import_MenuListItem = require("./MenuListItem");
28
- const MenuSection = ({ iconMenuTextSpacing, listItems, showTitle = true, title, ...props }) => {
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexCol, { alignItems: "stretch", ...props, children: [
30
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Collapse, { in: showTitle, timeout: 700, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.ListSubheader, { children: title }) }),
31
- listItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_MenuListItem.MenuListItemContainer, { iconMenuTextSpacing, ...item }, index))
1
+ // src/components/SiteMenu/MenuSection.tsx
2
+ import { Collapse as Collapse2, ListSubheader } from "@mui/material";
3
+ import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
4
+
5
+ // src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
6
+ import { ListItemText, useTheme as useTheme2 } from "@mui/material";
7
+ import { FlexRow } from "@xylabs/react-flexbox";
8
+ import { LinkEx } from "@xylabs/react-link";
9
+ import { useState } from "react";
10
+
11
+ // src/contexts/Collapsible/context.ts
12
+ import { createContextEx } from "@xyo-network/react-shared";
13
+ var CollapsibleContext = createContextEx();
14
+
15
+ // src/contexts/Collapsible/use.tsx
16
+ import { useContextEx } from "@xyo-network/react-shared";
17
+ var useCollapsible = () => useContextEx(CollapsibleContext, "Collapsible", false);
18
+
19
+ // src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx
20
+ import { Tooltip } from "@mui/material";
21
+ import { FlexCol } from "@xylabs/react-flexbox";
22
+ import { VscInfo } from "react-icons/vsc/index.js";
23
+ import { jsx } from "react/jsx-runtime";
24
+ var ListItemTooltip = ({ title, ...props }) => {
25
+ return /* @__PURE__ */ jsx(Tooltip, { title, placement: "right", ...props, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(FlexCol, { justifyContent: "center", children: /* @__PURE__ */ jsx(VscInfo, { color: "grey" }) }) }) });
26
+ };
27
+
28
+ // src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx
29
+ import { Typography } from "@mui/material";
30
+ import { jsx as jsx2 } from "react/jsx-runtime";
31
+ var MenuIcon = ({ icon, ...props }) => {
32
+ return /* @__PURE__ */ jsx2(Typography, { display: "flex", ...props, children: icon });
33
+ };
34
+
35
+ // src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx
36
+ import { ListItem } from "@mui/material";
37
+ import { jsx as jsx3 } from "react/jsx-runtime";
38
+ var MenuListItem = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {
39
+ const listItemSx = iconOnly ? { borderRadius: "50%", display: "inline-flex", flexGrow: 0, width: "auto" } : { width: "100%" };
40
+ const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 };
41
+ const paddingSx = dense ? { px: "8px" } : { px: "12px" };
42
+ return /* @__PURE__ */ jsx3(ListItem, { sx: { ...listItemSx, ...spacingSx, ...paddingSx, ...sx }, ...props, children });
43
+ };
44
+
45
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx
46
+ import { Collapse, List } from "@mui/material";
47
+ import { jsx as jsx4 } from "react/jsx-runtime";
48
+ var SubNavListItemsCollapse = ({ collapse, openSubNav, children, ...props }) => {
49
+ return /* @__PURE__ */ jsx4(Collapse, { in: collapse == true ? false : openSubNav, ...props, children: /* @__PURE__ */ jsx4(List, { children }) });
50
+ };
51
+
52
+ // src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx
53
+ import { IconButton, useTheme } from "@mui/material";
54
+ import { VscChevronDown } from "react-icons/vsc/index.js";
55
+ import { jsx as jsx5 } from "react/jsx-runtime";
56
+ var SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
57
+ const theme = useTheme();
58
+ return /* @__PURE__ */ jsx5(
59
+ IconButton,
60
+ {
61
+ onClick: (event) => {
62
+ event.stopPropagation();
63
+ setOpenSubNav == null ? void 0 : setOpenSubNav(!openSubNav);
64
+ },
65
+ sx: { marginRight: theme.spacing(0.5) },
66
+ children: /* @__PURE__ */ jsx5(VscChevronDown, { fontSize: "16px" })
67
+ }
68
+ );
69
+ };
70
+
71
+ // src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
72
+ import { Fragment, jsx as jsx6, jsxs } from "react/jsx-runtime";
73
+ var MenuListItemContainer = ({
74
+ style,
75
+ icon,
76
+ iconMenuTextSpacing,
77
+ iconOnly,
78
+ onButtonClick,
79
+ primary,
80
+ subNavListItems,
81
+ sx,
82
+ tooltip,
83
+ to,
84
+ ...props
85
+ }) => {
86
+ const { dense } = props;
87
+ const theme = useTheme2();
88
+ const { collapse } = useCollapsible();
89
+ const [openSubNav, setOpenSubNav] = useState(false);
90
+ const [hovered, setHovered] = useState(false);
91
+ const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1);
92
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
93
+ /* @__PURE__ */ jsxs(
94
+ MenuListItem,
95
+ {
96
+ disableGutters: true,
97
+ iconOnly,
98
+ onClick: onButtonClick,
99
+ dense,
100
+ sx: { justifyContent: "space-between", ...sx },
101
+ style: { whiteSpace: "nowrap", ...style },
102
+ ...props,
103
+ children: [
104
+ /* @__PURE__ */ jsx6(
105
+ LinkEx,
106
+ {
107
+ onMouseEnter: () => setHovered(true),
108
+ onMouseLeave: () => setHovered(false),
109
+ color: "inherit",
110
+ to,
111
+ sx: {
112
+ "& :hover": {
113
+ cursor: "pointer",
114
+ textDecoration: "underline"
115
+ }
116
+ },
117
+ children: /* @__PURE__ */ jsxs(FlexRow, { children: [
118
+ /* @__PURE__ */ jsx6(MenuIcon, { icon, paddingRight: resolvedIconMenuTextSpacing, color: hovered ? "secondary" : "inherit" }),
119
+ /* @__PURE__ */ jsx6(ListItemText, { primary })
120
+ ] })
121
+ }
122
+ ),
123
+ /* @__PURE__ */ jsxs(FlexRow, { style: { marginLeft: theme.spacing(1) }, children: [
124
+ subNavListItems ? /* @__PURE__ */ jsx6(SubNavToggleIconButton, { setOpenSubNav, openSubNav }) : null,
125
+ tooltip ? /* @__PURE__ */ jsx6(ListItemTooltip, { title: tooltip }) : null
126
+ ] })
127
+ ]
128
+ }
129
+ ),
130
+ subNavListItems ? /* @__PURE__ */ jsx6(SubNavListItemsCollapse, { openSubNav, collapse, children: subNavListItems == null ? void 0 : subNavListItems.map((item, index) => /* @__PURE__ */ jsx6(MenuListItemContainer, { dense, sx: { pl: theme.spacing(1) }, ...item }, index)) }) : null
131
+ ] });
132
+ };
133
+
134
+ // src/components/SiteMenu/MenuSection.tsx
135
+ import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
136
+ var MenuSection = ({ iconMenuTextSpacing, listItems, showTitle = true, title, ...props }) => {
137
+ return /* @__PURE__ */ jsxs2(FlexCol2, { alignItems: "stretch", ...props, children: [
138
+ /* @__PURE__ */ jsx7(Collapse2, { in: showTitle, timeout: 700, children: /* @__PURE__ */ jsx7(ListSubheader, { children: title }) }),
139
+ listItems.map((item, index) => /* @__PURE__ */ jsx7(MenuListItemContainer, { iconMenuTextSpacing, ...item }, index))
32
140
  ] });
33
141
  };
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {
142
+ export {
36
143
  MenuSection
37
- });
144
+ };
38
145
  //# sourceMappingURL=MenuSection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/SiteMenu/MenuSection.tsx"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcI;AAdJ,sBAAwC;AACxC,2BAAsC;AAEtC,0BAAyD;AASlD,MAAM,cAA0C,CAAC,EAAE,qBAAqB,WAAW,YAAY,MAAM,OAAO,GAAG,MAAM,MAAM;AAChI,SACE,6CAAC,gCAAQ,YAAW,WAAW,GAAG,OAChC;AAAA,gDAAC,4BAAS,IAAI,WAAW,SAAS,KAChC,sDAAC,iCAAe,iBAAM,GACxB;AAAA,IAEC,UAAU,IAAI,CAAC,MAAM,UACpB,4CAAC,6CAAkC,qBAA2C,GAAG,QAArD,KAA2D,CACxF;AAAA,KACH;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/SiteMenu/MenuSection.tsx","../../../../src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.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"],"sourcesContent":["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 { 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 { 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 { Tooltip, TooltipProps } from '@mui/material'\nimport { FlexCol } from '@xylabs/react-flexbox'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscInfo } from 'react-icons/vsc/index.js'\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'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscChevronDown } from 'react-icons/vsc/index.js'\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"],"mappings":"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","names":["Collapse","FlexCol","useTheme","jsx","jsx","jsx","jsx","jsx","useTheme","jsx","jsxs","FlexCol","Collapse"]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/SiteMenu/hooks/index.ts
21
+ var hooks_exports = {};
22
+ __export(hooks_exports, {
23
+ useMenuItemsShared: () => useMenuItemsShared
24
+ });
25
+ module.exports = __toCommonJS(hooks_exports);
26
+
27
+ // src/components/SiteMenu/hooks/useMenuItemsShared.tsx
28
+ var import_react = require("react");
29
+
30
+ // src/contexts/Collapsible/context.ts
31
+ var import_react_shared = require("@xyo-network/react-shared");
32
+ var CollapsibleContext = (0, import_react_shared.createContextEx)();
33
+
34
+ // src/contexts/Collapsible/use.tsx
35
+ var import_react_shared2 = require("@xyo-network/react-shared");
36
+ var useCollapsible = () => (0, import_react_shared2.useContextEx)(CollapsibleContext, "Collapsible", false);
37
+
38
+ // src/components/SiteMenu/hooks/useMenuItemsShared.tsx
39
+ var useMenuItemsShared = () => {
40
+ const { collapse, collapseEnd, setCollapse, setCollapseEnd } = useCollapsible();
41
+ const onMenuItemToggle = (open) => {
42
+ setCollapse == null ? void 0 : setCollapse((previous) => open ? false : previous);
43
+ setCollapseEnd == null ? void 0 : setCollapseEnd((previous) => open ? false : previous);
44
+ };
45
+ const defaultSiteMenuListItemProps = (0, import_react.useMemo)(
46
+ () => ({
47
+ collapseEnd,
48
+ dense: true,
49
+ iconOnly: collapse,
50
+ sx: {
51
+ px: "8px"
52
+ }
53
+ }),
54
+ [collapse, collapseEnd]
55
+ );
56
+ return { defaultSiteMenuListItemProps, onMenuItemToggle };
57
+ };
58
+ // Annotate the CommonJS export names for ESM import in node:
59
+ 0 && (module.exports = {
60
+ useMenuItemsShared
61
+ });
62
+ //# sourceMappingURL=index.cjs.map