@orderly.network/portfolio 3.0.4-alpha.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 CHANGED
@@ -183,7 +183,7 @@ var init_assets_ui = __esm({
183
183
  visible: props.visible,
184
184
  unit: "USDC",
185
185
  style: { "--oui-gradient-angle": "45deg" },
186
- unitClassName: "oui-text-base oui-text-base-contrast-80 oui-h-9 oui-ml-1",
186
+ unitClassName: "oui-text-base oui-text-base-contrast-80 oui-h-9 oui-ms-1",
187
187
  className: ui.gradientTextVariants({
188
188
  className: "oui-font-bold oui-text-3xl",
189
189
  color: "brand"
@@ -267,7 +267,6 @@ var init_assets_ui = __esm({
267
267
  )
268
268
  }
269
269
  ),
270
- align: "right",
271
270
  valueProps: { size: "lg", visible: props.visible },
272
271
  children: props.freeCollateral
273
272
  }
@@ -678,8 +677,8 @@ var init_assetHistory_ui_mobile = __esm({
678
677
  const itemColor = isDeposit ? "buy" : "sell";
679
678
  const amountView = /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { className: "oui-text-xs", children: [
680
679
  /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { color: itemColor, children: formattedAmount }),
681
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ml-1", intensity: 80, children: item.token }),
682
- isWeb3Wallet && /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { color: itemColor, className: "oui-ml-2", children: isDeposit ? t("common.deposit") : t("common.withdraw") })
680
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ms-1", intensity: 80, children: item.token }),
681
+ isWeb3Wallet && /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { color: itemColor, className: "oui-ms-2", children: isDeposit ? t("common.deposit") : t("common.withdraw") })
683
682
  ] });
684
683
  const statusView = /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { intensity: isWeb3Wallet ? 80 : 36, size: "xs", children: getStatusText(item) });
685
684
  const timeView = /* @__PURE__ */ jsxRuntime.jsx(ui.Text.formatted, { rule: "date", intensity: 36, size: "2xs", children: item.created_time });
@@ -794,7 +793,7 @@ var init_assetHistory_ui_mobile = __esm({
794
793
  /* @__PURE__ */ jsxRuntime.jsx(
795
794
  ui.ArrowRightShortIcon,
796
795
  {
797
- className: "oui-ml-0.5 oui-size-4 oui-text-primary oui-opacity-100",
796
+ className: "oui-ms-0.5 oui-size-4 oui-text-primary oui-opacity-100",
798
797
  color: "primary",
799
798
  size: 16,
800
799
  opacity: 100
@@ -1052,7 +1051,7 @@ var init_fundingHistory_ui_mobile = __esm({
1052
1051
  {
1053
1052
  rule: "symbol",
1054
1053
  formatString: "base",
1055
- className: "oui-text-base-contrast oui-mr-1 oui-text-sm",
1054
+ className: "oui-text-base-contrast oui-me-1 oui-text-sm",
1056
1055
  suffix: /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "row", gap: 1, children: [
1057
1056
  " ",
1058
1057
  /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { color: "neutral", size: "xs", children: switchPaymentType(item.payment_type) }),
@@ -1065,7 +1064,7 @@ var init_fundingHistory_ui_mobile = __esm({
1065
1064
  ui.Text.formatted,
1066
1065
  {
1067
1066
  rule: "date",
1068
- className: "oui-text-base-contrast-36 oui-text-2xs oui-ml-auto",
1067
+ className: "oui-text-base-contrast-36 oui-text-2xs oui-ms-auto",
1069
1068
  children: item.created_time
1070
1069
  }
1071
1070
  )
@@ -2862,7 +2861,7 @@ var init_convert_column = __esm({
2862
2861
  ]
2863
2862
  }
2864
2863
  );
2865
- }, [assets]);
2864
+ }, [assets, convertedAssets, t]);
2866
2865
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { itemAlign: "center", gap: 2, children: [
2867
2866
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-relative oui-flex", children: assets.slice(0, 3).map((asset, index) => /* @__PURE__ */ jsxRuntime.jsx(
2868
2867
  "div",
@@ -2978,7 +2977,7 @@ var init_convert_column = __esm({
2978
2977
  }
2979
2978
  }
2980
2979
  ];
2981
- }, [onDetailsClick]);
2980
+ }, [onDetailsClick, t]);
2982
2981
  return columns;
