@orderly.network/affiliate 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.mjs CHANGED
@@ -1241,8 +1241,8 @@ var TradingVolumeProgress = (props) => {
1241
1241
  width: `${progressPercentage}%`
1242
1242
  },
1243
1243
  className: cn(
1244
- "oui-tradingVolumeProgress-bar oui-h-full oui-rounded-l-full oui-bg-primary-light",
1245
- progressPercentage === 100 && "oui-rounded-r-full"
1244
+ "oui-tradingVolumeProgress-bar oui-h-full oui-rounded-s-full oui-bg-primary-light",
1245
+ progressPercentage === 100 && "oui-rounded-e-full"
1246
1246
  )
1247
1247
  }
1248
1248
  ) })
@@ -2763,7 +2763,7 @@ var RefereesTableUI = (props) => {
2763
2763
  !record.is_default_rate && /* @__PURE__ */ jsx(
2764
2764
  Text,
2765
2765
  {
2766
- className: "oui-refereesTable-reset-btn oui-ml-2 oui-cursor-pointer oui-text-primary-light",
2766
+ className: "oui-refereesTable-reset-btn oui-ms-2 oui-cursor-pointer oui-text-primary-light",
2767
2767
  onClick: () => props.onEditReferee("reset" /* Reset */, record),
2768
2768
  children: t("common.reset")
2769
2769
  }
@@ -3834,7 +3834,7 @@ var AutoHideText = (props) => {
3834
3834
  const maxDisplayW = containerWidth - pWidth;
3835
3835
  let count = 0;
3836
3836
  while (count < text.length) {
3837
- let contentW = getTextWidth(textElement, subText(text, count++)) || maxDisplayW;
3837
+ const contentW = getTextWidth(textElement, subText(text, count++)) || maxDisplayW;
3838
3838
  if (contentW <= maxDisplayW) {
3839
3839
  break;
3840
3840
  }
@@ -3862,18 +3862,25 @@ var AutoHideText = (props) => {
3862
3862
  );
3863
3863
  return `${startText}...${endText}`;
3864
3864
  }, [text, visibleCount, visibleChars]);
3865
- return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: cn("oui-relative oui-w-full oui-text-end", props.className), children: [
3866
- /* @__PURE__ */ jsx(
3867
- "div",
3868
- {
3869
- className: cn(
3870
- "oui-hidden oui-whitespace-nowrap oui-absolute oui-top-0 oui-bottom-0 oui-right-0 oui-left-0"
3865
+ return /* @__PURE__ */ jsxs(
3866
+ "div",
3867
+ {
3868
+ ref: containerRef,
3869
+ className: cn("oui-relative oui-w-full oui-text-end", props.className),
3870
+ children: [
3871
+ /* @__PURE__ */ jsx(
3872
+ "div",
3873
+ {
3874
+ className: cn(
3875
+ "oui-hidden oui-whitespace-nowrap oui-absolute oui-top-0 oui-bottom-0 oui-end-0 oui-start-0"
3876
+ ),
3877
+ children: /* @__PURE__ */ jsx("span", { ref: textRef, children: text })
3878
+ }
3871
3879
  ),
3872
- children: /* @__PURE__ */ jsx("span", { ref: textRef, children: text })
3873
- }
3874
- ),
3875
- /* @__PURE__ */ jsx("span", { children: truncatedText })
3876
- ] });
3880
+ /* @__PURE__ */ jsx("span", { children: truncatedText })
3881
+ ]
3882
+ }
3883
+ );
3877
3884
  };
