@xyo-network/os-react-runtime 7.1.1 → 7.2.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 (52) hide show
  1. package/dist/browser/index.mjs +44 -56
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/browser/modules/Dapp/Button/StyledComponents.d.ts +3 -3
  4. package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
  5. package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +81 -81
  6. package/dist/browser/modules/Dapp/Page/DappPathSwitcher.d.ts.map +1 -1
  7. package/dist/browser/modules/Dapp/Page/Row.d.ts +1 -1
  8. package/dist/browser/modules/Dapp/RenderHtml.d.ts.map +1 -1
  9. package/dist/browser/modules/Dapp/modules/Window/LoadingFlexbox.d.ts.map +1 -1
  10. package/dist/browser/modules/Dapp/modules/Window/Trail.d.ts.map +1 -1
  11. package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
  12. package/dist/browser/modules/Dapp/modules/Window/components/menu/BottomNavigation.d.ts.map +1 -1
  13. package/dist/browser/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
  14. package/dist/browser/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +2 -2
  15. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +1 -1
  16. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts.map +1 -1
  17. package/dist/browser/modules/Dapp/modules/Window/hooks/useDebugClick.d.ts.map +1 -1
  18. package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts.map +1 -1
  19. package/dist/browser/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.d.ts.map +1 -1
  20. package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts +1 -1
  21. package/dist/browser/modules/intent/useDappIntentListener2.d.ts.map +1 -1
  22. package/dist/browser/modules/network/components/StyledLoadingIndicator.d.ts +1 -1
  23. package/dist/browser/modules/os/hooks/useDappRegistrationResults.d.ts.map +1 -1
  24. package/dist/browser/modules/stack/useStackReady.d.ts.map +1 -1
  25. package/dist/browser/modules/widgets/StackOfWidgets.d.ts.map +1 -1
  26. package/dist/browser/modules/widgets/Types/BarGraph/HorizontalBarGraph.d.ts.map +1 -1
  27. package/dist/browser/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts +1 -1
  28. package/dist/browser/modules/widgets/Types/DataColumns/TwoColTwoStat.d.ts.map +1 -1
  29. package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts +1 -1
  30. package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts +1 -1
  31. package/dist/browser/modules/widgets/Types/Stat/Value.d.ts +1 -1
  32. package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts +4 -4
  33. package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
  34. package/package.json +59 -59
  35. package/src/modules/Dapp/Page/DappPathSwitcher.tsx +1 -0
  36. package/src/modules/Dapp/RenderHtml.tsx +0 -1
  37. package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +0 -1
  38. package/src/modules/Dapp/modules/Window/Trail.tsx +0 -2
  39. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +0 -1
  40. package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +0 -2
  41. package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +0 -1
  42. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts +0 -1
  43. package/src/modules/Dapp/modules/Window/hooks/useDebugClick.ts +0 -1
  44. package/src/modules/dapps/accounts/components/AccountCard.tsx +0 -2
  45. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx +0 -1
  46. package/src/modules/intent/useDappIntentListener2.ts +0 -1
  47. package/src/modules/os/hooks/useDappRegistrationResults.ts +0 -1
  48. package/src/modules/stack/useStackReady.ts +0 -1
  49. package/src/modules/widgets/StackOfWidgets.tsx +0 -2
  50. package/src/modules/widgets/Types/BarGraph/HorizontalBarGraph.tsx +0 -1
  51. package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -1
  52. package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -1
@@ -3635,13 +3635,10 @@ import { FlexCol as FlexCol13, FlexGrowRow as FlexGrowRow5 } from "@xylabs/react
3635
3635
  import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
