@orderly.network/trading 3.0.4-alpha.2 → 3.0.4-alpha.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 +26 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
package/dist/index.mjs
CHANGED
|
@@ -8488,7 +8488,8 @@ var DesktopLayout4 = (props) => {
|
|
|
8488
8488
|
SideMarketsWidget,
|
|
8489
8489
|
{
|
|
8490
8490
|
symbol: props.symbol,
|
|
8491
|
-
onSymbolChange: props.onSymbolChange
|
|
8491
|
+
onSymbolChange: props.onSymbolChange,
|
|
8492
|
+
panelSize
|
|
8492
8493
|
}
|
|
8493
8494
|
);
|
|
8494
8495
|
const toggleButtoncls = cn(
|
|
@@ -8530,13 +8531,13 @@ var DesktopLayout4 = (props) => {
|
|
|
8530
8531
|
height: "100%",
|
|
8531
8532
|
width: marketsWidth,
|
|
8532
8533
|
style: { minWidth: marketsWidth },
|
|
8533
|
-
className: "oui-trading-markets-container oui-transition-all oui-duration-150",
|
|
8534
|
+
className: "oui-trading-markets-container oui-min-h-0 oui-min-w-0 oui-max-w-full oui-transition-all oui-duration-150",
|
|
8534
8535
|
onTransitionEnd: () => setAnimating(false),
|
|
8535
8536
|
children: /* @__PURE__ */ jsxs(
|
|
8536
8537
|
Flex,
|
|
8537
8538
|
{
|
|
8538
8539
|
id: "oui-side-markets",
|
|
8539
|
-
className: "oui-relative oui-font-semibold",
|
|
8540
|
+
className: "oui-relative oui-min-h-0 oui-min-w-0 oui-font-semibold",
|
|
8540
8541
|
direction: "column",
|
|
8541
8542
|
gapY: 5,
|
|
8542
8543
|
height: "100%",
|
|
@@ -8547,10 +8548,7 @@ var DesktopLayout4 = (props) => {
|
|
|
8547
8548
|
Box,
|
|
8548
8549
|
{
|
|
8549
8550
|
width: "100%",
|
|
8550
|
-
className:
|
|
8551
|
-
panelSize === "large" && "oui-h-[calc(100%_-_56px)]",
|
|
8552
|
-
panelSize === "middle" && "oui-h-full"
|
|
8553
|
-
),
|
|
8551
|
+
className: "oui-min-h-0 oui-min-w-0 oui-max-w-full oui-flex-1 oui-overflow-hidden oui-rounded-b-2xl",
|
|
8554
8552
|
children: marketsWidget
|
|
8555
8553
|
}
|
|
8556
8554
|
)
|
|
@@ -8594,10 +8592,10 @@ var DesktopLayout4 = (props) => {
|
|
|
8594
8592
|
{
|
|
8595
8593
|
classNames: {
|
|
8596
8594
|
root: cn(
|
|
8597
|
-
tradingViewFullScreen ? "!oui-absolute oui-
|
|
8595
|
+
tradingViewFullScreen ? "!oui-absolute oui-inset-0 oui-z-40 oui-bg-base-10" : "oui-z-1"
|
|
8598
8596
|
),
|
|
8599
8597
|
content: cn(
|
|
8600
|
-
tradingViewFullScreen ? "oui-
|
|
8598
|
+
tradingViewFullScreen ? "oui-inset-3 oui-overflow-hidden oui-rounded-[16px] oui-bg-base-9" : ""
|
|
8601
8599
|
)
|
|
8602
8600
|
},
|
|
8603
8601
|
symbol: props.symbol,
|
|
@@ -8729,7 +8727,8 @@ var DesktopLayout4 = (props) => {
|
|
|
8729
8727
|
Flex,
|
|
8730
8728
|
{
|
|
8731
8729
|
gap: 2,
|
|
8732
|
-
|
|
8730
|
+
itemAlign: "stretch",
|
|
8731
|
+
className: "oui-min-h-0 oui-flex-1 oui-overflow-hidden",
|
|
8733
8732
|
style: { minWidth: marketsWidth + tradingViewMinWidth + space },
|
|
8734
8733
|
children: [
|
|
8735
8734
|
marketLayout === "left" && marketsView,
|
|
@@ -8759,10 +8758,20 @@ var DesktopLayout4 = (props) => {
|
|
|
8759
8758
|
);
|
|
8760
8759
|
const renderTradingViewAndOrderbookView = () => {
|
|
8761
8760
|
if (max4XL && layout === "left") {
|
|
8762
|
-
return /* @__PURE__ */ jsxs(
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8761
|
+
return /* @__PURE__ */ jsxs(
|
|
8762
|
+
Flex,
|
|
8763
|
+
{
|
|
8764
|
+
gapX: 2,
|
|
8765
|
+
itemAlign: "stretch",
|
|
8766
|
+
className: "oui-min-h-0",
|
|
8767
|
+
style: { minHeight: orderbookMinHeight },
|
|
8768
|
+
height: "100%",
|
|
8769
|
+
children: [
|
|
8770
|
+
tradingViewAndOrderbookView,
|
|
8771
|
+
marketLayout === "left" && marketsView
|
|
8772
|
+
]
|
|
8773
|
+
}
|
|
8774
|
+
);
|
|
8766
8775
|
}
|
|
8767
8776
|
return tradingViewAndOrderbookView;
|
|
8768
8777
|
};
|
|
@@ -8891,6 +8900,7 @@ var DesktopLayout4 = (props) => {
|
|
|
8891
8900
|
pt: 3,
|
|
8892
8901
|
r: "2xl",
|
|
8893
8902
|
width: marketsWidth,
|
|
8903
|
+
className: "oui-overflow-hidden",
|
|
8894
8904
|
style: {
|
|
8895
8905
|
minHeight: tradindviewMinHeight + orderbookMinHeight + space,
|
|
8896
8906
|
maxHeight: tradindviewMaxHeight + orderbookMaxHeight + space
|
|
@@ -9068,8 +9078,9 @@ var DesktopLayout4 = (props) => {
|
|
|
9068
9078
|
/* @__PURE__ */ jsxs(
|
|
9069
9079
|
Flex,
|
|
9070
9080
|
{
|
|
9081
|
+
itemAlign: "stretch",
|
|
9071
9082
|
className: cn(
|
|
9072
|
-
"oui-flex-1 oui-overflow-hidden",
|
|
9083
|
+
"oui-min-h-0 oui-flex-1 oui-overflow-hidden",
|
|
9073
9084
|
layout === "left" && "oui-flex-row-reverse"
|
|
9074
9085
|
),
|
|
9075
9086
|
gap: 2,
|