@xyo-network/os-react-runtime 5.0.1 → 5.0.2

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 (26) hide show
  1. package/dist/browser/index.mjs +15 -15
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/types/components/Widgets/Types/Stat/Subtitle.d.ts +1 -1
  4. package/dist/types/components/Widgets/Types/Stat/Subtitle.d.ts.map +1 -1
  5. package/dist/types/components/Widgets/Types/Stat/Unit.d.ts +1 -1
  6. package/dist/types/components/Widgets/Types/Stat/Unit.d.ts.map +1 -1
  7. package/dist/types/components/Widgets/Types/Stat/Value.d.ts +1 -1
  8. package/dist/types/components/Widgets/Types/Stat/Value.d.ts.map +1 -1
  9. package/dist/types/components/Widgets/Types/Tables/BooleanTable.d.ts +4 -4
  10. package/dist/types/components/Widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
  11. package/dist/types/dapps/shared/table/head/components/StyledTableRowHeader.d.ts +1 -1
  12. package/dist/types/dapps/shared/table/head/components/StyledTableRowHeader.d.ts.map +1 -1
  13. package/dist/types/modules/Dapp/Button/lib/decomposeProps.d.ts +33 -21
  14. package/dist/types/modules/Dapp/Button/lib/decomposeProps.d.ts.map +1 -1
  15. package/dist/types/modules/Dapp/modules/Window/DappWindow.d.ts.map +1 -1
  16. package/dist/types/settings/Theme/ThemeProvider.d.ts +2 -2
  17. package/dist/types/settings/Theme/ThemeProvider.d.ts.map +1 -1
  18. package/package.json +64 -64
  19. package/src/components/Widgets/WidgetCardExamples.tsx +2 -2
  20. package/src/dapps/shared/accounts/components/PaymentMethods.tsx +6 -6
  21. package/src/modules/Dapp/Page/DividerChip.tsx +1 -1
  22. package/src/modules/Dapp/modules/Window/DappWindow.tsx +11 -13
  23. package/src/modules/Dapp/modules/Window/menu/BottomNavigation.tsx +2 -2
  24. package/src/modules/Dapp/modules/Window/menu/Drawer.tsx +2 -2
  25. package/src/modules/network/components/LoadingIndicator.tsx +2 -2
  26. package/src/settings/Theme/ThemeProvider.tsx +6 -6
@@ -155,7 +155,7 @@ var WidgetCard = /* @__PURE__ */ __name(({ widgetName, widgetContent, widgetPath
155
155
 
156
156
  // src/components/Widgets/WidgetCardExamples.tsx
157
157
  import { Stack as Stack2 } from "@mui/material";
158
- import { useColorSchemeEx as useColorSchemeEx4 } from "@xylabs/react-invertible-theme";
158
+ import { useIsDark as useIsDark4 } from "@xylabs/react-theme";
159
159
  import React42 from "react";
160
160
 
161
161
  // src/DappPage.tsx
@@ -2488,7 +2488,7 @@ var DappWindow = /* @__PURE__ */ __name(({ children, context, dapp, dappMenuProp
2488
2488
  injectableErrors,
2489
2489
  routingError
2490
2490
  ]);
2491
- return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(ErrorBoundary, null, /* @__PURE__ */ React18.createElement(DappMetaTags, {
2491
+ return /* @__PURE__ */ React18.createElement(ErrorBoundary, null, /* @__PURE__ */ React18.createElement(DappMetaTags, {
2492
2492
  active,
2493
2493
  activePath: dappMenuProperties?.activePath,
2494
2494
  dappName: name
@@ -2499,12 +2499,12 @@ var DappWindow = /* @__PURE__ */ __name(({ children, context, dapp, dappMenuProp
2499
2499
  error,
2500
2500
  scope: "DappWindow"
2501
2501
  })
2502
- })), children));
2502
+ })), children);
2503
2503
  }, "DappWindow");