3636
3636
  var TwoToneBulletPointList = ({ list }) => {
3637
3637
  return /* @__PURE__ */ jsx37(FlexCol13, { alignItems: "flex-start", gap: 1, children: list.map((item, index) => {
3638
- return (
3639
- // eslint-disable-next-line @eslint-react/no-array-index-key
3640
- /* @__PURE__ */ jsxs19(FlexGrowRow5, { alignItems: "flex-start", justifyContent: "flex-start", gap: 1, children: [
3641
- /* @__PURE__ */ jsx37(TwoToneBulletPoint, { marginTop: "4px" }),
3642
- item
3643
- ] }, index + "bulletPointList")
3644
- );
3638
+ return /* @__PURE__ */ jsxs19(FlexGrowRow5, { alignItems: "flex-start", justifyContent: "flex-start", gap: 1, children: [
3639
+ /* @__PURE__ */ jsx37(TwoToneBulletPoint, { marginTop: "4px" }),
3640
+ item
3641
+ ] }, index + "bulletPointList");
3645
3642
  }) });
3646
3643
  };
3647
3644
 
@@ -3758,38 +3755,35 @@ import { FlexGrowCol as FlexGrowCol4, FlexGrowRow as FlexGrowRow6 } from "@xylab
3758
3755
  import { jsx as jsx41, jsxs as jsxs20 } from "react/jsx-runtime";
3759
3756
  var AccountCard = ({ items, ...props }) => {
3760
3757
  return /* @__PURE__ */ jsx41(Card4, { ...props, children: /* @__PURE__ */ jsx41(CardContent3, { children: /* @__PURE__ */ jsx41(FlexGrowCol4, { width: "100%", gap: 2, children: items.map((item, index) => {
3761
- return (
3762
- // eslint-disable-next-line @eslint-react/no-array-index-key
3763
- /* @__PURE__ */ jsxs20(FlexGrowCol4, { gap: 2, width: "100%", alignItems: "stretch", children: [
3764
- /* @__PURE__ */ jsxs20(
3765
- FlexGrowRow6,
3766
- {
3767
- sx: {
3768
- alignItems: "stretch",
3769
- flexDirection: { md: "row", xs: "column" },
3770
- justifyContent: "space-between"
3771
- },
3772
- gap: 2,
3773
- children: [
3774
- /* @__PURE__ */ jsxs20(
3775
- FlexGrowCol4,
3776
- {
3777
- alignItems: "flex-start",
3778
- width: "100%",
3779
- sx: { maxWidth: { md: "40%", xs: "100%" } },
3780
- children: [
3781
- /* @__PURE__ */ jsx41(Typography10, { variant: "h5", gutterBottom: true, children: item.title }),
3782
- /* @__PURE__ */ jsx41(Typography10, { variant: "body1", gutterBottom: true, children: item.desc })
3783
- ]
3784
- }
3785
- ),
3786
- item?.component
3787
- ]
3788
- }
3789
- ),
3790
- items.length === 1 || index === items.length - 1 ? null : /* @__PURE__ */ jsx41(Divider5, { flexItem: true })
3791
- ] }, index)
3792
- );
3758
+ return /* @__PURE__ */ jsxs20(FlexGrowCol4, { gap: 2, width: "100%", alignItems: "stretch", children: [
3759
+ /* @__PURE__ */ jsxs20(
3760
+ FlexGrowRow6,
3761
+ {
3762
+ sx: {
3763
+ alignItems: "stretch",
3764
+ flexDirection: { md: "row", xs: "column" },
3765
+ justifyContent: "space-between"
3766
+ },
3767
+ gap: 2,
3768
+ children: [
3769
+ /* @__PURE__ */ jsxs20(
3770
+ FlexGrowCol4,
3771
+ {
3772
+ alignItems: "flex-start",
3773
+ width: "100%",
3774
+ sx: { maxWidth: { md: "40%", xs: "100%" } },
3775
+ children: [
3776
+ /* @__PURE__ */ jsx41(Typography10, { variant: "h5", gutterBottom: true, children: item.title }),
3777
+ /* @__PURE__ */ jsx41(Typography10, { variant: "body1", gutterBottom: true, children: item.desc })
3778
+ ]
3779
+ }
3780
+ ),
3781
+ item?.component
3782
+ ]
3783
+ }
3784
+ ),
3785
+ items.length === 1 || index === items.length - 1 ? null : /* @__PURE__ */ jsx41(Divider5, { flexItem: true })
3786
+ ] }, index);
3793
3787
  }) }) }) });
3794
3788
  };