3878
3885
  var subText = (text, count) => {
3879
3886
  const start = Math.floor(text.length / 2 - (count > 0 ? count / 2 : 1));
@@ -4577,7 +4584,7 @@ var DesktopLayout = (props) => {
4577
4584
  title: t("affiliate.referralCodes.column.you&Referee"),
4578
4585
  dataIndex: "dffd",
4579
4586
  width: moreColumn ? 120 : 120,
4580
- className: "oui-pr-0",
4587
+ className: "oui-pe-0",
4581
4588
  render: (value, data) => {
4582
4589
  return /* @__PURE__ */ jsxs(Flex, { direction: "row", itemAlign: "center", gap: 1, children: [
4583
4590
  getRate(data),
@@ -4599,14 +4606,14 @@ var DesktopLayout = (props) => {
4599
4606
  title: t("affiliate.referees"),
4600
4607
  dataIndex: "referee_rebate_rate",
4601
4608
  width: 65,
4602
- className: "oui-pr-0",
4609
+ className: "oui-pe-0",
4603
4610
  render: (value, data) => getCount(data).split("/")[0]
4604
4611
  });
4605
4612
  cols.push({
4606
4613
  title: t("affiliate.referralCodes.column.traders"),
4607
4614
  dataIndex: "referrer_rebate_rate",
4608
4615
  width: 65,
4609
- className: "oui-pr-0",
4616
+ className: "oui-pe-0",
4610
4617
  render: (value, data) => getCount(data).split("/")[1]
4611
4618
  });
4612
4619
  } else {
@@ -4614,7 +4621,7 @@ var DesktopLayout = (props) => {
4614
4621
  title: t("affiliate.referralCodes.column.referees&Traders"),
4615
4622
  dataIndex: "total_invites/total_traded",
4616
4623
  width: 120,
4617
- fixed: "left",
4624
+ fixed: "start",
4618
4625
  render: (value, data) => getCount(data)
4619
4626
  });
4620
4627
  }
@@ -4775,7 +4782,7 @@ var EditCodeModal = modal.create((props) => {
4775
4782
  Text,
4776
4783
  {
4777
4784
  className: cn(
4778
- "oui-ml-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4785
+ "oui-ms-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4779
4786
  filedError.length ? "oui-text-danger" : "oui-text-success"
4780
4787
  ),
4781
4788
  children: t("affiliate.referralCode.editCodeModal.helpText.length")
@@ -4785,7 +4792,7 @@ var EditCodeModal = modal.create((props) => {
4785
4792
  Text,
4786
4793
  {
4787
4794
  className: cn(
4788
- "oui-ml-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4795
+ "oui-ms-4 oui-list-item oui-list-outside oui-list-disc oui-text-xs oui-text-base-contrast-36 marker:oui-text-3xs",
4789
4796
  "oui-text-success"
4790
4797
  ),
4791
4798
  children: t("affiliate.referralCode.editCodeModal.helpText.format")
@@ -4858,7 +4865,7 @@ var EditReferralRate = modal.create((props) => {
4858
4865
  /* @__PURE__ */ jsx("div", { className: "oui-text-xs oui-text-base-contrast-54", children: t("affiliate.referralRate.editRateModal.description") }),
4859
4866
  /* @__PURE__ */ jsxs("div", { className: "oui-text-xs oui-text-base-contrast-80 oui-mt-2 oui-flex", children: [
4860
4867
  t("affiliate.referralRate.editRateModal.label"),
4861
- /* @__PURE__ */ jsx("div", { className: "oui-text-warning-darken oui-pl-1", children: `${new Decimal(
4868
+ /* @__PURE__ */ jsx("div", { className: "oui-text-warning-darken oui-ps-1", children: `${new Decimal(
4862
4869
  code.max_rebate_rate
4863
4870
  ).mul(100).toFixed(0, Decimal.ROUND_DOWN)}%` })
4864
4871
  ] }),
@@ -5185,7 +5192,7 @@ var CommissionList = (props) => {
5185
5192
  }
5186
5193
  }
5187
5194
  );
5188
- }, [isMobile, props.commission]);
5195
+ }, [columns, isMobile, props.commission, t]);
5189
5196
  return /* @__PURE__ */ jsxs(
5190
5197
  Flex,
5191
5198
  {
@@ -5347,7 +5354,7 @@ var RefereesList = (props) => {
5347
5354
  }
5348
5355
  }
5349
5356
  );
5350
- }, [isMobile, props.referees]);
5357
+ }, [columns, isMobile, props.referees, t]);
5351
5358
  return /* @__PURE__ */ jsx(
5352
5359
  Flex,
5353
5360
  {
@@ -7036,7 +7043,7 @@ var Tab = (props) => {
7036
7043
  style: {
7037
7044
  position: "absolute",
7038
7045
  top: "50%",
7039
- right: "24px",
7046
+ insetInlineEnd: "24px",
7040
7047
  transform: "translateY(-50%)"
7041
7048
  },
7042
7049
  onClick: (e) => {
@@ -7060,7 +7067,7 @@ var Tab = (props) => {
7060
7067
  style: {
7061
7068
  position: "absolute",
7062
7069
  top: "50%",
7063
- right: "24px",
7070
+ insetInlineEnd: "24px",
7064
7071
  transform: "translateY(-50%)"
7065
7072
  },
7066
7073
  onClick: (e) => {