@xyo-network/os-react-runtime 5.0.12 → 6.0.0

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 (45) hide show
  1. package/dist/browser/index.mjs +102 -91
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/types/helpers/BridgeActivityHelper.d.ts +4 -20
  4. package/dist/types/helpers/BridgeActivityHelper.d.ts.map +1 -1
  5. package/dist/types/modules/Dapp/Button/StyledComponents.d.ts.map +1 -1
  6. package/dist/types/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
  7. package/dist/types/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
  8. package/dist/types/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +1 -1
  9. package/dist/types/modules/Dapp/modules/Window/hooks/useExposedNode.d.ts +1 -9
  10. package/dist/types/modules/Dapp/modules/Window/hooks/useExposedNode.d.ts.map +1 -1
  11. package/dist/types/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.d.ts.map +1 -1
  12. package/dist/types/modules/dapps/accounts/hooks/useAccountArchivist.d.ts +1 -9
  13. package/dist/types/modules/dapps/accounts/hooks/useAccountArchivist.d.ts.map +1 -1
  14. package/dist/types/modules/dapps/table/head/components/StyledTableRowHeader.d.ts.map +1 -1
  15. package/dist/types/modules/widgets/StackOfWidgets.d.ts.map +1 -1
  16. package/dist/types/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts.map +1 -1
  17. package/dist/types/modules/widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
  18. package/dist/types/modules/widgets/WidgetCard.d.ts.map +1 -1
  19. package/dist/types/settings/Theme/ThemeCssVars.d.ts.map +1 -1
  20. package/package.json +59 -60
  21. package/src/helpers/BridgeActivityHelper.ts +2 -2
  22. package/src/helpers/BrowserLocator.ts +4 -4
  23. package/src/modules/Dapp/Button/LaunchFrame.tsx +1 -1
  24. package/src/modules/Dapp/Button/StyledComponents.tsx +7 -6
  25. package/src/modules/Dapp/Button/StyledDappIconBuilder.tsx +1 -1
  26. package/src/modules/Dapp/modules/Window/Chrome.tsx +2 -2
  27. package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +2 -2
  28. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +3 -2
  29. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.tsx +1 -1
  30. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.tsx +1 -1
  31. package/src/modules/Dapp/modules/Window/components/menu/BottomMenuArea.tsx +3 -3
  32. package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +1 -1
  33. package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +13 -8
  34. package/src/modules/Dapp/modules/Window/components/menu/StyledListItems.tsx +1 -1
  35. package/src/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.tsx +2 -1
  36. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.tsx +1 -1
  37. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx +3 -4
  38. package/src/modules/dapps/table/head/components/StyledTableRowHeader.tsx +1 -1
  39. package/src/modules/network/components/LoadingIndicator.tsx +4 -4
  40. package/src/modules/widgets/StackOfWidgets.tsx +3 -4
  41. package/src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx +3 -4
  42. package/src/modules/widgets/Types/Tables/BooleanTable.tsx +5 -4
  43. package/src/modules/widgets/WidgetCard.tsx +4 -3
  44. package/src/settings/Theme/ThemeCssVars.ts +8 -7
  45. package/src/utils/DappInstallTypeFilters.ts +2 -2
@@ -3,10 +3,10 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
3
3
 
4
4
  // src/helpers/BridgeActivityHelper.ts
5
5
  import { assertEx } from "@xylabs/assert";
6
+ import { BaseEmitter } from "@xylabs/events";
6
7
  import { GenericPayloadDivinerConfigSchema } from "@xyo-network/diviner-payload-generic";
7
8
  import { PayloadDivinerQuerySchema } from "@xyo-network/diviner-payload-model";
