@orderly.network/ui-tpsl 3.0.4-alpha.4 → 3.1.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 CHANGED
@@ -205,7 +205,7 @@ var PnlInfo = (props) => {
205
205
  /* @__PURE__ */ jsxRuntime.jsx(
206
206
  ui.Text.numeral,
207
207
  {
208
- suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-text-base-contrast-36 oui-ml-1", children: "USDC" }),
208
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-text-base-contrast-36 oui-ms-1", children: "USDC" }),
209
209
  rule: "price",
210
210
  coloring: true,
211
211
  visible: true,
@@ -220,7 +220,7 @@ var PnlInfo = (props) => {
220
220
  sl_pnl ? /* @__PURE__ */ jsxRuntime.jsx(
221
221
  ui.Text.numeral,
222
222
  {
223
- suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-text-base-contrast-36 oui-ml-1", children: "USDC" }),
223
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-text-base-contrast-36 oui-ms-1", children: "USDC" }),
224
224
  coloring: true,
225
225
  visible: true,
226
226
  size: "2xs",
@@ -471,7 +471,7 @@ var PNLInput = (props) => {
471
471
  {
472
472
  size: "2xs",
473
473
  color: "inherit",
474
- className: ui.cn("oui-ml-[2px]", color),
474
+ className: ui.cn("oui-ms-[2px]", color),
475
475
  children: "%"
476
476
  }
477
477
  ),
@@ -712,7 +712,7 @@ var RenderROI = (props) => {
712
712
  {
713
713
  className: "oui-px-1 oui-text-base-contrast",
714
714
  dp,
715
- suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-pl-0.5", children: "USDC" }),
715
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ps-0.5", children: "USDC" }),
716
716
  children: price
717
717
  }
718
718
  ) }, "price"),
@@ -723,7 +723,7 @@ var RenderROI = (props) => {
723
723
  coloring: true,
724
724
  className: "oui-whitespace-nowrap oui-px-1",
725
725
  dp: 2,
726
- suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-pl-0.5", children: "USDC" }),
726
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ps-0.5", children: "USDC" }),
727
727
  children: pnl
728
728
  }
729
729
  ) }, "pnl"),
@@ -1212,7 +1212,7 @@ var PositionTPSLConfirm = (props) => {
1212
1212
  "oui-text-base-contrast",
1213
1213
  colorType === "TP" ? "oui-text-trade-profit" : "oui-text-trade-loss"
1214
1214
  ),
1215
- unitClassName: "oui-text-base-contrast-36 oui-ml-1",
1215
+ unitClassName: "oui-text-base-contrast-36 oui-ms-1",
1216
1216
  dp: quoteDP,
1217
1217
  padding: false,
1218
1218
  children: price
@@ -1355,7 +1355,7 @@ var PositionTPSLConfirm = (props) => {
1355
1355
  className: ui.textVariants({
1356
1356
  size: "xs",
1357
1357
  intensity: 54,
1358
- className: "oui-ml-1"
1358
+ className: "oui-ms-1"
1359
1359
  }),
1360
1360
  children: t("orderEntry.disableOrderConfirm")
1361
1361
  }
@@ -2405,14 +2405,14 @@ var useColumn = (props) => {
2405
2405
  title: t("common.type"),
2406
2406
  dataIndex: "type",
2407
2407
  width: 35,
2408
- className: "oui-pl-1 oui-py-2",
2408
+ className: "oui-ps-1 oui-py-2",
2409
2409
  render: (_, record) => /* @__PURE__ */ jsxRuntime.jsx(TypeRender, { order: record })
2410
2410
  },
2411
2411
  {
2412
2412
  title: t("common.trigger"),
2413
2413
  dataIndex: "trigger",
2414
2414
  width: 70,
2415
- className: "oui-pl-1 oui-py-2",
2415
+ className: "oui-ps-1 oui-py-2",
2416
2416
  render: (_, record) => {
2417
2417
  return /* @__PURE__ */ jsxRuntime.jsx(TriggerPrice, { order: record });
2418
2418
  }
@@ -2435,7 +2435,7 @@ var useColumn = (props) => {
2435
2435
  ),
2436
2436
  dataIndex: "estpnl",
2437
2437
  width: 70,
2438
- className: "!oui-pr-0 oui-py-2",
2438
+ className: "!oui-pe-0 oui-py-2",
2439
2439
  render: (_, record) => /* @__PURE__ */ jsxRuntime.jsx(EstPnlRender, { order: record })
2440
2440
  }
2441
2441
  ];
