@orderly.network/markets 2.11.1 → 2.11.2

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
@@ -1537,155 +1537,235 @@ var init_rwaDotTooltip = __esm({
1537
1537
  };
1538
1538
  }
1539
1539
  });
1540
- var useSideMarketsColumns;
1541
- var init_column = __esm({
1542
- "src/components/sideMarkets/column.tsx"() {
1543
- init_icons();
1544
- init_favoritesDropdownMenu();
1545
- init_rwaDotTooltip();
1546
- init_symbolDisplay();
1547
- useSideMarketsColumns = (favorite, isFavoriteList = false) => {
1548
- const { t } = i18n.useTranslation();
1549
- return [
1550
- {
1551
- title: `${t("markets.column.market")} / ${t("common.volume")}`,
1552
- dataIndex: "24h_amount",
1553
- multiSort: {
1554
- fields: [
1555
- {
1556
- sortKey: "symbol",
1557
- label: t("markets.column.market")
1558
- },
1559
- {
1560
- sortKey: "24h_amount",
1561
- label: t("common.volume")
1562
- }
1563
- ]
1564
- },
1565
- className: "oui-h-[36px]",
1566
- render: (value, record) => {
1567
- let favoritesIcon;
1568
- if (!isFavoriteList) {
1569
- favoritesIcon = /* @__PURE__ */ jsxRuntime.jsx(exports.FavoritesDropdownMenuWidget, { row: record, favorite, children: /* @__PURE__ */ jsxRuntime.jsx(
1570
- ui.Flex,
1571
- {
1572
- width: 12,
1573
- height: 12,
1574
- justify: "center",
1575
- itemAlign: "center",
1576
- className: "oui-mr-1 oui-cursor-pointer",
1577
- children: record.isFavorite ? /* @__PURE__ */ jsxRuntime.jsx(FavoritesIcon2, { className: "oui-size-3" }) : /* @__PURE__ */ jsxRuntime.jsx(UnFavoritesIcon2, { className: "oui-size-3" })
1578
- }
1579
- ) });
1580
- }
1581
- return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { children: [
1582
- favoritesIcon,
1583
- /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "column", itemAlign: "start", gapY: 1, children: [
1584
- /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gapX: 1, children: [
1585
- /* @__PURE__ */ jsxRuntime.jsx(ui.TokenIcon, { symbol: record.symbol, className: "oui-size-[18px]" }),
1586
- /* @__PURE__ */ jsxRuntime.jsx(exports.SymbolDisplay, { formatString: "base", size: "2xs", children: record.symbol }),
1587
- /* @__PURE__ */ jsxRuntime.jsx(RwaDotTooltip, { record }),
1588
- /* @__PURE__ */ jsxRuntime.jsxs(ui.Badge, { size: "xs", color: "primary", children: [
1589
- record.leverage,
1590
- "x"
1591
- ] })
1592
- ] }),
1593
- /* @__PURE__ */ jsxRuntime.jsx(
1594
- ui.Text.numeral,
1595
- {
1596
- intensity: 54,
1597
- size: "2xs",
1598
- rule: "human",
1599
- dp: 2,
1600
- rm: utils.Decimal.ROUND_DOWN,
1601
- children: value
1602
- }
1603
- )
1540
+ function getSymbolColumn(favorite, isFavoriteList = false, options) {
1541
+ return {
1542
+ title: i18n.i18n.t("common.symbol"),
1543
+ dataIndex: "symbol",
1544
+ width: 150,
1545
+ onSort: true,
1546
+ render: (value, record) => {
1547
+ let favoritesIcon;
1548
+ if (!isFavoriteList) {
1549
+ favoritesIcon = /* @__PURE__ */ jsxRuntime.jsx(exports.FavoritesDropdownMenuWidget, { row: record, favorite, children: /* @__PURE__ */ jsxRuntime.jsx(
1550
+ ui.Flex,
1551
+ {
1552
+ width: 12,
1553
+ height: 12,
1554
+ justify: "center",
1555
+ itemAlign: "center",
1556
+ className: "oui-mr-1 oui-cursor-pointer",
1557
+ children: record.isFavorite ? /* @__PURE__ */ jsxRuntime.jsx(FavoritesIcon2, { className: "oui-size-3" }) : /* @__PURE__ */ jsxRuntime.jsx(UnFavoritesIcon2, { className: "oui-size-3" })
1558
+ }
1559
+ ) });
1560
+ }
1561
+ const stackLeverageInSecondRow = options?.stackLeverageInSecondRow;
1562
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gapX: 1, itemAlign: "center", children: [
1563
+ favoritesIcon,
1564
+ /* @__PURE__ */ jsxRuntime.jsxs(
1565
+ ui.Flex,
1566
+ {
1567
+ direction: stackLeverageInSecondRow ? "column" : "row",
1568
+ itemAlign: stackLeverageInSecondRow ? "start" : "center",
1569
+ gapY: stackLeverageInSecondRow ? 1 : void 0,
1570
+ gapX: stackLeverageInSecondRow ? void 0 : 1,
1571
+ children: [
1572
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gapX: 1, itemAlign: "center", children: [
1573
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TokenIcon, { symbol: value, className: "oui-size-[18px]" }),
1574
+ /* @__PURE__ */ jsxRuntime.jsx(exports.SymbolDisplay, { formatString: "base", size: "2xs", children: value }),
1575
+ /* @__PURE__ */ jsxRuntime.jsx(RwaDotTooltip, { record })
1576
+ ] }),
1577
+ typeof record.leverage === "number" && /* @__PURE__ */ jsxRuntime.jsxs(ui.Badge, { size: "xs", color: "primary", children: [
1578
+ record.leverage,
1579
+ "x"
1604
1580
  ] })
1605
- ] });
1581
+ ]
1606
1582
  }
1583
+ )
1584
+ ] });
1585
+ }
1586
+ };
1587
+ }
1588
+ function getLastColumn() {
1589
+ return {
1590
+ title: i18n.i18n.t("markets.column.last"),
1591
+ dataIndex: "24h_close",
1592
+ align: "right",
1593
+ onSort: true,
1594
+ width: 100,
1595
+ render: (value, record) => {
1596
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, size: "2xs", children: value });
1597
+ }
1598
+ };
1599
+ }
1600
+ function get24hPercentageColumn() {
1601
+ return {
1602
+ title: i18n.i18n.t("markets.column.24hPercentage"),
1603
+ dataIndex: "change",
1604
+ align: "right",
1605
+ onSort: true,
1606
+ width: 80,
1607
+ render: (value) => {
1608
+ return /* @__PURE__ */ jsxRuntime.jsx(
1609
+ ui.Text.numeral,
1610
+ {
1611
+ rule: "percentages",
1612
+ coloring: true,
1613
+ rm: utils.Decimal.ROUND_DOWN,
1614
+ showIdentifier: true,
1615
+ size: "2xs",
1616
+ children: value
1617
+ }
1618
+ );
1619
+ }
1620
+ };
1621
+ }
1622
+ function get24hVolOIColumn() {
1623
+ return {
1624
+ title: i18n.i18n.t("markets.column.24hVolOI"),
1625
+ dataIndex: "24h_amount",
1626
+ align: "right",
1627
+ className: "oui-h-[36px]",
1628
+ width: 100,
1629
+ multiSort: {
1630
+ fields: [
1631
+ {
1632
+ sortKey: "24h_amount",
1633
+ label: i18n.i18n.t("markets.column.24hVol")
1607
1634
  },
1608
1635
  {
1609
- title: t("markets.column.price&Change"),
1610
- dataIndex: "change",
1611
- align: "right",
1612
- onSort: true,
1613
- className: "oui-h-[36px]",
1614
- render: (value, record) => {
1615
- const onDelSymbol = (e) => {
1616
- favorite.updateSymbolFavoriteState(
1617
- record,
1618
- favorite.selectedFavoriteTab,
1619
- true
1620
- );
1621
- e.stopPropagation();
1622
- };
1623
- const iconCls = "oui-w-4 oui-h-4 oui-text-base-contrast-54 hover:oui-text-base-contrast";
1624
- const actions = /* @__PURE__ */ jsxRuntime.jsx(
1625
- "div",
1626
- {
1627
- className: ui.cn(
1628
- "oui-absolute oui-right-0 oui-top-[6.5px]",
1629
- "oui-hidden group-hover:oui-block"
1630
- ),
1631
- children: /* @__PURE__ */ jsxRuntime.jsxs(
1632
- ui.Flex,
1636
+ sortKey: "openInterest",
1637
+ label: i18n.i18n.t("markets.column.OI")
1638
+ }
1639
+ ]
1640
+ },
1641
+ render: (value, record) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "column", itemAlign: "end", gapY: 1, children: [
1642
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { rule: "human", dp: 2, rm: utils.Decimal.ROUND_DOWN, children: value }),
1643
+ /* @__PURE__ */ jsxRuntime.jsx(
1644
+ ui.Text.numeral,
1645
+ {
1646
+ rule: "human",
1647
+ dp: 2,
1648
+ rm: utils.Decimal.ROUND_DOWN,
1649
+ size: "2xs",
1650
+ intensity: 54,
1651
+ children: record.openInterest
1652
+ }
1653
+ )
1654
+ ] })
1655
+ };
1656
+ }
1657
+ function getLastAnd24hPercentageColumn(favorite, isFavoriteList = false) {
1658
+ return {
1659
+ title: i18n.i18n.t("markets.column.last&24hPercentage"),
1660
+ dataIndex: "change",
1661
+ align: "right",
1662
+ onSort: true,
1663
+ className: "oui-h-[36px]",
1664
+ width: 100,
1665
+ render: (value, record) => {
1666
+ const onDelSymbol = (e) => {
1667
+ favorite.updateSymbolFavoriteState(
1668
+ record,
1669
+ favorite.selectedFavoriteTab,
1670
+ true
1671
+ );
1672
+ e.stopPropagation();
1673
+ };
1674
+ const iconCls = "oui-w-4 oui-h-4 oui-text-base-contrast-54 hover:oui-text-base-contrast";
1675
+ const actions = /* @__PURE__ */ jsxRuntime.jsx(
1676
+ "div",
1677
+ {
1678
+ className: ui.cn(
1679
+ "oui-absolute oui-right-0 oui-top-[6.5px]",
1680
+ "oui-hidden group-hover:oui-block"
1681
+ ),
1682
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
1683
+ ui.Flex,
1684
+ {
1685
+ className: ui.cn(
1686
+ "oui-inline-flex",
1687
+ "oui-bg-primary-darken oui-py-[6px]"
1688
+ ),
1689
+ r: "base",
1690
+ width: 52,
1691
+ justify: "center",
1692
+ itemAlign: "end",
1693
+ gapX: 2,
1694
+ children: [
1695
+ /* @__PURE__ */ jsxRuntime.jsx(
1696
+ TopIcon,
1633
1697
  {
1634
- className: ui.cn(
1635
- "oui-inline-flex",
1636
- "oui-bg-primary-darken oui-py-[6px]"
1637
- ),
1638
- r: "base",
1639
- width: 52,
1640
- justify: "center",
1641
- itemAlign: "end",
1642
- gapX: 2,
1643
- children: [
1644
- /* @__PURE__ */ jsxRuntime.jsx(
1645
- TopIcon,
1646
- {
1647
- className: iconCls,
1648
- onClick: (e) => {
1649
- e.stopPropagation();
1650
- favorite.pinToTop(record);
1651
- }
1652
- }
1653
- ),
1654
- /* @__PURE__ */ jsxRuntime.jsx(DeleteIcon, { className: iconCls, onClick: onDelSymbol })
1655
- ]
1698
+ className: iconCls,
1699
+ onClick: (e) => {
1700
+ e.stopPropagation();
1701
+ favorite.pinToTop(record);
1702
+ }
1656
1703
  }
1657
- )
1658
- }
1659
- );
1660
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-relative", children: [
1661
- isFavoriteList && actions,
1662
- /* @__PURE__ */ jsxRuntime.jsxs(
1663
- ui.Flex,
1704
+ ),
1705
+ /* @__PURE__ */ jsxRuntime.jsx(DeleteIcon, { className: iconCls, onClick: onDelSymbol })
1706
+ ]
1707
+ }
1708
+ )
1709
+ }
1710
+ );
1711
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-relative", children: [
1712
+ isFavoriteList && actions,
1713
+ /* @__PURE__ */ jsxRuntime.jsxs(
1714
+ ui.Flex,
1715
+ {
1716
+ direction: "column",
1717
+ justify: "end",
1718
+ itemAlign: "end",
1719
+ gapY: 1,
1720
+ className: ui.cn(isFavoriteList && "group-hover:oui-invisible"),
1721
+ children: [
1722
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, size: "2xs", children: record["24h_close"] }),
1723
+ /* @__PURE__ */ jsxRuntime.jsx(
1724
+ ui.Text.numeral,
1664
1725
  {
1665
- direction: "column",
1666
- justify: "end",
1667
- itemAlign: "end",
1668
- gapY: 1,
1669
- className: ui.cn(isFavoriteList && "group-hover:oui-invisible"),
1670
- children: [
1671
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, size: "2xs", children: record["24h_close"] }),
1672
- /* @__PURE__ */ jsxRuntime.jsx(
1673
- ui.Text.numeral,
1674
- {
1675
- rule: "percentages",
1676
- coloring: true,
1677
- rm: utils.Decimal.ROUND_DOWN,
1678
- showIdentifier: true,
1679
- size: "2xs",
1680
- children: value
1681
- }
1682
- )
1683
- ]
1726
+ rule: "percentages",
1727
+ coloring: true,
1728
+ rm: utils.Decimal.ROUND_DOWN,
1729
+ showIdentifier: true,
1730
+ size: "2xs",
1731
+ children: value
1684
1732
  }
1685
1733
  )
