@xyo-network/react-appbar 2.64.9 → 2.65.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. package/package.json +13 -13
  2. package/dist/browser/components/AppBar/Application.cjs +0 -286
  3. package/dist/browser/components/AppBar/Application.cjs.map +0 -1
  4. package/dist/browser/components/AppBar/Application.js +0 -265
  5. package/dist/browser/components/AppBar/Application.js.map +0 -1
  6. package/dist/browser/components/AppBar/index.cjs +0 -288
  7. package/dist/browser/components/AppBar/index.cjs.map +0 -1
  8. package/dist/browser/components/AppBar/index.js +0 -265
  9. package/dist/browser/components/AppBar/index.js.map +0 -1
  10. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs +0 -61
  11. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs.map +0 -1
  12. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js +0 -40
  13. package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
  14. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs +0 -66
  15. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +0 -1
  16. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -45
  17. package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
  18. package/dist/browser/components/CollapsibleDrawer/index.cjs +0 -96
  19. package/dist/browser/components/CollapsibleDrawer/index.cjs.map +0 -1
  20. package/dist/browser/components/CollapsibleDrawer/index.js +0 -73
  21. package/dist/browser/components/CollapsibleDrawer/index.js.map +0 -1
  22. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs +0 -92
  23. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +0 -1
  24. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js +0 -84
  25. package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
  26. package/dist/browser/components/MobileSystemControls/SystemControls.cjs +0 -143
  27. package/dist/browser/components/MobileSystemControls/SystemControls.cjs.map +0 -1
  28. package/dist/browser/components/MobileSystemControls/SystemControls.js +0 -122
  29. package/dist/browser/components/MobileSystemControls/SystemControls.js.map +0 -1
  30. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs +0 -134
  31. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs.map +0 -1
  32. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js +0 -113
  33. package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
  34. package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs +0 -32
  35. package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs.map +0 -1
  36. package/dist/browser/components/MobileSystemControls/SystemControlsType.js +0 -11
  37. package/dist/browser/components/MobileSystemControls/SystemControlsType.js.map +0 -1
  38. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs +0 -75
  39. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +0 -1
  40. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js +0 -54
  41. package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
  42. package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs +0 -49
  43. package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs.map +0 -1
  44. package/dist/browser/components/MobileSystemControls/controls/SystemControl.js +0 -28
  45. package/dist/browser/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
  46. package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs +0 -32
  47. package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs.map +0 -1
  48. package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js +0 -11
  49. package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
  50. package/dist/browser/components/MobileSystemControls/controls/index.cjs +0 -60
  51. package/dist/browser/components/MobileSystemControls/controls/index.cjs.map +0 -1
  52. package/dist/browser/components/MobileSystemControls/controls/index.js +0 -37
  53. package/dist/browser/components/MobileSystemControls/controls/index.js.map +0 -1
  54. package/dist/browser/components/MobileSystemControls/index.cjs +0 -155
  55. package/dist/browser/components/MobileSystemControls/index.cjs.map +0 -1
  56. package/dist/browser/components/MobileSystemControls/index.js +0 -132
  57. package/dist/browser/components/MobileSystemControls/index.js.map +0 -1
  58. package/dist/browser/components/SearchBar/SearchBar.cjs +0 -53
  59. package/dist/browser/components/SearchBar/SearchBar.cjs.map +0 -1
  60. package/dist/browser/components/SearchBar/SearchBar.js +0 -32
  61. package/dist/browser/components/SearchBar/SearchBar.js.map +0 -1
  62. package/dist/browser/components/SearchBar/index.cjs +0 -55
  63. package/dist/browser/components/SearchBar/index.cjs.map +0 -1
  64. package/dist/browser/components/SearchBar/index.js +0 -32
  65. package/dist/browser/components/SearchBar/index.js.map +0 -1
  66. package/dist/browser/components/SiteMenu/Menu.cjs +0 -193
  67. package/dist/browser/components/SiteMenu/Menu.cjs.map +0 -1
  68. package/dist/browser/components/SiteMenu/Menu.js +0 -172
  69. package/dist/browser/components/SiteMenu/Menu.js.map +0 -1
  70. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +0 -153
  71. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +0 -1
  72. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -132
  73. package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
  74. package/dist/browser/components/SiteMenu/MenuListItem/index.cjs +0 -155
  75. package/dist/browser/components/SiteMenu/MenuListItem/index.cjs.map +0 -1
  76. package/dist/browser/components/SiteMenu/MenuListItem/index.js +0 -132
  77. package/dist/browser/components/SiteMenu/MenuListItem/index.js.map +0 -1
  78. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +0 -33
  79. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +0 -1
  80. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -12
  81. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
  82. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +0 -31
  83. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +0 -1
  84. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -10
  85. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
  86. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +0 -34
  87. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +0 -1
  88. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -13
  89. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
  90. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs +0 -54
  91. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +0 -1
  92. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js +0 -31
  93. package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
  94. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +0 -31
  95. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +0 -1
  96. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -10
  97. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
  98. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +0 -43
  99. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +0 -1
  100. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -22
  101. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
  102. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs +0 -53
  103. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +0 -1
  104. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js +0 -30
  105. package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
  106. package/dist/browser/components/SiteMenu/MenuSection.cjs +0 -166
  107. package/dist/browser/components/SiteMenu/MenuSection.cjs.map +0 -1
  108. package/dist/browser/components/SiteMenu/MenuSection.js +0 -145
  109. package/dist/browser/components/SiteMenu/MenuSection.js.map +0 -1
  110. package/dist/browser/components/SiteMenu/hooks/index.cjs +0 -58
  111. package/dist/browser/components/SiteMenu/hooks/index.cjs.map +0 -1
  112. package/dist/browser/components/SiteMenu/hooks/index.js +0 -35
  113. package/dist/browser/components/SiteMenu/hooks/index.js.map +0 -1
  114. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs +0 -56
  115. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +0 -1
  116. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js +0 -35
  117. package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
  118. package/dist/browser/components/SiteMenu/index.cjs +0 -233
  119. package/dist/browser/components/SiteMenu/index.cjs.map +0 -1
  120. package/dist/browser/components/SiteMenu/index.js +0 -210
  121. package/dist/browser/components/SiteMenu/index.js.map +0 -1
  122. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs +0 -19
  123. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs.map +0 -1
  124. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.js +0 -1
  125. package/dist/browser/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
  126. package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs +0 -19
  127. package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs.map +0 -1
  128. package/dist/browser/components/SiteMenu/lib/NavListItemProps.js +0 -1
  129. package/dist/browser/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
  130. package/dist/browser/components/SiteMenu/lib/index.cjs +0 -19
  131. package/dist/browser/components/SiteMenu/lib/index.cjs.map +0 -1
  132. package/dist/browser/components/SiteMenu/lib/index.js +0 -1
  133. package/dist/browser/components/SiteMenu/lib/index.js.map +0 -1
  134. package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs +0 -72
  135. package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs.map +0 -1
  136. package/dist/browser/components/Toolbar/Context/ContextToolbar.js +0 -51
  137. package/dist/browser/components/Toolbar/Context/ContextToolbar.js.map +0 -1
  138. package/dist/browser/components/Toolbar/Context/Logo.cjs +0 -33
  139. package/dist/browser/components/Toolbar/Context/Logo.cjs.map +0 -1
  140. package/dist/browser/components/Toolbar/Context/Logo.js +0 -12
  141. package/dist/browser/components/Toolbar/Context/Logo.js.map +0 -1
  142. package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs +0 -63
  143. package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs.map +0 -1
  144. package/dist/browser/components/Toolbar/Context/LogoLinkEx.js +0 -42
  145. package/dist/browser/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
  146. package/dist/browser/components/Toolbar/Context/index.cjs +0 -74
  147. package/dist/browser/components/Toolbar/Context/index.cjs.map +0 -1
  148. package/dist/browser/components/Toolbar/Context/index.js +0 -51
  149. package/dist/browser/components/Toolbar/Context/index.js.map +0 -1
  150. package/dist/browser/components/Toolbar/System/SystemToolbar.cjs +0 -220
  151. package/dist/browser/components/Toolbar/System/SystemToolbar.cjs.map +0 -1
  152. package/dist/browser/components/Toolbar/System/SystemToolbar.js +0 -199
  153. package/dist/browser/components/Toolbar/System/SystemToolbar.js.map +0 -1
  154. package/dist/browser/components/Toolbar/System/index.cjs +0 -222
  155. package/dist/browser/components/Toolbar/System/index.cjs.map +0 -1
  156. package/dist/browser/components/Toolbar/System/index.js +0 -199
  157. package/dist/browser/components/Toolbar/System/index.js.map +0 -1
  158. package/dist/browser/components/Toolbar/index.cjs +0 -271
  159. package/dist/browser/components/Toolbar/index.cjs.map +0 -1
  160. package/dist/browser/components/Toolbar/index.js +0 -248
  161. package/dist/browser/components/Toolbar/index.js.map +0 -1
  162. package/dist/browser/components/index.cjs +0 -550
  163. package/dist/browser/components/index.cjs.map +0 -1
  164. package/dist/browser/components/index.js +0 -527
  165. package/dist/browser/components/index.js.map +0 -1
  166. package/dist/browser/contexts/Collapsible/State.cjs +0 -19
  167. package/dist/browser/contexts/Collapsible/State.cjs.map +0 -1
  168. package/dist/browser/contexts/Collapsible/State.js +0 -1
  169. package/dist/browser/contexts/Collapsible/State.js.map +0 -1
  170. package/dist/browser/contexts/Collapsible/context.cjs +0 -28
  171. package/dist/browser/contexts/Collapsible/context.cjs.map +0 -1
  172. package/dist/browser/contexts/Collapsible/context.js +0 -7
  173. package/dist/browser/contexts/Collapsible/context.js.map +0 -1
  174. package/dist/browser/contexts/Collapsible/index.cjs +0 -52
  175. package/dist/browser/contexts/Collapsible/index.cjs.map +0 -1
  176. package/dist/browser/contexts/Collapsible/index.js +0 -29
  177. package/dist/browser/contexts/Collapsible/index.js.map +0 -1
  178. package/dist/browser/contexts/Collapsible/provider.cjs +0 -45
  179. package/dist/browser/contexts/Collapsible/provider.cjs.map +0 -1
  180. package/dist/browser/contexts/Collapsible/provider.js +0 -24
  181. package/dist/browser/contexts/Collapsible/provider.js.map +0 -1
  182. package/dist/browser/contexts/Collapsible/use.cjs +0 -34
  183. package/dist/browser/contexts/Collapsible/use.cjs.map +0 -1
  184. package/dist/browser/contexts/Collapsible/use.js +0 -13
  185. package/dist/browser/contexts/Collapsible/use.js.map +0 -1
  186. package/dist/browser/contexts/index.cjs +0 -52
  187. package/dist/browser/contexts/index.cjs.map +0 -1
  188. package/dist/browser/contexts/index.js +0 -29
  189. package/dist/browser/contexts/index.js.map +0 -1
  190. package/dist/docs.json +0 -96215
  191. package/dist/node/components/AppBar/Application.cjs +0 -290
  192. package/dist/node/components/AppBar/Application.cjs.map +0 -1
  193. package/dist/node/components/AppBar/Application.js +0 -265
  194. package/dist/node/components/AppBar/Application.js.map +0 -1
  195. package/dist/node/components/AppBar/index.cjs +0 -292
  196. package/dist/node/components/AppBar/index.cjs.map +0 -1
  197. package/dist/node/components/AppBar/index.js +0 -265
  198. package/dist/node/components/AppBar/index.js.map +0 -1
  199. package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs +0 -65
  200. package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs.map +0 -1
  201. package/dist/node/components/CollapsibleDrawer/CollapseToggle.js +0 -40
  202. package/dist/node/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
  203. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs +0 -70
  204. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +0 -1
  205. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -45
  206. package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
  207. package/dist/node/components/CollapsibleDrawer/index.cjs +0 -101
  208. package/dist/node/components/CollapsibleDrawer/index.cjs.map +0 -1
  209. package/dist/node/components/CollapsibleDrawer/index.js +0 -73
  210. package/dist/node/components/CollapsibleDrawer/index.js.map +0 -1
  211. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs +0 -97
  212. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +0 -1
  213. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js +0 -84
  214. package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
  215. package/dist/node/components/MobileSystemControls/SystemControls.cjs +0 -147
  216. package/dist/node/components/MobileSystemControls/SystemControls.cjs.map +0 -1
  217. package/dist/node/components/MobileSystemControls/SystemControls.js +0 -122
  218. package/dist/node/components/MobileSystemControls/SystemControls.js.map +0 -1
  219. package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs +0 -138
  220. package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs.map +0 -1
  221. package/dist/node/components/MobileSystemControls/SystemControlsRoot.js +0 -113
  222. package/dist/node/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
  223. package/dist/node/components/MobileSystemControls/SystemControlsType.cjs +0 -36
  224. package/dist/node/components/MobileSystemControls/SystemControlsType.cjs.map +0 -1
  225. package/dist/node/components/MobileSystemControls/SystemControlsType.js +0 -11
  226. package/dist/node/components/MobileSystemControls/SystemControlsType.js.map +0 -1
  227. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs +0 -79
  228. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +0 -1
  229. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js +0 -54
  230. package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
  231. package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs +0 -53
  232. package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs.map +0 -1
  233. package/dist/node/components/MobileSystemControls/controls/SystemControl.js +0 -28
  234. package/dist/node/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
  235. package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs +0 -36
  236. package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs.map +0 -1
  237. package/dist/node/components/MobileSystemControls/controls/SystemControlText.js +0 -11
  238. package/dist/node/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
  239. package/dist/node/components/MobileSystemControls/controls/index.cjs +0 -65
  240. package/dist/node/components/MobileSystemControls/controls/index.cjs.map +0 -1
  241. package/dist/node/components/MobileSystemControls/controls/index.js +0 -37
  242. package/dist/node/components/MobileSystemControls/controls/index.js.map +0 -1
  243. package/dist/node/components/MobileSystemControls/index.cjs +0 -161
  244. package/dist/node/components/MobileSystemControls/index.cjs.map +0 -1
  245. package/dist/node/components/MobileSystemControls/index.js +0 -132
  246. package/dist/node/components/MobileSystemControls/index.js.map +0 -1
  247. package/dist/node/components/SearchBar/SearchBar.cjs +0 -57
  248. package/dist/node/components/SearchBar/SearchBar.cjs.map +0 -1
  249. package/dist/node/components/SearchBar/SearchBar.js +0 -32
  250. package/dist/node/components/SearchBar/SearchBar.js.map +0 -1
  251. package/dist/node/components/SearchBar/index.cjs +0 -59
  252. package/dist/node/components/SearchBar/index.cjs.map +0 -1
  253. package/dist/node/components/SearchBar/index.js +0 -32
  254. package/dist/node/components/SearchBar/index.js.map +0 -1
  255. package/dist/node/components/SiteMenu/Menu.cjs +0 -197
  256. package/dist/node/components/SiteMenu/Menu.cjs.map +0 -1
  257. package/dist/node/components/SiteMenu/Menu.js +0 -172
  258. package/dist/node/components/SiteMenu/Menu.js.map +0 -1
  259. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +0 -157
  260. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +0 -1
  261. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -132
  262. package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
  263. package/dist/node/components/SiteMenu/MenuListItem/index.cjs +0 -159
  264. package/dist/node/components/SiteMenu/MenuListItem/index.cjs.map +0 -1
  265. package/dist/node/components/SiteMenu/MenuListItem/index.js +0 -132
  266. package/dist/node/components/SiteMenu/MenuListItem/index.js.map +0 -1
  267. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +0 -37
  268. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +0 -1
  269. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -12
  270. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
  271. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +0 -35
  272. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +0 -1
  273. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -10
  274. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
  275. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +0 -38
  276. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +0 -1
  277. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -13
  278. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
  279. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs +0 -60
  280. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +0 -1
  281. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js +0 -31
  282. package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
  283. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +0 -35
  284. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +0 -1
  285. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -10
  286. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
  287. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +0 -47
  288. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +0 -1
  289. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -22
  290. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
  291. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs +0 -58
  292. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +0 -1
  293. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js +0 -30
  294. package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
  295. package/dist/node/components/SiteMenu/MenuSection.cjs +0 -170
  296. package/dist/node/components/SiteMenu/MenuSection.cjs.map +0 -1
  297. package/dist/node/components/SiteMenu/MenuSection.js +0 -145
  298. package/dist/node/components/SiteMenu/MenuSection.js.map +0 -1
  299. package/dist/node/components/SiteMenu/hooks/index.cjs +0 -62
  300. package/dist/node/components/SiteMenu/hooks/index.cjs.map +0 -1
  301. package/dist/node/components/SiteMenu/hooks/index.js +0 -35
  302. package/dist/node/components/SiteMenu/hooks/index.js.map +0 -1
  303. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs +0 -60
  304. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +0 -1
  305. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js +0 -35
  306. package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
  307. package/dist/node/components/SiteMenu/index.cjs +0 -240
  308. package/dist/node/components/SiteMenu/index.cjs.map +0 -1
  309. package/dist/node/components/SiteMenu/index.js +0 -210
  310. package/dist/node/components/SiteMenu/index.js.map +0 -1
  311. package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs +0 -19
  312. package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs.map +0 -1
  313. package/dist/node/components/SiteMenu/lib/MenuListItemBase.js +0 -1
  314. package/dist/node/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
  315. package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs +0 -19
  316. package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs.map +0 -1
  317. package/dist/node/components/SiteMenu/lib/NavListItemProps.js +0 -1
  318. package/dist/node/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
  319. package/dist/node/components/SiteMenu/lib/index.cjs +0 -19
  320. package/dist/node/components/SiteMenu/lib/index.cjs.map +0 -1
  321. package/dist/node/components/SiteMenu/lib/index.js +0 -1
  322. package/dist/node/components/SiteMenu/lib/index.js.map +0 -1
  323. package/dist/node/components/Toolbar/Context/ContextToolbar.cjs +0 -76
  324. package/dist/node/components/Toolbar/Context/ContextToolbar.cjs.map +0 -1
  325. package/dist/node/components/Toolbar/Context/ContextToolbar.js +0 -51
  326. package/dist/node/components/Toolbar/Context/ContextToolbar.js.map +0 -1
  327. package/dist/node/components/Toolbar/Context/Logo.cjs +0 -37
  328. package/dist/node/components/Toolbar/Context/Logo.cjs.map +0 -1
  329. package/dist/node/components/Toolbar/Context/Logo.js +0 -12
  330. package/dist/node/components/Toolbar/Context/Logo.js.map +0 -1
  331. package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs +0 -67
  332. package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs.map +0 -1
  333. package/dist/node/components/Toolbar/Context/LogoLinkEx.js +0 -42
  334. package/dist/node/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
  335. package/dist/node/components/Toolbar/Context/index.cjs +0 -78
  336. package/dist/node/components/Toolbar/Context/index.cjs.map +0 -1
  337. package/dist/node/components/Toolbar/Context/index.js +0 -51
  338. package/dist/node/components/Toolbar/Context/index.js.map +0 -1
  339. package/dist/node/components/Toolbar/System/SystemToolbar.cjs +0 -224
  340. package/dist/node/components/Toolbar/System/SystemToolbar.cjs.map +0 -1
  341. package/dist/node/components/Toolbar/System/SystemToolbar.js +0 -199
  342. package/dist/node/components/Toolbar/System/SystemToolbar.js.map +0 -1
  343. package/dist/node/components/Toolbar/System/index.cjs +0 -226
  344. package/dist/node/components/Toolbar/System/index.cjs.map +0 -1
  345. package/dist/node/components/Toolbar/System/index.js +0 -199
  346. package/dist/node/components/Toolbar/System/index.js.map +0 -1
  347. package/dist/node/components/Toolbar/index.cjs +0 -276
  348. package/dist/node/components/Toolbar/index.cjs.map +0 -1
  349. package/dist/node/components/Toolbar/index.js +0 -248
  350. package/dist/node/components/Toolbar/index.js.map +0 -1
  351. package/dist/node/components/index.cjs +0 -566
  352. package/dist/node/components/index.cjs.map +0 -1
  353. package/dist/node/components/index.js +0 -527
  354. package/dist/node/components/index.js.map +0 -1
  355. package/dist/node/contexts/Collapsible/State.cjs +0 -19
  356. package/dist/node/contexts/Collapsible/State.cjs.map +0 -1
  357. package/dist/node/contexts/Collapsible/State.js +0 -1
  358. package/dist/node/contexts/Collapsible/State.js.map +0 -1
  359. package/dist/node/contexts/Collapsible/context.cjs +0 -32
  360. package/dist/node/contexts/Collapsible/context.cjs.map +0 -1
  361. package/dist/node/contexts/Collapsible/context.js +0 -7
  362. package/dist/node/contexts/Collapsible/context.js.map +0 -1
  363. package/dist/node/contexts/Collapsible/index.cjs +0 -57
  364. package/dist/node/contexts/Collapsible/index.cjs.map +0 -1
  365. package/dist/node/contexts/Collapsible/index.js +0 -29
  366. package/dist/node/contexts/Collapsible/index.js.map +0 -1
  367. package/dist/node/contexts/Collapsible/provider.cjs +0 -49
  368. package/dist/node/contexts/Collapsible/provider.cjs.map +0 -1
  369. package/dist/node/contexts/Collapsible/provider.js +0 -24
  370. package/dist/node/contexts/Collapsible/provider.js.map +0 -1
  371. package/dist/node/contexts/Collapsible/use.cjs +0 -38
  372. package/dist/node/contexts/Collapsible/use.cjs.map +0 -1
  373. package/dist/node/contexts/Collapsible/use.js +0 -13
  374. package/dist/node/contexts/Collapsible/use.js.map +0 -1
  375. package/dist/node/contexts/index.cjs +0 -57
  376. package/dist/node/contexts/index.cjs.map +0 -1
  377. package/dist/node/contexts/index.js +0 -29
  378. package/dist/node/contexts/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"sourcesContent":["import {\n VscAccount,\n VscAdd,\n VscDashboard,\n VscGlobe,\n VscGraph,\n VscGraphLine,\n VscJson,\n VscServer,\n VscSettingsGear,\n VscSymbolMethod,\n VscSymbolNamespace,\n VscTable,\n // eslint-disable-next-line import/no-internal-modules\n} from 'react-icons/vsc/index.js'\n\nimport { MenuListItemProps } from '../SiteMenu'\n\nexport const menuDataTop: MenuListItemProps[] = [\n {\n icon: <VscGlobe fontSize=\"body1\" />,\n primary: 'Explore',\n to: '',\n tooltip: 'View global archivist data on a world map.',\n },\n {\n icon: <VscSymbolMethod fontSize=\"body1\" />,\n primary: 'Blocks',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSymbolNamespace fontSize=\"body1\" />,\n primary: 'Payloads',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscGraph fontSize=\"body1\" />,\n primary: 'Queries',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscServer fontSize=\"body1\" />,\n primary: 'Archives',\n subNavListItems: [\n { icon: <VscDashboard fontSize=\"body2\" />, primary: 'Dashboard', to: '', tooltip: 'View data for all archives on this network.' },\n { icon: <VscAdd fontSize=\"body2\" />, primary: 'Create Archive', to: '', tooltip: 'Create a new archive on this network.' },\n { icon: <VscTable fontSize=\"body2\" />, primary: 'Archive Table', to: '', tooltip: 'View all archives on this network as a table.' },\n ],\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n\nexport const menuDataBottom: MenuListItemProps[] = [\n {\n icon: <VscGraphLine fontSize=\"body1\" />,\n primary: 'Statistics',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscJson fontSize=\"body1\" />,\n primary: 'Schema',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscAccount fontSize=\"body1\" />,\n primary: 'Account',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSettingsGear fontSize=\"body1\" />,\n primary: 'Settings',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,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Q,UAAS,SAAQ;AAAA,IAChC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,cAAW,UAAS,SAAQ;AAAA,IACnC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,mBAAgB,UAAS,SAAQ;AAAA,IACxC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AACF;","names":[]}
