@kodiak-finance/orderly-ui-orders 2.8.21-rc.1 → 2.8.21

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
@@ -2651,9 +2651,10 @@ function realizedPnL(option) {
2651
2651
  const value = new orderlyUtils.Decimal(_value ?? 0).toNumber();
2652
2652
  return /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gap: 1, children: [
2653
2653
  /* @__PURE__ */ jsxRuntime.jsx(
2654
- orderlyUi.Text.pnl,
2654
+ orderlyUi.Text.numeral,
2655
2655
  {
2656
2656
  dp,
2657
+ rm: orderlyUtils.Decimal.ROUND_DOWN,
2657
2658
  padding: false,
2658
2659
  intensity: (value ?? 0) == 0 ? 80 : void 0,
2659
2660
  showIdentifier: (value ?? 0) > 0,
@@ -3128,6 +3129,7 @@ var SymbolToken, OrderTypeView, OrderTime, OrderState, Qty, Filled, EstTotal, Tr
3128
3129
  var init_items = __esm({
3129
3130
  "src/components/orderList/mobile/items.tsx"() {
3130
3131
  init_util();
3132
+ init_shareButton();
3131
3133
  init_tpslOrderRowContext();
3132
3134
  SymbolToken = (props) => {
3133
3135
  const { item } = props;
@@ -3661,17 +3663,29 @@ var init_items = __esm({
3661
3663
  label: "oui-text-2xs"
3662
3664
  },
3663
3665
  align: "end",
3664
- children: /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Flex, { gap: 1, children: /* @__PURE__ */ jsxRuntime.jsx(
3665
- orderlyUi.Text.pnl,
3666
- {
3667
- dp: props.quote_dp,
3668
- padding: false,
3669
- intensity: (value ?? 0) == 0 ? 80 : void 0,
3670
- showIdentifier: (value ?? 0) > 0,
3671
- coloring: (value ?? 0) != 0,
3672
- children: value ?? "--"
3673
- }
3674
- ) })
3666
+ children: /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { gap: 1, children: [
3667
+ /* @__PURE__ */ jsxRuntime.jsx(
3668
+ orderlyUi.Text.numeral,
3669
+ {
3670
+ dp: props.quote_dp,
3671
+ rm: orderlyUtils.Decimal.ROUND_DOWN,
3672
+ padding: false,
3673
+ intensity: (value ?? 0) == 0 ? 80 : void 0,
3674
+ showIdentifier: (value ?? 0) > 0,
3675
+ coloring: (value ?? 0) != 0,
3676
+ children: value ?? "--"
3677
+ }
3678
+ ),
3679
+ /* @__PURE__ */ jsxRuntime.jsx(
3680
+ ShareButtonWidget,
3681
+ {
3682
+ order: props.item,
3683
+ sharePnLConfig: props.sharePnLConfig,
3684
+ modalId: orderlyUiShare.SharePnLBottomSheetId,
3685
+ iconSize: 12
3686
+ }
3687
+ )
3688
+ ] })
3675
3689
  }
3676
3690
  );
3677
3691
  };