@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.
- package/dist/browser/index.mjs +44 -56
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/modules/Dapp/Button/StyledComponents.d.ts +3 -3
- package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
- package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +81 -81
- package/dist/browser/modules/Dapp/Page/DappPathSwitcher.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/Page/Row.d.ts +1 -1
- package/dist/browser/modules/Dapp/RenderHtml.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/LoadingFlexbox.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/Trail.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/BottomNavigation.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +2 -2
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +1 -1
- package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/hooks/useDebugClick.d.ts.map +1 -1
- package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts.map +1 -1
- package/dist/browser/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.d.ts.map +1 -1
- package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts +1 -1
- package/dist/browser/modules/intent/useDappIntentListener2.d.ts.map +1 -1
- package/dist/browser/modules/network/components/StyledLoadingIndicator.d.ts +1 -1
- package/dist/browser/modules/os/hooks/useDappRegistrationResults.d.ts.map +1 -1
- package/dist/browser/modules/stack/useStackReady.d.ts.map +1 -1
- package/dist/browser/modules/widgets/StackOfWidgets.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/BarGraph/HorizontalBarGraph.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/DataColumns/TwoColTwoStat.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Value.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts +4 -4
- package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
- package/package.json +59 -59
- package/src/modules/Dapp/Page/DappPathSwitcher.tsx +1 -0
- package/src/modules/Dapp/RenderHtml.tsx +0 -1
- package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +0 -1
- package/src/modules/Dapp/modules/Window/Trail.tsx +0 -2
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +0 -1
- package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +0 -2
- package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +0 -1
- package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts +0 -1
- package/src/modules/Dapp/modules/Window/hooks/useDebugClick.ts +0 -1
- package/src/modules/dapps/accounts/components/AccountCard.tsx +0 -2
- package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx +0 -1
- package/src/modules/intent/useDappIntentListener2.ts +0 -1
- package/src/modules/os/hooks/useDappRegistrationResults.ts +0 -1
- package/src/modules/stack/useStackReady.ts +0 -1
- package/src/modules/widgets/StackOfWidgets.tsx +0 -2
- package/src/modules/widgets/Types/BarGraph/HorizontalBarGraph.tsx +0 -1
- package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -1
- package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -1
package/dist/browser/index.mjs
CHANGED
|
@@ -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
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
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
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
children:
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
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
|
-
|
|
4112
|
-
|
|
4113
|
-
/* @__PURE__ */
|
|
4114
|
-
|
|
4115
|
-
|
|
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
|
-
|
|
4140
|
-
/* @__PURE__ */
|
|
4141
|
-
|
|
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
|