@xyo-network/os-react-runtime 7.2.1 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/dist/browser/helpers/BridgeActivityHelper.d.ts +1 -1
  2. package/dist/browser/helpers/BrowserLocator.d.ts +1 -1
  3. package/dist/browser/helpers/BrowserLocator.d.ts.map +1 -1
  4. package/dist/browser/helpers/widget/Caller.d.ts.map +1 -1
  5. package/dist/browser/img/backgrounds/index.d.ts +18 -18
  6. package/dist/browser/img/backgrounds/index.d.ts.map +1 -1
  7. package/dist/browser/index.mjs +210 -180
  8. package/dist/browser/index.mjs.map +1 -1
  9. package/dist/browser/modules/Dapp/Alert/RenderErrorWithSupportLink.d.ts.map +1 -1
  10. package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
  11. package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +9 -1098
  12. package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts.map +1 -1
  13. package/dist/browser/modules/Dapp/Page/DappPathSwitcher.d.ts.map +1 -1
  14. package/dist/browser/modules/Dapp/modules/Window/LoadingFlexbox.d.ts.map +1 -1
  15. package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts +1 -1
  16. package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
  17. package/dist/browser/modules/Dapp/modules/Window/components/menu/BottomNavigation.d.ts.map +1 -1
  18. package/dist/browser/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
  19. package/dist/browser/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +1 -1
  20. package/dist/browser/modules/Dapp/modules/Window/components/menu/img/index.d.ts +2 -2
  21. package/dist/browser/modules/Dapp/modules/Window/components/menu/img/index.d.ts.map +1 -1
  22. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts.map +1 -1
  23. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.d.ts +2 -2
  24. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.d.ts.map +1 -1
  25. package/dist/browser/modules/Dapp/modules/access-interface/components/Dialog.d.ts.map +1 -1
  26. package/dist/browser/modules/LoadingOsLogo/img/index.d.ts +1 -1
  27. package/dist/browser/modules/LoadingOsLogo/img/index.d.ts.map +1 -1
  28. package/dist/browser/modules/XyOsUi/lib/XyOsUi.d.ts.map +1 -1
  29. package/dist/browser/modules/bios/hooks/useKernel.d.ts +1 -1
  30. package/dist/browser/modules/bios/hooks/useKernel.d.ts.map +1 -1
  31. package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts +1 -1
  32. package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts.map +1 -1
  33. package/dist/browser/modules/dapps/accounts/models/CreditCardInput.d.ts +2 -2
  34. package/dist/browser/modules/dapps/accounts/models/CreditCardInput.d.ts.map +1 -1
  35. package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts +1 -1
  36. package/dist/browser/modules/intent/useDappIntentListener2.d.ts.map +1 -1
  37. package/dist/browser/modules/intent/useNavigateIntent.d.ts +2 -2
  38. package/dist/browser/modules/intent/useNavigateIntent.d.ts.map +1 -1
  39. package/dist/browser/modules/network/components/LoadingIndicator.d.ts.map +1 -1
  40. package/dist/browser/modules/os/hooks/useDappRegistrationResults.d.ts.map +1 -1
  41. package/dist/browser/modules/os/hooks/useDappRegistry.d.ts.map +1 -1
  42. package/dist/browser/modules/os/hooks/useDappSeedPhraseRepository.d.ts +1 -1
  43. package/dist/browser/modules/os/hooks/useDappSeedPhraseRepository.d.ts.map +1 -1
  44. package/dist/browser/modules/resource/ResourceHooks.d.ts.map +1 -1
  45. package/dist/browser/modules/resource/useSyncExternalPayloadStore.d.ts.map +1 -1
  46. package/dist/browser/modules/stack/useStackReady.d.ts.map +1 -1
  47. package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts +1 -1
  48. package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts +1 -1
  49. package/dist/browser/modules/widgets/Types/Stat/Value.d.ts +1 -1
  50. package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts +4 -4
  51. package/package.json +304 -69
  52. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/DefaultData.d.ts +0 -10
  53. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/DefaultData.d.ts.map +0 -1
  54. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +0 -6
  55. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts.map +0 -1
  56. package/src/helpers/BridgeActivityHelper.ts +0 -39
  57. package/src/helpers/BrowserLocator.ts +0 -19
  58. package/src/helpers/NodePalettes.ts +0 -84
  59. package/src/helpers/index.ts +0 -5
  60. package/src/helpers/monitor/XyOsBrowserMonitor.ts +0 -14
  61. package/src/helpers/monitor/index.ts +0 -1
  62. package/src/helpers/widget/Caller.tsx +0 -125
  63. package/src/helpers/widget/index.ts +0 -1
  64. package/src/img/backgrounds/candy-dark@3x.webp +0 -0
  65. package/src/img/backgrounds/candy-light@3x.webp +0 -0
  66. package/src/img/backgrounds/candyApple-dark@3x.webp +0 -0
  67. package/src/img/backgrounds/candyApple-light@3x.webp +0 -0
  68. package/src/img/backgrounds/images.d.ts +0 -5
  69. package/src/img/backgrounds/index.ts +0 -18
  70. package/src/img/backgrounds/moss-dark@3x.webp +0 -0
  71. package/src/img/backgrounds/moss-light@3x.webp +0 -0
  72. package/src/img/backgrounds/ocean-dark@3x.webp +0 -0
  73. package/src/img/backgrounds/ocean-light@3x.webp +0 -0
  74. package/src/img/backgrounds/peachYogurt-dark@3x.webp +0 -0
  75. package/src/img/backgrounds/peachYogurt-light@3x.webp +0 -0
  76. package/src/img/backgrounds/sherbet-dark@3x.webp +0 -0
  77. package/src/img/backgrounds/sherbet-light@3x.webp +0 -0
  78. package/src/img/backgrounds/spring-dark@3x.webp +0 -0
  79. package/src/img/backgrounds/spring-light@3x.webp +0 -0
  80. package/src/img/backgrounds/sunset-dark@3x.webp +0 -0
  81. package/src/img/backgrounds/sunset-light@3x.webp +0 -0
  82. package/src/img/backgrounds/xyo-dark@3x.webp +0 -0
  83. package/src/img/backgrounds/xyo-light@3x.webp +0 -0
  84. package/src/img/index.ts +0 -1
  85. package/src/index.ts +0 -5
  86. package/src/interfaces/StackReady.ts +0 -6
  87. package/src/interfaces/index.ts +0 -1
  88. package/src/modules/Dapp/Alert/RenderErrorWithSupportLink.tsx +0 -50
  89. package/src/modules/Dapp/Alert/index.ts +0 -1
  90. package/src/modules/Dapp/Button/IconEx.tsx +0 -96
  91. package/src/modules/Dapp/Button/LaunchFrame.tsx +0 -77
  92. package/src/modules/Dapp/Button/StyledComponents.tsx +0 -55
  93. package/src/modules/Dapp/Button/StyledDappIconBuilder.tsx +0 -17
  94. package/src/modules/Dapp/Button/hooks/index.ts +0 -1
  95. package/src/modules/Dapp/Button/hooks/useLaunchPoint.tsx +0 -31
  96. package/src/modules/Dapp/Button/index.ts +0 -4
  97. package/src/modules/Dapp/Button/lib/decomposeProps.tsx +0 -15
  98. package/src/modules/Dapp/Button/lib/index.ts +0 -1
  99. package/src/modules/Dapp/Container.tsx +0 -63
  100. package/src/modules/Dapp/ContainerFlexbox.tsx +0 -30
  101. package/src/modules/Dapp/Debug/Dialog.tsx +0 -54
  102. package/src/modules/Dapp/Debug/index.ts +0 -1
  103. package/src/modules/Dapp/EnterAnimation.tsx +0 -54
  104. package/src/modules/Dapp/Page/DappPage.tsx +0 -115
  105. package/src/modules/Dapp/Page/DappPathSwitcher.tsx +0 -58
  106. package/src/modules/Dapp/Page/DividerChip.tsx +0 -31
  107. package/src/modules/Dapp/Page/Row.tsx +0 -69
  108. package/src/modules/Dapp/Page/index.ts +0 -3
  109. package/src/modules/Dapp/RenderHtml.tsx +0 -12
  110. package/src/modules/Dapp/index.ts +0 -8
  111. package/src/modules/Dapp/lib/DappState.ts +0 -5
  112. package/src/modules/Dapp/lib/DefaultIconSize.ts +0 -1
  113. package/src/modules/Dapp/lib/deriveDappState.ts +0 -16
  114. package/src/modules/Dapp/lib/index.ts +0 -3
  115. package/src/modules/Dapp/modules/Window/AppBar.tsx +0 -115
  116. package/src/modules/Dapp/modules/Window/Chrome.tsx +0 -79
  117. package/src/modules/Dapp/modules/Window/DappWindow.tsx +0 -39
  118. package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +0 -99
  119. package/src/modules/Dapp/modules/Window/MetaTags.tsx +0 -27
  120. package/src/modules/Dapp/modules/Window/NodeManifest.tsx +0 -16
  121. package/src/modules/Dapp/modules/Window/Rendered.tsx +0 -101
  122. package/src/modules/Dapp/modules/Window/Trail.tsx +0 -33
  123. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +0 -82
  124. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.tsx +0 -27
  125. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/InstallButtonSection.tsx +0 -34
  126. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.tsx +0 -73
  127. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/index.ts +0 -1
  128. package/src/modules/Dapp/modules/Window/components/index.ts +0 -2
  129. package/src/modules/Dapp/modules/Window/components/menu/BottomMenuArea.tsx +0 -130
  130. package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +0 -66
  131. package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +0 -160
  132. package/src/modules/Dapp/modules/Window/components/menu/SocialData.tsx +0 -68
  133. package/src/modules/Dapp/modules/Window/components/menu/StyledListItems.tsx +0 -36
  134. package/src/modules/Dapp/modules/Window/components/menu/img/index.ts +0 -2
  135. package/src/modules/Dapp/modules/Window/components/menu/img/xyoOS-Icon-Black.svg +0 -1
  136. package/src/modules/Dapp/modules/Window/components/menu/img/xyoOS-Icon-White.svg +0 -1
  137. package/src/modules/Dapp/modules/Window/components/menu/index.ts +0 -3
  138. package/src/modules/Dapp/modules/Window/components/menu/stories/DefaultData.tsx +0 -118
  139. package/src/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.tsx +0 -36
  140. package/src/modules/Dapp/modules/Window/components/menu/stories/default.manifest.json +0 -20
  141. package/src/modules/Dapp/modules/Window/hooks/index.ts +0 -8
  142. package/src/modules/Dapp/modules/Window/hooks/lib/DappPathHelpers.ts +0 -34
  143. package/src/modules/Dapp/modules/Window/hooks/lib/detectCustomer.ts +0 -21
  144. package/src/modules/Dapp/modules/Window/hooks/lib/index.ts +0 -2
  145. package/src/modules/Dapp/modules/Window/hooks/menu/index.ts +0 -5
  146. package/src/modules/Dapp/modules/Window/hooks/menu/useAddDappMenuItems.ts +0 -25
  147. package/src/modules/Dapp/modules/Window/hooks/menu/useBuildDappMenuResource.ts +0 -39
  148. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts +0 -71
  149. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.ts +0 -22
  150. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenuDependencies.ts +0 -16
  151. package/src/modules/Dapp/modules/Window/hooks/route/helpers/RoutingNodes.md +0 -7
  152. package/src/modules/Dapp/modules/Window/hooks/route/helpers/index.ts +0 -4
  153. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.tsx +0 -55
  154. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappIntentRequest.tsx +0 -68
  155. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappPathFromRoute.tsx +0 -75
  156. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappStateFromRoute.tsx +0 -51
  157. package/src/modules/Dapp/modules/Window/hooks/route/index.ts +0 -1
  158. package/src/modules/Dapp/modules/Window/hooks/useDebugClick.ts +0 -61
  159. package/src/modules/Dapp/modules/Window/hooks/useDecomposeDapp.tsx +0 -21
  160. package/src/modules/Dapp/modules/Window/hooks/useExposedNode.ts +0 -6
  161. package/src/modules/Dapp/modules/Window/hooks/useSkipLoadingScreen.tsx +0 -17
  162. package/src/modules/Dapp/modules/Window/hooks/useSyncOsRegisteredAccessInterfaces.tsx +0 -36
  163. package/src/modules/Dapp/modules/Window/index.ts +0 -7
  164. package/src/modules/Dapp/modules/Window/types/DappMenuProperties.ts +0 -9
  165. package/src/modules/Dapp/modules/Window/types/DappWindowProps.ts +0 -14
  166. package/src/modules/Dapp/modules/Window/types/index.ts +0 -2
  167. package/src/modules/Dapp/modules/access-interface/components/Dialog.tsx +0 -132
  168. package/src/modules/Dapp/modules/access-interface/components/Flexbox.tsx +0 -29
  169. package/src/modules/Dapp/modules/access-interface/components/index.ts +0 -2
  170. package/src/modules/Dapp/modules/access-interface/hooks/index.ts +0 -1
  171. package/src/modules/Dapp/modules/access-interface/hooks/useDialogState.tsx +0 -28
  172. package/src/modules/Dapp/modules/access-interface/index.ts +0 -2
  173. package/src/modules/Dapp/modules/index.ts +0 -2
  174. package/src/modules/Dapp/useDappCaller.ts +0 -16
  175. package/src/modules/LoadingOsLogo/LoadingOsLogo.tsx +0 -54
  176. package/src/modules/LoadingOsLogo/img/index.ts +0 -1
  177. package/src/modules/LoadingOsLogo/img/xyoOS-Icon.svg +0 -1
  178. package/src/modules/LoadingOsLogo/index.ts +0 -1
  179. package/src/modules/XyOsUi/contexts/XyOsUiContext.ts +0 -10
  180. package/src/modules/XyOsUi/contexts/index.ts +0 -1
  181. package/src/modules/XyOsUi/index.ts +0 -2
  182. package/src/modules/XyOsUi/lib/XyOsUi.ts +0 -51
  183. package/src/modules/XyOsUi/lib/index.ts +0 -1
  184. package/src/modules/access-requests/NameServiceRegistrationHooks.ts +0 -36
  185. package/src/modules/access-requests/index.ts +0 -2
  186. package/src/modules/access-requests/useBuildDappAccessRequestResource.ts +0 -38
  187. package/src/modules/bios/hooks/index.ts +0 -2
  188. package/src/modules/bios/hooks/useBios.ts +0 -25
  189. package/src/modules/bios/hooks/useKernel.ts +0 -36
  190. package/src/modules/bios/index.ts +0 -1
  191. package/src/modules/dapps/accounts/components/AccountCard.tsx +0 -57
  192. package/src/modules/dapps/accounts/components/AnimatedComponents/GenericAnimations/ShiftAnimation.tsx +0 -116
  193. package/src/modules/dapps/accounts/components/AnimatedComponents/GenericAnimations/index.ts +0 -1
  194. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx +0 -23
  195. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx +0 -24
  196. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/index.ts +0 -2
  197. package/src/modules/dapps/accounts/components/AnimatedComponents/index.ts +0 -2
  198. package/src/modules/dapps/accounts/components/InputFields/CoinbaseEmail.tsx +0 -41
  199. package/src/modules/dapps/accounts/components/InputFields/PrimaryCryptowallet.tsx +0 -42
  200. package/src/modules/dapps/accounts/components/InputFields/SecondaryCryptowallet.tsx +0 -42
  201. package/src/modules/dapps/accounts/components/InputFields/index.ts +0 -3
  202. package/src/modules/dapps/accounts/components/PaymentMethods.tsx +0 -51
  203. package/src/modules/dapps/accounts/components/index.ts +0 -3
  204. package/src/modules/dapps/accounts/hooks/index.ts +0 -1
  205. package/src/modules/dapps/accounts/hooks/useAccountArchivist.ts +0 -5
  206. package/src/modules/dapps/accounts/icon/Icon.tsx +0 -49
  207. package/src/modules/dapps/accounts/icon/custom-accounts-icon.svg +0 -1
  208. package/src/modules/dapps/accounts/icon/index.ts +0 -1
  209. package/src/modules/dapps/accounts/index.ts +0 -3
  210. package/src/modules/dapps/accounts/models/CreditCardInput.ts +0 -20
  211. package/src/modules/dapps/accounts/models/index.ts +0 -1
  212. package/src/modules/dapps/index.ts +0 -3
  213. package/src/modules/dapps/name-service/DomainIcon.tsx +0 -12
  214. package/src/modules/dapps/name-service/index.ts +0 -1
  215. package/src/modules/dapps/table/NextIteratorFlexbox.tsx +0 -33
  216. package/src/modules/dapps/table/head/Payload.ts +0 -11
  217. package/src/modules/dapps/table/head/Schema.ts +0 -4
  218. package/src/modules/dapps/table/head/components/Head.tsx +0 -47
  219. package/src/modules/dapps/table/head/components/StyledTableRowHeader.tsx +0 -6
  220. package/src/modules/dapps/table/head/components/index.ts +0 -1
  221. package/src/modules/dapps/table/head/hooks/index.ts +0 -1
  222. package/src/modules/dapps/table/head/hooks/useVisibleColumns.tsx +0 -15
  223. package/src/modules/dapps/table/head/index.ts +0 -4
  224. package/src/modules/dapps/table/index.ts +0 -2
  225. package/src/modules/index.ts +0 -12
  226. package/src/modules/intent/DappIntentResourceHooks.ts +0 -35
  227. package/src/modules/intent/index.ts +0 -7
  228. package/src/modules/intent/useClearIntents.ts +0 -14
  229. package/src/modules/intent/useDappIntentCaller.ts +0 -17
  230. package/src/modules/intent/useDappIntentListener.ts +0 -53
  231. package/src/modules/intent/useDappIntentListener2.ts +0 -48
  232. package/src/modules/intent/useNavigateIntent.ts +0 -51
  233. package/src/modules/intent/useSendDappIntent.ts +0 -38
  234. package/src/modules/network/components/LoadingIndicator.tsx +0 -51
  235. package/src/modules/network/components/NetworkButton.tsx +0 -27
  236. package/src/modules/network/components/NetworkReady.tsx +0 -31
  237. package/src/modules/network/components/StyledLoadingIndicator.tsx +0 -49
  238. package/src/modules/network/components/index.ts +0 -3
  239. package/src/modules/network/hooks/index.ts +0 -2
  240. package/src/modules/network/hooks/lib/NetworkState.ts +0 -8
  241. package/src/modules/network/hooks/lib/createNetworkState.ts +0 -20
  242. package/src/modules/network/hooks/lib/index.ts +0 -2
  243. package/src/modules/network/hooks/useOsNetwork.tsx +0 -17
  244. package/src/modules/network/hooks/useXyoPublicNetwork.tsx +0 -17
  245. package/src/modules/network/index.ts +0 -2
  246. package/src/modules/os/hooks/index.ts +0 -8
  247. package/src/modules/os/hooks/useDappContextCreator.ts +0 -89
  248. package/src/modules/os/hooks/useDappRegistrationResults.ts +0 -30
  249. package/src/modules/os/hooks/useDappRegistry.ts +0 -19
  250. package/src/modules/os/hooks/useDappSeedPhraseRepository.ts +0 -19
  251. package/src/modules/os/hooks/useOsSettingsCaller.ts +0 -19
  252. package/src/modules/os/hooks/usePhraseFile.ts +0 -33
  253. package/src/modules/os/hooks/useTabs.ts +0 -14
  254. package/src/modules/os/hooks/useWidgetDapps.ts +0 -23
  255. package/src/modules/os/index.ts +0 -1
  256. package/src/modules/resource/ResourceHooks.ts +0 -45
  257. package/src/modules/resource/index.ts +0 -3
  258. package/src/modules/resource/useCleanup.ts +0 -10
  259. package/src/modules/resource/useSyncExternalPayloadStore.ts +0 -37
  260. package/src/modules/stack/index.ts +0 -1
  261. package/src/modules/stack/useStackReady.ts +0 -48
  262. package/src/modules/widgets/StackOfWidgets.tsx +0 -149
  263. package/src/modules/widgets/Types/BarGraph/HorizontalBarGraph.tsx +0 -58
  264. package/src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx +0 -12
  265. package/src/modules/widgets/Types/BarGraph/index.ts +0 -2
  266. package/src/modules/widgets/Types/DataColumns/TwoColFourStat.tsx +0 -34
  267. package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -39
  268. package/src/modules/widgets/Types/DataColumns/index.ts +0 -1
  269. package/src/modules/widgets/Types/Examples/BarGraph.tsx +0 -10
  270. package/src/modules/widgets/Types/Examples/BooleanTable.tsx +0 -27
  271. package/src/modules/widgets/Types/Examples/TwoColTwoStat.tsx +0 -27
  272. package/src/modules/widgets/Types/Examples/index.ts +0 -3
  273. package/src/modules/widgets/Types/Stat/Insight.ts +0 -9
  274. package/src/modules/widgets/Types/Stat/InsightStatProps.ts +0 -7
  275. package/src/modules/widgets/Types/Stat/Stat.tsx +0 -41
  276. package/src/modules/widgets/Types/Stat/Subtitle.tsx +0 -14
  277. package/src/modules/widgets/Types/Stat/Unit.tsx +0 -13
  278. package/src/modules/widgets/Types/Stat/Value.tsx +0 -16
  279. package/src/modules/widgets/Types/Stat/index.ts +0 -3
  280. package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -88
  281. package/src/modules/widgets/Types/Tables/index.ts +0 -1
  282. package/src/modules/widgets/Types/index.ts +0 -4
  283. package/src/modules/widgets/WidgetCard.tsx +0 -111
  284. package/src/modules/widgets/WidgetCardExamples.tsx +0 -31
  285. package/src/modules/widgets/index.ts +0 -2
  286. package/src/settings/Theme/ThemeCssVars.ts +0 -228
  287. package/src/settings/Theme/ThemeProvider.tsx +0 -20
  288. package/src/settings/Theme/index.ts +0 -1
  289. package/src/settings/index.ts +0 -1
  290. package/src/types/global.d.ts +0 -11
  291. package/src/types/images.d.ts +0 -4
  292. package/src/utils/DappInstallTypeFilters.ts +0 -27
  293. package/src/utils/getApiDomain.ts +0 -14
  294. package/src/utils/index.ts +0 -3
  295. package/src/utils/useOnWindowResize.tsx +0 -18
