@kodiak-finance/orderly-portfolio 2.8.21-alpha.0 → 2.8.21-rc.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.
- package/dist/index.js +49 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -44
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.mjs
CHANGED
|
@@ -10641,13 +10641,13 @@ var PnLRankingChartMobile = ({
|
|
|
10641
10641
|
}
|
|
10642
10642
|
)
|
|
10643
10643
|
] }),
|
|
10644
|
-
/* @__PURE__ */ jsxs("div", { className: "oui-flex oui-justify-between oui-gap-
|
|
10645
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
10646
|
-
/* @__PURE__ */ jsx(Text, { size: "2xs", intensity: 54,
|
|
10644
|
+
/* @__PURE__ */ jsxs("div", { className: "oui-flex oui-justify-between oui-gap-4 oui-border-t oui-border-line-4 oui-pt-3", children: [
|
|
10645
|
+
/* @__PURE__ */ jsxs("div", { className: "oui-flex oui-flex-col oui-gap-1", children: [
|
|
10646
|
+
/* @__PURE__ */ jsx(Text, { size: "2xs", intensity: 54, children: t("portfolio.symbolPerformance.pnlRanking.volume") }),
|
|
10647
10647
|
/* @__PURE__ */ jsx(Text, { size: "xs", weight: "semibold", children: formatCurrency2(item.volume) })
|
|
10648
10648
|
] }),
|
|
10649
|
-
/* @__PURE__ */ jsxs("div", { className: "oui-text-right", children: [
|
|
10650
|
-
/* @__PURE__ */ jsx(Text, { size: "2xs", intensity: 54,
|
|
10649
|
+
/* @__PURE__ */ jsxs("div", { className: "oui-text-right oui-flex oui-flex-col oui-gap-1", children: [
|
|
10650
|
+
/* @__PURE__ */ jsx(Text, { size: "2xs", intensity: 54, children: t("portfolio.symbolPerformance.pnlRanking.fees") }),
|
|
10651
10651
|
/* @__PURE__ */ jsx(Text, { size: "xs", weight: "semibold", intensity: 80, children: formatCurrency2(item.fees) })
|
|
10652
10652
|
] })
|
|
10653
10653
|
] })
|
|
@@ -10661,13 +10661,13 @@ var PnLRankingChartMobile = ({
|
|
|
10661
10661
|
};
|
|
10662
10662
|
var MakerTakerShare2 = ({ makerShare }) => {
|
|
10663
10663
|
const takerShare = 100 - makerShare;
|
|
10664
|
-
return /* @__PURE__ */ jsxs(
|
|
10665
|
-
/* @__PURE__ */ jsxs(Text, { weight: "semibold",
|
|
10664
|
+
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-items-center oui-justify-center oui-gap-4", children: [
|
|
10665
|
+
/* @__PURE__ */ jsxs(Text, { weight: "semibold", children: [
|
|
10666
10666
|
makerShare.toFixed(1),
|
|
10667
10667
|
"%"
|
|
10668
10668
|
] }),
|
|
10669
10669
|
/* @__PURE__ */ jsx("span", { className: "oui-text-base-contrast-54", children: "/" }),
|
|
10670
|
-
/* @__PURE__ */ jsxs(Text, { weight: "semibold",
|
|
10670
|
+
/* @__PURE__ */ jsxs(Text, { weight: "semibold", children: [
|
|
10671
10671
|
takerShare.toFixed(1),
|
|
10672
10672
|
"%"
|
|
10673
10673
|
] })
|
|
@@ -10914,46 +10914,51 @@ var SymbolPerformanceUIMobile = (props) => {
|
|
|
10914
10914
|
]
|
|
10915
10915
|
}
|
|
10916
10916
|
) }),
|
|
10917
|
-
/* @__PURE__ */ jsxs(
|
|
10918
|
-
/* @__PURE__ */
|
|
10919
|
-
|
|
10917
|
+
/* @__PURE__ */ jsxs(Grid, { cols: 2, gap: 2, mb: 2, children: [
|
|
10918
|
+
/* @__PURE__ */ jsx(Card, { className: "oui-bg-base-7 oui-border oui-border-line-4 oui-p-1.5", children: /* @__PURE__ */ jsx(
|
|
10919
|
+
Statistic,
|
|
10920
10920
|
{
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
}
|
|
10930
|
-
),
|
|
10931
|
-
/* @__PURE__ */ jsxs(
|
|
10932
|
-
Flex,
|
|
10921
|
+
label: `${t("portfolio.symbolPerformance.totalPnL")} (Gross)`,
|
|
10922
|
+
valueProps: { coloring: true, showIdentifier: true, dp: 2 },
|
|
10923
|
+
classNames: { value: "oui-text-sm oui-font-semibold" },
|
|
10924
|
+
children: performanceData?.grossPnL ?? "-"
|
|
10925
|
+
}
|
|
10926
|
+
) }),
|
|
10927
|
+
/* @__PURE__ */ jsx(Card, { className: "oui-bg-base-7 oui-border oui-border-line-4 oui-p-1.5", children: /* @__PURE__ */ jsx(
|
|
10928
|
+
Statistic,
|
|
10933
10929
|
{
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
}
|
|
10943
|
-
),
|
|
10944
|
-
/* @__PURE__ */ jsxs(
|
|
10945
|
-
Flex,
|
|
10930
|
+
label: t("portfolio.symbolPerformance.totalFees"),
|
|
10931
|
+
valueProps: { dp: 2 },
|
|
10932
|
+
classNames: { value: "oui-text-sm" },
|
|
10933
|
+
children: performanceData?.totalFees ?? "-"
|
|
10934
|
+
}
|
|
10935
|
+
) }),
|
|
10936
|
+
/* @__PURE__ */ jsx(Card, { className: "oui-bg-base-7 oui-border oui-border-line-4 oui-p-1.5", children: /* @__PURE__ */ jsx(
|
|
10937
|
+
Statistic,
|
|
10946
10938
|
{
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10939
|
+
label: `${t("portfolio.symbolPerformance.totalPnL")} (Net)`,
|
|
10940
|
+
valueProps: { coloring: true, showIdentifier: true, dp: 2 },
|
|
10941
|
+
classNames: { value: "oui-text-sm oui-font-semibold" },
|
|
10942
|
+
children: performanceData?.totalPnL ?? "-"
|
|
10943
|
+
}
|
|
10944
|
+
) }),
|
|
10945
|
+
/* @__PURE__ */ jsx(Card, { className: "oui-bg-base-7 oui-border oui-border-line-4 oui-p-1.5", children: /* @__PURE__ */ jsx(
|
|
10946
|
+
Statistic,
|
|
10947
|
+
{
|
|
10948
|
+
label: t("portfolio.symbolPerformance.totalVolume"),
|
|
10949
|
+
valueProps: { dp: 2 },
|
|
10950
|
+
classNames: { value: "oui-text-sm" },
|
|
10951
|
+
children: performanceData?.totalVolume ?? "-"
|
|
10952
|
+
}
|
|
10953
|
+
) }),
|
|
10954
|
+
/* @__PURE__ */ jsx(Card, { className: "oui-bg-base-7 oui-border oui-border-line-4 oui-p-1.5 oui-col-span-2", children: /* @__PURE__ */ jsx(
|
|
10955
|
+
Statistic,
|
|
10956
|
+
{
|
|
10957
|
+
label: "Maker / Taker",
|
|
10958
|
+
classNames: { value: "oui-text-sm oui-font-semibold" },
|
|
10959
|
+
children: performanceData ? /* @__PURE__ */ jsx(MakerTakerShare2, { makerShare: performanceData.makerShare }) : "--"
|
|
10955
10960
|
}
|
|
10956
|
-
)
|
|
10961
|
+
) })
|
|
10957
10962
|
] }),
|
|
10958
10963
|
/* @__PURE__ */ jsxs(Grid, { cols: 1, gap: 4, mb: 4, children: [
|
|
10959
10964
|
/* @__PURE__ */ jsxs(Box, { children: [
|