@orderly.network/ui-positions 2.8.14 → 2.9.0-alpha.1
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 +53 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -2926,7 +2926,7 @@ var useColumn = (config) => {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
) })
|
|
2928
2928
|
] }),
|
|
2929
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { children: t("positions.column.liqPrice") })
|
|
2929
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-underline oui-decoration-dotted", children: t("positions.column.liqPrice") })
|
|
2930
2930
|
}
|
|
2931
2931
|
),
|
|
2932
2932
|
width: 100,
|
|
@@ -2956,7 +2956,7 @@ var useColumn = (config) => {
|
|
|
2956
2956
|
side: "top",
|
|
2957
2957
|
align: "center",
|
|
2958
2958
|
className: "oui-max-w-[280px] oui-text-2xs",
|
|
2959
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { children: t("common.unrealizedPnl") })
|
|
2959
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-underline oui-decoration-dotted", children: t("common.unrealizedPnl") })
|
|
2960
2960
|
}
|
|
2961
2961
|
),
|
|
2962
2962
|
dataIndex: "unrealized_pnl",
|
|
@@ -3057,12 +3057,12 @@ var useColumn = (config) => {
|
|
|
3057
3057
|
]
|
|
3058
3058
|
}
|
|
3059
3059
|
),
|
|
3060
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { children: t("positions.column.margin") })
|
|
3060
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-underline oui-decoration-dotted", children: t("positions.column.margin") })
|
|
3061
3061
|
}
|
|
3062
3062
|
),
|
|
3063
3063
|
dataIndex: "mm",
|
|
3064
3064
|
onSort: true,
|
|
3065
|
-
width:
|
|
3065
|
+
width: 140,
|
|
3066
3066
|
rule: "price",
|
|
3067
3067
|
render: (value) => /* @__PURE__ */ jsxRuntime.jsx(ui.Text.numeral, { children: value })
|
|
3068
3068
|
},
|
|
@@ -3144,12 +3144,20 @@ var SymbolToken = (props) => {
|
|
|
3144
3144
|
var UnrealPnL = (props) => {
|
|
3145
3145
|
const { item } = props;
|
|
3146
3146
|
const { t } = i18n.useTranslation();
|
|
3147
|
+
const unrealPnlLabel = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-right", children: [
|
|
3148
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { intensity: 36, className: "oui-underline oui-decoration-dotted", children: t("common.unrealizedPnl") }),
|
|
3149
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { intensity: 20, className: "oui-ml-0.5", children: "(USDC)" })
|
|
3150
|
+
] });
|
|
3147
3151
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gap: 3, children: [
|
|
3148
3152
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "column", className: "oui-text-2xs", itemAlign: "end", children: [
|
|
3149
|
-
/* @__PURE__ */ jsxRuntime.
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3154
|
+
ui.Tips,
|
|
3155
|
+
{
|
|
3156
|
+
trigger: unrealPnlLabel,
|
|
3157
|
+
content: /* @__PURE__ */ jsxRuntime.jsx(UnrealizedPnLPopoverCard, {}),
|
|
3158
|
+
title: t("common.tips")
|
|
3159
|
+
}
|
|
3160
|
+
),
|
|
3153
3161
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3154
3162
|
ui.Text.pnl,
|
|
3155
3163
|
{
|
|
@@ -3204,13 +3212,23 @@ var Qty = (props) => {
|
|
|
3204
3212
|
var Margin = (props) => {
|
|
3205
3213
|
const { item } = props;
|
|
3206
3214
|
const { t } = i18n.useTranslation();
|
|
3215
|
+
const marginTipsContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-2xs oui-text-base-contrast-80", children: [
|
|
3216
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: t("positions.column.margin.tooltip") }),
|
|
3217
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-my-2 oui-h-px oui-w-full oui-bg-base-8" }),
|
|
3218
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: t("positions.column.margin.formula") })
|
|
3219
|
+
] });
|
|
3220
|
+
const marginLabel = /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-underline oui-decoration-dotted", children: t("positions.column.margin") });
|
|
3207
3221
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3208
3222
|
ui.Statistic,
|
|
3209
3223
|
{
|
|
3210
|
-
label: /* @__PURE__ */ jsxRuntime.
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3224
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3225
|
+
ui.Tips,
|
|
3226
|
+
{
|
|
3227
|
+
trigger: marginLabel,
|
|
3228
|
+
content: marginTipsContent,
|
|
3229
|
+
title: t("common.tips")
|
|
3230
|
+
}
|
|
3231
|
+
),
|
|
3214
3232
|
classNames: {
|
|
3215
3233
|
root: "oui-text-xs",
|
|
3216
3234
|
label: "oui-text-2xs"
|
|
@@ -3281,10 +3299,31 @@ var LiqPrice = (props) => {
|
|
|
3281
3299
|
}
|
|
3282
3300
|
return estLiqPrice;
|
|
3283
3301
|
}, [item.est_liq_price, item.mark_price]);
|
|
3302
|
+
const liqTipsContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "oui-text-2xs oui-text-base-contrast-80", children: [
|
|
3303
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-text-pretty", children: t("common.liquidationPrice.tooltip") }),
|
|
3304
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3305
|
+
"a",
|
|
3306
|
+
{
|
|
3307
|
+
href: "https://orderly.network/docs/introduction/trade-on-orderly/perpetual-futures/liquidations",
|
|
3308
|
+
target: "_blank",
|
|
3309
|
+
rel: "noopener noreferrer",
|
|
3310
|
+
className: "oui-text-primary oui-underline",
|
|
3311
|
+
children: t("common.liquidationPrice.tooltip.learnMore")
|
|
3312
|
+
}
|
|
3313
|
+
) })
|
|
3314
|
+
] });
|
|
3315
|
+
const liqLabel = /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "oui-underline oui-decoration-dotted", children: t("positions.column.liqPrice") });
|
|
3284
3316
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3285
3317
|
ui.Statistic,
|
|
3286
3318
|
{
|
|
3287
|
-
label:
|
|
3319
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3320
|
+
ui.Tips,
|
|
3321
|
+
{
|
|
3322
|
+
trigger: liqLabel,
|
|
3323
|
+
content: liqTipsContent,
|
|
3324
|
+
title: t("common.tips")
|
|
3325
|
+
}
|
|
3326
|
+
),
|
|
3288
3327
|
align: "end",
|
|
3289
3328
|
classNames: {
|
|
3290
3329
|
root: "oui-text-xs",
|
|
@@ -3365,7 +3404,7 @@ var TPSLPrice = (props) => {
|
|
|
3365
3404
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3366
3405
|
ui.Flex,
|
|
3367
3406
|
{
|
|
3368
|
-
className: "oui-text-2xs oui-text-base-contrast-36
|
|
3407
|
+
className: "oui-text-2xs oui-grid-cols-end oui-text-base-contrast-36",
|
|
3369
3408
|
direction: "column",
|
|
3370
3409
|
itemAlign: "end",
|
|
3371
3410
|
children: [
|