@orderly.network/portfolio 3.0.1 → 3.0.2-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 +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React12, { createContext, useMemo, useId, useContext, useState, useCallback, useRef, createElement, useEffect } from 'react';
|
|
2
|
-
import { useLocalStorage, useAccount, useIndexPricesStream, useCollateral, usePrivateQuery, useStatisticsDaily, useUserStatistics, useBalanceTopic, useAssetsHistory, useFeeState,
|
|
2
|
+
import { useLocalStorage, useAccount, useIndexPricesStream, useCollateral, usePrivateQuery, useStatisticsDaily, useUserStatistics, useBalanceTopic, useAssetsHistory, useFeeState, useAccountInfo, useWalletConnector, usePositionStream, useLeverage, useMaxWithdrawal, useGetClaimed, DistributionId, TWType, useCurEpochEstimate, useAllBrokers, noCacheConfig, useEpochInfo, useConfig, useGetEnv, useMutation, useOrderlyContext, useDebouncedCallback, useAppStore, parseJSON, useChains, useTransferHistory, useChainInfo, useBadgeBySymbol, useSymbolsInfo, useFundingFeeHistory, useSubAccountQuery, useApiKeyManager, useDistributionHistory, useVaultsHistory } from '@orderly.network/hooks';
|
|
3
3
|
import { useAppContext, useDataTap, useCanTrade } from '@orderly.network/react-app';
|
|
4
4
|
import { AccountStatusEnum, ChainNamespace, EMPTY_LIST, AssetHistoryStatusEnum, AssetHistorySideEnum } from '@orderly.network/types';
|
|
5
5
|
import { registerSimpleSheet, registerSimpleDialog, Tabs, TabPanel, Flex, Text, modal, useModal, SimpleDialog, DataTable, SimpleSheet, TokenIcon, Divider, toast, useScreen, CardTitle, Select, Box, cn, Statistic, CopyIcon, Grid, formatAddress, DataFilter, Tooltip, InfoCircleIcon, Button, EmptyDataState, Card, Either, gradientTextVariants, EyeIcon, EyeCloseIcon, useOrderlyTheme, ArrowDownSquareFillIcon, ArrowLeftRightIcon, ArrowUpSquareFillIcon, ArrowRightShortIcon, CalendarMinusIcon, AffiliateIcon, ChevronRightIcon, TraderMobileIcon, SettingFillIcon, Switch, ChainIcon, capitalizeFirstLetter, usePagination, ListView, Badge, ArrowDownShortIcon, ScrollIndicator, PlusIcon, SymbolBadge as SymbolBadge$1, FeeTierIcon, ServerFillIcon, ArrowLeftRightSquareFill, VaultsIcon } from '@orderly.network/ui';
|
|
@@ -2386,8 +2386,7 @@ var init_assets_ui_desktop = __esm({
|
|
|
2386
2386
|
AuthGuardDataTable,
|
|
2387
2387
|
{
|
|
2388
2388
|
classNames: {
|
|
2389
|
-
root: "oui-rounded-xl oui-font-semibold"
|
|
2390
|
-
scroll: "oui-h-[252px]"
|
|
2389
|
+
root: "oui-rounded-xl oui-font-semibold"
|
|
2391
2390
|
},
|
|
2392
2391
|
loading: props.canTrade,
|
|
2393
2392
|
columns: [],
|
|
@@ -2395,7 +2394,7 @@ var init_assets_ui_desktop = __esm({
|
|
|
2395
2394
|
}
|
|
2396
2395
|
);
|
|
2397
2396
|
}
|
|
2398
|
-
return /* @__PURE__ */ jsxs(Flex, { width: "100%",
|
|
2397
|
+
return /* @__PURE__ */ jsxs(Flex, { width: "100%", direction: "column", className: root, children: [
|
|
2399
2398
|
/* @__PURE__ */ jsx(
|
|
2400
2399
|
DataFilterSection,
|
|
2401
2400
|
{
|
|
@@ -2438,8 +2437,10 @@ var init_assets_ui_desktop = __esm({
|
|
|
2438
2437
|
bordered: true,
|
|
2439
2438
|
className: "oui-font-semibold",
|
|
2440
2439
|
classNames: {
|
|
2441
|
-
|
|
2442
|
-
|
|
2440
|
+
scroll: cn(
|
|
2441
|
+
"oui-h-auto oui-min-h-0 oui-overflow-x-auto oui-overflow-y-visible",
|
|
2442
|
+
dataTableClassNames?.scroll
|
|
2443
|
+
),
|
|
2443
2444
|
...dataTableClassNames
|
|
2444
2445
|
},
|
|
2445
2446
|
columns,
|
|
@@ -2458,7 +2459,7 @@ var init_assets_ui_desktop = __esm({
|
|
|
2458
2459
|
return /* @__PURE__ */ jsx(
|
|
2459
2460
|
Card,
|
|
2460
2461
|
{
|
|
2461
|
-
className: "oui-bg-transparent oui-p-0 oui-
|
|
2462
|
+
className: "oui-border-none oui-bg-transparent oui-p-0 oui-shadow-none",
|
|
2462
2463
|
classNames: { content: "!oui-pt-0" },
|
|
2463
2464
|
children: /* @__PURE__ */ jsxs(
|
|
2464
2465
|
Tabs,
|
|
@@ -6322,7 +6323,7 @@ var usePortfolioLayoutScript = (props) => {
|
|
|
6322
6323
|
}
|
|
6323
6324
|
];
|
|
6324
6325
|
}, [t]);
|
|
6325
|
-
const hideSideBar =
|
|
6326
|
+
const { isMobile: hideSideBar } = useScreen();
|
|
6326
6327
|
return {
|
|
6327
6328
|
items,
|
|
6328
6329
|
current,
|