@@ -1,30 +0,0 @@
1
- import type { ContainerProps } from '@mui/material'
2
- import { Container } from '@mui/material'
3
- import type { FlexBoxProps } from '@xylabs/react-flexbox'
4
- import { FlexCol } from '@xylabs/react-flexbox'
5
- import type { PropsWithChildren } from 'react'
6
- import React from 'react'
7
-
8
- export interface ContainerFlexboxProps extends PropsWithChildren, FlexBoxProps {
9
- containerProps?: ContainerProps
10
- scrollable?: boolean
11
- }
12
-
13
- export const ContainerFlexbox: React.FC<ContainerFlexboxProps> = ({
14
- children, containerProps, scrollable = true, ...props
15
- }) => {
16
- return (
17
- <FlexCol
18
- id="container-flexbox"
19
- alignItems="center"
20
- justifyContent="start"
21
- width="100%"
22
- pt={2}
23
- gap={2}
24
- overflow={scrollable ? 'auto' : 'unset'}
25
- {...props}
26
- >
27
- <Container {...containerProps}>{children}</Container>
28
- </FlexCol>
29
- )
30
- }
@@ -1,54 +0,0 @@
1
- import type { DialogProps } from '@mui/material'
2
- import {
3
- Dialog, DialogActions, DialogContent,
4
- } from '@mui/material'
5
- import { ButtonEx } from '@xylabs/react-button'
6
- import { FlexCol } from '@xylabs/react-flexbox'
7
- import type { XyOsContext } from '@xyo-network/os-model'
8
- import { NodeProvider } from '@xyo-network/react-node'
9
- import React, { lazy, Suspense } from 'react'
10
-
11
- const Debug = lazy(() => import(/* webpackChunkName: "Debug" */ '@xyo-network/os-react-debug'))
12
-
13
- export interface DebugDialogProps extends Omit<DialogProps, 'open'> {
14
- closeDebug: () => void
15
- debugOpen: boolean
16
- }
17
-
18
- export const LazyDebug = () => (
19
- <Suspense fallback={<FlexCol />}>
20
- <FlexCol />
21
- <Debug height="100%" />
22
- </Suspense>
23
- )
24
-
25
- export const DebugDialog: React.FC<DebugDialogProps> = ({
26
- closeDebug, debugOpen, ...props
27
- }) => {
28
- return (
29
- <Dialog open={debugOpen} onClose={closeDebug} fullScreen {...props}>
30
- <DialogContent>
31
- <LazyDebug />
32
- </DialogContent>
33
- <DialogActions>
34
- <ButtonEx variant="outlined" onClick={closeDebug}>
35
- Close
36
- </ButtonEx>
37
- </DialogActions>
38
- </Dialog>
39
- )
40
- }
41
-
42
- export interface DebugDialogWithNodeProps extends DebugDialogProps {
43
- context: XyOsContext | undefined | null
44
- }
45
-
46
- export const DebugDialogWithNode: React.FC<DebugDialogWithNodeProps> = ({
47
- closeDebug, debugOpen, context, ...props
48
- }) => {
49
- return (
50
- <NodeProvider node={context?.root}>
51
- <DebugDialog closeDebug={closeDebug} debugOpen={debugOpen} {...props} />
52
- </NodeProvider>
53
- )
54
- }
@@ -1 +0,0 @@
1
- export * from './Dialog.tsx'
@@ -1,54 +0,0 @@
1
- import { animated, useSpring } from '@react-spring/web'
2
- import type { FlexBoxProps } from '@xylabs/react-flexbox'
3
- import React, { useEffect, useState } from 'react'
4
-
5
- export interface RotationAnimationProps extends FlexBoxProps {
6
- rotation: number
7
- }
8
- export const RotationAnimation: React.FC<RotationAnimationProps> = ({ children, rotation }) => {
9
- const [isRotated, setIsRotated] = useState(false)
10
- const [springs, api] = useSpring(() => ({
11
- backfaceVisibility: 'hidden',
12
- config: {
13
- friction: 10,
14
- tension: 300,
15
- },
16
- display: 'inline-block',
17
- from: { rotate: '0deg' },
18
- }))
19
-
20
- const handleHover = () => {
21
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
22
- api.start({
23
- from: { rotate: '0deg' },
24
- to: { rotate: `${rotation}deg` },
25
- })
26
-
27
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
28
- api.start({
29
- from: { rotate: `${rotation}deg` },
30
- to: { rotate: '0deg' },
31
- })
32
- }
33
-
34
- useEffect(() => {
35
- if (!isRotated) {
36
- return
37
- }
38
- const timeoutId = globalThis.setTimeout(() => {
39
- setIsRotated(false)
40
- }, 5)
41
- return () => {
42
- globalThis.clearTimeout(timeoutId)
43
- }
44
- }, [isRotated])
45
-
46
- return (
47
- <animated.div
48
- onMouseEnter={handleHover}
49
- style={{ ...springs }}
50
- >
51
- {children}
52
- </animated.div>
53
- )
54
- }
@@ -1,115 +0,0 @@
1
- import type { Breakpoint, TypographyProps } from '@mui/material'
2
- import { Container, Typography } from '@mui/material'
3
- import { ThrownErrorBoundary } from '@xylabs/react-error'
4
- import type { FlexBoxProps } from '@xylabs/react-flexbox'
5
- import { FlexCol } from '@xylabs/react-flexbox'
6
- import type { ModuleError } from '@xyo-network/payload-model'
7
- import React from 'react'
8
- import type Rollbar from 'rollbar'
9
-
10
- import { NetworkReadyFlexBox } from '../../network/index.ts'
11
- import { ErrorRenderWithSupportDefault } from '../Alert/index.ts'
12
-
13
- export interface SharedDappPageProps extends FlexBoxProps {
14
- checkNetwork?: boolean
15
- noScroll?: boolean
16
- subtitle?: string
17
- titleProps?: TypographyProps
18
- }
19
-
20
- export interface DappPageProps extends SharedDappPageProps {
21
- container?: true | Breakpoint
22
- rollbar?: Rollbar
23
- }
24
-
25
- export const DappTitle: React.FC<SharedDappPageProps> = ({
26
- subtitle, title, ...props
27
- }) => {
28
- return title
29
- ? (
30
- <FlexCol alignItems="flex-start" gap={1} {...props}>
31
- <Typography variant="h3">
32
- <b>{title}</b>
33
- </Typography>
34
- <Typography gutterBottom variant="subtitle2">
35
- {subtitle}
36
- </Typography>
37
- </FlexCol>
38
- )
39
- : null
40
- }
41
-
42
- const InnerDappPage: React.FC<SharedDappPageProps> = ({
43
- noScroll, children, subtitle, title, sx, titleProps, ...props
44
- }) => {
45
- return (
46
- <FlexCol
47
- id="innerPage"
48
- sx={{
49
- margin: 2,
50
- ...sx,
51
- }}
52
- gap={noScroll ? 0 : 2}
53
- alignItems="stretch"
54
- justifyContent="flex-start"
55
- {...props}
56
- >
57
- {title
58
- ? <DappTitle subtitle={subtitle} title={title} {...titleProps} />
59
- : null}
60
- {children}
61
- </FlexCol>
62
- )
63
- }
64
- // This component is written to be used inside of a DappWindow Component
65
- export const DappPage: React.FC<DappPageProps> = ({
66
- checkNetwork, noScroll, subtitle, title, container, rollbar, ...props
67
- }) => {
68
- return (
69
- <ThrownErrorBoundary<ModuleError>
70
- errorComponent={(error, boundaryName) => <ErrorRenderWithSupportDefault scope={boundaryName} error={error} />}
71
- rollbar={rollbar}
72
- scope="DappPage"
73
- >
74
- <NetworkReadyFlexBox skipCheck={!checkNetwork}>
75
- {container
76
- ? (
77
- <Container disableGutters maxWidth={container === true ? 'md' : container}>
78
- {noScroll
79
- ? (
80
- <FlexCol sx={{
81
- position: 'absolute', top: 0, left: 0, right: 0, bottom: 0,
82
- }}
83
- >
84
- <InnerDappPage noScroll={noScroll} title={title} subtitle={subtitle} {...props} flexGrow={1} />
85
- </FlexCol>
86
- )
87
- : (
88
- <FlexCol width="100%" height="100%" alignItems="stretch">
89
- <InnerDappPage noScroll={noScroll} title={title} subtitle={subtitle} {...props} flexGrow={1} />
90
- </FlexCol>
91
- )}
92
- </Container>
93
- )
94
- : noScroll
95
- ? (
96
- <InnerDappPage
97
- sx={{
98
- position: 'absolute',
99
- top: 0,
100
- left: 0,
101
- right: 0,
102
- bottom: 0,
103
- }}
104
- noScroll={noScroll}
105
- title={title}
106
- subtitle={subtitle}
107
- {...props}
108
- flexGrow={1}
109
- />
110
- )
111
- : <InnerDappPage noScroll={noScroll} title={title} subtitle={subtitle} {...props} flexGrow={1} />}
112
- </NetworkReadyFlexBox>
113
- </ThrownErrorBoundary>
114
- )
115
- }
@@ -1,58 +0,0 @@
1
- /* eslint-disable react-x/jsx-no-iife */
2
- import { animated, useTransition } from '@react-spring/web'
3
- import { ErrorRender } from '@xylabs/react-error'
4
- import type { ReactNode } from 'react'
5
- import React from 'react'
6
-
7
- export interface PathToComponent<PathNames extends string = string> {
8
- component: ReactNode
9
- path: PathNames
10
- }
11
-
12
- export interface DappPathSwitcherProps {
13
- activePath?: string
14
- pathToComponent?: PathToComponent[]
15
- }
16
-
17
- export const DappPathSwitcher: React.FC<DappPathSwitcherProps> = ({ activePath, pathToComponent }) => {
18
- // inspired by - https://codesandbox.io/p/sandbox/react-spring-page-transition-3vrk8
19
- const transitions = useTransition(activePath, {
20
- enter: { opacity: 1, transform: 'translate3d(0, 0, 0)' },
21
- from: { opacity: 0, transform: 'translate3d(100vw, 0, 0)' },
22
- leave: { opacity: 0, transform: 'translate3d(0, 0, 0)' },
23
- })
24
- const possibleZIndex = pathToComponent?.findIndex(item => item.path === activePath)
25
- const zIndex = possibleZIndex !== -1 && possibleZIndex !== undefined ? possibleZIndex : 1
26
-
27
- return (
28
- <>
29
- {transitions((transitionProps, activePathRef) => (
30
- <animated.div
31
- style={{
32
- ...transitionProps,
33
- alignItems: 'stretch',
34
- bottom: 0,
35
- display: 'flex',
36
- flexDirection: 'column',
37
- justifyContent: 'stretch',
38
- left: 0,
39
- overflowX: 'hidden',
40
- overflowY: 'auto',
41
- position: 'absolute',
42
- right: 0,
43
- top: 0,
44
- zIndex,
45
- }}
46
- >
47
- {(() => {
48
- const activeIndex = pathToComponent?.findIndex(({ path: componentPath }) => activePathRef === componentPath)
49
- const activeItem = pathToComponent && activeIndex !== -1 && activeIndex !== undefined ? pathToComponent[activeIndex] : undefined
50
- return activeItem
51
- ? activeItem.component
52
- : <ErrorRender error={new Error(`No component found for path: ${activePathRef}`)} scope="DappPathSwitcher" />
53
- })()}
54
- </animated.div>
55
- ))}
56
- </>
57
- )
58
- }
@@ -1,31 +0,0 @@
1
- import type { ChipProps } from '@mui/material'
2
- import { Chip, CircularProgress } from '@mui/material'
3
- import type { RegisteredDappSet } from '@xyo-network/os-model'
4
- import React from 'react'
5
-
6
- export interface DividerChipProps extends ChipProps {
7
- registeredDapps?: RegisteredDappSet[]
8
- }
9
-
10
- export const DividerChip: React.FC<DividerChipProps> = ({ registeredDapps, ...props }) => {
11
- return (
12
- <Chip
13
- avatar={
14
- registeredDapps === undefined
15
- ? (
16
- <span>
17
- <CircularProgress
18
- size="small"
19
- sx={{ display: 'inline' }}
20
- />
21
- </span>
22
- )
23
- : undefined
24
- }
25
- label={`${registeredDapps?.length ? '' : 'Loading '}Beta dApps`}
26
- size="small"
27
- sx={{ gap: 0.5 }}
28
- {...props}
29
- />
30
- )
31
- }
@@ -1,69 +0,0 @@
1
- import {
2
- Divider, Fade, styled,
3
- } from '@mui/material'
4
- import type { DappIntent, InstallationType } from '@xyo-network/os-model'
5
- import type { RegisteredReactDappSet } from '@xyo-network/os-react-model'
6
- import React, { useMemo } from 'react'
7
-
8
- import { DappInstallTypeFilters } from '../../../utils/index.ts'
9
- import { DappContainerMemo } from '../Container.tsx'
10
- import { DividerChip } from './DividerChip.js'
11
-
12
- export interface DappsRowProps {
13
- chipLabel: string
14
- currentIntent?: DappIntent
15
- installType: InstallationType
16
- registeredDappsSet?: RegisteredReactDappSet[]
17
- xnsNetwork: string | undefined
18
- xnsNodeUrl: string | undefined
19
- }
20
-
21
- export const DappsRow: React.FC<DappsRowProps> = ({
22
- chipLabel, currentIntent, installType, registeredDappsSet, xnsNetwork, xnsNodeUrl,
23
- }) => {
24
- const filteredRegisteredDappSets = useMemo(() => DappInstallTypeFilters[installType](registeredDappsSet), [installType, registeredDappsSet])
25
-
26
- return (
27
- <>
28
- <Divider
29
- variant="middle"
30
- sx={{ marginY: 3 }}
31
- flexItem
32
- >
33
- <DividerChip
34
- label={`${filteredRegisteredDappSets === undefined ? 'Loading ' : ''}${chipLabel}`}
35
- registeredDapps={filteredRegisteredDappSets}
36
- />
37
- </Divider>
38
- {filteredRegisteredDappSets?.length
39
- ? (
40
- <Fade in={!!filteredRegisteredDappSets?.length} timeout={1000}>
41
- <StyledGridContainer>
42
- {filteredRegisteredDappSets?.map(
43
- dappSet => (
44
- <DappContainerMemo
45
- currentIntent={currentIntent}
46
- key={dappSet.dapp.config.name}
47
- dappSet={dappSet as RegisteredReactDappSet}
48
- xnsNodeUrl={xnsNodeUrl}
49
- xnsNetwork={xnsNetwork}
50
- />
51
- ),
52
- )}
53
- </StyledGridContainer>
54
- </Fade>
55
- )
56
- : null}
57
- </>
58
- )
59
- }
60
-
61
- export const StyledGridContainer = styled('div', { name: 'StyledGridContainer' })(({ theme }) => ({
62
- display: 'grid',
63
- gridGap: theme.spacing(2),
64
- gridTemplateColumns: `repeat(auto-fit, ${theme.spacing(8)})`,
65
- justifyContent: 'center',
66
- justifyItems: 'center',
67
- paddingTop: theme.spacing(1),
68
- width: '100%',
69
- }))
@@ -1,3 +0,0 @@
1
- export * from './DappPage.tsx'
2
- export * from './DappPathSwitcher.tsx'
3
- export * from './Row.js'
@@ -1,12 +0,0 @@
1
- import React from 'react'
2
-
3
- export const RenderHtml = ({ htmlString }: {
4
- htmlString: string
5
- }) => {
6
- return (
7
- <div
8
- style={{ height: 64, width: 64 }}
9
- dangerouslySetInnerHTML={{ __html: htmlString }}
10
- />
11
- )
12
- }
@@ -1,8 +0,0 @@
1
- export * from './Alert/index.ts'
2
- export * from './Container.js'
3
- export * from './ContainerFlexbox.js'
4
- export * from './Debug/index.ts'
5
- export * from './modules/index.ts'
6
- export * from './Page/index.ts'
7
- export * from './RenderHtml.tsx'
8
- export * from './useDappCaller.ts'
@@ -1,5 +0,0 @@
1
- export interface DappState {
2
- active: boolean
3
- closed: boolean
4
- minimized: boolean
5
- }
@@ -1 +0,0 @@
1
- export const DEFAULT_ICON_SIZE = 84
@@ -1,16 +0,0 @@
1
- import type { DappIntent } from '@xyo-network/os-model'
2
- import { DappIntentTypes } from '@xyo-network/os-model'
3
-
4
- import type { DappState } from './DappState.ts'
5
-
6
- export const deriveDappState = (intent?: DappIntent): DappState => {
7
- const minimized = intent?.intent === DappIntentTypes.Minimize
8
- const active = intent?.intent === DappIntentTypes.Launch
9
- const closed = intent?.intent === DappIntentTypes.Close
10
-
11
- return {
12
- active,
13
- closed,
14
- minimized,
15
- }
16
- }
@@ -1,3 +0,0 @@
1
- export * from './DappState.ts'
2
- export * from './DefaultIconSize.ts'
3
- export * from './deriveDappState.ts'
@@ -1,115 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-misused-promises */
2
- import {
3
- BugReport,
4
- CloseRounded,
5
- RemoveRounded,
6
- } from '@mui/icons-material'
7
- import type { AppBarProps } from '@mui/material'
8
- import {
9
- AppBar, Box, Divider, IconButton, Toolbar, Tooltip, Typography,
10
- } from '@mui/material'
11
- import { FlexGrowRow } from '@xylabs/react-flexbox'
12
- import { ColorSchemeButton } from '@xylabs/react-theme'
13
- import type {
14
- DappName, DappVersion, XyOsContext,
15
- } from '@xyo-network/os-model'
16
- import { DappIntentTypes } from '@xyo-network/os-model'
17
- import { DappIntentCaller } from '@xyo-network/os-runtime'
18
- import React from 'react'
19
-
20
- import { useSendDappIntent } from '../../../intent/index.ts'
21
- import { DebugDialogWithNode } from '../../Debug/index.ts'
22
- import { useDebugClick } from './hooks/index.ts'
23
-
24
- export interface DappBarProps extends AppBarProps {
25
- context?: XyOsContext | null
26
- name?: DappName
27
- simplifiedAppBar?: boolean
28
- version?: DappVersion
29
- }
30
-
31
- export const EmptyDappBarForPadding: React.FC<DappBarProps> = (props) => {
32
- return (
33
- <AppBar
34
- color="primary"
35
- sx={{ flexDirection: 'row' }}
36
- component="div"
37
- position="fixed"
38
- {...props}
39
- >
40
- </AppBar>
41
- )
42
- }
43
-
44
- export const DappBar: React.FC<DappBarProps> = ({
45
- title, context, name, ...props
46
- }) => {
47
- const sendIntent = useSendDappIntent()
48
-
49
- const {
50
- closeDebug, debugOpen, openDebug,
51
- } = useDebugClick()
52
-
53
- return (
54
- <AppBar
55
- elevation={0}
56
- color="transparent"
57
- sx={{ backgroundColor: 'transparent', flexDirection: 'row' }}
58
- component="div"
59
- position="sticky"
60
- {...props}
61
- >
62
- <Toolbar
63
- disableGutters
64
- sx={{ paddingX: 2 }}
65
- >
66
- <Typography noWrap variant="h6" letterSpacing="-1px">
67
- {title}
68
- </Typography>
69
- </Toolbar>
70
- <FlexGrowRow />
71
- <Toolbar
72
- disableGutters
73
- sx={{ paddingX: 2 }}
74
- >
75
- <IconButton
76
- onClick={openDebug}
77
- sx={{ display: { md: 'none', xs: 'flex' } }}
78
- >
79
- <BugReport />
80
- </IconButton>
81
- <Tooltip
82
- title="Toggle Light/Dark Mode"
83
- sx={{ display: { md: 'none', xs: 'flex' } }}
84
- >
85
- <Box>
86
- <ColorSchemeButton />
87
- </Box>
88
- </Tooltip>
89
- <Divider
90
- orientation="vertical"
91
- flexItem
92
- sx={{
93
- display: { md: 'none', xs: 'flex' },
94
- m: 1,
95
- }}
96
- />
97
- <Tooltip title="Minimize">
98
- <IconButton
99
- onClick={async () => await sendIntent?.(DappIntentCaller.buildIntent(DappIntentCaller.OsDappName, DappIntentTypes.Minimize, name))}
100
- >
101
- <RemoveRounded htmlColor="inherit" />
102
- </IconButton>
103
- </Tooltip>
104
- <Tooltip title="Close">
105
- <IconButton
106
- onClick={async () => await sendIntent?.(DappIntentCaller.buildIntent(DappIntentCaller.OsDappName, DappIntentTypes.Close, name))}
107
- >
108
- <CloseRounded htmlColor="inherit" />
109
- </IconButton>
110
- </Tooltip>
111
- </Toolbar>
112
- <DebugDialogWithNode closeDebug={closeDebug} debugOpen={debugOpen} context={context} />
113
- </AppBar>
114
- )
115
- }
@@ -1,79 +0,0 @@
1
- import type { Theme } from '@mui/material'
2
- import { useMediaQuery } from '@mui/material'
3
- import type { FlexBoxProps } from '@xylabs/react-flexbox'
4
- import {
5
- FlexCol, FlexGrowCol, FlexRow,
6
- } from '@xylabs/react-flexbox'
7
- import type { ReactNode } from 'react'
8
- import React from 'react'
9
-
10
- export interface DappChromeBaseProps extends FlexBoxProps {
11
- appBar?: ReactNode
12
- children?: ReactNode
13
- screenMenu?: ReactNode
14
- splashScreen?: ReactNode
15
- }
16
-
17
- export interface DappChromeProps extends DappChromeBaseProps {
18
- largeScreenMenu?: ReactNode
19
- smallScreenMenu?: ReactNode
20
- }
21
-
22
- const DappChromeSmall: React.FC<DappChromeBaseProps> = ({
23
- appBar, children, screenMenu, splashScreen, ...props
24
- }) => {
25
- return (
26
- <FlexCol alignItems="stretch" id="dapp-chrome-container-small" {...props}>
27
- {splashScreen}
28
- <FlexGrowCol
29
- alignItems="stretch"
30
- id="dapp-chrome-small"
31
- justifyContent="start"
32
- sx={{ background: (theme: Theme) => theme.vars?.palette.background.default }}
33
- >
34
- {appBar}
35
- <FlexGrowCol
36
- sx={{ overflowY: 'auto' }}
37
- alignItems="stretch"
38
- >
39
- {children}
40
- </FlexGrowCol>
41
- {screenMenu}
42
- </FlexGrowCol>
43
- </FlexCol>
44
- )
45
- }
46
-
47
- export const DappChromeLarge: React.FC<DappChromeBaseProps> = ({
48
- appBar, children, screenMenu, splashScreen, ...props
49
- }) => {
50
- return (
51
- <FlexRow alignItems="stretch" id="dapp-chrome-container-large" {...props}>
52
- {splashScreen}
53
- {screenMenu}
54
- <FlexGrowCol
55
- alignItems="stretch"
56
- id="dapp-chrome-large"
57
- justifyContent="start"
58
- sx={{ background: (theme: Theme) => theme.vars?.palette.background.default }}
59
- >
60
- {appBar}
61
- <FlexGrowCol
62
- sx={{ overflowY: 'auto' }}
63
- alignItems="stretch"
64
- justifyContent="flex-start"
65
- >
66
- {children}
67
- </FlexGrowCol>
68
- </FlexGrowCol>
69
- </FlexRow>
70
- )
71
- }
72
-
73
- export const DappChrome: React.FC<DappChromeProps> = ({
74
- largeScreenMenu, smallScreenMenu, ...props
75
- }) => {
76
- const isMedium = useMediaQuery((theme: Theme) => theme.breakpoints.up('md'))
77
-
78
- return isMedium ? <DappChromeLarge screenMenu={largeScreenMenu} {...props} /> : <DappChromeSmall screenMenu={smallScreenMenu} {...props} />
79
- }