8
- import { ModuleBaseEmitter } from "@xyo-network/module-event-emitter";
9
- var BridgeActivityHelper = class extends ModuleBaseEmitter {
9
+ var BridgeActivityHelper = class extends BaseEmitter {
10
10
  static {
11
11
  __name(this, "BridgeActivityHelper");
12
12
  }
@@ -43,14 +43,14 @@ var GenericPayloadDivinerTags = {
43
43
  "network.xyo.generic.payload.diviner": "GenericPayloadDiviner"
44
44
  };
45
45
  var BrowserLocator = new ModuleFactoryLocator();
46
- BrowserLocator.register(GenericPayloadDiviner, GenericPayloadDivinerTags);
47
- BrowserLocator.register(IndexedDbArchivist, {
46
+ BrowserLocator.register(GenericPayloadDiviner.factory(), GenericPayloadDivinerTags);
47
+ BrowserLocator.register(IndexedDbArchivist.factory(), {
48
48
  "network.xyo.archivist.persistence.scope": "device"
49
49
  }, "network.xyo.archivist.config");
50
- BrowserLocator.register(IndexedDbPayloadDiviner, {
50
+ BrowserLocator.register(IndexedDbPayloadDiviner.factory(), {
51
51
  "network.xyo.archivist.persistence.scope": "device"
52
52
  }, "network.xyo.diviner.payload.config");
53
- BrowserLocator.register(IndexedDbBoundWitnessDiviner, {
53
+ BrowserLocator.register(IndexedDbBoundWitnessDiviner.factory(), {
54
54
  "network.xyo.archivist.persistence.scope": "device"
55
55
  }, "network.xyo.diviner.boundwitness.config");
56
56
  BrowserLocator.freeze();
@@ -309,32 +309,29 @@ var ResourceHooks = class {
309
309
  constructor(buildResource, buildViews) {
310
310
  this.buildResource = buildResource;
311
311
  this.buildViews = buildViews;
312
- this.resourceViewsFromContext = (context, pathPrefix) => {
313
- const [resource, resourceError] = this.buildResource(context, pathPrefix);
314
- const views = this.buildViews(resource);
315
- return {
316
- ...views,
317
- resource,
318
- resourceError
319
- };
320
- };
321
- this.useBuildResourceFromProvidedNode = (pathPrefix) => {
322
- const xyOs = useXyOsUiContext();
323
- return this.buildResource(xyOs, pathPrefix);
312
+ }
313
+ resourceViewsFromContext = /* @__PURE__ */ __name((context, pathPrefix) => {
314
+ const [resource, resourceError] = this.buildResource(context, pathPrefix);
315
+ const views = this.buildViews(resource);
316
+ return {
317
+ ...views,
318
+ resource,
319
+ resourceError
324
320
  };
325
- this.useResourceViewsFromProvidedNode = (pathPrefix) => {
326
- const [resource, resourceError] = this.useBuildResourceFromProvidedNode(pathPrefix);
327
- const views = this.buildViews(resource);
328
- return {
329
- ...views,
330
- resource,
331
- resourceError
332
- };
321
+ }, "resourceViewsFromContext");
322
+ useBuildResourceFromProvidedNode = /* @__PURE__ */ __name((pathPrefix) => {
323
+ const xyOs = useXyOsUiContext();
324
+ return this.buildResource(xyOs, pathPrefix);
325
+ }, "useBuildResourceFromProvidedNode");
326
+ useResourceViewsFromProvidedNode = /* @__PURE__ */ __name((pathPrefix) => {
327
+ const [resource, resourceError] = this.useBuildResourceFromProvidedNode(pathPrefix);
328
+ const views = this.buildViews(resource);
329
+ return {
330
+ ...views,
331
+ resource,
332
+ resourceError
333
333
  };
334
- }
335
- resourceViewsFromContext;
336
- useBuildResourceFromProvidedNode;
337
- useResourceViewsFromProvidedNode;
334
+ }, "useResourceViewsFromProvidedNode");
338
335
  };
339
336
 
340
337
  // src/modules/resource/useCleanup.ts
@@ -1189,7 +1186,7 @@ var DappLaunchFrame = /* @__PURE__ */ __name(({ bgColor, children, id, launchLef
1189
1186
  style: {
1190
1187
  ...scaleProps,
1191
1188
  alignItems: "start",
1192
- background: bgColor ?? theme.palette.background.default,
1189
+ background: bgColor ?? theme.vars?.palette.background.default,
1193
1190
  display: "flex",
1194
1191
  height: "100%",
1195
1192
  justifyContent: "start",
@@ -1214,8 +1211,9 @@ var decomposeProps = /* @__PURE__ */ __name((dappIcon, props) => {
1214
1211
  }, "decomposeProps");
1215
1212
 
1216
1213
  // src/modules/Dapp/Button/StyledComponents.tsx
1217
- import { alpha, styled } from "@mui/material";
1214
+ import { styled } from "@mui/material";
1218
1215
  import { ButtonEx as ButtonEx2 } from "@xylabs/react-button";
1216
+ import { alphaCss } from "@xylabs/react-theme";
1219
1217
  import { TypographyEx } from "@xyo-network/react-shared";
1220
1218
  var borderRadiusFactor = 1.5;
1221
1219
  var StyledDappIconButtonEx = styled(ButtonEx2, {
@@ -1229,7 +1227,7 @@ var StyledDappIconButtonEx = styled(ButtonEx2, {
1229
1227
  "&:before": {
1230
1228
  WebkitBackdropFilter: "blur(20px)",
1231
1229
  backdropFilter: "blur(20px)",
1232
- backgroundColor: alpha(theme.palette.background.paper, 0.5),
1230
+ backgroundColor: alphaCss(theme.vars?.palette.background.paper ?? "#fff", 0.5),
1233
1231
  borderRadius: theme.spacing(borderRadiusFactor),
1234
1232
  content: "''",
1235
1233
  inset: 0,
@@ -1246,9 +1244,9 @@ var StyledDappIconButtonEx = styled(ButtonEx2, {
1246
1244
  },
1247
1245
  "WebkitBackdropFilter": "blur(20px)",
1248
1246
  "backdropFilter": "blur(20px)",
1249
- "backgroundColor": alpha(theme.palette.background.paper, 0.5),
1247
+ "backgroundColor": alphaCss(theme.vars?.palette.background.paper ?? "#fff", 0.5),
1250
1248
  "borderRadius": theme.spacing(borderRadiusFactor),
1251
- "color": theme.palette.text.primary,
1249
+ "color": theme.vars?.palette.text.primary,
1252
1250
  "position": "relative",
1253
1251
  "transition": "transform 0.15s linear"
1254
1252
  };
@@ -1258,14 +1256,14 @@ var StyledDappName = styled(TypographyEx, {
1258
1256
  })(({ theme }) => ({
1259
1257
  // WebkitBoxOrient: 'vertical',
1260
1258
  WebkitLineClamp: 2,
1261
- color: theme.palette.text.primary,
1259
+ color: theme.vars?.palette.text.primary,
1262
1260
  flexWrap: "wrap",
1263
1261
  fontWeight: 700,
1264
1262
  letterSpacing: "-0.5px",
1265
1263
  lineClamp: 2,
1266
1264
  textAlign: "center",
1267
1265
  textOverflow: "ellipsis",
1268
- textShadow: `1px 1px 3px ${alpha(theme.palette.common.black, 0.3)}`,
1266
+ textShadow: `1px 1px 3px ${alphaCss(theme.vars?.palette.common.black ?? "#000", 0.3)}`,
1269
1267
  whiteSpace: "initial",
1270
1268
  wordWrap: "break-word"
1271
1269
  }));
@@ -1763,7 +1761,9 @@ var useManageDappInjectableParamsFromRoute = /* @__PURE__ */ __name((context) =>
1763
1761
  try {
1764
1762
  if (context) {
1765
1763
  const mod = assertEx7(await context?.root.resolve("DappArchivist"), () => "DappArchivist not found");
1766
- archivist = asArchivistInstance(mod, () => "DappArchivist not is not an Archivist");
1764
+ archivist = asArchivistInstance(mod, () => "DappArchivist not is not an Archivist", {
1765
+ required: true
1766
+ });
1767
1767
  archivist.on("inserted", listener);
1768
1768
  }
1769
1769
  } catch (e) {
@@ -2178,7 +2178,7 @@ var DappChromeSmall = /* @__PURE__ */ __name(({ appBar, children, screenMenu, sp
2178
2178
  id: "dapp-chrome-small",
2179
2179
  justifyContent: "start",
2180
2180
  sx: {
2181
- background: /* @__PURE__ */ __name((theme) => theme.palette.background.default, "background")
2181
+ background: /* @__PURE__ */ __name((theme) => theme.vars?.palette.background.default, "background")
2182
2182
  }
2183
2183
  }, appBar, /* @__PURE__ */ React11.createElement(FlexGrowCol, {
2184
2184
  sx: {
@@ -2197,7 +2197,7 @@ var DappChromeLarge = /* @__PURE__ */ __name(({ appBar, children, screenMenu, sp
2197
2197
  id: "dapp-chrome-large",
2198
2198
  justifyContent: "start",
2199
2199
  sx: {
2200
- background: /* @__PURE__ */ __name((theme) => theme.palette.background.default, "background")
2200
+ background: /* @__PURE__ */ __name((theme) => theme.vars?.palette.background.default, "background")
2201
2201
  }
2202
2202
  }, appBar, /* @__PURE__ */ React11.createElement(FlexGrowCol, {
2203
2203
  sx: {
@@ -2219,8 +2219,9 @@ var DappChrome = /* @__PURE__ */ __name(({ largeScreenMenu, smallScreenMenu, ...
2219
2219
  }, "DappChrome");
2220
2220
 
2221
2221
  // src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx
2222
- import { alpha as alpha2, Card as Card2, CardContent as CardContent2, Chip, Container, Divider as Divider2, Typography as Typography4, useTheme as useTheme4 } from "@mui/material";
2222
+ import { Card as Card2, CardContent as CardContent2, Chip, Container, Divider as Divider2, Typography as Typography4, useTheme as useTheme4 } from "@mui/material";
2223
2223
  import { FlexGrowCol as FlexGrowCol3, FlexRow as FlexRow5 } from "@xylabs/react-flexbox";
2224
+ import { alphaCss as alphaCss2 } from "@xylabs/react-theme";
2224
2225
  import React15 from "react";
2225
2226
 
2226
2227
  // src/modules/Dapp/modules/Window/components/DefaultComingSoon/InstallButtonSection.tsx
@@ -2276,7 +2277,7 @@ var DeveloperLinkSection = /* @__PURE__ */ __name(({ developerLink = "https://xy
2276
2277
  },
2277
2278
  ...props
2278
2279
  }, /* @__PURE__ */ React13.createElement(LinkEx, {
2279
- color: theme.palette.info.main,
2280
+ color: theme.vars?.palette.info.main,
2280
2281
  href: developerLink,
2281
2282
  target: "_blank"
2282
2283
  }, developerLink));
@@ -2333,7 +2334,7 @@ var SummarySection = /* @__PURE__ */ __name(({ name, dappIconSvg, version = "1.0
2333
2334
  fontSize: "small"
2334
2335
  }), /* @__PURE__ */ React14.createElement(Typography3, {
2335
2336
  variant: "body1",
2336
- color: theme.palette.success.main
2337
+ color: theme.vars?.palette.success.main
2337
2338
  }, "XY Labs")), developerLink ? /* @__PURE__ */ React14.createElement(DeveloperLinkSection, {
2338
2339
  developerLink
2339
2340
  }) : null)))));
@@ -2359,8 +2360,8 @@ var DefaultComingSoon = /* @__PURE__ */ __name(({ children, desc = defaultDescri
2359
2360
  }, /* @__PURE__ */ React15.createElement(Chip, {
2360
2361
  label: "This app is not yet publicly available on xyOS",
2361
2362
  sx: {
2362
- backgroundColor: alpha2(theme.palette.info.main, 0.2),
2363
- color: theme.palette.info.main,
2363
+ backgroundColor: alphaCss2(theme.vars?.palette.info.main ?? "#000", 0.2),
2364
+ color: theme.vars?.palette.info.main,
2364
2365
  width: "100%"
2365
2366
  }
2366
2367
  })), /* @__PURE__ */ React15.createElement(FlexGrowCol3, {
@@ -2442,15 +2443,15 @@ var StyledBottomNavigationAction = styled2(BottomNavigationAction, {
2442
2443
  const darkMode = useIsDark();
2443
2444
  return {
2444
2445
  "&.Mui-selected": {
2445
- color: darkMode ? theme.palette.primary.main : theme.palette.secondary.main
2446
+ color: darkMode ? theme.vars?.palette.primary.main : theme.vars?.palette.secondary.main
2446
2447
  }
2447
2448
  };
2448
2449
  });
2449
2450
 
2450
2451
  // src/modules/Dapp/modules/Window/components/menu/Drawer.tsx
2451
- import { alpha as alpha3, darken, Drawer, List, ListItem, ListItemIcon, ListItemText, Tooltip as Tooltip3, Typography as Typography6, useTheme as useTheme6 } from "@mui/material";
2452
+ import { alpha, Drawer, List, ListItem, ListItemIcon, ListItemText, Tooltip as Tooltip3, Typography as Typography6, useTheme as useTheme6 } from "@mui/material";
2452
2453
  import { FlexCol as FlexCol6, FlexGrowRow as FlexGrowRow4, FlexRow as FlexRow7 } from "@xylabs/react-flexbox";
2453
- import { useIsDark as useIsDark2 } from "@xylabs/react-theme";
2454
+ import { alphaCss as alphaCss3, darkenCss, useIsDark as useIsDark2 } from "@xylabs/react-theme";
2454
2455
  import { XyOsMonitor as XyOsMonitor3 } from "@xyo-network/os-runtime";
2455
2456
  import React19, { useEffect as useEffect16, useState as useState15 } from "react";
2456
2457
 
@@ -2629,18 +2630,18 @@ var BottomMenuArea = /* @__PURE__ */ __name(({ openDebug, backgroundColor }) =>
2629
2630
  gap: 0.5
2630
2631
  }, /* @__PURE__ */ React18.createElement(Typography5, {
2631
2632
  variant: "body2",
2632
- color: theme.palette.text.primary
2633
+ color: theme.vars?.palette.text.primary
2633
2634
  }, "Powered By"), /* @__PURE__ */ React18.createElement("img", {
2634
2635
  style: {
2635
- color: theme.palette.text.primary,
2636
- fill: theme.palette.text.primary
2636
+ color: theme.vars?.palette.text.primary,
2637
+ fill: theme.vars?.palette.text.primary
2637
2638
  },
2638
2639
  src: default21,
2639
2640
  width: "auto",
2640
2641
  height: "20px"
2641
2642
  })), /* @__PURE__ */ React18.createElement(Typography5, {
2642
2643
  variant: "caption",
2643
- color: theme.palette.text.primary
2644
+ color: theme.vars?.palette.text.primary
2644
2645
  }, "Copyright \xA9 2024 XY Labs, Inc."), /* @__PURE__ */ React18.createElement(Stack, {
2645
2646
  gap: 0.5,
2646
2647
  flexDirection: "row"
@@ -2678,7 +2679,7 @@ var StyledListItemButton = styled3(ListItemButton, {
2678
2679
  name: "StyledListItemButton",
2679
2680
  shouldForwardProp: /* @__PURE__ */ __name((prop) => prop !== "active", "shouldForwardProp")
2680
2681
  })(({ theme, active }) => {
2681
- const activeOrHoverColor = theme.palette.primary.main;
2682
+ const activeOrHoverColor = theme.vars?.palette.primary.main;
2682
2683
  return {
2683
2684
  "position": "relative",
2684
2685
  "padding": "8px 16px",
@@ -2707,8 +2708,8 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
2707
2708
  const [path, setPath] = useState15("");
2708
2709
  const darkMode = useIsDark2();
2709
2710
  const theme = useTheme6();
2710
- const drawerColor = darkMode ? theme.palette.background.paper : darken(theme.palette.primary.main, 0.5);
2711
- const activeColor = theme.palette.primary.light;
2711
+ const drawerColor = darkMode ? theme.vars?.palette.background.paper : darkenCss(theme.vars?.palette.primary.main ?? "#fff", 0.5);
2712
+ const activeColor = theme.vars?.palette.primary.light;
2712
2713
  useEffect16(() => {
2713
2714
  if (menuConfig?.defaultPath && menuItems && activePath) {
2714
2715
  const newPath = menuItems.find((item) => activePath === item.path)?.path ?? "";
@@ -2793,13 +2794,13 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
2793
2794
  paddingY: 0.5,
2794
2795
  sx: {
2795
2796
  "&:hover": {
2796
- backgroundColor: alpha3("#ffffff", 0.05)
2797
+ backgroundColor: alpha("#ffffff", 0.05)
2797
2798
  },
2798
2799
  "borderRadius": "10px"
2799
2800
  }
2800
2801
  }, /* @__PURE__ */ React19.createElement(ListItemIcon, {
2801
2802
  sx: {
2802
- color: pathFromPayload === path ? activeColor : alpha3("#fff", 0.3),
2803
+ color: pathFromPayload === path ? activeColor : alpha("#fff", 0.3),
2803
2804
  justifyContent: "center"
2804
2805
  }
2805
2806
  }, /* @__PURE__ */ React19.createElement(StyledMenuIconWrapSpan, {
@@ -2809,9 +2810,13 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
2809
2810
  }
2810
2811
  }, "ref")
2811
2812
  })), /* @__PURE__ */ React19.createElement(ListItemText, {
2812
- primaryTypographyProps: {
2813
- fontWeight: path === pathFromPayload ? "bold" : "inherit",
2814
- color: pathFromPayload === path ? "inherit" : alpha3(theme.palette.text.primary, 0.5)
2813
+ slotProps: {
2814
+ primary: {
2815
+ typography: {
2816
+ fontWeight: path === pathFromPayload ? "bold" : "inherit",
2817
+ color: pathFromPayload === path ? "inherit" : alphaCss3(theme.vars?.palette.text.primary ?? "#000", 0.5)
2818
+ }
2819
+ }
2815
2820
  },
2816
2821
  primary: primaryText,
2817
2822
  style: {
@@ -2819,7 +2824,7 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
2819
2824
  }
2820
2825
  }))))))), /* @__PURE__ */ React19.createElement(BottomMenuArea, {
2821
2826
  openDebug,
2822
- backgroundColor: theme.palette.primary.dark
2827
+ backgroundColor: theme.vars?.palette.primary.dark ?? "#000"
2823
2828
  })));
2824
2829
  }, "DappMenuDrawer");
2825
2830
 
@@ -3033,8 +3038,8 @@ var StyledSplashContainer = styled4(FlexCol8, {
3033
3038
  name: "StyledSplashContainer"
3034
3039
  })(({ theme }) => {
3035
3040
  return {
3036
- background: theme.palette.background.default,
3037
- color: theme.palette.text.primary,
3041
+ background: theme.vars?.palette.background.default,
3042
+ color: theme.vars?.palette.text.primary,
3038
3043
  gap: theme.spacing(1),
3039
3044
  height: "100%",
3040
3045
  left: 0,
@@ -3301,10 +3306,10 @@ var NetworkLoadingIndicator = /* @__PURE__ */ __name(({ highContrast }) => {
3301
3306
  const darkMode = useIsDark3();
3302
3307
  const theme = useTheme7();
3303
3308
  const { networkReady } = useOsNetwork();
3304
- const highContrastSuccessColor = darkMode ? theme.palette.success.dark : theme.palette.success.main;
3305
- const successColor = highContrast ? highContrastSuccessColor : theme.palette.success.main;
3306
- const highContrastErrorColor = darkMode ? theme.palette.success.dark : theme.palette.error.main;
3307
- const errorColor = highContrast ? highContrastErrorColor : theme.palette.error.main;
3309
+ const highContrastSuccessColor = darkMode ? theme.vars?.palette.success.dark : theme.vars?.palette.success.main;
3310
+ const successColor = highContrast ? highContrastSuccessColor : theme.vars?.palette.success.main;
3311
+ const highContrastErrorColor = darkMode ? theme.vars?.palette.success.dark : theme.vars?.palette.error.main;
3312
+ const errorColor = highContrast ? highContrastErrorColor : theme.vars?.palette.error.main;
3308
3313
  const NetworkComponent = useMemo17(() => {
3309
3314
  if (networkReady) {
3310
3315
  const connectionReady = true;
@@ -3663,7 +3668,8 @@ var ShiftAnimation = /* @__PURE__ */ __name(({ startAnimation = false, animation
3663
3668
 
3664
3669
  // src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx
3665
3670
  import { FiberManualRecordRounded } from "@mui/icons-material";
3666
- import { alpha as alpha4, Box as Box2, useTheme as useTheme8 } from "@mui/material";
3671
+ import { Box as Box2, useTheme as useTheme8 } from "@mui/material";
3672
+ import { alphaCss as alphaCss4 } from "@xylabs/react-theme";
3667
3673
  import React36 from "react";
3668
3674
  var TwoToneBulletPoint = /* @__PURE__ */ __name((props) => {
3669
3675
  const theme = useTheme8();
@@ -3673,7 +3679,7 @@ var TwoToneBulletPoint = /* @__PURE__ */ __name((props) => {
3673
3679
  "&:hover": {
3674
3680
  padding: 0.2
3675
3681
  },
3676
- "backgroundColor": alpha4(theme.palette.secondary.main, 0.2),
3682
+ "backgroundColor": alphaCss4(theme.vars?.palette.secondary.main ?? "#000", 0.2),
3677
3683
  "borderRadius": 2,
3678
3684
  "padding": 0.4
3679
3685
  },
@@ -3954,7 +3960,7 @@ var StyledTableRowHeader = styled7(TableRow, {
3954
3960
  name: "StyledTableRowHeader"
3955
3961
  })(({ theme }) => ({
3956
3962
  "& .MuiTableCell-root": {
3957
- backgroundColor: theme.palette.background.paper
3963
+ backgroundColor: theme.vars?.palette.background.paper
3958
3964
  }
3959
3965
  }));
3960
3966
 
@@ -4015,9 +4021,10 @@ var NextIteratorFlexbox = /* @__PURE__ */ __name(({ next: changePage, loading, .
4015
4021
 
4016
4022
  // src/modules/widgets/WidgetCard.tsx
4017
4023
  import { ArrowForwardRounded, HistoryRounded, RefreshRounded } from "@mui/icons-material";
4018
- import { alpha as alpha5, Box as Box3, CardContent as CardContent4, IconButton as IconButton4, Tooltip as Tooltip6, Typography as Typography11, useTheme as useTheme9 } from "@mui/material";
4024
+ import { Box as Box3, CardContent as CardContent4, IconButton as IconButton4, Tooltip as Tooltip6, Typography as Typography11, useTheme as useTheme9 } from "@mui/material";
4019
4025
  import { ButtonEx as ButtonEx5 } from "@xylabs/react-button";
4020
4026
  import { FlexCol as FlexCol14, FlexGrowRow as FlexGrowRow7, FlexRow as FlexRow9 } from "@xylabs/react-flexbox";
4027
+ import { alphaCss as alphaCss5 } from "@xylabs/react-theme";
4021
4028
  import { CardEx } from "@xyo-network/react-card";
4022
4029
  import { DateTime } from "luxon";
4023
4030
  import React46 from "react";
@@ -4060,7 +4067,7 @@ var WidgetCard = /* @__PURE__ */ __name(({ widgetName, widgetContent, widgetPath
4060
4067
  return /* @__PURE__ */ React46.createElement(CardEx, {
4061
4068
  ...props,
4062
4069
  sx: {
4063
- backgroundColor: alpha5(theme.palette.background.paper, 0.4),
4070
+ backgroundColor: alphaCss5(theme.vars?.palette.background.paper ?? "#000", 0.4),
4064
4071
  display: "flex",
4065
4072
  height: "300px",
4066
4073
  width: "300px"
@@ -4082,7 +4089,7 @@ var WidgetCard = /* @__PURE__ */ __name(({ widgetName, widgetContent, widgetPath
4082
4089
  justifyContent: "space-between",
4083
4090
  alignItems: "center"
4084
4091
  }, /* @__PURE__ */ React46.createElement(Typography11, {
4085
- color: theme.palette.text.primary,
4092
+ color: theme.vars?.palette.text.primary,
4086
4093
  fontWeight: theme.typography.fontWeightMedium,
4087
4094
  variant: "h6"
4088
4095
  }, widgetName), /* @__PURE__ */ React46.createElement(IconButton4, null, /* @__PURE__ */ React46.createElement(RefreshRounded, null))), /* @__PURE__ */ React46.createElement(Box3, {
@@ -4116,8 +4123,9 @@ import { useIsDark as useIsDark4 } from "@xylabs/react-theme";
4116
4123
  import React54 from "react";
4117
4124
 
4118
4125
  // src/modules/widgets/StackOfWidgets.tsx
4119
- import { alpha as alpha8, Box as Box4, useTheme as useTheme11 } from "@mui/material";
4126
+ import { Box as Box4, useTheme as useTheme11 } from "@mui/material";
4120
4127
  import { animated as animated4, to as interpolate, useSprings } from "@react-spring/web";
4128
+ import { alphaCss as alphaCss8 } from "@xylabs/react-theme";
4121
4129
  import React53, { useState as useState22 } from "react";
4122
4130
  import { useDrag } from "react-use-gesture";
4123
4131
 
@@ -4127,7 +4135,8 @@ import { FlexCol as FlexCol15, FlexGrowRow as FlexGrowRow8 } from "@xylabs/react
4127
4135
  import React47 from "react";
4128
4136
 
4129
4137
  // src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx
4130
- import { alpha as alpha6, LinearProgress as LinearProgress2, styled as styled8 } from "@mui/material";
4138
+ import { LinearProgress as LinearProgress2, styled as styled8 } from "@mui/material";
4139
+ import { alphaCss as alphaCss6 } from "@xylabs/react-theme";
4131
4140
  var StyledLinearProgress = styled8(LinearProgress2, {
4132
4141
  name: "StyledLinearProgress"
4133
4142
  })(({ theme }) => ({
@@ -4137,7 +4146,7 @@ var StyledLinearProgress = styled8(LinearProgress2, {
4137
4146
  "MozBoxSizing": "border-box",
4138
4147
  "WebkitBoxSizing": "border-box",
4139
4148
  "background": "transparent",
4140
- "borderBottom": `1px solid ${alpha6(theme.palette.text.secondary, 0.3)}`,
4149
+ "borderBottom": `1px solid ${alphaCss6(theme.vars?.palette.text.secondary ?? "#000", 0.3)}`,
4141
4150
  "boxSizing": "border-box",
4142
4151
  "height": theme.spacing(0.25)
4143
4152
  }));
@@ -4259,8 +4268,9 @@ import React51 from "react";
4259
4268
 
4260
4269
  // src/modules/widgets/Types/Tables/BooleanTable.tsx
4261
4270
  import { CircleRounded } from "@mui/icons-material";
4262
- import { alpha as alpha7, Paper as Paper2, styled as styled9, TableRow as TableRow2, Typography as Typography14 } from "@mui/material";
4271
+ import { Paper as Paper2, styled as styled9, TableRow as TableRow2, Typography as Typography14 } from "@mui/material";
4263
4272
  import { FlexCol as FlexCol17, FlexGrowRow as FlexGrowRow10, FlexRow as FlexRow10 } from "@xylabs/react-flexbox";
4273
+ import { alphaCss as alphaCss7 } from "@xylabs/react-theme";
4264
4274
  import React50 from "react";
4265
4275
  var sampleData2 = [
4266
4276
  {
@@ -4293,20 +4303,20 @@ var StyledLightTableRow = styled9(Paper2, {
4293
4303
  var StyledTableColumnTitle = styled9(Typography14, {
4294
4304
  name: "StyledTableColumnTitle"
4295
4305
  })(({ theme }) => ({
4296
- color: theme.palette.text.secondary,
4306
+ color: theme.vars?.palette.text.secondary,
4297
4307
  fontWeight: theme.typography.fontWeightBold,
4298
4308
  textTransform: "uppercase"
4299
4309
  }));
4300
4310
  var DefaultTrueOutput = styled9(CircleRounded, {
4301
4311
  name: "DefaultTrueOutput"
4302
4312
  })(({ theme }) => ({
4303
- fill: theme.palette.success.main,
4313
+ fill: theme.vars?.palette.success.main,
4304
4314
  fontSize: "10px"
4305
4315
  }));
4306
4316
  var DefaultFalseOutput = styled9(CircleRounded, {
4307
4317
  name: "DefaultFalseOutput"
4308
4318
  })(({ theme }) => ({
4309
- fill: alpha7(theme.palette.text.disabled, 0.5),
4319
+ fill: alphaCss7(theme.vars?.palette.text.disabled ?? "#111", 0.5),
4310
4320
  fontSize: "10px"
4311
4321
  }));
4312
4322
  var defaultTrueOutput = /* @__PURE__ */ React50.createElement(DefaultTrueOutput, null);
@@ -4478,7 +4488,7 @@ function Deck() {
4478
4488
  style: {
4479
4489
  // WebkitBackdropFilter: 'blur(10px)',
4480
4490
  // backdropFilter: 'blur(10px)',
4481
- backgroundColor: alpha8(theme.palette.background.paper, 0.2),
4491
+ backgroundColor: alphaCss8(theme.vars?.palette.background.paper ?? "#000", 0.2),
4482
4492
  backgroundPosition: "center center",
4483
4493
  backgroundRepeat: "no-repeat",
4484
4494
  backgroundSize: "auto 85%",
@@ -4532,16 +4542,17 @@ import { ThemeProvider } from "@mui/material";
4532
4542
  import React55, { useMemo as useMemo20 } from "react";
4533
4543
 
4534
4544
  // src/settings/Theme/ThemeCssVars.ts
4535
- import { alpha as alpha9, createTheme, darken as darken2, lighten } from "@mui/material";
4545
+ import { createTheme, darken, lighten } from "@mui/material";
4546
+ import { alphaCss as alphaCss9 } from "@xylabs/react-theme";
4536
4547
  var defaultIconBackground = "#A060E0";
4537
4548
  var defaultIconBackgroundHover = "#bdade8";
4538
4549
  var DynamicIconBgGradientBuilder = {
4539
- iconBgGradientBuilder: /* @__PURE__ */ __name((baseColor) => `linear-gradient(148deg, ${baseColor} 0%, ${darken2(baseColor, 0.3)} 100%);`, "iconBgGradientBuilder"),
4550
+ iconBgGradientBuilder: /* @__PURE__ */ __name((baseColor) => `linear-gradient(148deg, ${baseColor} 0%, ${darken(baseColor, 0.3)} 100%);`, "iconBgGradientBuilder"),
4540
4551
  iconBgHoverGradientBuilder: /* @__PURE__ */ __name((baseColor) => `linear-gradient(148deg, ${lighten(baseColor, 0.5)} 0%, ${lighten(baseColor, 0.2)} 100%);`, "iconBgHoverGradientBuilder")
4541
4552
  };
4542
4553
  var StaticIconBgGradient = {
4543
- iconGradient: `linear-gradient(148deg, ${defaultIconBackground} 0%, ${darken2(defaultIconBackground, 0.35)} 100%);`,
4544
- iconGradientHover: `linear-gradient(148deg, ${defaultIconBackgroundHover} 0%, ${darken2(defaultIconBackgroundHover, 0.35)} 100%);`
4554
+ iconGradient: `linear-gradient(148deg, ${defaultIconBackground} 0%, ${darken(defaultIconBackground, 0.35)} 100%);`,
4555
+ iconGradientHover: `linear-gradient(148deg, ${defaultIconBackgroundHover} 0%, ${darken(defaultIconBackgroundHover, 0.35)} 100%);`
4545
4556
  };
4546
4557
  var lightPalette = {
4547
4558
  background: {
@@ -4641,7 +4652,7 @@ var ThemeCssVars = createTheme({
4641
4652
  root: /* @__PURE__ */ __name(({ theme }) => ({
4642
4653
  WebkitBackdropFilter: "blur(20px)",
4643
4654
  backdropFilter: "blur(20px)",
4644
- backgroundColor: alpha9(theme.palette.background.paper, 0.2),
4655
+ backgroundColor: alphaCss9(theme.vars?.palette.background.paper ?? "#000", 0.2),
4645
4656
  boxShadow: "none",
4646
4657
  color: "#16163D",
4647
4658
  ...theme.applyStyles("dark", {
@@ -4658,7 +4669,7 @@ var ThemeCssVars = createTheme({
4658
4669
  root: /* @__PURE__ */ __name(({ theme }) => ({
4659
4670
  WebkitBackdropFilter: "blur(20px)",
4660
4671
  backdropFilter: "blur(20px)",
4661
- backgroundColor: alpha9(theme.palette.background.paper, 0.7),
4672
+ backgroundColor: alphaCss9(theme.vars?.palette.background.paper ?? "#000", 0.7),
4662
4673
  display: "flex",
4663
4674
  flexDirection: "column",
4664
4675
  justifyContent: "space-between"
@@ -4709,7 +4720,7 @@ var ThemeCssVars = createTheme({
4709
4720
  backgroundColor: "#19193F"
4710
4721
  },
4711
4722
  ...theme.applyStyles("dark", {
4712
- color: theme.palette.secondary.main
4723
+ color: theme.vars?.palette.secondary.main
4713
4724
  })
4714
4725
  }), "root")
4715
4726
  }
@@ -4721,7 +4732,7 @@ var ThemeCssVars = createTheme({
4721
4732
  styleOverrides: {
4722
4733
  root: /* @__PURE__ */ __name(({ theme }) => ({
4723
4734
  "&.Mui-error": {
4724
- border: `${theme.palette.error.main} 1px solid`
4735
+ border: `${theme.vars?.palette.error.main} 1px solid`
4725
4736
  },
4726
4737
  "border": "transparent 1px solid",
4727
4738
  "borderRadius": theme.shape.borderRadius
@@ -4763,8 +4774,8 @@ var ThemeCssVars = createTheme({
4763
4774
  ...theme.typography.body1,
4764
4775
  color: "inherit",
4765
4776
  maxWidth: 250,
4766
- border: `1px solid ${theme.palette.background.default}`,
4767
- backgroundColor: theme.palette.background.paper,
4777
+ border: `1px solid ${theme.vars?.palette.background.default}`,
4778
+ backgroundColor: theme.vars?.palette.background.paper,
4768
4779
  padding: theme.spacing(1),
4769
4780
  boxShadow: "rgba(17, 12, 46, 0.15) 0px 48px 100px 0px"
4770
4781
  }), "tooltip")