@orderly.network/portfolio 3.0.4 → 3.1.0-alpha.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/index.js +26 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -27
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.mjs
CHANGED
|
@@ -176,7 +176,7 @@ var init_assets_ui = __esm({
|
|
|
176
176
|
visible: props.visible,
|
|
177
177
|
unit: "USDC",
|
|
178
178
|
style: { "--oui-gradient-angle": "45deg" },
|
|
179
|
-
unitClassName: "oui-text-base oui-text-base-contrast-80 oui-h-9 oui-
|
|
179
|
+
unitClassName: "oui-text-base oui-text-base-contrast-80 oui-h-9 oui-ms-1",
|
|
180
180
|
className: gradientTextVariants({
|
|
181
181
|
className: "oui-font-bold oui-text-3xl",
|
|
182
182
|
color: "brand"
|
|
@@ -260,7 +260,6 @@ var init_assets_ui = __esm({
|
|
|
260
260
|
)
|
|
261
261
|
}
|
|
262
262
|
),
|
|
263
|
-
align: "right",
|
|
264
263
|
valueProps: { size: "lg", visible: props.visible },
|
|
265
264
|
children: props.freeCollateral
|
|
266
265
|
}
|
|
@@ -671,8 +670,8 @@ var init_assetHistory_ui_mobile = __esm({
|
|
|
671
670
|
const itemColor = isDeposit ? "buy" : "sell";
|
|
672
671
|
const amountView = /* @__PURE__ */ jsxs(Flex, { className: "oui-text-xs", children: [
|
|
673
672
|
/* @__PURE__ */ jsx(Text, { color: itemColor, children: formattedAmount }),
|
|
674
|
-
/* @__PURE__ */ jsx(Text, { className: "oui-
|
|
675
|
-
isWeb3Wallet && /* @__PURE__ */ jsx(Badge, { color: itemColor, className: "oui-
|
|
673
|
+
/* @__PURE__ */ jsx(Text, { className: "oui-ms-1", intensity: 80, children: item.token }),
|
|
674
|
+
isWeb3Wallet && /* @__PURE__ */ jsx(Badge, { color: itemColor, className: "oui-ms-2", children: isDeposit ? t("common.deposit") : t("common.withdraw") })
|
|
676
675
|
] });
|
|
677
676
|
const statusView = /* @__PURE__ */ jsx(Text, { intensity: isWeb3Wallet ? 80 : 36, size: "xs", children: getStatusText(item) });
|
|
678
677
|
const timeView = /* @__PURE__ */ jsx(Text.formatted, { rule: "date", intensity: 36, size: "2xs", children: item.created_time });
|
|
@@ -787,7 +786,7 @@ var init_assetHistory_ui_mobile = __esm({
|
|
|
787
786
|
/* @__PURE__ */ jsx(
|
|
788
787
|
ArrowRightShortIcon,
|
|
789
788
|
{
|
|
790
|
-
className: "oui-
|
|
789
|
+
className: "oui-ms-0.5 oui-size-4 oui-text-primary oui-opacity-100",
|
|
791
790
|
color: "primary",
|
|
792
791
|
size: 16,
|
|
793
792
|
opacity: 100
|
|
@@ -1045,7 +1044,7 @@ var init_fundingHistory_ui_mobile = __esm({
|
|
|
1045
1044
|
{
|
|
1046
1045
|
rule: "symbol",
|
|
1047
1046
|
formatString: "base",
|
|
1048
|
-
className: "oui-text-base-contrast oui-
|
|
1047
|
+
className: "oui-text-base-contrast oui-me-1 oui-text-sm",
|
|
1049
1048
|
suffix: /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: 1, children: [
|
|
1050
1049
|
" ",
|
|
1051
1050
|
/* @__PURE__ */ jsx(Badge, { color: "neutral", size: "xs", children: switchPaymentType(item.payment_type) }),
|
|
@@ -1058,7 +1057,7 @@ var init_fundingHistory_ui_mobile = __esm({
|
|
|
1058
1057
|
Text.formatted,
|
|
1059
1058
|
{
|
|
1060
1059
|
rule: "date",
|
|
1061
|
-
className: "oui-text-base-contrast-36 oui-text-2xs oui-
|
|
1060
|
+
className: "oui-text-base-contrast-36 oui-text-2xs oui-ms-auto",
|
|
1062
1061
|
children: item.created_time
|
|
1063
1062
|
}
|
|
1064
1063
|
)
|
|
@@ -2855,7 +2854,7 @@ var init_convert_column = __esm({
|
|
|
2855
2854
|
]
|
|
2856
2855
|
}
|
|
2857
2856
|
);
|
|
2858
|
-
}, [assets]);
|
|
2857
|
+
}, [assets, convertedAssets, t]);
|
|
2859
2858
|
return /* @__PURE__ */ jsxs(Flex, { itemAlign: "center", gap: 2, children: [
|
|
2860
2859
|
/* @__PURE__ */ jsx("div", { className: "oui-relative oui-flex", children: assets.slice(0, 3).map((asset, index) => /* @__PURE__ */ jsx(
|
|
2861
2860
|
"div",
|
|
@@ -2971,7 +2970,7 @@ var init_convert_column = __esm({
|
|
|
2971
2970
|
}
|
|
2972
2971
|
}
|
|
2973
2972
|
];
|
|
2974
|
-
}, [onDetailsClick]);
|
|
2973
|
+
}, [onDetailsClick, t]);
|
|
2975
2974
|
return columns;
|
|
2976
2975
|
};
|
|
2977
2976
|
useConvertDetailColumns = (options) => {
|
|
@@ -3067,7 +3066,7 @@ var init_convert_column = __esm({
|
|
|
3067
3066
|
}
|
|
3068
3067
|
}
|
|
3069
3068
|
];
|
|
3070
|
-
}, []);
|
|
3069
|
+
}, [t]);
|
|
3071
3070
|
return columns;
|
|
3072
3071
|
};
|
|
3073
3072
|
}
|
|
@@ -3291,7 +3290,7 @@ var init_convert_ui_mobile = __esm({
|
|
|
3291
3290
|
statusOptions
|
|
3292
3291
|
]);
|
|
3293
3292
|
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-flex-col oui-gap-1 oui-px-3", children: [
|
|
3294
|
-
/* @__PURE__ */ jsx(ScrollIndicator, { className: "oui-
|
|
3293
|
+
/* @__PURE__ */ jsx(ScrollIndicator, { className: "oui-pe-5", children: /* @__PURE__ */ jsx(Flex, { direction: "row", children: dataFilter }) }),
|
|
3295
3294
|
convertState.dataSource.map((item) => /* @__PURE__ */ jsx(
|
|
3296
3295
|
ConvertMobileItem,
|
|
3297
3296
|
{
|
|
@@ -3345,7 +3344,7 @@ var init_convert_ui_mobile = __esm({
|
|
|
3345
3344
|
/* @__PURE__ */ jsx(
|
|
3346
3345
|
"div",
|
|
3347
3346
|
{
|
|
3348
|
-
className: "oui-
|
|
3347
|
+
className: "oui-ms-2 oui-text-primary",
|
|
3349
3348
|
onClick: () => {
|
|
3350
3349
|
modal.show(ConverHistoryItemDetailsDialog, {
|
|
3351
3350
|
item,
|
|
@@ -3715,7 +3714,7 @@ var init_vaults_ui_mobile = __esm({
|
|
|
3715
3714
|
/* @__PURE__ */ jsx("div", { children: t("common.type") }),
|
|
3716
3715
|
/* @__PURE__ */ jsx(Text, { color: typeColor, className: "oui-text-xs", children: typeText })
|
|
3717
3716
|
] }),
|
|
3718
|
-
/* @__PURE__ */ jsxs("div", { className: "oui-text-
|
|
3717
|
+
/* @__PURE__ */ jsxs("div", { className: "oui-text-end", children: [
|
|
3719
3718
|
/* @__PURE__ */ jsx("div", { children: t("common.amount") }),
|
|
3720
3719
|
/* @__PURE__ */ jsx("div", { className: "oui-text-xs oui-text-base-contrast-80", children: amountText })
|
|
3721
3720
|
] })
|
|
@@ -3929,7 +3928,7 @@ var init_historyDataGroup_ui_mobile = __esm({
|
|
|
3929
3928
|
size: "lg",
|
|
3930
3929
|
classNames: {
|
|
3931
3930
|
tabsList: "oui-px-3 oui-py-2",
|
|
3932
|
-
scrollIndicator: "oui-
|
|
3931
|
+
scrollIndicator: "oui-pe-3"
|
|
3933
3932
|
},
|
|
3934
3933
|
showScrollIndicator: true,
|
|
3935
3934
|
children: [
|
|
@@ -5361,7 +5360,7 @@ var init_createApiKey = __esm({
|
|
|
5361
5360
|
)
|
|
5362
5361
|
}
|
|
5363
5362
|
),
|
|
5364
|
-
/* @__PURE__ */ jsx(Text, { color: "danger", size: "xs", className: "oui-
|
|
5363
|
+
/* @__PURE__ */ jsx(Text, { color: "danger", size: "xs", className: "oui-ms-2", children: hint })
|
|
5365
5364
|
] })
|
|
5366
5365
|
] }),
|
|
5367
5366
|
/* @__PURE__ */ jsx(
|
|
@@ -5753,7 +5752,7 @@ var init_editApiKey = __esm({
|
|
|
5753
5752
|
)
|
|
5754
5753
|
}
|
|
5755
5754
|
),
|
|
5756
|
-
/* @__PURE__ */ jsx(Text, { color: "danger", size: "xs", className: "oui-
|
|
5755
|
+
/* @__PURE__ */ jsx(Text, { color: "danger", size: "xs", className: "oui-ms-2", children: hint })
|
|
5757
5756
|
] })
|
|
5758
5757
|
] }),
|
|
5759
5758
|
/* @__PURE__ */ jsx(
|
|
@@ -7060,7 +7059,7 @@ var EVMChains = () => {
|
|
|
7060
7059
|
className: "oui-relative oui-z-0 oui-h-[18px] oui-w-[49px]"
|
|
7061
7060
|
}
|
|
7062
7061
|
) }),
|
|
7063
|
-
/* @__PURE__ */ jsxs("div", { className: "oui-relative oui-
|
|
7062
|
+
/* @__PURE__ */ jsxs("div", { className: "oui-relative oui-start-[-9px] oui-flex oui-items-center oui-justify-center oui-gap-1", children: [
|
|
7064
7063
|
/* @__PURE__ */ jsx("div", { className: "oui-flex oui-size-[18px] oui-items-center oui-justify-center oui-rounded-full oui-bg-base-5", children: /* @__PURE__ */ jsx(EVMChainPopover, { children: /* @__PURE__ */ jsx(
|
|
7065
7064
|
MoreIcon,
|
|
7066
7065
|
{
|
|
@@ -7245,7 +7244,7 @@ var AffiliateCardMobile = (props) => {
|
|
|
7245
7244
|
{
|
|
7246
7245
|
size: 18,
|
|
7247
7246
|
color: "white",
|
|
7248
|
-
className: "oui-
|
|
7247
|
+
className: "oui-ms-auto",
|
|
7249
7248
|
onClick: () => {
|
|
7250
7249
|
routerAdapter?.onRouteChange({
|
|
7251
7250
|
href: "/rewards/affiliate?tab=affiliate",
|
|
@@ -7433,7 +7432,7 @@ var PortfolioValueMobile = (props) => {
|
|
|
7433
7432
|
/* @__PURE__ */ jsx(
|
|
7434
7433
|
"div",
|
|
7435
7434
|
{
|
|
7436
|
-
className: "oui-absolute oui-
|
|
7435
|
+
className: "oui-absolute oui-end-0 oui-top-0 oui-flex oui-h-full oui-items-center oui-justify-center oui-px-4",
|
|
7437
7436
|
onClick: () => props.routerAdapter?.onRouteChange({
|
|
7438
7437
|
href: "/portfolio/assets" /* Assets */,
|
|
7439
7438
|
name: "Assets"
|
|
@@ -7478,7 +7477,7 @@ var SettingRouterMobile = (props) => {
|
|
|
7478
7477
|
/* @__PURE__ */ jsx(
|
|
7479
7478
|
ChevronRightIcon,
|
|
7480
7479
|
{
|
|
7481
|
-
className: "oui-
|
|
7480
|
+
className: "oui-ms-auto",
|
|
7482
7481
|
size: 18,
|
|
7483
7482
|
opacity: 0.36,
|
|
7484
7483
|
color: "white"
|
|
@@ -7538,7 +7537,7 @@ var TraderCardMobile = (props) => {
|
|
|
7538
7537
|
{
|
|
7539
7538
|
size: 18,
|
|
7540
7539
|
color: "white",
|
|
7541
|
-
className: "oui-
|
|
7540
|
+
className: "oui-ms-auto",
|
|
7542
7541
|
onClick: () => {
|
|
7543
7542
|
routerAdapter?.onRouteChange({
|
|
7544
7543
|
href: "/rewards/affiliate?tab=trader",
|
|
@@ -7732,8 +7731,8 @@ var FeeTierTable = (props) => {
|
|
|
7732
7731
|
if (active) {
|
|
7733
7732
|
return {
|
|
7734
7733
|
className: cn(
|
|
7735
|
-
isFirstColumn && "oui-rounded-
|
|
7736
|
-
isLastColumn && "oui-rounded-
|
|
7734
|
+
isFirstColumn && "oui-rounded-s-lg",
|
|
7735
|
+
isLastColumn && "oui-rounded-e-lg"
|
|
7737
7736
|
),
|
|
7738
7737
|
...config.active
|
|
7739
7738
|
};
|
|
@@ -8095,7 +8094,7 @@ var PositionsPage = (props) => {
|
|
|
8095
8094
|
};
|
|
8096
8095
|
var LiquidationTab = () => {
|
|
8097
8096
|
const { t } = useTranslation();
|
|
8098
|
-
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-
|
|
8097
|
+
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-gap-x-1", children: [
|
|
8099
8098
|
/* @__PURE__ */ jsx("span", { children: t("positions.liquidation") }),
|
|
8100
8099
|
/* @__PURE__ */ jsx(
|
|
8101
8100
|
Tooltip,
|
|
@@ -8155,7 +8154,7 @@ var OrdersPage = (props) => {
|
|
|
8155
8154
|
onClick: onDownload,
|
|
8156
8155
|
children: [
|
|
8157
8156
|
t("common.download"),
|
|
8158
|
-
/* @__PURE__ */ jsx(TooltipIcon, { className: "oui-text-base-contrast-36 oui-
|
|
8157
|
+
/* @__PURE__ */ jsx(TooltipIcon, { className: "oui-text-base-contrast-36 oui-ms-[5px]" })
|
|
8159
8158
|
]
|
|
8160
8159
|
}
|
|
8161
8160
|
) })
|
|
@@ -8607,7 +8606,7 @@ var SettingMobile = (props) => {
|
|
|
8607
8606
|
size: "base",
|
|
8608
8607
|
weight: "semibold",
|
|
8609
8608
|
intensity: 80,
|
|
8610
|
-
className: "oui-
|
|
8609
|
+
className: "oui-ms-2",
|
|
8611
8610
|
children: t("languageSwitcher.language")
|
|
8612
8611
|
}
|
|
8613
8612
|
),
|
|
@@ -8615,7 +8614,7 @@ var SettingMobile = (props) => {
|
|
|
8615
8614
|
ChevronRightIcon,
|
|
8616
8615
|
{
|
|
8617
8616
|
size: 18,
|
|
8618
|
-
className: "oui-
|
|
8617
|
+
className: "oui-ms-auto oui-text-base-contrast-36"
|
|
8619
8618
|
}
|
|
8620
8619
|
)
|
|
8621
8620
|
]
|