2504
2504
 
2505
2505
  // src/modules/Dapp/modules/Window/menu/BottomNavigation.tsx
2506
2506
  import { BottomNavigation, BottomNavigationAction, Paper, styled as styled2 } from "@mui/material";
2507
- import { useColorSchemeEx } from "@xylabs/react-invertible-theme";
2507
+ import { useIsDark } from "@xylabs/react-theme";
2508
2508
  import React19, { useEffect as useEffect15, useState as useState13 } from "react";
2509
2509
  var DappBottomNavigation = /* @__PURE__ */ __name(({ activePath, menuConfig, menuItems, onPathChange, ...props }) => {
2510
2510
  const [activeIndex, setActiveIndex] = useState13(0);
@@ -2546,7 +2546,7 @@ var DappBottomNavigation = /* @__PURE__ */ __name(({ activePath, menuConfig, men
2546
2546
  var StyledBottomNavigationAction = styled2(BottomNavigationAction, {
2547
2547
  name: "StyledBottomNavigationAction"
2548
2548
  })(({ theme }) => {
2549
- const { darkMode } = useColorSchemeEx();
2549
+ const darkMode = useIsDark();
2550
2550
  return {
2551
2551
  "&.Mui-selected": {
2552
2552
  color: darkMode ? theme.palette.primary.main : theme.palette.secondary.main
@@ -2557,7 +2557,7 @@ var StyledBottomNavigationAction = styled2(BottomNavigationAction, {
2557
2557
  // src/modules/Dapp/modules/Window/menu/Drawer.tsx
2558
2558
  import { alpha as alpha4, darken, Drawer, List, ListItem, ListItemIcon, ListItemText, Tooltip as Tooltip4, Typography as Typography7, useTheme as useTheme7 } from "@mui/material";
2559
2559
  import { FlexCol as FlexCol7, FlexGrowRow as FlexGrowRow5, FlexRow as FlexRow8 } from "@xylabs/react-flexbox";
2560
- import { useColorSchemeEx as useColorSchemeEx2 } from "@xylabs/react-invertible-theme";
2560
+ import { useIsDark as useIsDark2 } from "@xylabs/react-theme";
2561
2561
  import { XyOsMonitor as XyOsMonitor3 } from "@xyo-network/os-runtime";
2562
2562
  import React22, { useEffect as useEffect16, useState as useState15 } from "react";
2563
2563
 
@@ -2814,7 +2814,7 @@ var StyledListItemButton = styled3(ListItemButton, {
2814
2814
  // src/modules/Dapp/modules/Window/menu/Drawer.tsx
2815
2815
  var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, name, menuConfig, menuItems, onPathChange, version, ...props }) => {
2816
2816
  const [path, setPath] = useState15("");
2817
- const { darkMode } = useColorSchemeEx2();
2817
+ const darkMode = useIsDark2();
2818
2818
  const theme = useTheme7();
2819
2819
  const drawerColor = darkMode ? theme.palette.background.paper : darken(theme.palette.primary.main, 0.5);
2820
2820
  const activeColor = theme.palette.primary.light;
@@ -3301,7 +3301,7 @@ var DividerChip = /* @__PURE__ */ __name(({ registeredDapps, ...props }) => {
3301
3301
  sx: {
3302
3302
  display: "inline"
3303
3303
  }
3304
- })) : /* @__PURE__ */ React29.createElement(React29.Fragment, null),
3304
+ })) : void 0,
3305
3305
  label: `${registeredDapps?.length ? "" : "Loading "}Beta dApps`,
3306
3306
  size: "small",
3307
3307
  sx: {
@@ -3352,7 +3352,7 @@ var StyledGridContainer = styled5("div", {
3352
3352
  // src/modules/network/components/LoadingIndicator.tsx
3353
3353
  import { SignalCellularAltOutlined } from "@mui/icons-material";
3354
3354
  import { Tooltip as Tooltip5, useTheme as useTheme8 } from "@mui/material";
3355
- import { useColorSchemeEx as useColorSchemeEx3 } from "@xylabs/react-invertible-theme";
3355
+ import { useIsDark as useIsDark3 } from "@xylabs/react-theme";
3356
3356
  import React31, { useMemo as useMemo18 } from "react";
3357
3357
 
3358
3358
  // src/modules/network/hooks/useOsNetwork.tsx
@@ -3473,7 +3473,7 @@ var WaitingForNetwork = /* @__PURE__ */ __name(() => /* @__PURE__ */ React31.cre
3473
3473
  title: "Waiting for Network initialization"
3474
3474
  }, /* @__PURE__ */ React31.createElement(StyledNetworkLoadingIndicator, null)), "WaitingForNetwork");
3475
3475
  var NetworkLoadingIndicator = /* @__PURE__ */ __name(({ highContrast }) => {
3476
- const { darkMode } = useColorSchemeEx3();
3476
+ const darkMode = useIsDark3();
3477
3477
  const theme = useTheme8();
3478
3478
  const { networkReady } = useOsNetwork();
3479
3479
  const highContrastSuccessColor = darkMode ? theme.palette.success.dark : theme.palette.success.main;
@@ -4023,7 +4023,7 @@ var StackOfWidgets = /* @__PURE__ */ __name(() => {
4023
4023
 
4024
4024
  // src/components/Widgets/WidgetCardExamples.tsx
4025
4025
  var WidgetCardExamples = /* @__PURE__ */ __name(() => {
4026
- const { darkMode } = useColorSchemeEx4();
4026
+ const darkMode = useIsDark4();
4027
4027
  return /* @__PURE__ */ React42.createElement(DappPage, {
4028
4028
  sx: {
4029
4029
  backgroundImage: darkMode ? `url(${default18})` : `url(${default19})`,
@@ -4327,7 +4327,7 @@ var SecondaryCryptoWalletInput = /* @__PURE__ */ __name(({ existingSecondaryCryp
4327
4327
  }, "SecondaryCryptoWalletInput");
4328
4328
 
4329
4329
  // src/dapps/shared/accounts/components/PaymentMethods.tsx
4330
- import { Grid2 } from "@mui/material";
4330
+ import { Grid } from "@mui/material";
4331
4331
  import { FormGroupCreditCardProvider } from "@xyo-network/react-form-credit-card";
4332
4332
  import React51 from "react";
4333
4333
 
@@ -4383,10 +4383,10 @@ var AccountCard = /* @__PURE__ */ __name(({ items, ...props }) => {
4383
4383
  var PaymentMethods = /* @__PURE__ */ __name(() => {
4384
4384
  return /* @__PURE__ */ React51.createElement(DappPage, {
4385
4385
  title: "Payment Methods"
4386
- }, /* @__PURE__ */ React51.createElement(Grid2, {
4386
+ }, /* @__PURE__ */ React51.createElement(Grid, {
4387
4387
  container: true,
4388
4388
  spacing: 3
4389
- }, /* @__PURE__ */ React51.createElement(Grid2, {
4389
+ }, /* @__PURE__ */ React51.createElement(Grid, {
4390
4390
  size: {
4391
4391
  xs: 12
4392
4392
  }
@@ -4397,7 +4397,7 @@ var PaymentMethods = /* @__PURE__ */ __name(() => {
4397
4397
  items: [
4398
4398
  {
4399
4399
  // TODO - needs a default implementation
4400
- component: /* @__PURE__ */ React51.createElement(FormGroupCreditCardProvider, null, /* @__PURE__ */ React51.createElement(React51.Fragment, null)),
4400
+ component: /* @__PURE__ */ React51.createElement(FormGroupCreditCardProvider, null, "null"),
4401
4401
  desc: "Save a credit card to your node to complete credit payments seamlessly.",
4402
4402
  title: "Credit Card"
4403
4403
  },