@kodiak-finance/orderly-portfolio 2.9.2 → 2.9.3

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
@@ -209,7 +209,7 @@ var init_assets_ui = __esm({
209
209
  visible: props.visible,
210
210
  unit: "USDC",
211
211
  style: { "--oui-gradient-angle": "45deg" },
212
- unitClassName: "oui-text-base oui-text-base-contrast-80 oui-h-9 oui-ml-1",
212
+ unitClassName: "oui-text-base oui-text-base-contrast-80 oui-h-9 oui-ms-1",
213
213
  className: orderlyUi.gradientTextVariants({
214
214
  className: "oui-font-bold oui-text-3xl",
215
215
  color: "brand"
@@ -704,8 +704,8 @@ var init_assetHistory_ui_mobile = __esm({
704
704
  const itemColor = isDeposit ? "buy" : "sell";
705
705
  const amountView = /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { className: "oui-text-xs", children: [
706
706
  /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { color: itemColor, children: formattedAmount }),
707
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { className: "oui-ml-1", intensity: 80, children: item.token }),
708
- isWeb3Wallet && /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Badge, { color: itemColor, className: "oui-ml-2", children: isDeposit ? t("common.deposit") : t("common.withdraw") })
707
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { className: "oui-ms-1", intensity: 80, children: item.token }),
708
+ isWeb3Wallet && /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Badge, { color: itemColor, className: "oui-ms-2", children: isDeposit ? t("common.deposit") : t("common.withdraw") })
709
709
  ] });
710
710
  const statusView = /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { intensity: isWeb3Wallet ? 80 : 36, size: "xs", children: getStatusText(item) });
711
711
  const timeView = /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text.formatted, { rule: "date", intensity: 36, size: "2xs", children: item.created_time });
@@ -820,7 +820,7 @@ var init_assetHistory_ui_mobile = __esm({
820
820
  /* @__PURE__ */ jsxRuntime.jsx(
821
821
  orderlyUi.ArrowRightShortIcon,
822
822
  {
823
- className: "oui-ml-0.5 oui-size-4 oui-text-primary oui-opacity-100",
823
+ className: "oui-ms-0.5 oui-size-4 oui-text-primary oui-opacity-100",
824
824
  color: "primary",
825
825
  size: 16,
826
826
  opacity: 100
@@ -1064,7 +1064,7 @@ var init_fundingHistory_ui_mobile = __esm({
1064
1064
  orderlyUi.Text.formatted,
1065
1065
  {
1066
1066
  rule: "symbol",
1067
- className: "oui-text-base-contrast oui-mr-1 oui-text-sm",
1067
+ className: "oui-text-base-contrast oui-me-1 oui-text-sm",
1068
1068
  children: item.symbol
1069
1069
  }
1070
1070
  ),
@@ -1073,7 +1073,7 @@ var init_fundingHistory_ui_mobile = __esm({
1073
1073
  orderlyUi.Text.formatted,
1074
1074
  {
1075
1075
  rule: "date",
1076
- className: "oui-text-base-contrast-36 oui-text-2xs oui-ml-auto",
1076
+ className: "oui-text-base-contrast-36 oui-text-2xs oui-ms-auto",
1077
1077
  children: item.created_time
1078
1078
  }
1079
1079
  )
@@ -3306,7 +3306,7 @@ var init_convert_ui_mobile = __esm({
3306
3306
  statusOptions
3307
3307
  ]);
3308
3308
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-flex oui-flex-col oui-gap-1 oui-px-3", children: [
3309
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.ScrollIndicator, { className: "oui-pr-5", children: /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Flex, { direction: "row", children: dataFilter }) }),
3309
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.ScrollIndicator, { className: "oui-pe-5", children: /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Flex, { direction: "row", children: dataFilter }) }),
3310
3310
  convertState.dataSource.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
3311
3311
  ConvertMobileItem,
3312
3312
  {
@@ -3360,7 +3360,7 @@ var init_convert_ui_mobile = __esm({
3360
3360
  /* @__PURE__ */ jsxRuntime.jsx(
3361
3361
  "div",
3362
3362
  {
3363
- className: "oui-ml-2 oui-text-primary",
3363
+ className: "oui-ms-2 oui-text-primary",
3364
3364
  onClick: () => {
3365
3365
  orderlyUi.modal.show(ConverHistoryItemDetailsDialog, {
3366
3366
  item,
@@ -3730,7 +3730,7 @@ var init_vaults_ui_mobile = __esm({
3730
3730
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t("common.type") }),
3731
3731
  /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { color: typeColor, className: "oui-text-xs", children: typeText })
3732
3732
  ] }),
3733
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-right", children: [
3733
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-end", children: [
3734
3734
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t("common.amount") }),
3735
3735
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-text-xs oui-text-base-contrast-80", children: amountText })
3736
3736
  ] })
@@ -3944,7 +3944,7 @@ var init_historyDataGroup_ui_mobile = __esm({
3944
3944
  size: "lg",
3945
3945
  classNames: {
3946
3946
  tabsList: "oui-px-3 oui-py-2",
3947
- scrollIndicator: "oui-pr-3"
3947
+ scrollIndicator: "oui-pe-3"
3948
3948
  },
3949
3949
  showScrollIndicator: true,
3950
3950
  children: [
@@ -5740,7 +5740,7 @@ var init_createApiKey = __esm({
5740
5740
  )
5741
5741
  }
5742
5742
  ),
5743
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { color: "danger", size: "xs", className: "oui-ml-2", children: hint })
5743
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { color: "danger", size: "xs", className: "oui-ms-2", children: hint })
5744
5744
  ] })
