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

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