@kodiak-finance/orderly-ui-orders 2.8.21-alpha.0 → 2.8.21-beta.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 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { usePagination, modal, Text, Button, ThrottledButton, CloseIcon, cn, Fle
|
|
|
8
8
|
import { useDataTap, useOrderEntryFormErrorMsg } from '@kodiak-finance/orderly-react-app';
|
|
9
9
|
import { PositionTPSLPopover, CloseToLiqPriceIcon, PositionTPSLSheet } from '@kodiak-finance/orderly-ui-tpsl';
|
|
10
10
|
import { subDays, differenceInDays, format } from 'date-fns';
|
|
11
|
-
import { SharePnLDialogId } from '@kodiak-finance/orderly-ui-share';
|
|
11
|
+
import { SharePnLDialogId, SharePnLBottomSheetId } from '@kodiak-finance/orderly-ui-share';
|
|
12
12
|
import { AuthGuardDataTable } from '@kodiak-finance/orderly-ui-connector';
|
|
13
13
|
|
|
14
14
|
var __defProp = Object.defineProperty;
|
|
@@ -2645,9 +2645,10 @@ function realizedPnL(option) {
|
|
|
2645
2645
|
const value = new Decimal(_value ?? 0).toNumber();
|
|
2646
2646
|
return /* @__PURE__ */ jsxs(Flex, { gap: 1, children: [
|
|
2647
2647
|
/* @__PURE__ */ jsx(
|
|
2648
|
-
Text.
|
|
2648
|
+
Text.numeral,
|
|
2649
2649
|
{
|
|
2650
2650
|
dp,
|
|
2651
|
+
rm: Decimal.ROUND_DOWN,
|
|
2651
2652
|
padding: false,
|
|
2652
2653
|
intensity: (value ?? 0) == 0 ? 80 : void 0,
|
|
2653
2654
|
showIdentifier: (value ?? 0) > 0,
|
|
@@ -3122,6 +3123,7 @@ var SymbolToken, OrderTypeView, OrderTime, OrderState, Qty, Filled, EstTotal, Tr
|
|
|
3122
3123
|
var init_items = __esm({
|
|
3123
3124
|
"src/components/orderList/mobile/items.tsx"() {
|
|
3124
3125
|
init_util();
|
|
3126
|
+
init_shareButton();
|
|
3125
3127
|
init_tpslOrderRowContext();
|
|
3126
3128
|
SymbolToken = (props) => {
|
|
3127
3129
|
const { item } = props;
|
|
@@ -3655,17 +3657,29 @@ var init_items = __esm({
|
|
|
3655
3657
|
label: "oui-text-2xs"
|
|
3656
3658
|
},
|
|
3657
3659
|
align: "end",
|
|
3658
|
-
children: /* @__PURE__ */
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3660
|
+
children: /* @__PURE__ */ jsxs(Flex, { gap: 1, children: [
|
|
3661
|
+
/* @__PURE__ */ jsx(
|
|
3662
|
+
Text.numeral,
|
|
3663
|
+
{
|
|
3664
|
+
dp: props.quote_dp,
|
|
3665
|
+
rm: Decimal.ROUND_DOWN,
|
|
3666
|
+
padding: false,
|
|
3667
|
+
intensity: (value ?? 0) == 0 ? 80 : void 0,
|
|
3668
|
+
showIdentifier: (value ?? 0) > 0,
|
|
3669
|
+
coloring: (value ?? 0) != 0,
|
|
3670
|
+
children: value ?? "--"
|
|
3671
|
+
}
|
|
3672
|
+
),
|
|
3673
|
+
/* @__PURE__ */ jsx(
|
|
3674
|
+
ShareButtonWidget,
|
|
3675
|
+
{
|
|
3676
|
+
order: props.item,
|
|
3677
|
+
sharePnLConfig: props.sharePnLConfig,
|
|
3678
|
+
modalId: SharePnLBottomSheetId,
|
|
3679
|
+
iconSize: 12
|
|
3680
|
+
}
|
|
3681
|
+
)
|
|
3682
|
+
] })
|
|
3669
3683
|
}
|
|
3670
3684
|
);
|
|
3671
3685
|
};
|