@@ -1,147 +0,0 @@
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/MobileSystemControls/SystemControls.tsx
21
- var SystemControls_exports = {};
22
- __export(SystemControls_exports, {
23
- SystemControls: () => SystemControls
24
- });
25
- module.exports = __toCommonJS(SystemControls_exports);
26
- var import_react_flexbox3 = require("@xylabs/react-flexbox");
27
-
28
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
29
- var import_material3 = require("@mui/material");
30
-
31
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
32
- var import_material2 = require("@mui/material");
33
- var import_react_flexbox2 = require("@xylabs/react-flexbox");
34
- var import_react_network = require("@xyo-network/react-network");
35
-
36
- // src/components/MobileSystemControls/controls/SystemControl.tsx
37
- var import_material = require("@mui/material");
38
- var import_react_flexbox = require("@xylabs/react-flexbox");
39
- var import_react = require("react");
40
- var import_jsx_runtime = require("react/jsx-runtime");
41
- var SystemControl = ({
42
- children,
43
- controlElement,
44
- systemControlsType = "WindowShade" /* WindowShade */,
45
- ...props
46
- }) => {
47
- const [toggleControls, setToggleControls] = (0, import_react.useState)(false);
48
- let orientation = "vertical";
49
- switch (systemControlsType) {
50
- case "Left" /* Left */: {
51
- orientation = "horizontal";
52
- break;
53
- }
54
- }
55
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexRow, { className: "controls", ...props, children: [
56
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Collapse, { in: toggleControls, orientation, timeout: 500, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexRow, { bgcolor: "primary.main", className: "control", children: controlElement }) }),
57
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { style: { cursor: "pointer" }, onClick: () => setToggleControls(!toggleControls), children })
58
- ] });
59
- };
60
-
61
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
62
- var import_jsx_runtime2 = require("react/jsx-runtime");
63
- var SystemControlsUnstyled = ({
64
- visible,
65
- systemControlsType = "WindowShade" /* WindowShade */,
66
- ...props
67
- }) => {
68
- const isSmall = (0, import_material2.useMediaQuery)((theme) => theme.breakpoints.down("sm"));
69
- if (visible || isSmall) {
70
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexCol, { ...props, className: `${props.className} system-controls-type-${systemControlsType}`, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
71
- SystemControl,
72
- {
73
- systemControlsType,
74
- controlElement: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexRow, { className: "control-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Paper, { variant: "elevation", elevation: 0, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_network.NetworkSelectEx, { responsive: false, className: "network-ex" }) }) }) })
75
- }
76
- ) });
77
- } else {
78
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexCol, {});
79
- }
80
- };
81
-
82
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
83
- var SystemControlsRoot = (0, import_material3.styled)(SystemControlsUnstyled, { name: "SystemControls", slot: "Root" })(({ theme }) => ({
84
- // shared defaults
85
- ["&"]: {
86
- ".toggle": {
87
- backgroundColor: theme.palette.primary.main
88
- },
89
- alignItems: "start",
90
- zIndex: 1
91
- },
92
- // WindowShade System Controls styles
93
- [`&.system-controls-type-${"WindowShade" /* WindowShade */}`]: {
94
- ".control": {
95
- borderRadius: "0 0 5px 5px",
96
- flexDirection: "row",
97
- flexGrow: 1,
98
- justifyContent: "space-around",
99
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
100
- },
101
- ".controls": {
102
- alignItems: "stretch",
103
- flexDirection: "column",
104
- flexGrow: 1
105
- },
106
- ".toggle": {
107
- borderRadius: "0 0 5px 5px",
108
- padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`
109
- },
110
- flexDirection: "row",
111
- position: "absolute",
112
- top: 0,
113
- width: "100%"
114
- },
115
- // Left System Control styles
116
- [`&.system-controls-type-${"Left" /* Left */}`]: {
117
- ".control": {
118
- alignItems: "start",
119
- flexDirection: "column",
120
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
121
- },
122
- ".control-wrap": {
123
- marginBottom: `${theme.spacing(2)}`
124
- },
125
- ".toggle": {
126
- borderRadius: "0 5px 5px 0",
127
- padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,
128
- writingMode: "vertical-rl"
129
- },
130
- flexDirection: "column",
131
- left: 0,
132
- position: "fixed",
133
- top: "30vh",
134
- width: "auto"
135
- }
136
- }));
137
-
138
- // src/components/MobileSystemControls/SystemControls.tsx
139
- var import_jsx_runtime3 = require("react/jsx-runtime");
140
- var SystemControls = (props) => {
141
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_flexbox3.FlexCol, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SystemControlsRoot, { ...props }) });
142
- };
143
- // Annotate the CommonJS export names for ESM import in node:
144
- 0 && (module.exports = {
145
- SystemControls
146
- });
147
- //# sourceMappingURL=SystemControls.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/MobileSystemControls/SystemControls.tsx","../../../../src/components/MobileSystemControls/SystemControlsRoot.tsx","../../../../src/components/MobileSystemControls/SystemControlsUnstyled.tsx","../../../../src/components/MobileSystemControls/controls/SystemControl.tsx"],"sourcesContent":["import { FlexCol } from '@xylabs/react-flexbox'\n\nimport { SystemControlsRoot } from './SystemControlsRoot'\nimport { SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControls: React.FC<SystemControlsUnstyledProps> = (props) => {\n return (\n <FlexCol>\n <SystemControlsRoot {...props} />\n </FlexCol>\n )\n}\n\nexport { SystemControls }\n","import { styled } from '@mui/material'\n\nimport { SystemControlsType } from './SystemControlsType'\nimport { SystemControlsUnstyled, SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControlsRoot = styled(SystemControlsUnstyled, { name: 'SystemControls', slot: 'Root' })<SystemControlsUnstyledProps>(({ theme }) => ({\n // shared defaults\n ['&']: {\n '.toggle': {\n backgroundColor: theme.palette.primary.main,\n },\n alignItems: 'start',\n zIndex: 1,\n },\n // WindowShade System Controls styles\n [`&.system-controls-type-${SystemControlsType.WindowShade}`]: {\n '.control': {\n borderRadius: '0 0 5px 5px',\n flexDirection: 'row',\n flexGrow: 1,\n justifyContent: 'space-around',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.controls': {\n alignItems: 'stretch',\n flexDirection: 'column',\n flexGrow: 1,\n },\n '.toggle': {\n borderRadius: '0 0 5px 5px',\n padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,\n },\n flexDirection: 'row',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n // Left System Control styles\n [`&.system-controls-type-${SystemControlsType.Left}`]: {\n '.control': {\n alignItems: 'start',\n flexDirection: 'column',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.control-wrap': {\n marginBottom: `${theme.spacing(2)}`,\n },\n '.toggle': {\n borderRadius: '0 5px 5px 0',\n padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,\n writingMode: 'vertical-rl',\n },\n flexDirection: 'column',\n left: 0,\n position: 'fixed',\n top: '30vh',\n width: 'auto',\n },\n}))\n\nexport { SystemControlsRoot }\n","import { Paper, Theme, useMediaQuery } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { NetworkSelectEx } from '@xyo-network/react-network'\n\nimport { SystemControl } from './controls'\nimport { SystemControlsType } from './SystemControlsType'\n\ninterface SystemControlsUnstyledProps extends FlexBoxProps {\n systemControlsType?: SystemControlsType\n visible?: boolean\n}\n\nconst SystemControlsUnstyled: React.FC<SystemControlsUnstyledProps> = ({\n visible,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const isSmall = useMediaQuery<Theme>((theme) => theme.breakpoints.down('sm'))\n\n if (visible || isSmall) {\n return (\n <FlexCol {...props} className={`${props.className} system-controls-type-${systemControlsType}`}>\n <SystemControl\n systemControlsType={systemControlsType}\n controlElement={\n <>\n <FlexRow className={'control-wrap'}>\n <Paper variant=\"elevation\" elevation={0}>\n <NetworkSelectEx responsive={false} className=\"network-ex\" />\n </Paper>\n </FlexRow>\n </>\n }\n />\n </FlexCol>\n )\n } else {\n return <FlexCol />\n }\n}\n\nexport type { SystemControlsUnstyledProps }\nexport { SystemControlsUnstyled }\n","import { Collapse, CollapseProps } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { SystemControlsType } from '../SystemControlsType'\n\ninterface SystemControlProps extends FlexBoxProps {\n controlElement: React.ReactNode\n systemControlsType?: SystemControlsType\n}\n\nconst SystemControl: React.FC<WithChildren<SystemControlProps>> = ({\n children,\n controlElement,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const [toggleControls, setToggleControls] = useState(false)\n\n let orientation: CollapseProps['orientation'] = 'vertical'\n\n switch (systemControlsType) {\n case SystemControlsType.Left: {\n orientation = 'horizontal'\n break\n }\n }\n\n return (\n <FlexRow className=\"controls\" {...props}>\n <Collapse in={toggleControls} orientation={orientation} timeout={500}>\n <FlexRow bgcolor=\"primary.main\" className=\"control\">\n {controlElement}\n </FlexRow>\n </Collapse>\n <FlexCol style={{ cursor: 'pointer' }} onClick={() => setToggleControls(!toggleControls)}>\n {children}\n </FlexCol>\n </FlexRow>\n )\n}\n\nexport { SystemControl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,wBAAwB;;;ACAxB,IAAAC,mBAAuB;;;ACAvB,IAAAC,mBAA4C;AAC5C,IAAAC,wBAA+C;AAC/C,2BAAgC;;;ACFhC,sBAAwC;AACxC,2BAA+C;AAE/C,mBAAyB;AA2BrB;AAlBJ,IAAM,gBAA4D,CAAC;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,CAAC,gBAAgB,iBAAiB,QAAI,uBAAS,KAAK;AAE1D,MAAI,cAA4C;AAEhD,UAAQ,oBAAoB;AAAA,IAC1B,wBAA8B;AAC5B,oBAAc;AACd;AAAA,IACF;AAAA,EACF;AAEA,SACE,6CAAC,gCAAQ,WAAU,YAAY,GAAG,OAChC;AAAA,gDAAC,4BAAS,IAAI,gBAAgB,aAA0B,SAAS,KAC/D,sD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AAY;AAAA,MACZ,eAAe;AAAA,MACf,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,GAAG,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC;AAAA,IACpD;AAAA,IACA,eAAe;AAAA,IACf,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AAAA;AAAA,EAEA,CAAC,2CAAiD,EAAE,GAAG;AAAA,IACrD,YAAY;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,IACpD;AAAA,IACA,iBAAiB;AAAA,MACf,cAAc,GAAG,MAAM,QAAQ,CAAC,CAAC;AAAA,IACnC;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,MAClD,aAAa;AAAA,IACf;AAAA,IACA,eAAe;AAAA,IACf,MAAM;AAAA,IACN,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AACF,EAAE;;;ADlDI,IAAAC,sBAAA;AAHN,IAAM,iBAAwD,CAAC,UAAU;AACvE,SACE,6CAAC,iCACC,uDAAC,sBAAoB,GAAG,OAAO,GACjC;AAEJ;","names":["import_react_flexbox","import_material","import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime"]}
@@ -1,122 +0,0 @@
1
- // src/components/MobileSystemControls/SystemControls.tsx
2
- import { FlexCol as FlexCol3 } from "@xylabs/react-flexbox";
3
-
4
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
5
- import { styled } from "@mui/material";
6
-
7
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
8
- import { Paper, useMediaQuery } from "@mui/material";
9
- import { FlexCol as FlexCol2, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
10
- import { NetworkSelectEx } from "@xyo-network/react-network";
11
-
12
- // src/components/MobileSystemControls/controls/SystemControl.tsx
13
- import { Collapse } from "@mui/material";
14
- import { FlexCol, FlexRow } from "@xylabs/react-flexbox";
15
- import { useState } from "react";
16
- import { jsx, jsxs } from "react/jsx-runtime";
17
- var SystemControl = ({
18
- children,
19
- controlElement,
20
- systemControlsType = "WindowShade" /* WindowShade */,
21
- ...props
22
- }) => {
23
- const [toggleControls, setToggleControls] = useState(false);
24
- let orientation = "vertical";
25
- switch (systemControlsType) {
26
- case "Left" /* Left */: {
27
- orientation = "horizontal";
28
- break;
29
- }
30
- }
31
- return /* @__PURE__ */ jsxs(FlexRow, { className: "controls", ...props, children: [
32
- /* @__PURE__ */ jsx(Collapse, { in: toggleControls, orientation, timeout: 500, children: /* @__PURE__ */ jsx(FlexRow, { bgcolor: "primary.main", className: "control", children: controlElement }) }),
33
- /* @__PURE__ */ jsx(FlexCol, { style: { cursor: "pointer" }, onClick: () => setToggleControls(!toggleControls), children })
34
- ] });
35
- };
36
-
37
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
38
- import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
39
- var SystemControlsUnstyled = ({
40
- visible,
41
- systemControlsType = "WindowShade" /* WindowShade */,
42
- ...props
43
- }) => {
44
- const isSmall = useMediaQuery((theme) => theme.breakpoints.down("sm"));
45
- if (visible || isSmall) {
46
- return /* @__PURE__ */ jsx2(FlexCol2, { ...props, className: `${props.className} system-controls-type-${systemControlsType}`, children: /* @__PURE__ */ jsx2(
47
- SystemControl,
48
- {
49
- systemControlsType,
50
- controlElement: /* @__PURE__ */ jsx2(Fragment, { children: /* @__PURE__ */ jsx2(FlexRow2, { className: "control-wrap", children: /* @__PURE__ */ jsx2(Paper, { variant: "elevation", elevation: 0, children: /* @__PURE__ */ jsx2(NetworkSelectEx, { responsive: false, className: "network-ex" }) }) }) })
51
- }
52
- ) });
53
- } else {
54
- return /* @__PURE__ */ jsx2(FlexCol2, {});
55
- }
56
- };
57
-
58
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
59
- var SystemControlsRoot = styled(SystemControlsUnstyled, { name: "SystemControls", slot: "Root" })(({ theme }) => ({
60
- // shared defaults
61
- ["&"]: {
62
- ".toggle": {
63
- backgroundColor: theme.palette.primary.main
64
- },
65
- alignItems: "start",
66
- zIndex: 1
67
- },
68
- // WindowShade System Controls styles
69
- [`&.system-controls-type-${"WindowShade" /* WindowShade */}`]: {
70
- ".control": {
71
- borderRadius: "0 0 5px 5px",
72
- flexDirection: "row",
73
- flexGrow: 1,
74
- justifyContent: "space-around",
75
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
76
- },
77
- ".controls": {
78
- alignItems: "stretch",
79
- flexDirection: "column",
80
- flexGrow: 1
81
- },
82
- ".toggle": {
83
- borderRadius: "0 0 5px 5px",
84
- padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`
85
- },
86
- flexDirection: "row",
87
- position: "absolute",
88
- top: 0,
89
- width: "100%"
90
- },
91
- // Left System Control styles
92
- [`&.system-controls-type-${"Left" /* Left */}`]: {
93
- ".control": {
94
- alignItems: "start",
95
- flexDirection: "column",
96
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
97
- },
98
- ".control-wrap": {
99
- marginBottom: `${theme.spacing(2)}`
100
- },
101
- ".toggle": {
102
- borderRadius: "0 5px 5px 0",
103
- padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,
104
- writingMode: "vertical-rl"
105
- },
106
- flexDirection: "column",
107
- left: 0,
108
- position: "fixed",
109
- top: "30vh",
110
- width: "auto"
111
- }
112
- }));
113
-
114
- // src/components/MobileSystemControls/SystemControls.tsx
115
- import { jsx as jsx3 } from "react/jsx-runtime";
116
- var SystemControls = (props) => {
117
- return /* @__PURE__ */ jsx3(FlexCol3, { children: /* @__PURE__ */ jsx3(SystemControlsRoot, { ...props }) });
118
- };
119
- export {
120
- SystemControls
121
- };
122
- //# sourceMappingURL=SystemControls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/MobileSystemControls/SystemControls.tsx","../../../../src/components/MobileSystemControls/SystemControlsRoot.tsx","../../../../src/components/MobileSystemControls/SystemControlsUnstyled.tsx","../../../../src/components/MobileSystemControls/controls/SystemControl.tsx"],"sourcesContent":["import { FlexCol } from '@xylabs/react-flexbox'\n\nimport { SystemControlsRoot } from './SystemControlsRoot'\nimport { SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControls: React.FC<SystemControlsUnstyledProps> = (props) => {\n return (\n <FlexCol>\n <SystemControlsRoot {...props} />\n </FlexCol>\n )\n}\n\nexport { SystemControls }\n","import { styled } from '@mui/material'\n\nimport { SystemControlsType } from './SystemControlsType'\nimport { SystemControlsUnstyled, SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControlsRoot = styled(SystemControlsUnstyled, { name: 'SystemControls', slot: 'Root' })<SystemControlsUnstyledProps>(({ theme }) => ({\n // shared defaults\n ['&']: {\n '.toggle': {\n backgroundColor: theme.palette.primary.main,\n },\n alignItems: 'start',\n zIndex: 1,\n },\n // WindowShade System Controls styles\n [`&.system-controls-type-${SystemControlsType.WindowShade}`]: {\n '.control': {\n borderRadius: '0 0 5px 5px',\n flexDirection: 'row',\n flexGrow: 1,\n justifyContent: 'space-around',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.controls': {\n alignItems: 'stretch',\n flexDirection: 'column',\n flexGrow: 1,\n },\n '.toggle': {\n borderRadius: '0 0 5px 5px',\n padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,\n },\n flexDirection: 'row',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n // Left System Control styles\n [`&.system-controls-type-${SystemControlsType.Left}`]: {\n '.control': {\n alignItems: 'start',\n flexDirection: 'column',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.control-wrap': {\n marginBottom: `${theme.spacing(2)}`,\n },\n '.toggle': {\n borderRadius: '0 5px 5px 0',\n padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,\n writingMode: 'vertical-rl',\n },\n flexDirection: 'column',\n left: 0,\n position: 'fixed',\n top: '30vh',\n width: 'auto',\n },\n}))\n\nexport { SystemControlsRoot }\n","import { Paper, Theme, useMediaQuery } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { NetworkSelectEx } from '@xyo-network/react-network'\n\nimport { SystemControl } from './controls'\nimport { SystemControlsType } from './SystemControlsType'\n\ninterface SystemControlsUnstyledProps extends FlexBoxProps {\n systemControlsType?: SystemControlsType\n visible?: boolean\n}\n\nconst SystemControlsUnstyled: React.FC<SystemControlsUnstyledProps> = ({\n visible,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const isSmall = useMediaQuery<Theme>((theme) => theme.breakpoints.down('sm'))\n\n if (visible || isSmall) {\n return (\n <FlexCol {...props} className={`${props.className} system-controls-type-${systemControlsType}`}>\n <SystemControl\n systemControlsType={systemControlsType}\n controlElement={\n <>\n <FlexRow className={'control-wrap'}>\n <Paper variant=\"elevation\" elevation={0}>\n <NetworkSelectEx responsive={false} className=\"network-ex\" />\n </Paper>\n </FlexRow>\n </>\n }\n />\n </FlexCol>\n )\n } else {\n return <FlexCol />\n }\n}\n\nexport type { SystemControlsUnstyledProps }\nexport { SystemControlsUnstyled }\n","import { Collapse, CollapseProps } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { SystemControlsType } from '../SystemControlsType'\n\ninterface SystemControlProps extends FlexBoxProps {\n controlElement: React.ReactNode\n systemControlsType?: SystemControlsType\n}\n\nconst SystemControl: React.FC<WithChildren<SystemControlProps>> = ({\n children,\n controlElement,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const [toggleControls, setToggleControls] = useState(false)\n\n let orientation: CollapseProps['orientation'] = 'vertical'\n\n switch (systemControlsType) {\n case SystemControlsType.Left: {\n orientation = 'horizontal'\n break\n }\n }\n\n return (\n <FlexRow className=\"controls\" {...props}>\n <Collapse in={toggleControls} orientation={orientation} timeout={500}>\n <FlexRow bgcolor=\"primary.main\" className=\"control\">\n {controlElement}\n </FlexRow>\n </Collapse>\n <FlexCol style={{ cursor: 'pointer' }} onClick={() => setToggleControls(!toggleControls)}>\n {children}\n </FlexCol>\n </FlexRow>\n )\n}\n\nexport { SystemControl }\n"],"mappings":";AAAA,SAAS,WAAAA,gBAAe;;;ACAxB,SAAS,cAAc;;;ACAvB,SAAS,OAAc,qBAAqB;AAC5C,SAAuB,WAAAC,UAAS,WAAAC,gBAAe;AAC/C,SAAS,uBAAuB;;;ACFhC,SAAS,gBAA+B;AACxC,SAAuB,SAAS,eAAe;AAE/C,SAAS,gBAAgB;AA2BrB,SAEI,KAFJ;AAlBJ,IAAM,gBAA4D,CAAC;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,KAAK;AAE1D,MAAI,cAA4C;AAEhD,UAAQ,oBAAoB;AAAA,IAC1B,wBAA8B;AAC5B,oBAAc;AACd;AAAA,IACF;AAAA,EACF;AAEA,SACE,qBAAC,WAAQ,WAAU,YAAY,GAAG,OAChC;AAAA,wBAAC,YAAS,IAAI,gBAAgB,aAA0B,SAAS,KAC/D,8BAAC,WAAQ,SAAQ,gBAAe,WAAU,WACvC,0BACH,GACF;AAAA,IACA,oBAAC,WAAQ,OAAO,EAAE,QAAQ,UAAU,GAAG,SAAS,MAAM,kBAAkB,CAAC,cAAc,GACpF,UACH;AAAA,KACF;AAEJ;;;ADhBY,mBAGM,OAAAC,YAHN;AAbZ,IAAM,yBAAgE,CAAC;AAAA,EACrE;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,UAAU,cA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AK;AAAA,IACL,OAAO;AAAA,EACT;AAAA;AAAA,EAEA,CAAC,2CAAiD,EAAE,GAAG;AAAA,IACrD,YAAY;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,IACpD;AAAA,IACA,iBAAiB;AAAA,MACf,cAAc,GAAG,MAAM,QAAQ,CAAC,CAAC;AAAA,IACnC;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,MAClD,aAAa;AAAA,IACf;AAAA,IACA,eAAe;AAAA,IACf,MAAM;AAAA,IACN,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AACF,EAAE;;;ADlDI,gBAAAE,YAAA;AAHN,IAAM,iBAAwD,CAAC,UAAU;AACvE,SACE,gBAAAA,KAACC,UAAA,EACC,0BAAAD,KAAC,sBAAoB,GAAG,OAAO,GACjC;AAEJ;","names":["FlexCol","FlexCol","FlexRow","jsx","FlexCol","FlexRow","jsx","FlexCol"]}
@@ -1,138 +0,0 @@
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/MobileSystemControls/SystemControlsRoot.tsx
21
- var SystemControlsRoot_exports = {};
22
- __export(SystemControlsRoot_exports, {
23
- SystemControlsRoot: () => SystemControlsRoot
24
- });
25
- module.exports = __toCommonJS(SystemControlsRoot_exports);
26
- var import_material3 = require("@mui/material");
27
-
28
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
29
- var import_material2 = require("@mui/material");
30
- var import_react_flexbox2 = require("@xylabs/react-flexbox");
31
- var import_react_network = require("@xyo-network/react-network");
32
-
33
- // src/components/MobileSystemControls/controls/SystemControl.tsx
34
- var import_material = require("@mui/material");
35
- var import_react_flexbox = require("@xylabs/react-flexbox");
36
- var import_react = require("react");
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var SystemControl = ({
39
- children,
40
- controlElement,
41
- systemControlsType = "WindowShade" /* WindowShade */,
42
- ...props
43
- }) => {
44
- const [toggleControls, setToggleControls] = (0, import_react.useState)(false);
45
- let orientation = "vertical";
46
- switch (systemControlsType) {
47
- case "Left" /* Left */: {
48
- orientation = "horizontal";
49
- break;
50
- }
51
- }
52
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexRow, { className: "controls", ...props, children: [
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Collapse, { in: toggleControls, orientation, timeout: 500, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexRow, { bgcolor: "primary.main", className: "control", children: controlElement }) }),
54
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { style: { cursor: "pointer" }, onClick: () => setToggleControls(!toggleControls), children })
55
- ] });
56
- };
57
-
58
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
59
- var import_jsx_runtime2 = require("react/jsx-runtime");
60
- var SystemControlsUnstyled = ({
61
- visible,
62
- systemControlsType = "WindowShade" /* WindowShade */,
63
- ...props
64
- }) => {
65
- const isSmall = (0, import_material2.useMediaQuery)((theme) => theme.breakpoints.down("sm"));
66
- if (visible || isSmall) {
67
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexCol, { ...props, className: `${props.className} system-controls-type-${systemControlsType}`, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
68
- SystemControl,
69
- {
70
- systemControlsType,
71
- controlElement: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexRow, { className: "control-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Paper, { variant: "elevation", elevation: 0, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_network.NetworkSelectEx, { responsive: false, className: "network-ex" }) }) }) })
72
- }
73
- ) });
74
- } else {
75
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexCol, {});
76
- }
77
- };
78
-
79
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
80
- var SystemControlsRoot = (0, import_material3.styled)(SystemControlsUnstyled, { name: "SystemControls", slot: "Root" })(({ theme }) => ({
81
- // shared defaults
82
- ["&"]: {
83
- ".toggle": {
84
- backgroundColor: theme.palette.primary.main
85
- },
86
- alignItems: "start",
87
- zIndex: 1
88
- },
89
- // WindowShade System Controls styles
90
- [`&.system-controls-type-${"WindowShade" /* WindowShade */}`]: {
91
- ".control": {
92
- borderRadius: "0 0 5px 5px",
93
- flexDirection: "row",
94
- flexGrow: 1,
95
- justifyContent: "space-around",
96
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
97
- },
98
- ".controls": {
99
- alignItems: "stretch",
100
- flexDirection: "column",
101
- flexGrow: 1
102
- },
103
- ".toggle": {
104
- borderRadius: "0 0 5px 5px",
105
- padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`
106
- },
107
- flexDirection: "row",
108
- position: "absolute",
109
- top: 0,
110
- width: "100%"
111
- },
112
- // Left System Control styles
113
- [`&.system-controls-type-${"Left" /* Left */}`]: {
114
- ".control": {
115
- alignItems: "start",
116
- flexDirection: "column",
117
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
118
- },
119
- ".control-wrap": {
120
- marginBottom: `${theme.spacing(2)}`
121
- },
122
- ".toggle": {
123
- borderRadius: "0 5px 5px 0",
124
- padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,
125
- writingMode: "vertical-rl"
126
- },
127
- flexDirection: "column",
128
- left: 0,
129
- position: "fixed",
130
- top: "30vh",
131
- width: "auto"
132
- }
133
- }));
134
- // Annotate the CommonJS export names for ESM import in node:
135
- 0 && (module.exports = {
136
- SystemControlsRoot
137
- });
138
- //# sourceMappingURL=SystemControlsRoot.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/MobileSystemControls/SystemControlsRoot.tsx","../../../../src/components/MobileSystemControls/SystemControlsUnstyled.tsx","../../../../src/components/MobileSystemControls/controls/SystemControl.tsx"],"sourcesContent":["import { styled } from '@mui/material'\n\nimport { SystemControlsType } from './SystemControlsType'\nimport { SystemControlsUnstyled, SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControlsRoot = styled(SystemControlsUnstyled, { name: 'SystemControls', slot: 'Root' })<SystemControlsUnstyledProps>(({ theme }) => ({\n // shared defaults\n ['&']: {\n '.toggle': {\n backgroundColor: theme.palette.primary.main,\n },\n alignItems: 'start',\n zIndex: 1,\n },\n // WindowShade System Controls styles\n [`&.system-controls-type-${SystemControlsType.WindowShade}`]: {\n '.control': {\n borderRadius: '0 0 5px 5px',\n flexDirection: 'row',\n flexGrow: 1,\n justifyContent: 'space-around',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.controls': {\n alignItems: 'stretch',\n flexDirection: 'column',\n flexGrow: 1,\n },\n '.toggle': {\n borderRadius: '0 0 5px 5px',\n padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,\n },\n flexDirection: 'row',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n // Left System Control styles\n [`&.system-controls-type-${SystemControlsType.Left}`]: {\n '.control': {\n alignItems: 'start',\n flexDirection: 'column',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.control-wrap': {\n marginBottom: `${theme.spacing(2)}`,\n },\n '.toggle': {\n borderRadius: '0 5px 5px 0',\n padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,\n writingMode: 'vertical-rl',\n },\n flexDirection: 'column',\n left: 0,\n position: 'fixed',\n top: '30vh',\n width: 'auto',\n },\n}))\n\nexport { SystemControlsRoot }\n","import { Paper, Theme, useMediaQuery } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { NetworkSelectEx } from '@xyo-network/react-network'\n\nimport { SystemControl } from './controls'\nimport { SystemControlsType } from './SystemControlsType'\n\ninterface SystemControlsUnstyledProps extends FlexBoxProps {\n systemControlsType?: SystemControlsType\n visible?: boolean\n}\n\nconst SystemControlsUnstyled: React.FC<SystemControlsUnstyledProps> = ({\n visible,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const isSmall = useMediaQuery<Theme>((theme) => theme.breakpoints.down('sm'))\n\n if (visible || isSmall) {\n return (\n <FlexCol {...props} className={`${props.className} system-controls-type-${systemControlsType}`}>\n <SystemControl\n systemControlsType={systemControlsType}\n controlElement={\n <>\n <FlexRow className={'control-wrap'}>\n <Paper variant=\"elevation\" elevation={0}>\n <NetworkSelectEx responsive={false} className=\"network-ex\" />\n </Paper>\n </FlexRow>\n </>\n }\n />\n </FlexCol>\n )\n } else {\n return <FlexCol />\n }\n}\n\nexport type { SystemControlsUnstyledProps }\nexport { SystemControlsUnstyled }\n","import { Collapse, CollapseProps } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { SystemControlsType } from '../SystemControlsType'\n\ninterface SystemControlProps extends FlexBoxProps {\n controlElement: React.ReactNode\n systemControlsType?: SystemControlsType\n}\n\nconst SystemControl: React.FC<WithChildren<SystemControlProps>> = ({\n children,\n controlElement,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const [toggleControls, setToggleControls] = useState(false)\n\n let orientation: CollapseProps['orientation'] = 'vertical'\n\n switch (systemControlsType) {\n case SystemControlsType.Left: {\n orientation = 'horizontal'\n break\n }\n }\n\n return (\n <FlexRow className=\"controls\" {...props}>\n <Collapse in={toggleControls} orientation={orientation} timeout={500}>\n <FlexRow bgcolor=\"primary.main\" className=\"control\">\n {controlElement}\n </FlexRow>\n </Collapse>\n <FlexCol style={{ cursor: 'pointer' }} onClick={() => setToggleControls(!toggleControls)}>\n {children}\n </FlexCol>\n </FlexRow>\n )\n}\n\nexport { SystemControl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAAuB;;;ACAvB,IAAAC,mBAA4C;AAC5C,IAAAC,wBAA+C;AAC/C,2BAAgC;;;ACFhC,sBAAwC;AACxC,2BAA+C;AAE/C,mBAAyB;AA2BrB;AAlBJ,IAAM,gBAA4D,CAAC;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,CAAC,gBAAgB,iBAAiB,QAAI,uBAAS,KAAK;AAE1D,MAAI,cAA4C;AAEhD,UAAQ,oBAAoB;AAAA,IAC1B,wBAA8B;AAC5B,oBAAc;AACd;AAAA,IACF;AAAA,EACF;AAEA,SACE,6CAAC,gCAAQ,WAAU,YAAY,GAAG,OAChC;AAAA,gDAAC,4BAAS,IAAI,gBAAgB,aAA0B,SAAS,KAC/D,sDAAC,gCAAQ,SAAQ,gBAAe,WAAU,WACvC,0BACH,GACF;AAAA,IACA,4CAAC,gCAAQ,OAAO,EAAE,QAAQ,UAAU,GAAG,SAAS,MAAM,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,GAAG,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC;AAAA,IACpD;AAAA,IACA,eAAe;AAAA,IACf,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AAAA;AAAA,EAEA,CAAC,2CAAiD,EAAE,GAAG;AAAA,IACrD,YAAY;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,IACpD;AAAA,IACA,iBAAiB;AAAA,MACf,cAAc,GAAG,MAAM,QAAQ,CAAC,CAAC;AAAA,IACnC;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,MAClD,aAAa;AAAA,IACf;AAAA,IACA,eAAe;AAAA,IACf,MAAM;AAAA,IACN,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AACF,EAAE;","names":["import_material","import_material","import_react_flexbox","import_jsx_runtime"]}
@@ -1,113 +0,0 @@
1
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
2
- import { styled } from "@mui/material";
3
-
4
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
5
- import { Paper, useMediaQuery } from "@mui/material";
6
- import { FlexCol as FlexCol2, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
7
- import { NetworkSelectEx } from "@xyo-network/react-network";
8
-
9
- // src/components/MobileSystemControls/controls/SystemControl.tsx
10
- import { Collapse } from "@mui/material";
11
- import { FlexCol, FlexRow } from "@xylabs/react-flexbox";
12
- import { useState } from "react";
13
- import { jsx, jsxs } from "react/jsx-runtime";
14
- var SystemControl = ({
15
- children,
16
- controlElement,
17
- systemControlsType = "WindowShade" /* WindowShade */,
18
- ...props
19
- }) => {
20
- const [toggleControls, setToggleControls] = useState(false);
21
- let orientation = "vertical";
22
- switch (systemControlsType) {
23
- case "Left" /* Left */: {
24
- orientation = "horizontal";
25
- break;
26
- }
27
- }
28
- return /* @__PURE__ */ jsxs(FlexRow, { className: "controls", ...props, children: [
29
- /* @__PURE__ */ jsx(Collapse, { in: toggleControls, orientation, timeout: 500, children: /* @__PURE__ */ jsx(FlexRow, { bgcolor: "primary.main", className: "control", children: controlElement }) }),
30
- /* @__PURE__ */ jsx(FlexCol, { style: { cursor: "pointer" }, onClick: () => setToggleControls(!toggleControls), children })
31
- ] });
32
- };
33
-
34
- // src/components/MobileSystemControls/SystemControlsUnstyled.tsx
35
- import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
36
- var SystemControlsUnstyled = ({
37
- visible,
38
- systemControlsType = "WindowShade" /* WindowShade */,
39
- ...props
40
- }) => {
41
- const isSmall = useMediaQuery((theme) => theme.breakpoints.down("sm"));
42
- if (visible || isSmall) {
43
- return /* @__PURE__ */ jsx2(FlexCol2, { ...props, className: `${props.className} system-controls-type-${systemControlsType}`, children: /* @__PURE__ */ jsx2(
44
- SystemControl,
45
- {
46
- systemControlsType,
47
- controlElement: /* @__PURE__ */ jsx2(Fragment, { children: /* @__PURE__ */ jsx2(FlexRow2, { className: "control-wrap", children: /* @__PURE__ */ jsx2(Paper, { variant: "elevation", elevation: 0, children: /* @__PURE__ */ jsx2(NetworkSelectEx, { responsive: false, className: "network-ex" }) }) }) })
48
- }
49
- ) });
50
- } else {
51
- return /* @__PURE__ */ jsx2(FlexCol2, {});
52
- }
53
- };
54
-
55
- // src/components/MobileSystemControls/SystemControlsRoot.tsx
56
- var SystemControlsRoot = styled(SystemControlsUnstyled, { name: "SystemControls", slot: "Root" })(({ theme }) => ({
57
- // shared defaults
58
- ["&"]: {
59
- ".toggle": {
60
- backgroundColor: theme.palette.primary.main
61
- },
62
- alignItems: "start",
63
- zIndex: 1
64
- },
65
- // WindowShade System Controls styles
66
- [`&.system-controls-type-${"WindowShade" /* WindowShade */}`]: {
67
- ".control": {
68
- borderRadius: "0 0 5px 5px",
69
- flexDirection: "row",
70
- flexGrow: 1,
71
- justifyContent: "space-around",
72
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
73
- },
74
- ".controls": {
75
- alignItems: "stretch",
76
- flexDirection: "column",
77
- flexGrow: 1
78
- },
79
- ".toggle": {
80
- borderRadius: "0 0 5px 5px",
81
- padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`
82
- },
83
- flexDirection: "row",
84
- position: "absolute",
85
- top: 0,
86
- width: "100%"
87
- },
88
- // Left System Control styles
89
- [`&.system-controls-type-${"Left" /* Left */}`]: {
90
- ".control": {
91
- alignItems: "start",
92
- flexDirection: "column",
93
- padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
94
- },
95
- ".control-wrap": {
96
- marginBottom: `${theme.spacing(2)}`
97
- },
98
- ".toggle": {
99
- borderRadius: "0 5px 5px 0",
100
- padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,
101
- writingMode: "vertical-rl"
102
- },
103
- flexDirection: "column",
104
- left: 0,
105
- position: "fixed",
106
- top: "30vh",
107
- width: "auto"
108
- }
109
- }));
110
- export {
111
- SystemControlsRoot
112
- };
113
- //# sourceMappingURL=SystemControlsRoot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/MobileSystemControls/SystemControlsRoot.tsx","../../../../src/components/MobileSystemControls/SystemControlsUnstyled.tsx","../../../../src/components/MobileSystemControls/controls/SystemControl.tsx"],"sourcesContent":["import { styled } from '@mui/material'\n\nimport { SystemControlsType } from './SystemControlsType'\nimport { SystemControlsUnstyled, SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControlsRoot = styled(SystemControlsUnstyled, { name: 'SystemControls', slot: 'Root' })<SystemControlsUnstyledProps>(({ theme }) => ({\n // shared defaults\n ['&']: {\n '.toggle': {\n backgroundColor: theme.palette.primary.main,\n },\n alignItems: 'start',\n zIndex: 1,\n },\n // WindowShade System Controls styles\n [`&.system-controls-type-${SystemControlsType.WindowShade}`]: {\n '.control': {\n borderRadius: '0 0 5px 5px',\n flexDirection: 'row',\n flexGrow: 1,\n justifyContent: 'space-around',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.controls': {\n alignItems: 'stretch',\n flexDirection: 'column',\n flexGrow: 1,\n },\n '.toggle': {\n borderRadius: '0 0 5px 5px',\n padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,\n },\n flexDirection: 'row',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n // Left System Control styles\n [`&.system-controls-type-${SystemControlsType.Left}`]: {\n '.control': {\n alignItems: 'start',\n flexDirection: 'column',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.control-wrap': {\n marginBottom: `${theme.spacing(2)}`,\n },\n '.toggle': {\n borderRadius: '0 5px 5px 0',\n padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,\n writingMode: 'vertical-rl',\n },\n flexDirection: 'column',\n left: 0,\n position: 'fixed',\n top: '30vh',\n width: 'auto',\n },\n}))\n\nexport { SystemControlsRoot }\n","import { Paper, Theme, useMediaQuery } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { NetworkSelectEx } from '@xyo-network/react-network'\n\nimport { SystemControl } from './controls'\nimport { SystemControlsType } from './SystemControlsType'\n\ninterface SystemControlsUnstyledProps extends FlexBoxProps {\n systemControlsType?: SystemControlsType\n visible?: boolean\n}\n\nconst SystemControlsUnstyled: React.FC<SystemControlsUnstyledProps> = ({\n visible,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const isSmall = useMediaQuery<Theme>((theme) => theme.breakpoints.down('sm'))\n\n if (visible || isSmall) {\n return (\n <FlexCol {...props} className={`${props.className} system-controls-type-${systemControlsType}`}>\n <SystemControl\n systemControlsType={systemControlsType}\n controlElement={\n <>\n <FlexRow className={'control-wrap'}>\n <Paper variant=\"elevation\" elevation={0}>\n <NetworkSelectEx responsive={false} className=\"network-ex\" />\n </Paper>\n </FlexRow>\n </>\n }\n />\n </FlexCol>\n )\n } else {\n return <FlexCol />\n }\n}\n\nexport type { SystemControlsUnstyledProps }\nexport { SystemControlsUnstyled }\n","import { Collapse, CollapseProps } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { SystemControlsType } from '../SystemControlsType'\n\ninterface SystemControlProps extends FlexBoxProps {\n controlElement: React.ReactNode\n systemControlsType?: SystemControlsType\n}\n\nconst SystemControl: React.FC<WithChildren<SystemControlProps>> = ({\n children,\n controlElement,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const [toggleControls, setToggleControls] = useState(false)\n\n let orientation: CollapseProps['orientation'] = 'vertical'\n\n switch (systemControlsType) {\n case SystemControlsType.Left: {\n orientation = 'horizontal'\n break\n }\n }\n\n return (\n <FlexRow className=\"controls\" {...props}>\n <Collapse in={toggleControls} orientation={orientation} timeout={500}>\n <FlexRow bgcolor=\"primary.main\" className=\"control\">\n {controlElement}\n </FlexRow>\n </Collapse>\n <FlexCol style={{ cursor: 'pointer' }} onClick={() => setToggleControls(!toggleControls)}>\n {children}\n </FlexCol>\n </FlexRow>\n )\n}\n\nexport { SystemControl }\n"],"mappings":";AAAA,SAAS,cAAc;;;ACAvB,SAAS,OAAc,qBAAqB;AAC5C,SAAuB,WAAAA,UAAS,WAAAC,gBAAe;AAC/C,SAAS,uBAAuB;;;ACFhC,SAAS,gBAA+B;AACxC,SAAuB,SAAS,eAAe;AAE/C,SAAS,gBAAgB;AA2BrB,SAEI,KAFJ;AAlBJ,IAAM,gBAA4D,CAAC;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,KAAK;AAE1D,MAAI,cAA4C;AAEhD,UAAQ,oBAAoB;AAAA,IAC1B,wBAA8B;A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,GAAG;AAAA,IAC5D,YAAY;AAAA,MACV,cAAc;AAAA,MACd,eAAe;AAAA,MACf,UAAU;AAAA,MACV,gBAAgB;AAAA,MAChB,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,IACpD;AAAA,IACA,aAAa;AAAA,MACX,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,GAAG,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC;AAAA,IACpD;AAAA,IACA,eAAe;AAAA,IACf,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AAAA;AAAA,EAEA,CAAC,2CAAiD,EAAE,GAAG;AAAA,IACrD,YAAY;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,IACpD;AAAA,IACA,iBAAiB;AAAA,MACf,cAAc,GAAG,MAAM,QAAQ,CAAC,CAAC;AAAA,IACnC;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,MAClD,aAAa;AAAA,IACf;AAAA,IACA,eAAe;AAAA,IACf,MAAM;AAAA,IACN,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AACF,EAAE;","names":["FlexCol","FlexRow","jsx","FlexCol","FlexRow"]}
@@ -1,36 +0,0 @@
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/MobileSystemControls/SystemControlsType.ts
21
- var SystemControlsType_exports = {};
22
- __export(SystemControlsType_exports, {
23
- SystemControlsType: () => SystemControlsType
24
- });
25
- module.exports = __toCommonJS(SystemControlsType_exports);
26
- var SystemControlsType = /* @__PURE__ */ ((SystemControlsType2) => {
27
- SystemControlsType2["Left"] = "Left";
28
- SystemControlsType2["Right"] = "Right";
29
- SystemControlsType2["WindowShade"] = "WindowShade";
30
- return SystemControlsType2;
31
- })(SystemControlsType || {});
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- SystemControlsType
35
- });
36
- //# sourceMappingURL=SystemControlsType.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/MobileSystemControls/SystemControlsType.ts"],"sourcesContent":["export enum SystemControlsType {\n Left = 'Left',\n Right = 'Right',\n WindowShade = 'WindowShade',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAK,qBAAL,kBAAKA,wBAAL;AACL,EAAAA,oBAAA,UAAO;AACP,EAAAA,oBAAA,WAAQ;AACR,EAAAA,oBAAA,iBAAc;AAHJ,SAAAA;AAAA,GAAA;","names":["SystemControlsType"]}