1686
- ] });
1734
+ ]
1687
1735
  }
1688
- }
1736
+ )
1737
+ ] });
1738
+ }
1739
+ };
1740
+ }
1741
+ var init_column = __esm({
1742
+ "src/components/shared/column.tsx"() {
1743
+ init_icons();
1744
+ init_icons();
1745
+ init_favoritesDropdownMenu();
1746
+ init_rwaDotTooltip();
1747
+ init_symbolDisplay();
1748
+ }
1749
+ });
1750
+
1751
+ // src/components/sideMarkets/column.tsx
1752
+ var useSideMarketsColumns;
1753
+ var init_column2 = __esm({
1754
+ "src/components/sideMarkets/column.tsx"() {
1755
+ init_column();
1756
+ useSideMarketsColumns = (favorite, isFavoriteList = false) => {
1757
+ const symbolCol = getSymbolColumn(favorite, isFavoriteList, {
1758
+ stackLeverageInSecondRow: true
1759
+ });
1760
+ const volOiCol = get24hVolOIColumn();
1761
+ const lastPctCol = getLastAnd24hPercentageColumn(favorite, isFavoriteList);
1762
+ return [
1763
+ {
1764
+ ...symbolCol,
1765
+ width: 115
1766
+ },
1767
+ volOiCol,
1768
+ lastPctCol
1689
1769
  ];
1690
1770
  };
1691
1771
  }
@@ -1695,7 +1775,7 @@ var init_marketsList_ui = __esm({
1695
1775
  "src/components/marketsList/marketsList.ui.tsx"() {
1696
1776
  init_collapseMarkets();
1697
1777
  init_marketsProvider();
1698
- init_column();
1778
+ init_column2();
1699
1779
  exports.MarketsList = (props) => {
1700
1780
  const {
1701
1781
  loading,
@@ -1959,231 +2039,6 @@ var init_searchInput = __esm({
1959
2039
  };
1960
2040
  }
1961
2041
  });
1962
- function getSymbolColumn(favorite, isFavoriteList = false) {
1963
- return {
1964
- title: i18n.i18n.t("common.symbol"),
1965
- dataIndex: "symbol",
1966
- width: 150,
1967
- onSort: true,
1968
- render: (value, record) => {
1969
- let favoritesIcon;
1970
- if (!isFavoriteList) {
1971
- favoritesIcon = /* @__PURE__ */ jsxRuntime.jsx(exports.FavoritesDropdownMenuWidget, { row: record, favorite, children: /* @__PURE__ */ jsxRuntime.jsx(
1972
- ui.Flex,
1973
- {
1974
- width: 12,
1975
- height: 12,
1976
- justify: "center",
1977
- itemAlign: "center",
1978
- className: "oui-mr-1 oui-cursor-pointer",
1979
- children: record.isFavorite ? /* @__PURE__ */ jsxRuntime.jsx(FavoritesIcon2, { className: "oui-size-3" }) : /* @__PURE__ */ jsxRuntime.jsx(UnFavoritesIcon2, { className: "oui-size-3" })
1980
- }
1981
- ) });
1982
- }
1983
- return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gapX: 1, children: [
1984
- favoritesIcon,
1985
- /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "column", itemAlign: "start", gapY: 1, children: [
1986
- /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gapX: 1, itemAlign: "center", children: [
1987
- /* @__PURE__ */ jsxRuntime.jsx(ui.TokenIcon, { symbol: value, className: "oui-size-[18px]" }),
1988
- /* @__PURE__ */ jsxRuntime.jsx(exports.SymbolDisplay, { formatString: "base", size: "2xs", children: value }),
1989
- /* @__PURE__ */ jsxRuntime.jsx(RwaDotTooltip, { record })
1990
- ] }),
1991
- /* @__PURE__ */ jsxRuntime.jsxs(ui.Badge, { size: "xs", color: "primary", children: [
1992
- record.leverage,
1993
- "x"
1994
- ] })
1995
- ] })
1996
- ] });
1997
- }
1998
- };
1999
- }
2000
- function getLastColumn() {
2001
- return {
2002
- title: i18n.i18n.t("markets.column.last"),
2003
- dataIndex: "24h_close",
2004
- align: "right",
2005
- onSort: true,
2006
- width: 100,
2007
- render: (value, record) => {
2008
- return /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, size: "2xs", children: value });
2009
- }
2010
- };
2011
- }
2012
- function get24hPercentageColumn() {
2013
- return {
2014
- title: i18n.i18n.t("markets.column.24hPercentage"),
2015
- dataIndex: "change",
2016
- align: "right",
2017
- onSort: true,
2018
- width: 80,
2019
- render: (value) => {
2020
- return /* @__PURE__ */ jsxRuntime.jsx(
2021
- ui.Text.numeral,
2022
- {
2023
- rule: "percentages",
2024
- coloring: true,
2025
- rm: utils.Decimal.ROUND_DOWN,
2026
- showIdentifier: true,
2027
- size: "2xs",
2028
- children: value
2029
- }
2030
- );
2031
- }
2032
- };
2033
- }
2034
- function get24hVolOIColumn() {
2035
- return {
2036
- title: i18n.i18n.t("markets.column.24hVolOI"),
2037
- dataIndex: "24h_amount",
2038
- align: "right",
2039
- className: "oui-h-[36px]",
2040
- width: 100,
2041
- multiSort: {
2042
- fields: [
2043
- {
2044
- sortKey: "24h_amount",
2045
- label: i18n.i18n.t("markets.column.24hVol")
2046
- },
2047
- {
2048
- sortKey: "openInterest",
2049
- label: i18n.i18n.t("markets.column.OI")
2050
- }
2051
- ]
2052
- },
2053
- render: (value, record) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "column", itemAlign: "end", gapY: 1, children: [
2054
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { rule: "human", dp: 2, rm: utils.Decimal.ROUND_DOWN, children: value }),
2055
- /* @__PURE__ */ jsxRuntime.jsx(
2056
- ui.Text.numeral,
2057
- {
2058
- rule: "human",
2059
- dp: 2,
2060
- rm: utils.Decimal.ROUND_DOWN,
2061
- size: "2xs",
2062
- intensity: 54,
2063
- children: record.openInterest
2064
- }
2065
- )
2066
- ] })
2067
- };
2068
- }
2069
- function getLastAnd24hPercentageColumn(favorite, isFavoriteList = false) {
2070
- return {
2071
- title: i18n.i18n.t("markets.column.last&24hPercentage"),
2072
- dataIndex: "change",
2073
- align: "right",
2074
- onSort: true,
2075
- className: "oui-h-[36px]",
2076
- width: 100,
2077
- render: (value, record) => {
2078
- const onDelSymbol = (e) => {
2079
- favorite.updateSymbolFavoriteState(
2080
- record,
2081
- favorite.selectedFavoriteTab,
2082
- true
2083
- );
2084
- e.stopPropagation();
2085
- };
2086
- const iconCls = "oui-w-4 oui-h-4 oui-text-base-contrast-54 hover:oui-text-base-contrast";
2087
- const actions = /* @__PURE__ */ jsxRuntime.jsx(
2088
- "div",
2089
- {
2090
- className: ui.cn(
2091
- "oui-absolute oui-right-0 oui-top-[6.5px]",
2092
- "oui-hidden group-hover:oui-block"
2093
- ),
2094
- children: /* @__PURE__ */ jsxRuntime.jsxs(
2095
- ui.Flex,
2096
- {
2097
- className: ui.cn(
2098
- "oui-inline-flex",
2099
- "oui-bg-primary-darken oui-py-[6px]"
2100
- ),
2101
- r: "base",
2102
- width: 52,
2103
- justify: "center",
2104
- itemAlign: "end",
2105
- gapX: 2,
2106
- children: [
2107
- /* @__PURE__ */ jsxRuntime.jsx(
2108
- TopIcon,
2109
- {
2110
- className: iconCls,
2111
- onClick: (e) => {
2112
- e.stopPropagation();
2113
- favorite.pinToTop(record);
2114
- }
2115
- }
2116
- ),
2117
- /* @__PURE__ */ jsxRuntime.jsx(DeleteIcon, { className: iconCls, onClick: onDelSymbol })
2118
- ]
2119
- }
2120
- )
2121
- }
2122
- );
2123
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-relative", children: [
2124
- isFavoriteList && actions,
2125
- /* @__PURE__ */ jsxRuntime.jsxs(
2126
- ui.Flex,
2127
- {
2128
- direction: "column",
2129
- justify: "end",
2130
- itemAlign: "end",
2131
- gapY: 1,
2132
- className: ui.cn(isFavoriteList && "group-hover:oui-invisible"),
2133
- children: [
2134
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, size: "2xs", children: record["24h_close"] }),
2135
- /* @__PURE__ */ jsxRuntime.jsx(
2136
- ui.Text.numeral,
2137
- {
2138
- rule: "percentages",
2139
- coloring: true,
2140
- rm: utils.Decimal.ROUND_DOWN,
2141
- showIdentifier: true,
2142
- size: "2xs",
2143
- children: value
2144
- }
2145
- )
2146
- ]
2147
- }
2148
- )
2149
- ] });
2150
- }
2151
- };
2152
- }
2153
- function getMarkIndexColumn() {
2154
- return {
2155
- title: i18n.i18n.t("markets.column.mark&Index"),
2156
- dataIndex: "mark_price",
2157
- align: "right",
2158
- className: "oui-h-[36px]",
2159
- width: 100,
2160
- multiSort: {
2161
- fields: [
2162
- {
2163
- sortKey: "mark_price",
2164
- label: i18n.i18n.t("markets.column.mark")
2165
- },
2166
- {
2167
- sortKey: "index_price",
2168
- label: i18n.i18n.t("markets.column.index")
2169
- }
2170
- ]
2171
- },
2172
- render: (value, record) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "column", itemAlign: "end", gapY: 1, children: [
2173
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, size: "2xs", children: value }),
2174
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, size: "2xs", intensity: 54, children: record.index_price })
2175
- ] })
2176
- };
2177
- }
2178
- var init_column2 = __esm({
2179
- "src/components/shared/column.tsx"() {
2180
- init_icons();
2181
- init_icons();
2182
- init_favoritesDropdownMenu();
2183
- init_rwaDotTooltip();
2184
- init_symbolDisplay();
2185
- }
2186
- });
2187
2042
  var FavoritesEmpty;
