@kodiak-finance/orderly-portfolio 2.8.20 → 2.8.21-rc.1
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 +86 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +86 -44
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.mjs
CHANGED
|
@@ -7396,6 +7396,12 @@ var PortfolioHandleMobile = (props) => {
|
|
|
7396
7396
|
name: t("trading.history")
|
|
7397
7397
|
});
|
|
7398
7398
|
};
|
|
7399
|
+
const onGotoSymbolPerformance = () => {
|
|
7400
|
+
props.routerAdapter?.onRouteChange({
|
|
7401
|
+
href: "/portfolio/symbol-performance" /* SymbolPerformance */,
|
|
7402
|
+
name: t("portfolio.symbolPerformance")
|
|
7403
|
+
});
|
|
7404
|
+
};
|
|
7399
7405
|
return /* @__PURE__ */ jsxs(
|
|
7400
7406
|
Flex,
|
|
7401
7407
|
{
|
|
@@ -7474,6 +7480,37 @@ var PortfolioHandleMobile = (props) => {
|
|
|
7474
7480
|
/* @__PURE__ */ jsx(Text, { className: "oui-text-base-80 oui-text-2xs", children: t("trading.history") })
|
|
7475
7481
|
]
|
|
7476
7482
|
}
|
|
7483
|
+
),
|
|
7484
|
+
/* @__PURE__ */ jsxs(
|
|
7485
|
+
Flex,
|
|
7486
|
+
{
|
|
7487
|
+
direction: "column",
|
|
7488
|
+
gapY: 2,
|
|
7489
|
+
itemAlign: "center",
|
|
7490
|
+
className: "oui-flex-1 oui-cursor-pointer",
|
|
7491
|
+
onClick: onGotoSymbolPerformance,
|
|
7492
|
+
children: [
|
|
7493
|
+
/* @__PURE__ */ jsx("div", { className: "oui-flex oui-size-[48px] oui-items-center oui-justify-center oui-rounded-xl oui-bg-base-9", children: /* @__PURE__ */ jsx(
|
|
7494
|
+
"svg",
|
|
7495
|
+
{
|
|
7496
|
+
width: "28",
|
|
7497
|
+
height: "28",
|
|
7498
|
+
viewBox: "0 0 18 18",
|
|
7499
|
+
fill: "none",
|
|
7500
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7501
|
+
className: "oui-text-white",
|
|
7502
|
+
children: /* @__PURE__ */ jsx(
|
|
7503
|
+
"path",
|
|
7504
|
+
{
|
|
7505
|
+
d: "M13.5 3.75C12.8096 3.75 12.375 4.18467 12.375 4.875V12.375C12.375 13.0654 12.8096 13.5 13.5 13.5H14.625C15.3154 13.5 15.75 13.0654 15.75 12.375V4.875C15.75 4.18467 15.3154 3.75 14.625 3.75H13.5ZM13.5 5.25H14.625V12.375H13.5V5.25ZM8.25 6.75C7.55964 6.75 7.125 7.18467 7.125 7.875V12.375C7.125 13.0654 7.55964 13.5 8.25 13.5H9.375C10.0654 13.5 10.5 13.0654 10.5 12.375V7.875C10.5 7.18467 10.0654 6.75 9.375 6.75H8.25ZM8.25 8.25H9.375V12.375H8.25V8.25ZM3 9.75C2.30964 9.75 1.875 10.1847 1.875 10.875V12.375C1.875 13.0654 2.30964 13.5 3 13.5H4.125C4.81536 13.5 5.25 13.0654 5.25 12.375V10.875C5.25 10.1847 4.81536 9.75 4.125 9.75H3ZM3 11.25H4.125V12.375H3V11.25Z",
|
|
7506
|
+
fill: "currentColor"
|
|
7507
|
+
}
|
|
7508
|
+
)
|
|
7509
|
+
}
|
|
7510
|
+
) }),
|
|
7511
|
+
/* @__PURE__ */ jsx(Text, { className: "oui-text-base-80 oui-text-2xs", children: t("portfolio.symbolPerformance") })
|
|
7512
|
+
]
|
|
7513
|
+
}
|
|
7477
7514
|
)
|
|
7478
7515
|
]
|
|
7479
7516
|
}
|
|
@@ -10604,13 +10641,13 @@ var PnLRankingChartMobile = ({
|
|
|
10604
10641
|
}
|
|
10605
10642
|
)
|
|
10606
10643
|
] }),
|
|
10607
|
-
/* @__PURE__ */ jsxs("div", { className: "oui-flex oui-justify-between oui-gap-
|
|
10608
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
10609
|
-
/* @__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") }),
|
|
10610
10647
|
/* @__PURE__ */ jsx(Text, { size: "xs", weight: "semibold", children: formatCurrency2(item.volume) })
|
|
10611
10648
|
] }),
|
|
10612
|
-
/* @__PURE__ */ jsxs("div", { className: "oui-text-right", children: [
|
|
10613
|
-
/* @__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") }),
|
|
10614
10651
|
/* @__PURE__ */ jsx(Text, { size: "xs", weight: "semibold", intensity: 80, children: formatCurrency2(item.fees) })
|
|
10615
10652
|
] })
|
|
10616
10653
|
] })
|
|
@@ -10624,13 +10661,13 @@ var PnLRankingChartMobile = ({
|
|
|
10624
10661
|
};
|
|
10625
10662
|
var MakerTakerShare2 = ({ makerShare }) => {
|
|
10626
10663
|
const takerShare = 100 - makerShare;
|
|
10627
|
-
return /* @__PURE__ */ jsxs(
|
|
10628
|
-
/* @__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: [
|
|
10629
10666
|
makerShare.toFixed(1),
|
|
10630
10667
|
"%"
|
|
10631
10668
|
] }),
|
|
10632
10669
|
/* @__PURE__ */ jsx("span", { className: "oui-text-base-contrast-54", children: "/" }),
|
|
10633
|
-
/* @__PURE__ */ jsxs(Text, { weight: "semibold",
|
|
10670
|
+
/* @__PURE__ */ jsxs(Text, { weight: "semibold", children: [
|
|
10634
10671
|
takerShare.toFixed(1),
|
|
10635
10672
|
"%"
|
|
10636
10673
|
] })
|
|
@@ -10877,46 +10914,51 @@ var SymbolPerformanceUIMobile = (props) => {
|
|
|
10877
10914
|
]
|
|
10878
10915
|
}
|
|
10879
10916
|
) }),
|
|
10880
|
-
/* @__PURE__ */ jsxs(
|
|
10881
|
-
/* @__PURE__ */
|
|
10882
|
-
|
|
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,
|
|
10883
10920
|
{
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
}
|
|
10893
|
-
),
|
|
10894
|
-
/* @__PURE__ */ jsxs(
|
|
10895
|
-
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,
|
|
10896
10929
|
{
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
}
|
|
10906
|
-
),
|
|
10907
|
-
/* @__PURE__ */ jsxs(
|
|
10908
|
-
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,
|
|
10909
10938
|
{
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
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 }) : "--"
|
|
10918
10960
|
}
|
|
10919
|
-
)
|
|
10961
|
+
) })
|
|
10920
10962
|
] }),
|
|
10921
10963
|
/* @__PURE__ */ jsxs(Grid, { cols: 1, gap: 4, mb: 4, children: [
|
|
10922
10964
|
/* @__PURE__ */ jsxs(Box, { children: [
|