5745
5745
  ] }),
5746
5746
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6132,7 +6132,7 @@ var init_editApiKey = __esm({
6132
6132
  )
6133
6133
  }
6134
6134
  ),
6135
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { color: "danger", size: "xs", className: "oui-ml-2", children: hint })
6135
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { color: "danger", size: "xs", className: "oui-ms-2", children: hint })
6136
6136
  ] })
6137
6137
  ] }),
6138
6138
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7466,7 +7466,7 @@ var EVMChains = () => {
7466
7466
  className: "oui-relative oui-z-0 oui-h-[18px] oui-w-[49px]"
7467
7467
  }
7468
7468
  ) }),
7469
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-relative oui-left-[-9px] oui-flex oui-items-center oui-justify-center oui-gap-1", children: [
7469
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-relative oui-start-[-9px] oui-flex oui-items-center oui-justify-center oui-gap-1", children: [
7470
7470
  /* @__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(
7471
7471
  MoreIcon,
7472
7472
  {
@@ -7651,7 +7651,7 @@ var AffiliateCardMobile = (props) => {
7651
7651
  {
7652
7652
  size: 18,
7653
7653
  color: "white",
7654
- className: "oui-ml-auto",
7654
+ className: "oui-ms-auto",
7655
7655
  onClick: () => {
7656
7656
  routerAdapter?.onRouteChange({
7657
7657
  href: "/rewards/affiliate?tab=affiliate",
@@ -7876,7 +7876,7 @@ var PortfolioValueMobile = (props) => {
7876
7876
  /* @__PURE__ */ jsxRuntime.jsx(
7877
7877
  "div",
7878
7878
  {
7879
- className: "oui-absolute oui-right-0 oui-top-0 oui-flex oui-h-full oui-items-center oui-justify-center oui-px-4",
7879
+ className: "oui-absolute oui-end-0 oui-top-0 oui-flex oui-h-full oui-items-center oui-justify-center oui-px-4",
7880
7880
  onClick: () => props.routerAdapter?.onRouteChange({
7881
7881
  href: "/portfolio/assets" /* Assets */,
7882
7882
  name: "Assets"
@@ -7921,7 +7921,7 @@ var SettingRouterMobile = (props) => {
7921
7921
  /* @__PURE__ */ jsxRuntime.jsx(
7922
7922
  orderlyUi.ChevronRightIcon,
7923
7923
  {
7924
- className: "oui-ml-auto",
7924
+ className: "oui-ms-auto",
7925
7925
  size: 18,
7926
7926
  opacity: 0.36,
7927
7927
  color: "white"
@@ -7981,7 +7981,7 @@ var TraderCardMobile = (props) => {
7981
7981
  {
7982
7982
  size: 18,
7983
7983
  color: "white",
7984
- className: "oui-ml-auto",
7984
+ className: "oui-ms-auto",
7985
7985
  onClick: () => {
7986
7986
  routerAdapter?.onRouteChange({
7987
7987
  href: "/rewards/affiliate?tab=trader",
@@ -8318,8 +8318,8 @@ var FeeTierTable = (props) => {
8318
8318
  if (active) {
8319
8319
  return {
8320
8320
  className: orderlyUi.cn(
8321
- isFirstColumn && "oui-rounded-l-lg",
8322
- isLastColumn && "oui-rounded-r-lg"
8321
+ isFirstColumn && "oui-rounded-s-lg",
8322
+ isLastColumn && "oui-rounded-e-lg"
8323
8323
  ),
8324
8324
  ...config.active
8325
8325
  };
@@ -8986,7 +8986,7 @@ var PositionsPage = (props) => {
8986
8986
  };
8987
8987
  var LiquidationTab = () => {
8988
8988
  const { t } = orderlyI18n.useTranslation();
8989
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-flex oui-space-x-1", children: [
8989
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-flex oui-gap-x-1", children: [
8990
8990
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("positions.liquidation") }),
8991
8991
  /* @__PURE__ */ jsxRuntime.jsx(
8992
8992
  orderlyUi.Tooltip,
@@ -9036,7 +9036,7 @@ var OrdersPage = (props) => {
9036
9036
  /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "lg", children: t("common.orders") }),
9037
9037
  /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Tooltip, { content: t("orders.download.tooltip"), children: /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Button, { color: "gray", size: "sm", className: "oui-bg-base-4", disabled: true, children: [
9038
9038
  t("common.download"),
9039
- /* @__PURE__ */ jsxRuntime.jsx(TooltipIcon, { className: "oui-text-base-contrast-36 oui-ml-[5px]" })
9039
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipIcon, { className: "oui-text-base-contrast-36 oui-ms-[5px]" })
9040
9040
  ] }) })
9041
9041
  ] }),
9042
9042
  /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Divider, { className: "oui-w-full" }),
@@ -9527,7 +9527,7 @@ var SettingMobile = (props) => {
9527
9527
  size: "base",
9528
9528
  weight: "semibold",
9529
9529
  intensity: 80,
9530
- className: "oui-ml-2",
9530
+ className: "oui-ms-2",
9531
9531
  children: t("languageSwitcher.language")
9532
9532
  }
9533
9533
  ),
@@ -9535,7 +9535,7 @@ var SettingMobile = (props) => {
9535
9535
  orderlyUi.ChevronRightIcon,
9536
9536
  {
9537
9537
  size: 18,
9538
- className: "oui-ml-auto oui-text-base-contrast-36"
9538
+ className: "oui-ms-auto oui-text-base-contrast-36"
9539
9539
  }
9540
9540
  )
9541
9541
  ]
@@ -11000,7 +11000,7 @@ var PnLRankingChart = ({
11000
11000
  size: "sm",
11001
11001
  weight: "semibold",
11002
11002
  className: orderlyUi.cn(
11003
- "oui-relative oui-z-10 oui-ml-2",
11003
+ "oui-relative oui-z-10 oui-ms-2",
11004
11004
  isPositive ? "oui-text-profit-500" : "oui-text-loss-500"
11005
11005
  ),
11006
11006
  children: [
@@ -11798,7 +11798,7 @@ var PnLRankingChartMobile = ({
11798
11798
  size: "xs",
11799
11799
  weight: "semibold",
11800
11800
  className: orderlyUi.cn(
11801
- "oui-relative oui-z-10 oui-ml-2",
11801
+ "oui-relative oui-z-10 oui-ms-2",
11802
11802
  isPositive ? "oui-text-profit-500" : "oui-text-loss-500"
11803
11803
  ),
11804
11804
  children: [