2983
2982
  };
2984
2983
  useConvertDetailColumns = (options) => {
@@ -3074,7 +3073,7 @@ var init_convert_column = __esm({
3074
3073
  }
3075
3074
  }
3076
3075
  ];
3077
- }, []);
3076
+ }, [t]);
3078
3077
  return columns;
3079
3078
  };
3080
3079
  }
@@ -3298,7 +3297,7 @@ var init_convert_ui_mobile = __esm({
3298
3297
  statusOptions
3299
3298
  ]);
3300
3299
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-flex oui-flex-col oui-gap-1 oui-px-3", children: [
3301
- /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollIndicator, { className: "oui-pr-5", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Flex, { direction: "row", children: dataFilter }) }),
3300
+ /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollIndicator, { className: "oui-pe-5", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Flex, { direction: "row", children: dataFilter }) }),
3302
3301
  convertState.dataSource.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
3303
3302
  ConvertMobileItem,
3304
3303
  {
@@ -3352,7 +3351,7 @@ var init_convert_ui_mobile = __esm({
3352
3351
  /* @__PURE__ */ jsxRuntime.jsx(
3353
3352
  "div",
3354
3353
  {
3355
- className: "oui-ml-2 oui-text-primary",
3354
+ className: "oui-ms-2 oui-text-primary",
3356
3355
  onClick: () => {
3357
3356
  ui.modal.show(ConverHistoryItemDetailsDialog, {
3358
3357
  item,
@@ -3722,7 +3721,7 @@ var init_vaults_ui_mobile = __esm({
3722
3721
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t("common.type") }),
3723
3722
  /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { color: typeColor, className: "oui-text-xs", children: typeText })
3724
3723
  ] }),
3725
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-right", children: [
3724
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-end", children: [
3726
3725
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t("common.amount") }),
3727
3726
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-text-xs oui-text-base-contrast-80", children: amountText })
3728
3727
  ] })
@@ -3936,7 +3935,7 @@ var init_historyDataGroup_ui_mobile = __esm({
3936
3935
  size: "lg",
3937
3936
  classNames: {
3938
3937
  tabsList: "oui-px-3 oui-py-2",
3939
- scrollIndicator: "oui-pr-3"
3938
+ scrollIndicator: "oui-pe-3"
3940
3939
  },
3941
3940
  showScrollIndicator: true,
3942
3941
  children: [
@@ -5368,7 +5367,7 @@ var init_createApiKey = __esm({
5368
5367
  )
5369
5368
  }
5370
5369
  ),
5371
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { color: "danger", size: "xs", className: "oui-ml-2", children: hint })
5370
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { color: "danger", size: "xs", className: "oui-ms-2", children: hint })
5372
5371
  ] })
5373
5372
  ] }),
5374
5373
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5760,7 +5759,7 @@ var init_editApiKey = __esm({
5760
5759
  )
5761
5760
  }
5762
5761
  ),
5763
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { color: "danger", size: "xs", className: "oui-ml-2", children: hint })
5762
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { color: "danger", size: "xs", className: "oui-ms-2", children: hint })
5764
5763
  ] })
5765
5764
  ] }),
5766
5765
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7067,7 +7066,7 @@ var EVMChains = () => {
7067
7066
  className: "oui-relative oui-z-0 oui-h-[18px] oui-w-[49px]"
7068
7067
  }
7069
7068
  ) }),
7070
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-relative oui-left-[-9px] oui-flex oui-items-center oui-justify-center oui-gap-1", children: [
7069
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-relative oui-start-[-9px] oui-flex oui-items-center oui-justify-center oui-gap-1", children: [
7071
7070
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-flex oui-size-[18px] oui-items-center oui-justify-center oui-rounded-full oui-bg-base-5", children: /* @__PURE__ */ jsxRuntime.jsx(EVMChainPopover, { children: /* @__PURE__ */ jsxRuntime.jsx(
7072
7071
  MoreIcon,
