@orderly.network/trading 3.0.4 → 3.1.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.js +39 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
package/dist/index.mjs
CHANGED
|
@@ -735,7 +735,7 @@ var init_dataList_ui = __esm({
|
|
|
735
735
|
};
|
|
736
736
|
LiquidationTab = () => {
|
|
737
737
|
const { t } = useTranslation();
|
|
738
|
-
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-
|
|
738
|
+
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-gap-x-1", children: [
|
|
739
739
|
/* @__PURE__ */ jsx("span", { children: t("positions.liquidation") }),
|
|
740
740
|
/* @__PURE__ */ jsx(
|
|
741
741
|
Tooltip,
|
|
@@ -875,7 +875,7 @@ var init_dataList_ui = __esm({
|
|
|
875
875
|
classNames: {
|
|
876
876
|
scrollRoot: "oui-h-full oui-mb-6 oui-mt-0 oui-p-0 oui-pt-3 oui-h-[calc(100%_-_40px)]",
|
|
877
877
|
root: "oui-gap-4 oui-h-full",
|
|
878
|
-
desc: "oui-
|
|
878
|
+
desc: "oui-ms-1"
|
|
879
879
|
},
|
|
880
880
|
dataTableClassNames: {
|
|
881
881
|
header: "oui-bg-base-9",
|
|
@@ -956,7 +956,7 @@ var init_lastTrades_ui = __esm({
|
|
|
956
956
|
),
|
|
957
957
|
style: props.style,
|
|
958
958
|
children: [
|
|
959
|
-
/* @__PURE__ */ jsx(Box, { className: "oui-
|
|
959
|
+
/* @__PURE__ */ jsx(Box, { className: "oui-pe-1", children: /* @__PURE__ */ jsx(
|
|
960
960
|
Header,
|
|
961
961
|
{
|
|
962
962
|
base: props.base,
|
|
@@ -991,7 +991,7 @@ var init_lastTrades_ui = __esm({
|
|
|
991
991
|
// >
|
|
992
992
|
// <Box className={cn("oui-flex-1", classNames?.left)}>{left}</Box>
|
|
993
993
|
// <Box className={cn("oui-flex-1", classNames?.mid)}>{mid}</Box>
|
|
994
|
-
// <Box className={cn("oui-flex-1 oui-text-
|
|
994
|
+
// <Box className={cn("oui-flex-1 oui-text-end", classNames?.right)}>
|
|
995
995
|
// {right}
|
|
996
996
|
// </Box>
|
|
997
997
|
// </Flex>
|
|
@@ -1005,7 +1005,7 @@ var init_lastTrades_ui = __esm({
|
|
|
1005
1005
|
children: [
|
|
1006
1006
|
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1", classNames?.left), children: left }),
|
|
1007
1007
|
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1", classNames?.mid), children: mid }),
|
|
1008
|
-
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1 oui-text-
|
|
1008
|
+
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1 oui-text-end", classNames?.right), children: right })
|
|
1009
1009
|
]
|
|
1010
1010
|
}
|
|
1011
1011
|
)
|
|
@@ -1039,7 +1039,7 @@ var init_lastTrades_ui = __esm({
|
|
|
1039
1039
|
props.className,
|
|
1040
1040
|
"oui-overflow-auto"
|
|
1041
1041
|
),
|
|
1042
|
-
contentClassName: "!oui-space-y-0 oui-
|
|
1042
|
+
contentClassName: "!oui-space-y-0 -oui-me-[4px]",
|
|
1043
1043
|
renderItem: (item, index) => {
|
|
1044
1044
|
return /* @__PURE__ */ jsx(
|
|
1045
1045
|
Row,
|
|
@@ -1347,7 +1347,7 @@ var init_assetView_ui = __esm({
|
|
|
1347
1347
|
visible,
|
|
1348
1348
|
size: "2xs",
|
|
1349
1349
|
unit,
|
|
1350
|
-
unitClassName: "oui-text-base-contrast-36 oui-
|
|
1350
|
+
unitClassName: "oui-text-base-contrast-36 oui-ms-0.5",
|
|
1351
1351
|
as: "div",
|
|
1352
1352
|
rule,
|
|
1353
1353
|
padding: false,
|
|
@@ -1881,8 +1881,8 @@ var init_cellBar = __esm({
|
|
|
1881
1881
|
"div",
|
|
1882
1882
|
{
|
|
1883
1883
|
className: cn(
|
|
1884
|
-
"oui-absolute oui-
|
|
1885
|
-
direction === 0 /* LEFT_TO_RIGHT */ && "oui-
|
|
1884
|
+
"oui-absolute oui-end-[-100%] oui-top-0 oui-h-full oui-w-full oui-transition-transform oui-pointer-events-none",
|
|
1885
|
+
direction === 0 /* LEFT_TO_RIGHT */ && "oui-start-[-100%]",
|
|
1886
1886
|
props.className
|
|
1887
1887
|
),
|
|
1888
1888
|
style: transform
|
|
@@ -1926,7 +1926,7 @@ var init_cell_desktop = __esm({
|
|
|
1926
1926
|
return /* @__PURE__ */ jsxs(
|
|
1927
1927
|
"div",
|
|
1928
1928
|
{
|
|
1929
|
-
className: "oui-relative oui-flex oui-cursor-pointer oui-flex-row oui-justify-between oui-
|
|
1929
|
+
className: "oui-relative oui-flex oui-cursor-pointer oui-flex-row oui-justify-between oui-ps-3 oui-text-xs oui-tabular-nums oui-text-base-contrast-80",
|
|
1930
1930
|
style: { height: `${cellHeight}px` },
|
|
1931
1931
|
onClick: () => {
|
|
1932
1932
|
if (Number.isNaN(price) || Number.isNaN(quantity)) {
|
|
@@ -1941,7 +1941,7 @@ var init_cell_desktop = __esm({
|
|
|
1941
1941
|
"div",
|
|
1942
1942
|
{
|
|
1943
1943
|
className: cn(
|
|
1944
|
-
"oui-
|
|
1944
|
+
"oui-me-2 oui-flex oui-basis-7/12 oui-flex-row oui-items-center",
|
|
1945
1945
|
showTotal && "oui-basis-5/12"
|
|
1946
1946
|
),
|
|
1947
1947
|
children: [
|
|
@@ -1949,13 +1949,13 @@ var init_cell_desktop = __esm({
|
|
|
1949
1949
|
"div",
|
|
1950
1950
|
{
|
|
1951
1951
|
className: cn(
|
|
1952
|
-
"oui-flex-1 oui-text-
|
|
1952
|
+
"oui-flex-1 oui-text-start",
|
|
1953
1953
|
props.type === "ask" /* ASK */ ? "oui-text-trade-loss" : "oui-text-trade-profit"
|
|
1954
1954
|
),
|
|
1955
|
-
children: /* @__PURE__ */ jsx(Text.numeral, { dp, children: price })
|
|
1955
|
+
children: /* @__PURE__ */ jsx(Text.numeral, { dp, dir: "ltr", children: price })
|
|
1956
1956
|
}
|
|
1957
1957
|
),
|
|
1958
|
-
/* @__PURE__ */ jsx("div", { className: "oui-flex-1 oui-text-
|
|
1958
|
+
/* @__PURE__ */ jsx("div", { className: "oui-flex-1 oui-text-end oui-text-base-contrast-80", children: /* @__PURE__ */ jsx(Text.numeral, { dp: base_dp, dir: "ltr", children: quantity }) })
|
|
1959
1959
|
]
|
|
1960
1960
|
}
|
|
1961
1961
|
),
|
|
@@ -1968,11 +1968,11 @@ var init_cell_desktop = __esm({
|
|
|
1968
1968
|
),
|
|
1969
1969
|
children: [
|
|
1970
1970
|
showTotal ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1971
|
-
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1 oui-
|
|
1972
|
-
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1 oui-
|
|
1973
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: cn("oui-flex-1 oui-
|
|
1974
|
-
coinType === base && /* @__PURE__ */ jsx(Text.numeral, { dp: base_dp, className: "oui-z-10", children: accumulated }),
|
|
1975
|
-
coinType === quote && /* @__PURE__ */ jsx(Text.numeral, { dp: 0, className: "oui-z-10", children: totalAmount })
|
|
1971
|
+
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1 oui-pe-3 oui-text-end"), children: /* @__PURE__ */ jsx(Text.numeral, { dp: base_dp, className: "oui-z-10", dir: "ltr", children: accumulated }) }),
|
|
1972
|
+
/* @__PURE__ */ jsx("div", { className: cn("oui-flex-1 oui-pe-3 oui-text-end"), children: /* @__PURE__ */ jsx(Text.numeral, { dp: 0, className: "oui-z-10", dir: "ltr", children: totalAmount }) })
|
|
1973
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: cn("oui-flex-1 oui-pe-3 oui-text-end"), children: [
|
|
1974
|
+
coinType === base && /* @__PURE__ */ jsx(Text.numeral, { dp: base_dp, className: "oui-z-10", dir: "ltr", children: accumulated }),
|
|
1975
|
+
coinType === quote && /* @__PURE__ */ jsx(Text.numeral, { dp: 0, className: "oui-z-10", dir: "ltr", children: totalAmount })
|
|
1976
1976
|
] }),
|
|
1977
1977
|
/* @__PURE__ */ jsx(
|
|
1978
1978
|
CellBar,
|
|
@@ -1989,7 +1989,7 @@ var init_cell_desktop = __esm({
|
|
|
1989
1989
|
"div",
|
|
1990
1990
|
{
|
|
1991
1991
|
className: cn(
|
|
1992
|
-
"oui-pointer-events-none oui-absolute oui-
|
|
1992
|
+
"oui-pointer-events-none oui-absolute oui-start-[4px] oui-size-[4px] oui-rounded-full",
|
|
1993
1993
|
props.type === "ask" /* ASK */ && "oui-bg-trade-loss",
|
|
1994
1994
|
props.type === "bid" /* BID */ && "oui-bg-trade-profit"
|
|
1995
1995
|
),
|
|
@@ -2757,12 +2757,12 @@ var init_markPrice_desktop = __esm({
|
|
|
2757
2757
|
DesktopMarkPrice = (props) => {
|
|
2758
2758
|
const { markPrice = 0, lastPrice, asks, bids, symbolInfo } = props;
|
|
2759
2759
|
const { showTotal } = useOrderBookContext();
|
|
2760
|
-
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-flex-row oui-
|
|
2760
|
+
return /* @__PURE__ */ jsxs("div", { className: "oui-flex oui-flex-row oui-ps-3 oui-tabular-nums oui-justify-between oui-text-base-contrast-80 oui-text-xs oui-relative oui-cursor-pointer oui-py-[6px]", children: [
|
|
2761
2761
|
/* @__PURE__ */ jsxs(
|
|
2762
2762
|
"div",
|
|
2763
2763
|
{
|
|
2764
2764
|
className: cn(
|
|
2765
|
-
"oui-basis-7/12 oui-flex oui-flex-row oui-items-center oui-
|
|
2765
|
+
"oui-basis-7/12 oui-flex oui-flex-row oui-items-center oui-me-2 oui-justify-between",
|
|
2766
2766
|
showTotal && "oui-basis-5/12"
|
|
2767
2767
|
),
|
|
2768
2768
|
children: [
|
|
@@ -2785,7 +2785,7 @@ var init_markPrice_desktop = __esm({
|
|
|
2785
2785
|
className: cn(
|
|
2786
2786
|
"oui-basis-5/12 oui-flex oui-items-center oui-fex-row oui-overflow-hidden oui-relative oui-justify-end",
|
|
2787
2787
|
showTotal && "oui-basis-7/12",
|
|
2788
|
-
"oui-
|
|
2788
|
+
"oui-pe-3"
|
|
2789
2789
|
),
|
|
2790
2790
|
children: /* @__PURE__ */ jsx(Spread, { asks, bids })
|
|
2791
2791
|
}
|
|
@@ -2910,7 +2910,7 @@ var init_index_desktop = __esm({
|
|
|
2910
2910
|
showBuySellRatio ? "oui-grid-rows-[auto,auto,1fr,auto,1fr,auto]" : "oui-grid-rows-[auto,auto,1fr,auto,1fr]"
|
|
2911
2911
|
),
|
|
2912
2912
|
children: [
|
|
2913
|
-
/* @__PURE__ */ jsxs(Flex, { justify: "between", itemAlign: "center", className: "oui-
|
|
2913
|
+
/* @__PURE__ */ jsxs(Flex, { justify: "between", itemAlign: "center", className: "oui-pe-3", children: [
|
|
2914
2914
|
/* @__PURE__ */ jsx(
|
|
2915
2915
|
DesktopDepthSelect,
|
|
2916
2916
|
{
|
|
@@ -3848,10 +3848,10 @@ var init_buySellRatioBar = __esm({
|
|
|
3848
3848
|
/* @__PURE__ */ jsx(
|
|
3849
3849
|
"div",
|
|
3850
3850
|
{
|
|
3851
|
-
className: "oui-bg-trade-profit oui-
|
|
3851
|
+
className: "oui-bg-trade-profit oui-me-[2px] oui-rounded-sm",
|
|
3852
3852
|
style: {
|
|
3853
3853
|
position: "absolute",
|
|
3854
|
-
|
|
3854
|
+
insetInlineStart: 0,
|
|
3855
3855
|
top: 0,
|
|
3856
3856
|
width: `${buyPercentage}%`,
|
|
3857
3857
|
height: "100%"
|
|
@@ -3861,10 +3861,10 @@ var init_buySellRatioBar = __esm({
|
|
|
3861
3861
|
/* @__PURE__ */ jsx(
|
|
3862
3862
|
"div",
|
|
3863
3863
|
{
|
|
3864
|
-
className: "oui-bg-trade-loss oui-
|
|
3864
|
+
className: "oui-bg-trade-loss oui-ms-[2px] oui-rounded-sm",
|
|
3865
3865
|
style: {
|
|
3866
3866
|
position: "absolute",
|
|
3867
|
-
|
|
3867
|
+
insetInlineStart: `${buyPercentage}%`,
|
|
3868
3868
|
top: 0,
|
|
3869
3869
|
width: `${sellPercentage}%`,
|
|
3870
3870
|
height: "100%"
|
|
@@ -4086,7 +4086,7 @@ var init_orderBookAndTrades_ui = __esm({
|
|
|
4086
4086
|
Title2,
|
|
4087
4087
|
{
|
|
4088
4088
|
title: t("trading.orderBook"),
|
|
4089
|
-
className: "oui-
|
|
4089
|
+
className: "oui-ps-3 oui-text-sm"
|
|
4090
4090
|
}
|
|
4091
4091
|
),
|
|
4092
4092
|
/* @__PURE__ */ jsx(React12.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
@@ -4152,8 +4152,8 @@ var init_orderBookAndTrades_ui = __esm({
|
|
|
4152
4152
|
props.setTab(tab);
|
|
4153
4153
|
},
|
|
4154
4154
|
classNames: {
|
|
4155
|
-
tabsList: "oui-
|
|
4156
|
-
// tabsContent: props.tab === "lastTrades" ? 'oui-
|
|
4155
|
+
tabsList: "oui-ps-3"
|
|
4156
|
+
// tabsContent: props.tab === "lastTrades" ? 'oui-ps-3' : ''
|
|
4157
4157
|
},
|
|
4158
4158
|
size: "lg",
|
|
4159
4159
|
children: [
|
|
@@ -5455,14 +5455,14 @@ var init_tradingview_ui = __esm({
|
|
|
5455
5455
|
{
|
|
5456
5456
|
ref: props.dragRef,
|
|
5457
5457
|
className: cn(
|
|
5458
|
-
"oui-h-[1px] oui-absolute oui-
|
|
5458
|
+
"oui-h-[1px] oui-absolute oui-start-0 oui-end-0 oui-bottom-0 oui-top-0 oui-z-10 oui-mt-[7px] oui-bg-base-contrast-12",
|
|
5459
5459
|
props.dragging && "oui-bg-primary "
|
|
5460
5460
|
),
|
|
5461
5461
|
children: /* @__PURE__ */ jsx(
|
|
5462
5462
|
KlineDragIcon,
|
|
5463
5463
|
{
|
|
5464
5464
|
className: cn(
|
|
5465
|
-
"oui-w-3 oui-h-3 oui-absolute oui-
|
|
5465
|
+
"oui-w-3 oui-h-3 oui-absolute oui-start-1/2 -oui-top-[5px] -oui-translate-y-[0.5px] oui-text-base-contrast-12",
|
|
5466
5466
|
props.dragging && " oui-text-primary"
|
|
5467
5467
|
)
|
|
5468
5468
|
}
|
|
@@ -6555,7 +6555,7 @@ var AccountInfo = (props) => {
|
|
|
6555
6555
|
{
|
|
6556
6556
|
size: "2xs",
|
|
6557
6557
|
intensity: 80,
|
|
6558
|
-
prefix: /* @__PURE__ */ jsx("div", { className: "oui-h-1 oui-w-1 oui-rounded-full oui-bg-success oui-
|
|
6558
|
+
prefix: /* @__PURE__ */ jsx("div", { className: "oui-h-1 oui-w-1 oui-rounded-full oui-bg-success oui-pe-1" }),
|
|
6559
6559
|
children: props.chainName
|
|
6560
6560
|
}
|
|
6561
6561
|
)
|
|
@@ -6974,7 +6974,7 @@ var Chain = (props) => {
|
|
|
6974
6974
|
},
|
|
6975
6975
|
children: /* @__PURE__ */ jsxs(Box, { className: "oui-relative oui-rounded-t-[6px] oui-rounded-bl-[6px] oui-rounded-br-[3px] oui-bg-base-5 oui-px-2 oui-h-7 oui-flex oui-items-center", children: [
|
|
6976
6976
|
/* @__PURE__ */ jsx(ChainIcon, { chainId: props.currentChainId, size: "2xs" }),
|
|
6977
|
-
/* @__PURE__ */ jsx("div", { className: "oui-absolute oui-
|
|
6977
|
+
/* @__PURE__ */ jsx("div", { className: "oui-absolute oui-end-0 oui-bottom-0", children: /* @__PURE__ */ jsxs(
|
|
6978
6978
|
"svg",
|
|
6979
6979
|
{
|
|
6980
6980
|
width: "9",
|
|
@@ -7425,7 +7425,7 @@ var RiskIndicator = (props) => {
|
|
|
7425
7425
|
"div",
|
|
7426
7426
|
{
|
|
7427
7427
|
className: cn(
|
|
7428
|
-
"oui-relative oui-w-[2px] oui-h-[2px] oui-rounded-full oui-bg-base-contrast after:oui-block after:oui-content-[''] after:oui-absolute after:oui-
|
|
7428
|
+
"oui-relative oui-w-[2px] oui-h-[2px] oui-rounded-full oui-bg-base-contrast after:oui-block after:oui-content-[''] after:oui-absolute after:oui-end-0 after:oui-w-[10px] after:oui-h-[2px] after:oui-bg-base-contrast-50",
|
|
7429
7429
|
className
|
|
7430
7430
|
// {
|
|
7431
7431
|
// "oui-rotate-0": value > 1,
|
|
@@ -7831,7 +7831,7 @@ var SortablePanel = (props) => {
|
|
|
7831
7831
|
{
|
|
7832
7832
|
...attributes,
|
|
7833
7833
|
...listeners,
|
|
7834
|
-
className: "oui-absolute oui-
|
|
7834
|
+
className: "oui-absolute oui-end-0 oui-top-4 oui-cursor-move oui-py-1",
|
|
7835
7835
|
style: { touchAction: "none" },
|
|
7836
7836
|
ref: setActivatorNodeRef,
|
|
7837
7837
|
children: /* @__PURE__ */ jsx(
|
|
@@ -7900,7 +7900,7 @@ var RwaOutsideMarketHoursNotify = () => {
|
|
|
7900
7900
|
/* @__PURE__ */ jsx(
|
|
7901
7901
|
"button",
|
|
7902
7902
|
{
|
|
7903
|
-
className: "oui-w-6 oui-h-6 oui-
|
|
7903
|
+
className: "oui-w-6 oui-h-6 oui-end-0 oui-top-0 oui-absolute oui-bg-base-8 oui-rounded-tr-[10px] oui-rounded-bl-[10px] oui-inline-flex oui-justify-center oui-items-center oui-gap-2.5 oui-cursor-pointer",
|
|
7904
7904
|
onClick: closeNotify,
|
|
7905
7905
|
children: /* @__PURE__ */ jsx(CloseIcon, { opacity: 1, className: "oui-text-base-contrast", size: 16 })
|
|
7906
7906
|
}
|
|
@@ -9279,7 +9279,7 @@ var MobileLayout4 = (props) => {
|
|
|
9279
9279
|
]
|
|
9280
9280
|
}
|
|
9281
9281
|
);
|
|
9282
|
-
}, [isRwa, open,
|
|
9282
|
+
}, [closeTimeInterval, isRwa, open, t]);
|
|
9283
9283
|
const symbolInfoBar = /* @__PURE__ */ jsx(
|
|
9284
9284
|
SymbolInfoBarWidget,
|
|
9285
9285
|
{
|