@kodiak-finance/orderly-affiliate 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
@@ -1112,8 +1112,8 @@ var TradingVolumeProgress = (props) => {
1112
1112
  width: `${progressPercentage}%`
1113
1113
  },
1114
1114
  className: orderlyUi.cn(
1115
- "oui-tradingVolumeProgress-bar oui-h-full oui-rounded-l-full oui-bg-primary-light",
1116
- progressPercentage === 100 && "oui-rounded-r-full"
1115
+ "oui-tradingVolumeProgress-bar oui-h-full oui-rounded-s-full oui-bg-primary-light",
1116
+ progressPercentage === 100 && "oui-rounded-e-full"
1117
1117
  )
1118
1118
  }
1119
1119
  ) })
@@ -2582,7 +2582,7 @@ var RefereesTableUI = (props) => {
2582
2582
  !record.is_default_rate && /* @__PURE__ */ jsxRuntime.jsx(
2583
2583
  orderlyUi.Text,
2584
2584
  {
2585
- className: "oui-refereesTable-reset-btn oui-ml-2 oui-cursor-pointer oui-text-primary-light",
2585
+ className: "oui-refereesTable-reset-btn oui-ms-2 oui-cursor-pointer oui-text-primary-light",
2586
2586
  onClick: () => props.onEditReferee("reset" /* Reset */, record),
2587
2587
  children: t("common.reset")
2588
2588
  }
@@ -3691,7 +3691,7 @@ var AutoHideText = (props) => {
3691
3691
  "div",
3692
3692
  {
3693
3693
  className: orderlyUi.cn(
3694
- "oui-hidden oui-whitespace-nowrap oui-absolute oui-top-0 oui-bottom-0 oui-right-0 oui-left-0"
3694
+ "oui-hidden oui-whitespace-nowrap oui-absolute oui-top-0 oui-bottom-0 oui-end-0 oui-start-0"
3695
3695
  ),
3696
3696
  children: /* @__PURE__ */ jsxRuntime.jsx("span", { ref: textRef, children: text })
3697
3697
  }
@@ -4422,7 +4422,7 @@ var DesktopLayout = (props) => {
4422
4422
  title: t("affiliate.referralCodes.column.you&Referee"),
4423
4423
  dataIndex: "dffd",
4424
4424
  width: moreColumn ? 120 : 120,
4425
- className: "oui-pr-0",
4425
+ className: "oui-pe-0",
4426
4426
  render: (value, data) => {
4427
4427
  return /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { direction: "row", itemAlign: "center", gap: 1, children: [
4428
4428
  getRate(data),
@@ -4444,14 +4444,14 @@ var DesktopLayout = (props) => {
4444
4444
  title: t("affiliate.referees"),
4445
4445
  dataIndex: "referee_rebate_rate",
4446
4446
  width: 65,
4447
- className: "oui-pr-0",
4447
+ className: "oui-pe-0",
4448
4448
  render: (value, data) => getCount(data).split("/")[0]
4449
4449
  });
4450
4450
  cols.push({
4451
4451
  title: t("affiliate.referralCodes.column.traders"),
4452
4452
  dataIndex: "referrer_rebate_rate",
4453
4453
  width: 65,
4454
- className: "oui-pr-0",
4454
+ className: "oui-pe-0",
4455
4455
  render: (value, data) => getCount(data).split("/")[1]
4456
4456
  });
4457
4457
  } else {
@@ -4459,7 +4459,7 @@ var DesktopLayout = (props) => {
4459
4459
  title: t("affiliate.referralCodes.column.referees&Traders"),
4460
4460
  dataIndex: "total_invites/total_traded",
4461
4461
  width: 120,
4462
- fixed: "left",
4462
+ fixed: "start",
4463
4463
  render: (value, data) => getCount(data)
4464
4464
  });
4465
4465
  }
@@ -4620,7 +4620,7 @@ var EditCodeModal = orderlyUi.modal.create((props) => {
4620
4620
  orderlyUi.Text,
4621
4621
  {
4622
4622
  className: orderlyUi.cn(
4623
- "oui-ml-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4623
+ "oui-ms-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4624
4624
  filedError.length ? "oui-text-danger" : "oui-text-success"
4625
4625
  ),
4626
4626
  children: t("affiliate.referralCode.editCodeModal.helpText.length")
@@ -4630,7 +4630,7 @@ var EditCodeModal = orderlyUi.modal.create((props) => {
4630
4630
  orderlyUi.Text,
4631
4631
  {
4632
4632
  className: orderlyUi.cn(
4633
- "oui-ml-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4633
+ "oui-ms-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4634
4634
  "oui-text-success"
4635
4635
  ),
4636
4636
  children: t("affiliate.referralCode.editCodeModal.helpText.format")
@@ -4703,7 +4703,7 @@ var EditReferralRate = orderlyUi.modal.create((props) => {
4703
4703
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-text-xs oui-text-base-contrast-54", children: t("affiliate.referralRate.editRateModal.description") }),
4704
4704
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-xs oui-text-base-contrast-80 oui-mt-2 oui-flex", children: [
4705
4705
  t("affiliate.referralRate.editRateModal.label"),
4706
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-text-warning-darken oui-pl-1", children: `${new orderlyUtils.Decimal(
4706
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-text-warning-darken oui-ps-1", children: `${new orderlyUtils.Decimal(
4707
4707
  code.max_rebate_rate
4708
4708
  ).mul(100).toFixed(0, orderlyUtils.Decimal.ROUND_DOWN)}%` })
4709
4709
  ] }),
@@ -5030,7 +5030,7 @@ var CommissionList = (props) => {
5030
5030
  }
5031
5031
  }
5032
5032
  );
5033
- }, [isMobile, props.commission]);
5033
+ }, [columns, isMobile, props.commission, t]);
5034
5034
  return /* @__PURE__ */ jsxRuntime.jsxs(
5035
5035
  orderlyUi.Flex,
5036
5036
  {
@@ -5192,7 +5192,7 @@ var RefereesList = (props) => {
5192
5192
  }
5193
5193
  }
5194
5194
  );
5195
- }, [isMobile, props.referees]);
5195
+ }, [columns, isMobile, props.referees, t]);
5196
5196
  return /* @__PURE__ */ jsxRuntime.jsx(
5197
5197
  orderlyUi.Flex,
5198
5198
  {
@@ -6924,7 +6924,7 @@ var Tab = (props) => {
6924
6924
  style: {
6925
6925
  position: "absolute",
6926
6926
  top: "50%",
6927
- right: "24px",
6927
+ insetInlineEnd: "24px",
6928
6928
  transform: "translateY(-50%)"
6929
6929
  },
6930
6930
  onClick: (e) => {
@@ -6948,7 +6948,7 @@ var Tab = (props) => {
6948
6948
  style: {
6949
6949
  position: "absolute",
6950
6950
  top: "50%",
6951
- right: "24px",
6951
+ insetInlineEnd: "24px",
6952
6952
  transform: "translateY(-50%)"
6953
6953
  },
6954
6954
  onClick: (e) => {