@orderly.network/markets 2.8.11-alpha.0 → 2.8.11
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.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +78 -138
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -141
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React6, { createContext, useState, useRef, useEffect, useCallback, useMemo, useContext } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React6, { memo, createContext, useState, useRef, useEffect, useCallback, useMemo, useContext } from 'react';
|
|
2
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { useSymbolsInfo, useMarkets, MarketsType, useFundingRateHistory, useFundingRates, useQuery, useMarketsStream, useLocalStorage, useGetRwaSymbolInfo, useTickerStream, useFundingRate, useMarketsStore, useFundingDetails, useSessionStorage, useFundingRateBySymbol, usePositionStream, isCurrentlyTrading } from '@orderly.network/hooks';
|
|
4
|
+
import { Flex, TokenIcon, Text, Box, cn, Marquee, Checkbox, Divider, useEmblaCarousel, useScreen, Badge, Tooltip, CloseIcon, CheckedSquareFillIcon, CheckSquareEmptyIcon, Button, DropdownMenuRoot, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuContent, Input, CloseCircleFillIcon, PlusIcon, DataTable, usePagination, Tabs, TabPanel, EmptyDataState, NewsFillIcon, modal, GradientText, EmptyStateIcon, Picker, Select } from '@orderly.network/ui';
|
|
3
5
|
import { useTranslation, Trans, i18n } from '@orderly.network/i18n';
|
|
4
|
-
import { Box, cn, Flex, Marquee, Checkbox, Divider, Text, TokenIcon, useEmblaCarousel, useScreen, Badge, Tooltip, CloseIcon, CheckedSquareFillIcon, CheckSquareEmptyIcon, Button, DropdownMenuRoot, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuContent, Input, CloseCircleFillIcon, PlusIcon, DataTable, usePagination, Tabs, TabPanel, EmptyDataState, NewsFillIcon, modal, GradientText, EmptyStateIcon, Picker, Select } from '@orderly.network/ui';
|
|
5
6
|
import { Decimal, formatSymbol } from '@orderly.network/utils';
|
|
6
|
-
import { useMarkets, MarketsType, useFundingRateHistory, useFundingRates, useQuery, useMarketsStream, useLocalStorage, useGetRwaSymbolInfo, useTickerStream, useSymbolsInfo, useFundingRate, useMarketsStore, useFundingDetails, useSessionStorage, useFundingRateBySymbol, usePositionStream, isCurrentlyTrading } from '@orderly.network/hooks';
|
|
7
7
|
import { pick } from 'ramda';
|
|
8
8
|
import { LeftNavUI } from '@orderly.network/ui-scaffold';
|
|
9
9
|
|
|
@@ -43,6 +43,32 @@ var init_marketsProvider = __esm({
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
+
var SymbolDisplay;
|
|
47
|
+
var init_symbolDisplay = __esm({
|
|
48
|
+
"src/components/symbolDisplay.tsx"() {
|
|
49
|
+
SymbolDisplay = memo((props) => {
|
|
50
|
+
const { children, size = "xs", ...rest } = props;
|
|
51
|
+
const symbol = children;
|
|
52
|
+
const symbolsInfo = useSymbolsInfo();
|
|
53
|
+
const displayName = symbolsInfo[symbol]("displayName");
|
|
54
|
+
if (displayName) {
|
|
55
|
+
return /* @__PURE__ */ jsxs(Flex, { gapX: 1, className: props.className, children: [
|
|
56
|
+
props.showIcon && /* @__PURE__ */ jsx(TokenIcon, { size, symbol }),
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
Text,
|
|
59
|
+
{
|
|
60
|
+
size: "xs",
|
|
61
|
+
weight: "semibold",
|
|
62
|
+
className: "oui-whitespace-nowrap oui-break-normal",
|
|
63
|
+
children: displayName
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
return /* @__PURE__ */ jsx(Text.formatted, { size: "xs", rule: "symbol", weight: "semibold", ...rest, children: symbol });
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
46
72
|
var EditIcon, TrashIcon, AllMarketsIcon, NewListingsIcon, FavoritesIcon, UnFavoritesIcon, SearchIcon, MoveToTopIcon, OrderlyIcon, FavoritesIcon2, UnFavoritesIcon2, TopIcon, DeleteIcon, AddIcon, ActiveAddIcon, ExpandIcon, CollapseIcon, FilterIcon, TriangleDownIcon, ArrowLeftIcon;
|
|
47
73
|
var init_icons = __esm({
|
|
48
74
|
"src/icons.tsx"() {
|
|
@@ -396,6 +422,7 @@ var MarketsHeader, BlockList, BlockItem, CardItem, ListItem, ScrollIndicator;
|
|
|
396
422
|
var init_marketsHeader_ui = __esm({
|
|
397
423
|
"src/pages/home/marketsHeader/marketsHeader.ui.tsx"() {
|
|
398
424
|
init_marketsProvider();
|
|
425
|
+
init_symbolDisplay();
|
|
399
426
|
init_icons();
|
|
400
427
|
MarketsHeader = (props) => {
|
|
401
428
|
const {
|
|
@@ -568,17 +595,7 @@ var init_marketsHeader_ui = __esm({
|
|
|
568
595
|
props.onSymbol(item);
|
|
569
596
|
},
|
|
570
597
|
children: [
|
|
571
|
-
/* @__PURE__ */ jsx(
|
|
572
|
-
Text.formatted,
|
|
573
|
-
{
|
|
574
|
-
rule: "symbol",
|
|
575
|
-
formatString: "base",
|
|
576
|
-
size: "xs",
|
|
577
|
-
weight: "semibold",
|
|
578
|
-
showIcon: true,
|
|
579
|
-
children: item.symbol
|
|
580
|
-
}
|
|
581
|
-
) }),
|
|
598
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", showIcon: true, className: "oui-w-full", children: item.symbol }),
|
|
582
599
|
/* @__PURE__ */ jsx(Flex, { width: "100%", justify: "end", children: /* @__PURE__ */ jsx(
|
|
583
600
|
Text.numeral,
|
|
584
601
|
{
|
|
@@ -684,10 +701,15 @@ function searchBySymbol(list, searchValue = "", formatString) {
|
|
|
684
701
|
list?.forEach((item) => {
|
|
685
702
|
const formattedSymbol = formatSymbol(item.symbol, formatString);
|
|
686
703
|
const symbolLower = formattedSymbol.toLowerCase();
|
|
687
|
-
|
|
688
|
-
|
|
704
|
+
const displayName = item.displayName;
|
|
705
|
+
const displayNameLower = displayName ? String(displayName).toLowerCase() : null;
|
|
706
|
+
const matchesSymbol = reg.test(formattedSymbol);
|
|
707
|
+
const matchesDisplayName = displayNameLower ? reg.test(displayNameLower) : false;
|
|
708
|
+
if (matchesSymbol || matchesDisplayName) {
|
|
709
|
+
const searchText = displayNameLower || symbolLower;
|
|
710
|
+
if (searchText === searchValueLower) {
|
|
689
711
|
exactMatches.push(item);
|
|
690
|
-
} else if (
|
|
712
|
+
} else if (searchText.startsWith(searchValueLower)) {
|
|
691
713
|
startsWithMatches.push(item);
|
|
692
714
|
} else {
|
|
693
715
|
otherMatches.push(item);
|
|
@@ -695,10 +717,10 @@ function searchBySymbol(list, searchValue = "", formatString) {
|
|
|
695
717
|
}
|
|
696
718
|
});
|
|
697
719
|
const compareSymbols = (a, b) => {
|
|
698
|
-
const
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
701
|
-
if (
|
|
720
|
+
const textA = a.displayName || formatSymbol(a.symbol, formatString);
|
|
721
|
+
const textB = b.displayName || formatSymbol(b.symbol, formatString);
|
|
722
|
+
if (textA < textB) return -1;
|
|
723
|
+
if (textA > textB) return 1;
|
|
702
724
|
return 0;
|
|
703
725
|
};
|
|
704
726
|
startsWithMatches.sort(compareSymbols);
|
|
@@ -838,6 +860,7 @@ var MobileMarketsHeader, BlockList2, BlockItem2, CardItem2, ListItem2;
|
|
|
838
860
|
var init_marketsHeader_mobile_ui = __esm({
|
|
839
861
|
"src/pages/home/marketsHeader/marketsHeader.mobile.ui.tsx"() {
|
|
840
862
|
init_marketsProvider();
|
|
863
|
+
init_symbolDisplay();
|
|
841
864
|
init_icons();
|
|
842
865
|
MobileMarketsHeader = (props) => {
|
|
843
866
|
const {
|
|
@@ -996,17 +1019,7 @@ var init_marketsHeader_mobile_ui = __esm({
|
|
|
996
1019
|
props.onSymbol(item);
|
|
997
1020
|
},
|
|
998
1021
|
children: [
|
|
999
|
-
/* @__PURE__ */ jsx(
|
|
1000
|
-
Text.formatted,
|
|
1001
|
-
{
|
|
1002
|
-
rule: "symbol",
|
|
1003
|
-
formatString: "base",
|
|
1004
|
-
size: "xs",
|
|
1005
|
-
weight: "semibold",
|
|
1006
|
-
showIcon: true,
|
|
1007
|
-
children: item.symbol
|
|
1008
|
-
}
|
|
1009
|
-
) }),
|
|
1022
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", showIcon: true, className: "oui-w-full", children: item.symbol }),
|
|
1010
1023
|
/* @__PURE__ */ jsx(Flex, { width: "100%", justify: "end", children: /* @__PURE__ */ jsx(
|
|
1011
1024
|
Text.numeral,
|
|
1012
1025
|
{
|
|
@@ -1057,6 +1070,7 @@ var CollapseMarkets;
|
|
|
1057
1070
|
var init_collapseMarkets = __esm({
|
|
1058
1071
|
"src/components/collapseMarkets/index.tsx"() {
|
|
1059
1072
|
init_marketsProvider();
|
|
1073
|
+
init_symbolDisplay();
|
|
1060
1074
|
CollapseMarkets = (props) => {
|
|
1061
1075
|
const { symbol, onSymbolChange } = useMarketsContext();
|
|
1062
1076
|
const { t } = useTranslation();
|
|
@@ -1068,16 +1082,7 @@ var init_collapseMarkets = __esm({
|
|
|
1068
1082
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", itemAlign: "start", gapY: 1, children: [
|
|
1069
1083
|
/* @__PURE__ */ jsxs(Flex, { gapX: 1, children: [
|
|
1070
1084
|
/* @__PURE__ */ jsx(TokenIcon, { symbol: item.symbol, className: "oui-size-[18px]" }),
|
|
1071
|
-
/* @__PURE__ */ jsx(
|
|
1072
|
-
Text.formatted,
|
|
1073
|
-
{
|
|
1074
|
-
rule: "symbol",
|
|
1075
|
-
formatString: "base",
|
|
1076
|
-
size: "2xs",
|
|
1077
|
-
weight: "semibold",
|
|
1078
|
-
children: item.symbol
|
|
1079
|
-
}
|
|
1080
|
-
)
|
|
1085
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "2xs", children: item.symbol })
|
|
1081
1086
|
] }),
|
|
1082
1087
|
/* @__PURE__ */ jsx(Text, { size: "2xs", intensity: 36, children: t("markets.column.last") }),
|
|
1083
1088
|
/* @__PURE__ */ jsx(Text, { size: "2xs", intensity: 36, children: t("markets.column.24hPercentage") })
|
|
@@ -1522,6 +1527,7 @@ var init_column = __esm({
|
|
|
1522
1527
|
init_icons();
|
|
1523
1528
|
init_favoritesDropdownMenu();
|
|
1524
1529
|
init_rwaDotTooltip();
|
|
1530
|
+
init_symbolDisplay();
|
|
1525
1531
|
useSideMarketsColumns = (favorite, isFavoriteList = false) => {
|
|
1526
1532
|
const { t } = useTranslation();
|
|
1527
1533
|
return [
|
|
@@ -1561,16 +1567,7 @@ var init_column = __esm({
|
|
|
1561
1567
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", itemAlign: "start", gapY: 1, children: [
|
|
1562
1568
|
/* @__PURE__ */ jsxs(Flex, { gapX: 1, children: [
|
|
1563
1569
|
/* @__PURE__ */ jsx(TokenIcon, { symbol: record.symbol, className: "oui-size-[18px]" }),
|
|
1564
|
-
/* @__PURE__ */ jsx(
|
|
1565
|
-
Text.formatted,
|
|
1566
|
-
{
|
|
1567
|
-
rule: "symbol",
|
|
1568
|
-
formatString: "base",
|
|
1569
|
-
size: "2xs",
|
|
1570
|
-
weight: "semibold",
|
|
1571
|
-
children: record.symbol
|
|
1572
|
-
}
|
|
1573
|
-
),
|
|
1570
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "2xs", children: record.symbol }),
|
|
1574
1571
|
/* @__PURE__ */ jsx(RwaDotTooltip, { record }),
|
|
1575
1572
|
/* @__PURE__ */ jsxs(Badge, { size: "xs", color: "primary", children: [
|
|
1576
1573
|
record.leverage,
|
|
@@ -1953,16 +1950,7 @@ function getSymbolColumn(favorite, isFavoriteList = false) {
|
|
|
1953
1950
|
return /* @__PURE__ */ jsxs(Flex, { gapX: 1, children: [
|
|
1954
1951
|
favoritesIcon,
|
|
1955
1952
|
/* @__PURE__ */ jsx(TokenIcon, { symbol: value, className: "oui-size-[18px]" }),
|
|
1956
|
-
/* @__PURE__ */ jsx(
|
|
1957
|
-
Text.formatted,
|
|
1958
|
-
{
|
|
1959
|
-
rule: "symbol",
|
|
1960
|
-
formatString: "base",
|
|
1961
|
-
size: "2xs",
|
|
1962
|
-
weight: "semibold",
|
|
1963
|
-
children: value
|
|
1964
|
-
}
|
|
1965
|
-
),
|
|
1953
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "2xs", children: value }),
|
|
1966
1954
|
/* @__PURE__ */ jsx(RwaDotTooltip, { record }),
|
|
1967
1955
|
/* @__PURE__ */ jsxs(Badge, { size: "xs", color: "primary", children: [
|
|
1968
1956
|
record.leverage,
|
|
@@ -2011,6 +1999,7 @@ var init_column2 = __esm({
|
|
|
2011
1999
|
init_icons();
|
|
2012
2000
|
init_favoritesDropdownMenu();
|
|
2013
2001
|
init_rwaDotTooltip();
|
|
2002
|
+
init_symbolDisplay();
|
|
2014
2003
|
}
|
|
2015
2004
|
});
|
|
2016
2005
|
var FavoritesEmpty;
|
|
@@ -2608,6 +2597,7 @@ var init_column3 = __esm({
|
|
|
2608
2597
|
"src/components/marketsListFull/column.tsx"() {
|
|
2609
2598
|
init_icons();
|
|
2610
2599
|
init_favoritesDropdownMenu();
|
|
2600
|
+
init_symbolDisplay();
|
|
2611
2601
|
useMarketsListFullColumns = (favorite, isFavoriteList = false) => {
|
|
2612
2602
|
const { t } = useTranslation();
|
|
2613
2603
|
const columns = useMemo(() => {
|
|
@@ -2651,17 +2641,7 @@ var init_column3 = __esm({
|
|
|
2651
2641
|
width: 90,
|
|
2652
2642
|
onSort: true,
|
|
2653
2643
|
render: (value) => {
|
|
2654
|
-
return /* @__PURE__ */ jsx(
|
|
2655
|
-
Text.formatted,
|
|
2656
|
-
{
|
|
2657
|
-
rule: "symbol",
|
|
2658
|
-
formatString: "base-type",
|
|
2659
|
-
size: "xs",
|
|
2660
|
-
weight: "semibold",
|
|
2661
|
-
showIcon: true,
|
|
2662
|
-
children: value
|
|
2663
|
-
}
|
|
2664
|
-
);
|
|
2644
|
+
return /* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", showIcon: true, children: value });
|
|
2665
2645
|
}
|
|
2666
2646
|
},
|
|
2667
2647
|
{
|
|
@@ -3306,6 +3286,7 @@ var init_expandMarkets = __esm({
|
|
|
3306
3286
|
var createFundingRenderer, useFundingOverviewColumns, FundingPeriodSelect;
|
|
3307
3287
|
var init_columns = __esm({
|
|
3308
3288
|
"src/components/fundingOverview/columns.tsx"() {
|
|
3289
|
+
init_symbolDisplay();
|
|
3309
3290
|
createFundingRenderer = (dp = 5) => (value) => {
|
|
3310
3291
|
if (value === 0) {
|
|
3311
3292
|
return /* @__PURE__ */ jsx(Text, { children: " - " });
|
|
@@ -3341,15 +3322,7 @@ var init_columns = __esm({
|
|
|
3341
3322
|
className: isMobile ? "oui-size-[18px]" : "oui-size-5"
|
|
3342
3323
|
}
|
|
3343
3324
|
),
|
|
3344
|
-
/* @__PURE__ */ jsx(
|
|
3345
|
-
Text.formatted,
|
|
3346
|
-
{
|
|
3347
|
-
rule: "symbol",
|
|
3348
|
-
formatString: "base-type",
|
|
3349
|
-
weight: "semibold",
|
|
3350
|
-
children: value
|
|
3351
|
-
}
|
|
3352
|
-
)
|
|
3325
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "xs", children: value })
|
|
3353
3326
|
] })
|
|
3354
3327
|
},
|
|
3355
3328
|
{
|
|
@@ -3695,6 +3668,7 @@ var CDN_PREFIX, useFundingColumns;
|
|
|
3695
3668
|
var init_columns2 = __esm({
|
|
3696
3669
|
"src/components/fundingComparison/columns.tsx"() {
|
|
3697
3670
|
init_icons();
|
|
3671
|
+
init_symbolDisplay();
|
|
3698
3672
|
init_useEXchanges();
|
|
3699
3673
|
CDN_PREFIX = "https://oss.orderly.network/static/exchange_logo";
|
|
3700
3674
|
useFundingColumns = () => {
|
|
@@ -3726,16 +3700,7 @@ var init_columns2 = __esm({
|
|
|
3726
3700
|
className: isMobile ? "oui-size-[18px]" : "oui-size-5"
|
|
3727
3701
|
}
|
|
3728
3702
|
),
|
|
3729
|
-
/* @__PURE__ */ jsx(
|
|
3730
|
-
Text.formatted,
|
|
3731
|
-
{
|
|
3732
|
-
rule: "symbol",
|
|
3733
|
-
formatString: "base-type",
|
|
3734
|
-
size: "xs",
|
|
3735
|
-
weight: "semibold",
|
|
3736
|
-
children: value
|
|
3737
|
-
}
|
|
3738
|
-
)
|
|
3703
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "xs", children: value })
|
|
3739
3704
|
] })
|
|
3740
3705
|
},
|
|
3741
3706
|
{
|
|
@@ -4390,6 +4355,7 @@ var init_dataItem_ui = __esm({
|
|
|
4390
4355
|
var MarketItemComponent, MarketItem;
|
|
4391
4356
|
var init_marketItem_ui = __esm({
|
|
4392
4357
|
"src/components/horizontalMarkets/marketItem.ui.tsx"() {
|
|
4358
|
+
init_symbolDisplay();
|
|
4393
4359
|
MarketItemComponent = (props) => {
|
|
4394
4360
|
const { symbol, tickerData, isActive, onSymbolClick } = props;
|
|
4395
4361
|
const handleClick = React6.useCallback(() => {
|
|
@@ -4400,7 +4366,7 @@ var init_marketItem_ui = __esm({
|
|
|
4400
4366
|
{
|
|
4401
4367
|
direction: "row",
|
|
4402
4368
|
className: cn(
|
|
4403
|
-
"oui-
|
|
4369
|
+
"oui-mr-3 oui-h-[18px] oui-shrink-0 oui-cursor-pointer oui-items-center oui-rounded",
|
|
4404
4370
|
"oui-transition-all oui-duration-200"
|
|
4405
4371
|
),
|
|
4406
4372
|
onClick: handleClick,
|
|
@@ -4408,12 +4374,10 @@ var init_marketItem_ui = __esm({
|
|
|
4408
4374
|
/* @__PURE__ */ jsxs(Flex, { gapX: 1, itemAlign: "center", className: "oui-mr-[6px]", children: [
|
|
4409
4375
|
/* @__PURE__ */ jsx(TokenIcon, { symbol, className: "oui-size-[18px]" }),
|
|
4410
4376
|
/* @__PURE__ */ jsx(
|
|
4411
|
-
|
|
4377
|
+
SymbolDisplay,
|
|
4412
4378
|
{
|
|
4413
|
-
rule: "symbol",
|
|
4414
4379
|
formatString: "base",
|
|
4415
|
-
size: "
|
|
4416
|
-
weight: "semibold",
|
|
4380
|
+
size: "2xs",
|
|
4417
4381
|
className: "oui-text-base-contrast-80",
|
|
4418
4382
|
children: symbol
|
|
4419
4383
|
}
|
|
@@ -4929,6 +4893,7 @@ init_favoritesTabs();
|
|
|
4929
4893
|
init_marketsList();
|
|
4930
4894
|
init_rwaTab();
|
|
4931
4895
|
init_useFavoritesExtraProps();
|
|
4896
|
+
init_symbolDisplay();
|
|
4932
4897
|
var LIST_ROW_COMPACT = "oui-h-auto";
|
|
4933
4898
|
var TABLE_CLASSNAMES = {
|
|
4934
4899
|
scroll: "oui-px-0",
|
|
@@ -4975,16 +4940,7 @@ var SubMenuMarkets = (props) => {
|
|
|
4975
4940
|
render: (_, record) => {
|
|
4976
4941
|
return /* @__PURE__ */ jsx("div", { className: "oui-mx-[-8px]", children: /* @__PURE__ */ jsxs(Flex, { gapX: 1, itemAlign: "center", children: [
|
|
4977
4942
|
/* @__PURE__ */ jsx(TokenIcon, { symbol: record.symbol, className: "oui-size-[18px]" }),
|
|
4978
|
-
/* @__PURE__ */ jsx(
|
|
4979
|
-
Text.formatted,
|
|
4980
|
-
{
|
|
4981
|
-
rule: "symbol",
|
|
4982
|
-
formatString: "base",
|
|
4983
|
-
size: "2xs",
|
|
4984
|
-
weight: "semibold",
|
|
4985
|
-
children: record.symbol
|
|
4986
|
-
}
|
|
4987
|
-
),
|
|
4943
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "2xs", children: record.symbol }),
|
|
4988
4944
|
/* @__PURE__ */ jsxs(Badge, { size: "xs", color: "primary", children: [
|
|
4989
4945
|
record.leverage,
|
|
4990
4946
|
"x"
|
|
@@ -5224,6 +5180,7 @@ init_useFavoritesExtraProps();
|
|
|
5224
5180
|
// src/components/marketsSheet/column.tsx
|
|
5225
5181
|
init_icons();
|
|
5226
5182
|
init_favoritesDropdownMenu();
|
|
5183
|
+
init_symbolDisplay();
|
|
5227
5184
|
var getMarketsSheetColumns = (favorite, isFavoriteList = false) => {
|
|
5228
5185
|
return [
|
|
5229
5186
|
{
|
|
@@ -5262,16 +5219,7 @@ var getMarketsSheetColumns = (favorite, isFavoriteList = false) => {
|
|
|
5262
5219
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", itemAlign: "start", gapY: 1, children: [
|
|
5263
5220
|
/* @__PURE__ */ jsxs(Flex, { gapX: 1, children: [
|
|
5264
5221
|
/* @__PURE__ */ jsx(TokenIcon, { symbol: record.symbol, className: "oui-size-[18px]" }),
|
|
5265
|
-
/* @__PURE__ */ jsx(
|
|
5266
|
-
Text.formatted,
|
|
5267
|
-
{
|
|
5268
|
-
rule: "symbol",
|
|
5269
|
-
formatString: "base",
|
|
5270
|
-
size: "2xs",
|
|
5271
|
-
weight: "semibold",
|
|
5272
|
-
children: record.symbol
|
|
5273
|
-
}
|
|
5274
|
-
),
|
|
5222
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "2xs", children: record.symbol }),
|
|
5275
5223
|
/* @__PURE__ */ jsxs(Badge, { size: "xs", color: "primary", children: [
|
|
5276
5224
|
record.leverage,
|
|
5277
5225
|
"x"
|
|
@@ -5470,6 +5418,7 @@ var MarketsSheetWidget = (props) => {
|
|
|
5470
5418
|
|
|
5471
5419
|
// src/components/symbolInfoBar/symbolInfoBar.ui.tsx
|
|
5472
5420
|
init_icons();
|
|
5421
|
+
init_symbolDisplay();
|
|
5473
5422
|
var RwaTooltip = (props) => {
|
|
5474
5423
|
const { isRwa, open, closeTimeInterval, openTimeInterval } = props;
|
|
5475
5424
|
const { isMobile } = useScreen();
|
|
@@ -5622,21 +5571,11 @@ var SymbolInfoBar = (props) => {
|
|
|
5622
5571
|
const symbolView = /* @__PURE__ */ jsxs(
|
|
5623
5572
|
Flex,
|
|
5624
5573
|
{
|
|
5625
|
-
className: "oui-cursor-pointer oui-gap-x-[6px]
|
|
5574
|
+
className: "oui-h-5 oui-cursor-pointer oui-gap-x-[6px]",
|
|
5626
5575
|
onClick: onSymbol,
|
|
5627
5576
|
children: [
|
|
5628
|
-
/* @__PURE__ */ jsx(
|
|
5629
|
-
|
|
5630
|
-
{
|
|
5631
|
-
className: "oui-break-normal oui-whitespace-nowrap",
|
|
5632
|
-
rule: "symbol",
|
|
5633
|
-
formatString: "base-type",
|
|
5634
|
-
size: "sm",
|
|
5635
|
-
weight: "semibold",
|
|
5636
|
-
children: symbol
|
|
5637
|
-
}
|
|
5638
|
-
),
|
|
5639
|
-
/* @__PURE__ */ jsx(TriangleDownIcon, { className: "oui-text-base-contrast-54 oui-w-[14px] oui-h-[14px]" })
|
|
5577
|
+
/* @__PURE__ */ jsx(SymbolDisplay, { formatString: "base", size: "sm", children: symbol }),
|
|
5578
|
+
/* @__PURE__ */ jsx(TriangleDownIcon, { className: "oui-size-[14px] oui-text-base-contrast-54" })
|
|
5640
5579
|
]
|
|
5641
5580
|
}
|
|
5642
5581
|
);
|
|
@@ -5645,11 +5584,11 @@ var SymbolInfoBar = (props) => {
|
|
|
5645
5584
|
{
|
|
5646
5585
|
className: cn(
|
|
5647
5586
|
"oui-symbol-info-bar-mobile",
|
|
5648
|
-
"oui-
|
|
5587
|
+
"oui-h-full oui-font-semibold",
|
|
5649
5588
|
props.className
|
|
5650
5589
|
),
|
|
5651
5590
|
children: [
|
|
5652
|
-
/* @__PURE__ */ jsxs(Flex, { gapX: 3, className: "oui-flex-1 oui-overflow-hidden
|
|
5591
|
+
/* @__PURE__ */ jsxs(Flex, { gapX: 3, className: "oui-h-full oui-flex-1 oui-overflow-hidden", children: [
|
|
5653
5592
|
/* @__PURE__ */ jsxs(Flex, { gapX: 3, children: [
|
|
5654
5593
|
/* @__PURE__ */ jsx(TokenIcon, { symbol, size: "xs" }),
|
|
5655
5594
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", itemAlign: "start", children: [
|
|
@@ -5864,6 +5803,9 @@ var FundingRateHintWidget = (props) => {
|
|
|
5864
5803
|
const state = useFundingRateHintScript(props.symbol);
|
|
5865
5804
|
return /* @__PURE__ */ jsx(FundingRateHint, { ...state, ...props });
|
|
5866
5805
|
};
|
|
5806
|
+
|
|
5807
|
+
// src/components/symbolInfoBarFull/symbolInfoBarFull.ui.tsx
|
|
5808
|
+
init_symbolDisplay();
|
|
5867
5809
|
var LazyDropDownMarketsWidget = React6.lazy(
|
|
5868
5810
|
() => Promise.resolve().then(() => (init_dropDownMarkets(), dropDownMarkets_exports)).then((mod) => {
|
|
5869
5811
|
return { default: mod.DropDownMarketsWidget };
|
|
@@ -5920,7 +5862,7 @@ var SymbolInfoBarFull = (props) => {
|
|
|
5920
5862
|
{
|
|
5921
5863
|
direction: "column",
|
|
5922
5864
|
itemAlign: "start",
|
|
5923
|
-
className: "oui-gap-y-[2px]
|
|
5865
|
+
className: "oui-shrink-0 oui-gap-y-[2px]",
|
|
5924
5866
|
children: [
|
|
5925
5867
|
/* @__PURE__ */ jsx(
|
|
5926
5868
|
LazyDropDownMarketsWidget,
|
|
@@ -5931,14 +5873,11 @@ var SymbolInfoBarFull = (props) => {
|
|
|
5931
5873
|
children: /* @__PURE__ */ jsxs(Flex, { gapX: 1, className: "oui-cursor-pointer", children: [
|
|
5932
5874
|
/* @__PURE__ */ jsx(TokenIcon, { symbol, className: "oui-size-4" }),
|
|
5933
5875
|
/* @__PURE__ */ jsx(
|
|
5934
|
-
|
|
5876
|
+
SymbolDisplay,
|
|
5935
5877
|
{
|
|
5936
|
-
|
|
5937
|
-
rule: "symbol",
|
|
5938
|
-
formatString: "base-type",
|
|
5878
|
+
formatString: "base",
|
|
5939
5879
|
size: "xs",
|
|
5940
|
-
|
|
5941
|
-
intensity: 98,
|
|
5880
|
+
className: "oui-text-base-contrast",
|
|
5942
5881
|
children: symbol
|
|
5943
5882
|
}
|
|
5944
5883
|
),
|
|
@@ -6815,7 +6754,8 @@ var MarketsMobileContent = (props) => {
|
|
|
6815
6754
|
|
|
6816
6755
|
// src/index.ts
|
|
6817
6756
|
init_marketsProvider();
|
|
6757
|
+
init_symbolDisplay();
|
|
6818
6758
|
|
|
6819
|
-
export { CollapseMarkets, DropDownMarkets, DropDownMarketsConetnt, DropDownMarketsWidget, ExpandMarkets, ExpandMarketsWidget, FavoritesDropdownMenu, FavoritesDropdownMenuWidget, FavoritesList, FavoritesListFull, FavoritesListFullWidget, FavoritesListWidget, FavoritesTab, FavoritesTabWidget, FundingComparison, FundingComparisonWidget, FundingOverview, FundingOverviewWidget, FundingTabName, HorizontalMarkets, HorizontalMarketsWidget, MarketItem, MarketTypeFilter, MarketsDataList, MarketsDataListWidget, MarketsHeader, MarketsHeaderWidget, MarketsHomePage, MarketsList, MarketsListFull, MarketsListFullWidget, MarketsListWidget, MarketsPageTab, MarketsProvider, MarketsSheet, MarketsSheetWidget, MarketsTabName, NewListingList, NewListingListWidget, RecentList, RecentListWidget, SideMarkets, SideMarketsWidget, SubMenuMarkets, SubMenuMarketsWidget, SymbolInfoBar, SymbolInfoBarFull, SymbolInfoBarFullWidget, SymbolInfoBarWidget, useDropDownMarketsColumns, useDropDownMarketsScript, useExpandMarketsScript, useFavoritesDropdownMenuScript, useFavoritesListFullScript, useFavoritesListScript, useFavoritesTabScript, useFundingComparisonScript, useFundingOverviewScript, useHorizontalMarketsScript, useMarketsDataListScript, useMarketsHeaderScript, useMarketsListFullScript, useMarketsListScript, useMarketsSheetScript, useNewListingListScript, useRecentListScript, useSideMarketsScript, useSubMenuMarketsScript, useSymbolInfoBarFullScript, useSymbolInfoBarScript };
|
|
6759
|
+
export { CollapseMarkets, DropDownMarkets, DropDownMarketsConetnt, DropDownMarketsWidget, ExpandMarkets, ExpandMarketsWidget, FavoritesDropdownMenu, FavoritesDropdownMenuWidget, FavoritesList, FavoritesListFull, FavoritesListFullWidget, FavoritesListWidget, FavoritesTab, FavoritesTabWidget, FundingComparison, FundingComparisonWidget, FundingOverview, FundingOverviewWidget, FundingTabName, HorizontalMarkets, HorizontalMarketsWidget, MarketItem, MarketTypeFilter, MarketsDataList, MarketsDataListWidget, MarketsHeader, MarketsHeaderWidget, MarketsHomePage, MarketsList, MarketsListFull, MarketsListFullWidget, MarketsListWidget, MarketsPageTab, MarketsProvider, MarketsSheet, MarketsSheetWidget, MarketsTabName, NewListingList, NewListingListWidget, RecentList, RecentListWidget, SideMarkets, SideMarketsWidget, SubMenuMarkets, SubMenuMarketsWidget, SymbolDisplay, SymbolInfoBar, SymbolInfoBarFull, SymbolInfoBarFullWidget, SymbolInfoBarWidget, useDropDownMarketsColumns, useDropDownMarketsScript, useExpandMarketsScript, useFavoritesDropdownMenuScript, useFavoritesListFullScript, useFavoritesListScript, useFavoritesTabScript, useFundingComparisonScript, useFundingOverviewScript, useHorizontalMarketsScript, useMarketsDataListScript, useMarketsHeaderScript, useMarketsListFullScript, useMarketsListScript, useMarketsSheetScript, useNewListingListScript, useRecentListScript, useSideMarketsScript, useSubMenuMarketsScript, useSymbolInfoBarFullScript, useSymbolInfoBarScript };
|
|
6820
6760
|
//# sourceMappingURL=index.mjs.map
|
|
6821
6761
|
//# sourceMappingURL=index.mjs.map
|