7073
7072
  {
@@ -7252,7 +7251,7 @@ var AffiliateCardMobile = (props) => {
7252
7251
  {
7253
7252
  size: 18,
7254
7253
  color: "white",
7255
- className: "oui-ml-auto",
7254
+ className: "oui-ms-auto",
7256
7255
  onClick: () => {
7257
7256
  routerAdapter?.onRouteChange({
7258
7257
  href: "/rewards/affiliate?tab=affiliate",
@@ -7440,7 +7439,7 @@ var PortfolioValueMobile = (props) => {
7440
7439
  /* @__PURE__ */ jsxRuntime.jsx(
7441
7440
  "div",
7442
7441
  {
7443
- className: "oui-absolute oui-right-0 oui-top-0 oui-flex oui-h-full oui-items-center oui-justify-center oui-px-4",
7442
+ className: "oui-absolute oui-end-0 oui-top-0 oui-flex oui-h-full oui-items-center oui-justify-center oui-px-4",
7444
7443
  onClick: () => props.routerAdapter?.onRouteChange({
7445
7444
  href: "/portfolio/assets" /* Assets */,
7446
7445
  name: "Assets"
@@ -7485,7 +7484,7 @@ var SettingRouterMobile = (props) => {
7485
7484
  /* @__PURE__ */ jsxRuntime.jsx(
7486
7485
  ui.ChevronRightIcon,
7487
7486
  {
7488
- className: "oui-ml-auto",
7487
+ className: "oui-ms-auto",
7489
7488
  size: 18,
7490
7489
  opacity: 0.36,
7491
7490
  color: "white"
@@ -7545,7 +7544,7 @@ var TraderCardMobile = (props) => {
7545
7544
  {
7546
7545
  size: 18,
7547
7546
  color: "white",
7548
- className: "oui-ml-auto",
7547
+ className: "oui-ms-auto",
7549
7548
  onClick: () => {
7550
7549
  routerAdapter?.onRouteChange({
7551
7550
  href: "/rewards/affiliate?tab=trader",
@@ -7739,8 +7738,8 @@ var FeeTierTable = (props) => {
7739
7738
  if (active) {
7740
7739
  return {
7741
7740
  className: ui.cn(
7742
- isFirstColumn && "oui-rounded-l-lg",
7743
- isLastColumn && "oui-rounded-r-lg"
7741
+ isFirstColumn && "oui-rounded-s-lg",
7742
+ isLastColumn && "oui-rounded-e-lg"
7744
7743
  ),
7745
7744
  ...config.active
7746
7745
  };
@@ -8102,7 +8101,7 @@ var PositionsPage = (props) => {
8102
8101
  };
8103
8102
  var LiquidationTab = () => {
8104
8103
  const { t } = i18n.useTranslation();
8105
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-flex oui-space-x-1", children: [
8104
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-flex oui-gap-x-1", children: [
8106
8105
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("positions.liquidation") }),
8107
8106
  /* @__PURE__ */ jsxRuntime.jsx(
8108
8107
  ui.Tooltip,
@@ -8162,7 +8161,7 @@ var OrdersPage = (props) => {
8162
8161
  onClick: onDownload,
8163
8162
  children: [
8164
8163
  t("common.download"),
8165
- /* @__PURE__ */ jsxRuntime.jsx(TooltipIcon, { className: "oui-text-base-contrast-36 oui-ml-[5px]" })
8164
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipIcon, { className: "oui-text-base-contrast-36 oui-ms-[5px]" })
8166
8165
  ]
8167
8166
  }
8168
8167
  ) })
@@ -8614,7 +8613,7 @@ var SettingMobile = (props) => {
8614
8613
  size: "base",
8615
8614
  weight: "semibold",
8616
8615
  intensity: 80,
8617
- className: "oui-ml-2",
8616
+ className: "oui-ms-2",
8618
8617
  children: t("languageSwitcher.language")
8619
8618
  }
8620
8619
  ),
@@ -8622,7 +8621,7 @@ var SettingMobile = (props) => {
8622
8621
  ui.ChevronRightIcon,
8623
8622
  {
8624
8623
  size: 18,
8625
- className: "oui-ml-auto oui-text-base-contrast-36"
8624
+ className: "oui-ms-auto oui-text-base-contrast-36"
8626
8625
  }
8627
8626
  )
8628
8627
  ]