@kodiak-finance/orderly-markets 2.8.20 → 2.8.21-beta.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
@@ -4366,7 +4366,7 @@ var init_dataItem_ui = __esm({
4366
4366
  {
4367
4367
  open: hint ? void 0 : false,
4368
4368
  content: hint,
4369
- className: "oui-max-w-[330px] oui-bg-base-6 ",
4369
+ className: "oui-max-w-[420px] oui-bg-base-6 ",
4370
4370
  arrow: { className: "oui-fill-base-6" },
4371
4371
  delayDuration: 300,
4372
4372
  children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -5663,11 +5663,11 @@ var SymbolInfoBar = (props) => {
5663
5663
  ),
5664
5664
  children: [
5665
5665
  /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gapX: 3, className: "oui-flex-1 oui-overflow-hidden oui-h-full", children: [
5666
- /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gapX: 3, children: [
5666
+ /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gapX: 2, itemAlign: "center", children: [
5667
5667
  /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.TokenIcon, { symbol, size: "xs" }),
5668
- /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { direction: "column", itemAlign: "start", children: [
5668
+ /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gapX: 2, itemAlign: "center", children: [
5669
5669
  symbolView,
5670
- /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gap: 1, children: [
5670
+ /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gap: 1, itemAlign: "center", children: [
5671
5671
  /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Badge, { size: "xs", color: "primary", children: [
5672
5672
  leverage,
5673
5673
  "x"
@@ -5750,23 +5750,40 @@ var FundingRateHint = (props) => {
5750
5750
  return null;
5751
5751
  }
5752
5752
  return /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { justify: "between", itemAlign: "center", width: "100%", children: [
5753
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { intensity: 54, children: annualizedValue ? `${label}/ ${t("trading.fundingRate.annualized")}` : label }),
5753
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 54, className: "oui-whitespace-nowrap", children: annualizedValue ? `${label}/ ${t("trading.fundingRate.annualized")}` : label }),
5754
5754
  /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { itemAlign: "end", gap: 1, className: "oui-text-base-contrast-80", children: [
5755
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { intensity: 80, children: value }),
5755
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 80, className: "oui-font-semibold", children: value }),
5756
5756
  annualizedValue && " / ",
5757
- annualizedValue && annualizedValue
5757
+ annualizedValue && /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 80, className: "oui-font-semibold", children: annualizedValue })
5758
5758
  ] })
5759
5759
  ] });
5760
5760
  };
5761
5761
  return /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { width: "100%", itemAlign: "center", direction: "column", gap: 1, children: [
5762
- renderRow(
5763
- t("trading.fundingRate.predFundingRate.interval"),
5764
- fundingPeriod
5765
- ),
5766
- renderRow(
5767
- t("trading.fundingRate.predFundingRate.cap") + " / " + t("trading.fundingRate.predFundingRate.floor"),
5768
- capFunding + " / " + floorFunding
5769
- ),
5762
+ /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { justify: "between", itemAlign: "center", width: "100%", children: [
5763
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 54, className: "oui-flex-shrink-0", children: t("trading.fundingRate.predFundingRate.interval") }),
5764
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 80, className: "oui-flex-shrink-0", children: fundingPeriod })
5765
+ ] }),
5766
+ /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { justify: "between", itemAlign: "center", width: "100%", children: [
5767
+ /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Text, { size: "xs", intensity: 54, className: "oui-flex-shrink-0", children: [
5768
+ t("trading.fundingRate.predFundingRate.cap"),
5769
+ " /",
5770
+ " ",
5771
+ t("trading.fundingRate.predFundingRate.floor")
5772
+ ] }),
5773
+ /* @__PURE__ */ jsxRuntime.jsxs(
5774
+ orderlyUi.Text,
5775
+ {
5776
+ size: "xs",
5777
+ intensity: 80,
5778
+ className: "oui-flex-shrink-0 oui-font-semibold oui-whitespace-nowrap",
5779
+ children: [
5780
+ capFunding,
5781
+ " / ",
5782
+ floorFunding
5783
+ ]
5784
+ }
5785
+ )
5786
+ ] }),
5770
5787
  renderRow(
5771
5788
  t("trading.fundingRate.lastFundingRate"),
5772
5789
  lastFundingRate,
@@ -5778,8 +5795,8 @@ var FundingRateHint = (props) => {
5778
5795
  estFundingRateAnnualized
5779
5796
  ),
5780
5797
  renderRow(t("trading.fundingRate.estimatedFundingFee"), estFundingFee),
5781
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Divider, { className: "oui-w-full", intensity: 8 }),
5782
- t("markets.symbolInfoBar.predFundingRate.tooltip")
5798
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Divider, { my: 4, className: "oui-w-full", intensity: 8 }),
5799
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { intensity: 54, children: t("markets.symbolInfoBar.predFundingRate.tooltip") })
5783
5800
  ] });
5784
5801
  };
5785
5802
  var useFundingRateHintScript = (symbol) => {