@orderly.network/ui-order-entry 2.8.3 → 2.8.4
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 +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { useLocalStorage, utils, usePositionStream, useEventEmitter, useDebounce
|
|
|
3
3
|
import { useTranslation, i18n } from '@orderly.network/i18n';
|
|
4
4
|
import { useOrderEntryFormErrorMsg, useCanTrade } from '@orderly.network/react-app';
|
|
5
5
|
import { EMPTY_LIST, DistributionType, TrailingCallbackType, OrderSide, OrderType, PositionType, BBOOrderType, OrderLevel, TrackerEventName } from '@orderly.network/types';
|
|
6
|
-
import { ExclamationFillIcon, modal, Text, Tooltip, TooltipTrigger, Flex, Input, cn, inputFormatter, Box, registerSimpleDialog, SimpleDialog, Select, Grid, Checkbox, Slider, textVariants, SettingFillIcon, Badge, Divider, Button, TokenIcon, DataTable, SimpleDropdownMenu, CaretDownIcon, Switch, useScreen, toast, ThrottledButton, SimpleSheet, InfoCircleIcon, PopoverRoot, PopoverTrigger, PopoverContent, EditIcon as EditIcon$1, useModal } from '@orderly.network/ui';
|
|
6
|
+
import { ExclamationFillIcon, modal, Text, Tooltip, TooltipTrigger, Flex, Input, cn, inputFormatter, Box, registerSimpleDialog, SimpleDialog, Select, Grid, Checkbox, Slider, textVariants, SettingFillIcon, Badge, Divider, Button, TokenIcon, DataTable, SimpleDropdownMenu, CaretDownIcon, Switch, useScreen, toast, ThrottledButton, SimpleSheet, InfoCircleIcon, AddCircleIcon, PopoverRoot, PopoverTrigger, PopoverContent, EditIcon as EditIcon$1, useModal } from '@orderly.network/ui';
|
|
7
7
|
import { TPSLPositionTypeWidget, TPSLAdvancedWidget } from '@orderly.network/ui-tpsl';
|
|
8
8
|
import { Decimal, zero, todpIfNeed, getBBOType, removeTrailingZeros } from '@orderly.network/utils';
|
|
9
9
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1076,6 +1076,21 @@ var Available = (props) => {
|
|
|
1076
1076
|
padding: false,
|
|
1077
1077
|
children: canTrade ? freeCollateral : 0
|
|
1078
1078
|
}
|
|
1079
|
+
),
|
|
1080
|
+
/* @__PURE__ */ jsx(
|
|
1081
|
+
Button,
|
|
1082
|
+
{
|
|
1083
|
+
variant: "text",
|
|
1084
|
+
size: "xs",
|
|
1085
|
+
color: "secondary",
|
|
1086
|
+
className: "oui-p-0 hover:oui-text-base-contrast-80",
|
|
1087
|
+
onClick: () => {
|
|
1088
|
+
modal.show("DepositAndWithdrawWithDialogId", {
|
|
1089
|
+
activeTab: "deposit"
|
|
1090
|
+
});
|
|
1091
|
+
},
|
|
1092
|
+
children: /* @__PURE__ */ jsx(AddCircleIcon, { opacity: 1 })
|
|
1093
|
+
}
|
|
1079
1094
|
)
|
|
1080
1095
|
] })
|
|
1081
1096
|
] });
|