@@ -2444,21 +2444,21 @@ var useColumn = (props) => {
2444
2444
  title: t("tpsl.tpslDetail.qty"),
2445
2445
  dataIndex: "quantity",
2446
2446
  width: 70,
2447
- className: ui.cn(" oui-py-2 !oui-pl-5"),
2447
+ className: ui.cn(" oui-py-2 !oui-ps-5"),
2448
2448
  render: (_, record) => /* @__PURE__ */ jsxRuntime.jsx(QtyRender, { order: record })
2449
2449
  },
2450
2450
  {
2451
2451
  title: t("common.type"),
2452
2452
  dataIndex: "type",
2453
2453
  width: 35,
2454
- className: "oui-pl-1 oui-py-2",
2454
+ className: "oui-ps-1 oui-py-2",
2455
2455
  render: (_, record) => /* @__PURE__ */ jsxRuntime.jsx(TypeRender, { order: record })
2456
2456
  },
2457
2457
  {
2458
2458
  title: t("common.trigger"),
2459
2459
  dataIndex: "trigger",
2460
2460
  width: 70,
2461
- className: "oui-pl-1 oui-py-2",
2461
+ className: "oui-ps-1 oui-py-2",
2462
2462
  render: (_, record) => {
2463
2463
  return /* @__PURE__ */ jsxRuntime.jsx(TriggerPrice, { order: record });
2464
2464
  }
@@ -2467,7 +2467,7 @@ var useColumn = (props) => {
2467
2467
  title: t("common.price"),
2468
2468
  dataIndex: "price",
2469
2469
  width: 70,
2470
- className: "oui-pl-1 oui-py-2",
2470
+ className: "oui-ps-1 oui-py-2",
2471
2471
  render: (_, record) => /* @__PURE__ */ jsxRuntime.jsx(OrderPriceRender, { order: record })
2472
2472
  },
2473
2473
  {
@@ -2481,14 +2481,14 @@ var useColumn = (props) => {
2481
2481
  ),
2482
2482
  dataIndex: "estpnl",
2483
2483
  width: 70,
2484
- className: "oui-pl-1 oui-py-2",
2484
+ className: "oui-ps-1 oui-py-2",
2485
2485
  render: (_, record) => /* @__PURE__ */ jsxRuntime.jsx(EstPnlRender, { order: record })
2486
2486
  },
2487
2487
  {
2488
2488
  title: "",
2489
2489
  dataIndex: "delete",
2490
2490
  width: 50,
2491
- className: ui.cn("oui-py-2 !oui-pr-5"),
2491
+ className: ui.cn("oui-py-2 !oui-pe-5"),
2492
2492
  render: (_, record) => {
2493
2493
  return /* @__PURE__ */ jsxRuntime.jsx(CancelAllBtn, { order: record, onCancelOrder });
2494
2494
  }
@@ -3190,7 +3190,7 @@ var TPSLSimpleDialogUI = (props) => {
3190
3190
  sl_pnl ? /* @__PURE__ */ jsxRuntime.jsx(
3191
3191
  ui.Text.numeral,
3192
3192
  {
3193
- suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ml-1 oui-text-base-contrast-36", children: "USDC" }),
3193
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ms-1 oui-text-base-contrast-36", children: "USDC" }),
3194
3194
  coloring: true,
3195
3195
  visible: true,
3196
3196
  size: "2xs",
@@ -3205,7 +3205,7 @@ var TPSLSimpleDialogUI = (props) => {
3205
3205
  /* @__PURE__ */ jsxRuntime.jsx(
3206
3206
  ui.Text.numeral,
3207
3207
  {
3208
- suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-text-base-contrast-36 oui-ml-1", children: "USDC" }),
3208
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-text-base-contrast-36 oui-ms-1", children: "USDC" }),
3209
3209
  rule: "price",
3210
3210
  coloring: true,
3211
3211
  visible: true,
@@ -3245,7 +3245,7 @@ var TPSLSimpleDialogUI = (props) => {
3245
3245
  ui.Text.numeral,
3246
3246
  {
3247
3247
  className: "oui-text-base-contrast",
3248
- suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ml-1 oui-text-xs oui-text-base-contrast-36", children: "USDC" }),
3248
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-ms-1 oui-text-xs oui-text-base-contrast-36", children: "USDC" }),
3249
3249
  rule: "price",
3250
3250
  size: "xs",
3251
3251
  dp: props.symbolInfo("quote_dp"),