@orderly.network/trading 2.12.4 → 3.0.0-alpha.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 +106 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +106 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
package/dist/index.mjs
CHANGED
|
@@ -4244,6 +4244,53 @@ var init_orderBookAndTrades = __esm({
|
|
|
4244
4244
|
init_orderBookAndTrades_script();
|
|
4245
4245
|
}
|
|
4246
4246
|
});
|
|
4247
|
+
var KlineDragIcon, CollapseIcon, ExpandIcon;
|
|
4248
|
+
var init_icons = __esm({
|
|
4249
|
+
"src/components/base/icons.tsx"() {
|
|
4250
|
+
KlineDragIcon = (props) => /* @__PURE__ */ jsx(
|
|
4251
|
+
"svg",
|
|
4252
|
+
{
|
|
4253
|
+
width: "12",
|
|
4254
|
+
height: "12",
|
|
4255
|
+
viewBox: "0 0 12 12",
|
|
4256
|
+
fill: "currentColor",
|
|
4257
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4258
|
+
...props,
|
|
4259
|
+
children: /* @__PURE__ */ jsx("g", { id: "Arrows-expand", children: /* @__PURE__ */ jsx(
|
|
4260
|
+
"path",
|
|
4261
|
+
{
|
|
4262
|
+
id: "Vector",
|
|
4263
|
+
d: "M5.9989 1.00708C5.8709 1.00708 5.7369 1.05008 5.6394 1.14758L3.7959 3.00708L4.4989 3.71008L5.4989 2.72607V4.50708C5.4989 4.78308 5.7229 5.00708 5.9989 5.00708C6.2749 5.00708 6.4989 4.78308 6.4989 4.50708V2.72607L7.4989 3.71008L8.2019 3.00708L6.3584 1.14758C6.2604 1.05008 6.1269 1.00708 5.9989 1.00708ZM5.9989 7.00707C5.7229 7.00707 5.4989 7.23107 5.4989 7.50707V9.28808L4.4989 8.30407L3.7959 9.00707L5.6394 10.8666C5.8349 11.0616 6.1629 11.0616 6.3584 10.8666L8.2019 9.00707L7.4989 8.30407L6.4989 9.28808V7.50707C6.4989 7.23107 6.2749 7.00707 5.9989 7.00707Z"
|
|
4264
|
+
}
|
|
4265
|
+
) })
|
|
4266
|
+
}
|
|
4267
|
+
);
|
|
4268
|
+
CollapseIcon = (props) => /* @__PURE__ */ jsx(
|
|
4269
|
+
"svg",
|
|
4270
|
+
{
|
|
4271
|
+
width: "16",
|
|
4272
|
+
height: "16",
|
|
4273
|
+
viewBox: "0 0 16 16",
|
|
4274
|
+
fill: "currentColor",
|
|
4275
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4276
|
+
...props,
|
|
4277
|
+
children: /* @__PURE__ */ jsx("path", { d: "M14.668.492a.85.85 0 0 0-.599.234l-3.567 3.568V2.159H8.835v4.167c0 .46.373.833.833.833h4.167V5.492H11.7l3.569-3.567a.86.86 0 0 0 0-1.199.85.85 0 0 0-.6-.234m-12.5 8.334v1.666h2.135L.736 14.06a.86.86 0 0 0 0 1.198.86.86 0 0 0 1.198 0l3.568-3.567v2.134h1.666V9.66a.834.834 0 0 0-.833-.833z" })
|
|
4278
|
+
}
|
|
4279
|
+
);
|
|
4280
|
+
ExpandIcon = (props) => /* @__PURE__ */ jsx(
|
|
4281
|
+
"svg",
|
|
4282
|
+
{
|
|
4283
|
+
width: "16",
|
|
4284
|
+
height: "16",
|
|
4285
|
+
viewBox: "0 0 16 16",
|
|
4286
|
+
fill: "currentColor",
|
|
4287
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4288
|
+
...props,
|
|
4289
|
+
children: /* @__PURE__ */ jsx("path", { d: "M6.326 8.826a.84.84 0 0 0-.6.234L2.16 12.627v-2.135H.492v4.167c0 .46.373.833.834.833h4.166v-1.667H3.357l3.567-3.567a.857.857 0 0 0 0-1.198.84.84 0 0 0-.598-.234M10.502.492V2.16h2.135L9.07 5.726a.857.857 0 0 0 0 1.199.86.86 0 0 0 1.197 0l3.568-3.568v2.135h1.667V1.326a.834.834 0 0 0-.834-.834z" })
|
|
4290
|
+
}
|
|
4291
|
+
);
|
|
4292
|
+
}
|
|
4293
|
+
});
|
|
4247
4294
|
|
|
4248
4295
|
// src/components/desktop/layout/switchLayout.tsx
|
|
4249
4296
|
var switchLayout_exports = {};
|
|
@@ -5353,29 +5400,6 @@ var init_tradingview_script = __esm({
|
|
|
5353
5400
|
Key = "TRADINGVIEW_MOBILE_HEIGHT";
|
|
5354
5401
|
}
|
|
5355
5402
|
});
|
|
5356
|
-
var KlineDragIcon;
|
|
5357
|
-
var init_icons = __esm({
|
|
5358
|
-
"src/components/base/icons.tsx"() {
|
|
5359
|
-
KlineDragIcon = (props) => /* @__PURE__ */ jsx(
|
|
5360
|
-
"svg",
|
|
5361
|
-
{
|
|
5362
|
-
width: "12",
|
|
5363
|
-
height: "12",
|
|
5364
|
-
viewBox: "0 0 12 12",
|
|
5365
|
-
fill: "currentColor",
|
|
5366
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5367
|
-
...props,
|
|
5368
|
-
children: /* @__PURE__ */ jsx("g", { id: "Arrows-expand", children: /* @__PURE__ */ jsx(
|
|
5369
|
-
"path",
|
|
5370
|
-
{
|
|
5371
|
-
id: "Vector",
|
|
5372
|
-
d: "M5.9989 1.00708C5.8709 1.00708 5.7369 1.05008 5.6394 1.14758L3.7959 3.00708L4.4989 3.71008L5.4989 2.72607V4.50708C5.4989 4.78308 5.7229 5.00708 5.9989 5.00708C6.2749 5.00708 6.4989 4.78308 6.4989 4.50708V2.72607L7.4989 3.71008L8.2019 3.00708L6.3584 1.14758C6.2604 1.05008 6.1269 1.00708 5.9989 1.00708ZM5.9989 7.00707C5.7229 7.00707 5.4989 7.23107 5.4989 7.50707V9.28808L4.4989 8.30407L3.7959 9.00707L5.6394 10.8666C5.8349 11.0616 6.1629 11.0616 6.3584 10.8666L8.2019 9.00707L7.4989 8.30407L6.4989 9.28808V7.50707C6.4989 7.23107 6.2749 7.00707 5.9989 7.00707Z"
|
|
5373
|
-
}
|
|
5374
|
-
) })
|
|
5375
|
-
}
|
|
5376
|
-
);
|
|
5377
|
-
}
|
|
5378
|
-
});
|
|
5379
5403
|
var TradingviewUI;
|
|
5380
5404
|
var init_tradingview_ui = __esm({
|
|
5381
5405
|
"src/components/mobile/tradingview/tradingview.ui.tsx"() {
|
|
@@ -7694,6 +7718,9 @@ init_fundingRate();
|
|
|
7694
7718
|
init_fundingRateModal_script();
|
|
7695
7719
|
init_fundingRateModal_ui();
|
|
7696
7720
|
init_fundingRateModal_widget();
|
|
7721
|
+
|
|
7722
|
+
// src/pages/trading/trading.ui.desktop.tsx
|
|
7723
|
+
init_icons();
|
|
7697
7724
|
var SortablePanel = (props) => {
|
|
7698
7725
|
const { showIndicator, dragOverlay } = props;
|
|
7699
7726
|
const nodeRef = useRef(null);
|
|
@@ -8314,6 +8341,7 @@ var DesktopLayout4 = (props) => {
|
|
|
8314
8341
|
} = props;
|
|
8315
8342
|
const { showCountdown, closeCountdown } = useShowRwaCountdown(props.symbol);
|
|
8316
8343
|
const { brokerName } = useBadgeBySymbol(props.symbol);
|
|
8344
|
+
const { t } = useTranslation();
|
|
8317
8345
|
const symbolInfoBarHeight2 = useMemo(() => {
|
|
8318
8346
|
let height = 56;
|
|
8319
8347
|
if (brokerName) {
|
|
@@ -8443,6 +8471,36 @@ var DesktopLayout4 = (props) => {
|
|
|
8443
8471
|
onSymbolChange: props.onSymbolChange
|
|
8444
8472
|
}
|
|
8445
8473
|
);
|
|
8474
|
+
const toggleButtoncls = cn(
|
|
8475
|
+
"oui-text-base-contrast-36",
|
|
8476
|
+
resizeable ? "oui-cursor-pointer hover:oui-text-base-contrast-80" : "oui-cursor-not-allowed"
|
|
8477
|
+
);
|
|
8478
|
+
const marketsHeader = /* @__PURE__ */ jsxs(
|
|
8479
|
+
Flex,
|
|
8480
|
+
{
|
|
8481
|
+
className: panelSize === "small" ? "oui-absolute oui-end-[-20px] oui-z-50" : "oui-relative",
|
|
8482
|
+
justify: panelSize === "large" ? "between" : "center",
|
|
8483
|
+
width: "100%",
|
|
8484
|
+
px: 3,
|
|
8485
|
+
children: [
|
|
8486
|
+
panelSize === "large" && /* @__PURE__ */ jsx(Text, { size: "base", intensity: 80, children: t("common.markets") }),
|
|
8487
|
+
panelSize === "large" && /* @__PURE__ */ jsx(
|
|
8488
|
+
"div",
|
|
8489
|
+
{
|
|
8490
|
+
onClick: resizeable ? () => onPanelSizeChange?.("middle") : void 0,
|
|
8491
|
+
children: /* @__PURE__ */ jsx(CollapseIcon, { className: toggleButtoncls })
|
|
8492
|
+
}
|
|
8493
|
+
),
|
|
8494
|
+
(panelSize === "middle" || panelSize === "small") && /* @__PURE__ */ jsx(
|
|
8495
|
+
"div",
|
|
8496
|
+
{
|
|
8497
|
+
onClick: resizeable ? () => onPanelSizeChange?.("large") : void 0,
|
|
8498
|
+
children: /* @__PURE__ */ jsx(ExpandIcon, { className: toggleButtoncls })
|
|
8499
|
+
}
|
|
8500
|
+
)
|
|
8501
|
+
]
|
|
8502
|
+
}
|
|
8503
|
+
);
|
|
8446
8504
|
const marketsView = /* @__PURE__ */ jsx(
|
|
8447
8505
|
Box,
|
|
8448
8506
|
{
|
|
@@ -8454,7 +8512,31 @@ var DesktopLayout4 = (props) => {
|
|
|
8454
8512
|
style: { minWidth: marketsWidth },
|
|
8455
8513
|
className: "oui-trading-markets-container oui-transition-all oui-duration-150",
|
|
8456
8514
|
onTransitionEnd: () => setAnimating(false),
|
|
8457
|
-
children:
|
|
8515
|
+
children: /* @__PURE__ */ jsxs(
|
|
8516
|
+
Flex,
|
|
8517
|
+
{
|
|
8518
|
+
id: "oui-side-markets",
|
|
8519
|
+
className: "oui-relative oui-font-semibold",
|
|
8520
|
+
direction: "column",
|
|
8521
|
+
gapY: 5,
|
|
8522
|
+
height: "100%",
|
|
8523
|
+
width: "100%",
|
|
8524
|
+
children: [
|
|
8525
|
+
marketsHeader,
|
|
8526
|
+
!animating && marketLayout === "left" && /* @__PURE__ */ jsx(
|
|
8527
|
+
Box,
|
|
8528
|
+
{
|
|
8529
|
+
width: "100%",
|
|
8530
|
+
className: cn(
|
|
8531
|
+
panelSize === "large" && "oui-h-[calc(100%_-_56px)]",
|
|
8532
|
+
panelSize === "middle" && "oui-h-full"
|
|
8533
|
+
),
|
|
8534
|
+
children: marketsWidget
|
|
8535
|
+
}
|
|
8536
|
+
)
|
|
8537
|
+
]
|
|
8538
|
+
}
|
|
8539
|
+
)
|
|
8458
8540
|
}
|
|
8459
8541
|
);
|
|
8460
8542
|
const symbolInfoBarView = /* @__PURE__ */ jsx(
|