3795
3789
 
@@ -4107,16 +4101,13 @@ var HorizontalBarGraph = ({ items = sampleData, ...props }) => {
4107
4101
  });
4108
4102
  console.log(itemsSortedByValue);
4109
4103
  const topValue = itemsSortedByValue[0].value;
4110
- return /* @__PURE__ */ jsx47(FlexCol15, { alignItems: "stretch", gap: 0.5, ...props, children: items.slice(0, 5).map((item, index) => (
4111
- // eslint-disable-next-line @eslint-react/no-array-index-key
4112
- /* @__PURE__ */ jsxs25(FlexCol15, { alignItems: "stretch", children: [
4113
- /* @__PURE__ */ jsxs25(FlexGrowRow8, { justifyContent: "space-between", children: [
4114
- /* @__PURE__ */ jsx47(Typography12, { variant: "caption", maxWidth: "50%", noWrap: true, children: item.name }),
4115
- /* @__PURE__ */ jsx47(Typography12, { variant: "caption", maxWidth: "50%", children: item.value })
4116
- ] }),
4117
- /* @__PURE__ */ jsx47(StyledLinearProgress, { color: "primary", value: item.value / (topValue * 1.25) * 100, variant: "determinate" })
4118
- ] }, index)
4119
- )) });
4104
+ return /* @__PURE__ */ jsx47(FlexCol15, { alignItems: "stretch", gap: 0.5, ...props, children: items.slice(0, 5).map((item, index) => /* @__PURE__ */ jsxs25(FlexCol15, { alignItems: "stretch", children: [
4105
+ /* @__PURE__ */ jsxs25(FlexGrowRow8, { justifyContent: "space-between", children: [
4106
+ /* @__PURE__ */ jsx47(Typography12, { variant: "caption", maxWidth: "50%", noWrap: true, children: item.name }),
4107
+ /* @__PURE__ */ jsx47(Typography12, { variant: "caption", maxWidth: "50%", children: item.value })
4108
+ ] }),
4109
+ /* @__PURE__ */ jsx47(StyledLinearProgress, { color: "primary", value: item.value / (topValue * 1.25) * 100, variant: "determinate" })
4110
+ ] }, index)) });
4120
4111
  };
4121
4112
 
4122
4113
  // src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx
@@ -4135,13 +4126,10 @@ var TwoColTwoStat = ({ items, ...props }) => {
4135
4126
  useEffect19(() => {
4136
4127
  validateProps(items);
4137
4128
  }, [items]);
4138
- return /* @__PURE__ */ jsx48(FlexGrowRow9, { gap: 2, ...props, children: items.map((item, index) => (
4139
- // eslint-disable-next-line @eslint-react/no-array-index-key
4140
- /* @__PURE__ */ jsxs26(FlexCol16, { flexGrow: 1, alignItems: "start", children: [
4141
- /* @__PURE__ */ jsx48(Typography13, { variant: "h2", fontWeight: theme.typography.fontWeightMedium, children: item.rawInsightValue }),
4142
- /* @__PURE__ */ jsx48(Typography13, { variant: "body2", children: item.subtitle })
4143
- ] }, `stat-${index}-${item.unit}`)
4144
- )) });
4129
+ return /* @__PURE__ */ jsx48(FlexGrowRow9, { gap: 2, ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs26(FlexCol16, { flexGrow: 1, alignItems: "start", children: [
4130
+ /* @__PURE__ */ jsx48(Typography13, { variant: "h2", fontWeight: theme.typography.fontWeightMedium, children: item.rawInsightValue }),
4131
+ /* @__PURE__ */ jsx48(Typography13, { variant: "body2", children: item.subtitle })
4132
+ ] }, `stat-${index}-${item.unit}`)) });
4145
4133
  };
4146
4134
 
4147
4135
  // src/modules/widgets/Types/Examples/BarGraph.tsx