2188
2043
  var init_favoritesEmpty = __esm({
2189
2044
  "src/components/favoritesEmpty/index.tsx"() {
@@ -2641,7 +2496,7 @@ var init_marketsDataList_mobile_ui = __esm({
2641
2496
  init_marketsList();
2642
2497
  init_rwaTab();
2643
2498
  init_searchInput();
2644
- init_column2();
2499
+ init_column();
2645
2500
  init_useFavoritesExtraProps();
2646
2501
  init_icons();
2647
2502
  init_type();
@@ -2651,10 +2506,11 @@ var init_marketsDataList_mobile_ui = __esm({
2651
2506
  const getColumns = React6.useCallback(
2652
2507
  (favorite, isFavoriteList = false) => {
2653
2508
  return [
2654
- getSymbolColumn(favorite, isFavoriteList),
2509
+ getSymbolColumn(favorite, isFavoriteList, {
2510
+ stackLeverageInSecondRow: true
2511
+ }),
2655
2512
  get24hVolOIColumn(),
2656
- getLastAnd24hPercentageColumn(favorite, isFavoriteList),
2657
- getMarkIndexColumn()
2513
+ getLastAnd24hPercentageColumn(favorite, isFavoriteList)
2658
2514
  ];
2659
2515
  },
2660
2516
  []
@@ -2843,26 +2699,6 @@ var init_column3 = __esm({
2843
2699
  return /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, currency: "$", children: value });
2844
2700
  }
2845
2701
  },
2846
- {
2847
- title: t("markets.column.mark"),
2848
- dataIndex: "mark_price",
2849
- width: 100,
2850
- align: "right",
2851
- onSort: true,
2852
- render: (value, record) => {
2853
- return /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, currency: "$", children: value });
2854
- }
2855
- },
2856
- {
2857
- title: t("markets.column.index"),
2858
- dataIndex: "index_price",
2859
- width: 100,
2860
- align: "right",
2861
- onSort: true,
2862
- render: (value, record) => {
2863
- return /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { dp: record.quote_dp || 2, currency: "$", children: value });
2864
- }
2865
- },
2866
2702
  {
2867
2703
  title: t("markets.column.24hChange"),
2868
2704
  dataIndex: "change",
@@ -4377,7 +4213,7 @@ exports.useDropDownMarketsColumns = void 0;
4377
4213
  var init_column4 = __esm({
4378
4214
  "src/components/dropDownMarkets/column.tsx"() {
4379
4215
  init_icons();
4380
- init_column2();
4216
+ init_column();
4381
4217
  exports.useDropDownMarketsColumns = () => {
4382
4218
  const { t } = i18n.useTranslation();
4383
4219
  return React6.useCallback(
@@ -5654,10 +5490,12 @@ init_searchInput();
5654
5490
  init_useFavoritesExtraProps();
5655
5491
 
5656
5492
  // src/components/marketsSheet/column.tsx
5657
- init_column2();
5493
+ init_column();
5658
5494
  var getMarketsSheetColumns = (favorite, isFavoriteList = false) => {
5659
5495
  return [
5660
- getSymbolColumn(favorite, isFavoriteList),
5496
+ getSymbolColumn(favorite, isFavoriteList, {
5497
+ stackLeverageInSecondRow: true
5498
+ }),
5661
5499
  get24hVolOIColumn(),
5662
5500
  getLastAnd24hPercentageColumn(favorite, isFavoriteList)
5663
5501
  ];
@@ -6796,7 +6634,7 @@ init_marketItem_ui();
6796
6634
  // src/deprecated/newListingList/newListingList.ui.tsx
6797
6635
  init_collapseMarkets();
6798
6636
  init_marketsProvider();
6799
- init_column();
6637
+ init_column2();
6800
6638
  var NewListingList = (props) => {
6801
6639
  const { dataSource, favorite, onSort, loading, getColumns, collapsed } = props;
6802
6640
  const { symbol, onSymbolChange } = useMarketsContext();
@@ -6865,7 +6703,7 @@ var NewListingListWidget = (props) => {
6865
6703
  init_collapseMarkets();
6866
6704
  init_favoritesTabs();
6867
6705
  init_marketsProvider();
6868
- init_column();
6706
+ init_column2();
6869
6707
  var FavoritesList = (props) => {
6870
6708
  const { dataSource, favorite, onSort, loading, getColumns, collapsed } = props;
6871
6709
  const { symbol, onSymbolChange } = useMarketsContext();
@@ -6946,7 +6784,7 @@ var FavoritesListWidget = (props) => {
6946
6784
  // src/deprecated/recentList/recentList.ui.tsx
6947
6785
  init_collapseMarkets();
6948
6786
  init_marketsProvider();
6949
- init_column();
6787
+ init_column2();
6950
6788
  var RecentList = (props) => {
6951
6789
  const { dataSource, favorite, onSort, loading, getColumns, collapsed } = props;
6952
6790
  const { symbol, onSymbolChange } = useMarketsContext();