@orderly.network/portfolio 2.10.1 → 2.10.2

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.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import React12, { createContext, useMemo, useId, useContext, useState, useCallback, useRef, createElement, useEffect } from 'react';
2
- import { useLocalStorage, useAccount, useIndexPricesStream, useCollateral, usePrivateQuery, useStatisticsDaily, useBalanceTopic, useAssetsHistory, useFeeState, useMediaQuery, useAccountInfo, useWalletConnector, usePositionStream, useLeverage, useMaxWithdrawal, useGetClaimed, DistributionId, TWType, useCurEpochEstimate, useAllBrokers, noCacheConfig, useEpochInfo, useConfig, useGetEnv, useMutation, useOrderlyContext, useDebouncedCallback, useAppStore, parseJSON, useChains, useTransferHistory, useChainInfo, useSymbolsInfo, useFundingFeeHistory, useSubAccountQuery, useApiKeyManager, useDistributionHistory, useVaultsHistory } from '@orderly.network/hooks';
2
+ import { useLocalStorage, useAccount, useIndexPricesStream, useCollateral, usePrivateQuery, useStatisticsDaily, useUserStatistics, useBalanceTopic, useAssetsHistory, useFeeState, useMediaQuery, useAccountInfo, useWalletConnector, usePositionStream, useLeverage, useMaxWithdrawal, useGetClaimed, DistributionId, TWType, useCurEpochEstimate, useAllBrokers, noCacheConfig, useEpochInfo, useConfig, useGetEnv, useMutation, useOrderlyContext, useDebouncedCallback, useAppStore, parseJSON, useChains, useTransferHistory, useChainInfo, 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
- 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, ArrowDownSquareFillIcon, ArrowLeftRightIcon, ArrowUpSquareFillIcon, ArrowRightShortIcon, CalendarMinusIcon, AffiliateIcon, ChevronRightIcon, TraderMobileIcon, SettingFillIcon, Switch, ChainIcon, capitalizeFirstLetter, usePagination, ListView, Badge, ArrowDownShortIcon, ScrollIndicator, PlusIcon, FeeTierIcon, ServerFillIcon, ArrowLeftRightSquareFill, VaultsIcon } from '@orderly.network/ui';
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, FeeTierIcon, ServerFillIcon, ArrowLeftRightSquareFill, VaultsIcon } from '@orderly.network/ui';
6
6
  import { LeverageWidgetWithDialogId } from '@orderly.network/ui-leverage';
7
7
  import { DepositAndWithdrawWithSheetId, DepositAndWithdrawWithDialogId, TransferSheetId, TransferDialogId, DepositStatusWidget } from '@orderly.network/ui-transfer';
8
8
  import { i18n, useTranslation, Trans } from '@orderly.network/i18n';
@@ -12,7 +12,7 @@ import { Decimal, zero, numberToHumanStyle, commifyOptional, subtractDaysFromCur
12
12
  import { subDays, format, getYear, getMonth, getDate, set, differenceInDays, setHours } from 'date-fns';
13
13
  import { produce } from 'immer';
14
14
  import pick$1 from 'ramda/es/pick';
15
- import { AssetLineChart, PnLBarChart, PnlAreaChart, AreaChart, Area, AssetAreaChart } from '@orderly.network/chart';
15
+ import { AssetLineChart, PnLBarChart, PnlAreaChart, VolBarChart, VolumeAreaChart, AreaChart, Area, AssetAreaChart } from '@orderly.network/chart';
16
16
  import { useScaffoldContext, Scaffold, SideBar, MainNavMobile, BottomNav, LanguageSwitcherWidget } from '@orderly.network/ui-scaffold';
17
17
  import { pick } from 'ramda';
18
18
  import { CombinePositionsWidget, PositionsWidget, PositionHistoryWidget, LiquidationWidget } from '@orderly.network/ui-positions';
@@ -2428,7 +2428,7 @@ var init_assets_ui_desktop = __esm({
2428
2428
  return /* @__PURE__ */ jsx(
2429
2429
  Card,
2430
2430
  {
2431
- className: "oui-bg-transparent oui-p-0",
2431
+ className: "oui-bg-transparent oui-p-0 oui-border-none oui-shadow-none",
2432
2432
  classNames: { content: "!oui-pt-0" },
2433
2433
  children: /* @__PURE__ */ jsxs(
2434
2434
  Tabs,
@@ -4106,6 +4106,11 @@ var init_useAssetHistory = __esm({
4106
4106
  ignoreAggregation: true
4107
4107
  }
4108
4108
  );
4109
+ const [userStatistics] = useUserStatistics();
4110
+ const todayVolume = useMemo(
4111
+ () => userStatistics?.perp_trading_volume_last_24_hours ?? 0,
4112
+ [userStatistics]
4113
+ );
4109
4114
  const lastBalanceEventRef = useRef(0);
4110
4115
  const refreshTransferHistory = useCallback(() => {
4111
4116
  const now = Date.now();
@@ -4254,12 +4259,12 @@ var init_useAssetHistory = __esm({
4254
4259
  value = value.sub(inputs.transferHistory.IN).add(inputs.transferHistory.OUT);
4255
4260
  return value.toNumber();
4256
4261
  };
4257
- const calculate = (data2, totalValue2, totalTransferIn2, totalTransferOut2) => {
4262
+ const calculate = (data2, totalValue2, totalTransferIn2, totalTransferOut2, todayVol) => {
4258
4263
  const lastItem2 = data2[data2.length - 1];
4259
4264
  return {
4260
4265
  ...lastItem2,
4261
4266
  date: getUTCStr(today),
4262
- perp_volume: 0,
4267
+ perp_volume: todayVol,
4263
4268
  account_value: totalValue2 !== null ? totalValue2 : lastItem2?.account_value ?? 0,
4264
4269
  pnl: calculateLastPnl({
4265
4270
  lastItem: lastItem2,
@@ -4272,7 +4277,7 @@ var init_useAssetHistory = __esm({
4272
4277
  __isCalculated: true
4273
4278
  };
4274
4279
  };
4275
- const mergeData = (data2, totalValue2, totalTransferIn2, totalTransferOut2) => {
4280
+ const mergeData = (data2, totalValue2, totalTransferIn2, totalTransferOut2, todayVol) => {
4276
4281
  if (!Array.isArray(data2) || data2.length === 0) {
4277
4282
  return data2;
4278
4283
  }
@@ -4280,11 +4285,17 @@ var init_useAssetHistory = __esm({
4280
4285
  return data2;
4281
4286
  }
4282
4287
  return data2.concat([
4283
- calculate(data2, totalValue2, totalTransferIn2, totalTransferOut2)
4288
+ calculate(data2, totalValue2, totalTransferIn2, totalTransferOut2, todayVol)
4284
4289
  ]);
4285
4290
  };
4286
- const calculateData = (data2, realtime, totalValue2, totalTransferIn2, totalTransferOut2) => {
4287
- const _data = !realtime ? data2 : mergeData(data2, totalValue2, totalTransferIn2, totalTransferOut2);
4291
+ const calculateData = (data2, realtime, totalValue2, totalTransferIn2, totalTransferOut2, todayVol) => {
4292
+ const _data = !realtime ? data2 : mergeData(
4293
+ data2,
4294
+ totalValue2,
4295
+ totalTransferIn2,
4296
+ totalTransferOut2,
4297
+ todayVol
4298
+ );
4288
4299
  return _data.slice(Math.max(0, _data.length - periodValue));
4289
4300
  };
4290
4301
  const calculatedData = useMemo(() => {
@@ -4299,7 +4310,8 @@ var init_useAssetHistory = __esm({
4299
4310
  isRealtime,
4300
4311
  totalValue,
4301
4312
  totalTransferIn,
4302
- totalTransferOut
4313
+ totalTransferOut,
4314
+ todayVolume
4303
4315
  );
4304
4316
  }, [
4305
4317
  data,
@@ -4307,10 +4319,9 @@ var init_useAssetHistory = __esm({
4307
4319
  assetHistory,
4308
4320
  isRealtime,
4309
4321
  getIndexPrice,
4310
- // transferOutHistory,
4311
- // transferInHistory,
4312
4322
  totalTransferIn,
4313
- totalTransferOut
4323
+ totalTransferOut,
4324
+ todayVolume
4314
4325
  ]);
4315
4326
  const aggregateValue = useMemo(() => {
4316
4327
  let vol = zero;
@@ -4318,6 +4329,7 @@ var init_useAssetHistory = __esm({
4318
4329
  let roi = zero;
4319
4330
  if (Array.isArray(calculatedData) && calculatedData.length) {
4320
4331
  calculatedData.forEach((d) => {
4332
+ vol = vol.add(d.perp_volume ?? 0);
4321
4333
  pnl = pnl.add(d.pnl);
4322
4334
  });
4323
4335
  const tail = calculatedData[0];
@@ -4331,22 +4343,8 @@ var init_useAssetHistory = __esm({
4331
4343
  );
4332
4344
  }
4333
4345
  }
4334
- if (data.length > 0) {
4335
- for (let i = 0; i < periodValue; i++) {
4336
- const item = data[data.length - 1 - i];
4337
- if (item) {
4338
- vol = vol.add(item.perp_volume ?? 0);
4339
- }
4340
- }
4341
- }
4342
4346
  return { vol: vol.toNumber(), pnl: pnl.toNumber(), roi: roi.toNumber() };
4343
- }, [
4344
- calculatedData,
4345
- data,
4346
- periodValue,
4347
- totalTransferInForROI,
4348
- totalDepositForROI
4349
- ]);
4347
+ }, [calculatedData, data, totalTransferInForROI, totalDepositForROI]);
4350
4348
  const createFakeData = (start, end) => {
4351
4349
  return Array.from({ length: 2 }, (_, i) => {
4352
4350
  const date = format(i === 0 ? startDate : /* @__PURE__ */ new Date(), "yyyy-MM-dd");
@@ -4463,7 +4461,7 @@ var init_assetChart = __esm({
4463
4461
  init_assetsChart_ui();
4464
4462
  }
4465
4463
  });
4466
- var LazyPeriodTitle2, PerformanceUI, LabelWithHint, PerformancePnL, CumulativePnlChart;
4464
+ var LazyPeriodTitle2, formatForChart, PerformanceUI, LabelWithHint, PerformancePnL, CumulativePnlChart, DailyVolumeChart, CumulativeVolumeChart;
4467
4465
  var init_performance_ui = __esm({
4468
4466
  "src/pages/overview/performance/performance.ui.tsx"() {
4469
4467
  LazyPeriodTitle2 = React12.lazy(
@@ -4471,6 +4469,11 @@ var init_performance_ui = __esm({
4471
4469
  return { default: mod.PeriodTitle };
4472
4470
  })
4473
4471
  );
4472
+ formatForChart = (value, dp = 2) => {
4473
+ if (value == null) return 0;
4474
+ const decimal = new Decimal(value);
4475
+ return Number(decimal.toFixed(dp, Decimal.ROUND_DOWN));
4476
+ };
4474
4477
  PerformanceUI = (props) => {
4475
4478
  const {
4476
4479
  periodTypes,
@@ -4604,6 +4607,22 @@ var init_performance_ui = __esm({
4604
4607
  invisible: props.invisible || (props.data?.length ?? 0) <= 2
4605
4608
  }
4606
4609
  )
4610
+ ] }),
4611
+ /* @__PURE__ */ jsxs(Grid, { cols: 2, gap: 4, children: [
4612
+ /* @__PURE__ */ jsx(
4613
+ DailyVolumeChart,
4614
+ {
4615
+ data: props.data ?? EMPTY_LIST,
4616
+ invisible: props.invisible
4617
+ }
4618
+ ),
4619
+ /* @__PURE__ */ jsx(
4620
+ CumulativeVolumeChart,
4621
+ {
4622
+ data: props.data ?? EMPTY_LIST,
4623
+ invisible: props.invisible || (props.data?.length ?? 0) <= 2
4624
+ }
4625
+ )
4607
4626
  ] })
4608
4627
  ]
4609
4628
  }
@@ -4635,13 +4654,20 @@ var init_performance_ui = __esm({
4635
4654
  };
4636
4655
  PerformancePnL = (props) => {
4637
4656
  const { t } = useTranslation();
4657
+ const chartData = React12.useMemo(
4658
+ () => (props.data ?? []).map((d) => ({
4659
+ ...d,
4660
+ pnl: formatForChart(d.pnl)
4661
+ })),
4662
+ [props.data]
4663
+ );
4638
4664
  return /* @__PURE__ */ jsxs(Box, { mt: 4, height: "188px", children: [
4639
4665
  /* @__PURE__ */ jsx(Text, { as: "div", size: "sm", className: "oui-mb-3", children: t("portfolio.overview.performance.dailyPnl") }),
4640
4666
  /* @__PURE__ */ jsx(Box, { r: "md", className: "oui-h-[188px] oui-border oui-border-line-4", children: /* @__PURE__ */ jsx(
4641
4667
  PnLBarChart,
4642
4668
  {
4643
- data: props.data,
4644
- invisible: props.invisible || (props.data?.length ?? 0) <= 2
4669
+ data: chartData,
4670
+ invisible: props.invisible || (chartData?.length ?? 0) <= 2
4645
4671
  }
4646
4672
  ) })
4647
4673
  ] });
@@ -4659,6 +4685,43 @@ var init_performance_ui = __esm({
4659
4685
  ) })
4660
4686
  ] });
4661
4687
  };
4688
+ DailyVolumeChart = (props) => {
4689
+ const { t } = useTranslation();
4690
+ const volumeData = React12.useMemo(
4691
+ () => (props.data ?? []).map((d) => ({
4692
+ ...d,
4693
+ volume: formatForChart(d.perp_volume ?? 0)
4694
+ })),
4695
+ [props.data]
4696
+ );
4697
+ return /* @__PURE__ */ jsxs(Box, { mt: 4, height: "188px", children: [
4698
+ /* @__PURE__ */ jsx(Text, { as: "div", size: "sm", className: "oui-mb-3", children: t("portfolio.overview.performance.dailyVolume") }),
4699
+ /* @__PURE__ */ jsx(Box, { r: "md", className: "oui-h-[188px] oui-border oui-border-line-4", children: /* @__PURE__ */ jsx(
4700
+ VolBarChart,
4701
+ {
4702
+ data: volumeData,
4703
+ invisible: props.invisible || volumeData.length <= 2,
4704
+ responsiveContainerProps: {
4705
+ width: "100%",
4706
+ height: 188
4707
+ }
4708
+ }
4709
+ ) })
4710
+ ] });
4711
+ };
4712
+ CumulativeVolumeChart = (props) => {
4713
+ const { t } = useTranslation();
4714
+ return /* @__PURE__ */ jsxs(Box, { mt: 4, children: [
4715
+ /* @__PURE__ */ jsx(Text, { as: "div", size: "sm", className: "oui-mb-3", children: t("portfolio.overview.performance.cumulativeVolume") }),
4716
+ /* @__PURE__ */ jsx(Box, { r: "md", className: "oui-h-[188px] oui-border oui-border-line-4", children: /* @__PURE__ */ jsx(
4717
+ VolumeAreaChart,
4718
+ {
4719
+ data: props.data ?? EMPTY_LIST,
4720
+ invisible: props.invisible || (props.data?.length ?? 0) <= 2
4721
+ }
4722
+ ) })
4723
+ ] });
4724
+ };
4662
4725
  }
4663
4726
  });
4664
4727
 
@@ -5316,8 +5379,7 @@ var init_createApiKey = __esm({
5316
5379
  fillRule: "evenodd",
5317
5380
  clipRule: "evenodd",
5318
5381
  d: "M6.99072 2.92981C4.78172 2.92981 2.99072 4.72071 2.99072 6.92981V16.9298C2.99072 19.1389 4.78172 20.9298 6.99072 20.9298H16.9907C19.1997 20.9298 20.9907 19.1389 20.9907 16.9298V6.92981C20.9907 4.72071 19.1997 2.92981 16.9907 2.92981H6.99072ZM16.9853 7.31211C17.2125 7.09537 17.5236 7 17.8218 7C18.1201 7 18.4312 7.09537 18.6584 7.31211C19.1139 7.74546 19.1139 8.47384 18.6584 8.9072L10.5077 16.675C10.0534 17.1083 9.28909 17.1083 8.83472 16.675L5.34077 13.3459C4.88641 12.9126 4.88641 12.1841 5.34077 11.7508C5.79631 11.3175 6.56057 11.3175 7.01493 11.7508L9.67122 14.2822L16.9853 7.31211Z",
5319
- fill: "white",
5320
- fillOpacity: "0.54"
5382
+ className: "oui-fill-base-contrast-54"
5321
5383
  }
5322
5384
  )
5323
5385
  }
@@ -5333,8 +5395,7 @@ var init_createApiKey = __esm({
5333
5395
  "path",
5334
5396
  {
5335
5397
  d: "M6.99072 2.92981C4.78172 2.92981 2.99072 4.72071 2.99072 6.92981V16.9298C2.99072 19.1389 4.78172 20.9298 6.99072 20.9298H16.9907C19.1997 20.9298 20.9907 19.1389 20.9907 16.9298V6.92981C20.9907 4.72071 19.1997 2.92981 16.9907 2.92981H6.99072ZM6.99072 4.92981H16.9907C18.0957 4.92981 18.9907 5.82521 18.9907 6.92981V16.9298C18.9907 18.0344 18.0957 18.9298 16.9907 18.9298H6.99072C5.88572 18.9298 4.99072 18.0344 4.99072 16.9298V6.92981C4.99072 5.82521 5.88572 4.92981 6.99072 4.92981Z",
5336
- fill: "white",
5337
- fillOpacity: "0.54"
5398
+ className: "oui-fill-base-contrast-54"
5338
5399
  }
5339
5400
  )
5340
5401
  }
@@ -6391,6 +6452,13 @@ var PerformanceMobileUI = (props) => {
6391
6452
  { account_value: 0, pnl: 0 },
6392
6453
  { account_value: 500, pnl: 500 }
6393
6454
  );
6455
+ const volumeData = React12.useMemo(
6456
+ () => (mergedData ?? []).map((d) => ({
6457
+ ...d,
6458
+ volume: d.perp_volume ?? 0
6459
+ })),
6460
+ [mergedData]
6461
+ );
6394
6462
  return /* @__PURE__ */ jsxs("div", { children: [
6395
6463
  /* @__PURE__ */ jsxs(
6396
6464
  Tabs,
@@ -6524,6 +6592,38 @@ var PerformanceMobileUI = (props) => {
6524
6592
  }
6525
6593
  )
6526
6594
  }
6595
+ ),
6596
+ /* @__PURE__ */ jsx(
6597
+ TabPanel,
6598
+ {
6599
+ value: "dailyVolume",
6600
+ title: t("portfolio.overview.performance.dailyVolume"),
6601
+ className: "oui-min-h-40",
6602
+ children: /* @__PURE__ */ jsx(
6603
+ VolBarChart,
6604
+ {
6605
+ data: volumeData,
6606
+ invisible: invisible || (mergedData?.length ?? 0) <= 2,
6607
+ responsiveContainerProps: responsiveProps
6608
+ }
6609
+ )
6610
+ }
6611
+ ),
6612
+ /* @__PURE__ */ jsx(
6613
+ TabPanel,
6614
+ {
6615
+ value: "cumulativeVolume",
6616
+ title: t("portfolio.overview.performance.cumulativeVolume"),
6617
+ className: "oui-min-h-40",
6618
+ children: /* @__PURE__ */ jsx(
6619
+ VolumeAreaChart,
6620
+ {
6621
+ data: mergedData,
6622
+ invisible: invisible || (mergedData?.length ?? 0) <= 2,
6623
+ responsiveContainerProps: responsiveProps
6624
+ }
6625
+ )
6626
+ }
6527
6627
  )
6528
6628
  ] })
6529
6629
  ] });
@@ -6739,15 +6839,29 @@ var PortfolioChartsMobileUI = (props) => {
6739
6839
  direction: "column",
6740
6840
  children: /* @__PURE__ */ jsx(AreaChart, { data: data || EMPTY_LIST, width: 160, height: 52, children: !invisible && /* @__PURE__ */ jsxs(Fragment, { children: [
6741
6841
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: colorId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6742
- /* @__PURE__ */ jsx("stop", { stopColor: "#00B49E", offset: "0%", stopOpacity: 0.5 }),
6743
- /* @__PURE__ */ jsx("stop", { stopColor: "#00B49E", offset: "100%", stopOpacity: 0 })
6842
+ /* @__PURE__ */ jsx(
6843
+ "stop",
6844
+ {
6845
+ stopColor: "rgb(var(--oui-color-success))",
6846
+ offset: "0%",
6847
+ stopOpacity: 0.5
6848
+ }
6849
+ ),
6850
+ /* @__PURE__ */ jsx(
6851
+ "stop",
6852
+ {
6853
+ stopColor: "rgb(var(--oui-color-success))",
6854
+ offset: "100%",
6855
+ stopOpacity: 0
6856
+ }
6857
+ )
6744
6858
  ] }) }),
6745
6859
  /* @__PURE__ */ jsx(
6746
6860
  Area,
6747
6861
  {
6748
6862
  type: "natural",
6749
6863
  dataKey: "account_value",
6750
- stroke: "rgb(41, 233, 169)",
6864
+ stroke: "rgb(var(--oui-color-trading-profit))",
6751
6865
  strokeWidth: 1.5,
6752
6866
  dot: false,
6753
6867
  isAnimationActive: false,
@@ -6780,19 +6894,19 @@ var useCurrentStatus = () => {
6780
6894
  const statusText = {
6781
6895
  wrongNetwork: {
6782
6896
  description: t("connector.wrongNetwork.tooltip"),
6783
- rootClass: "oui-bg-[linear-gradient(15deg,#D25F00_0%,transparent_30%)]"
6897
+ rootClass: "oui-bg-[linear-gradient(15deg,rgb(var(--oui-color-warning-darken))_0%,transparent_30%)]"
6784
6898
  },
6785
6899
  connectWallet: {
6786
6900
  description: t("connector.trade.connectWallet.tooltip"),
6787
- rootClass: "oui-bg-[linear-gradient(15deg,#27FDFE_0%,transparent_30%)]"
6901
+ rootClass: "oui-bg-[linear-gradient(15deg,rgb(var(--oui-gradient-brand-start))_0%,transparent_30%)]"
6788
6902
  },
6789
6903
  notSignedIn: {
6790
6904
  description: t("connector.trade.createAccount.tooltip"),
6791
- rootClass: "oui-bg-[linear-gradient(15deg,#335FFC_0%,transparent_30%)]"
6905
+ rootClass: "oui-bg-[linear-gradient(15deg,rgb(var(--oui-color-primary-darken))_0%,transparent_30%)]"
6792
6906
  },
6793
6907
  disabledTrading: {
6794
6908
  description: t("connector.trade.enableTrading.tooltip"),
6795
- rootClass: "oui-bg-[linear-gradient(15deg,#335FFC_0%,transparent_30%)]"
6909
+ rootClass: "oui-bg-[linear-gradient(15deg,rgb(var(--oui-color-primary-darken))_0%,transparent_30%)]"
6796
6910
  },
6797
6911
  default: {
6798
6912
  description: "",
@@ -6870,7 +6984,7 @@ var EVMChains = () => {
6870
6984
  }
6871
6985
  ) }),
6872
6986
  /* @__PURE__ */ jsxs("div", { className: "oui-relative oui-left-[-9px] oui-flex oui-items-center oui-justify-center oui-gap-1", children: [
6873
- /* @__PURE__ */ jsx("div", { className: "oui-flex oui-size-[18px] oui-items-center oui-justify-center oui-rounded-full oui-bg-[#282e3a]", children: /* @__PURE__ */ jsx(EVMChainPopover, { children: /* @__PURE__ */ jsx(
6987
+ /* @__PURE__ */ jsx("div", { className: "oui-flex oui-size-[18px] oui-items-center oui-justify-center oui-rounded-full oui-bg-base-5", children: /* @__PURE__ */ jsx(EVMChainPopover, { children: /* @__PURE__ */ jsx(
6874
6988
  MoreIcon,
6875
6989
  {
6876
6990
  className: "oui-relative oui-z-10 oui-size-3 oui-text-base-contrast-54 hover:oui-text-base-contrast",
@@ -6941,9 +7055,9 @@ var ShowAccount = () => {
6941
7055
  const bgClass = useMemo(() => {
6942
7056
  let bg = "";
6943
7057
  if (currentNamespace == ChainNamespace.evm) {
6944
- bg = "oui-bg-[linear-gradient(15deg,#283BEE_-11%,transparent_30%,transparent_77%,#A53411_100%)]";
7058
+ bg = "oui-bg-[linear-gradient(15deg,rgb(var(--oui-color-primary))_-11%,transparent_30%,transparent_77%,rgb(var(--oui-color-danger-darken))_100%)]";
6945
7059
  } else if (currentNamespace == ChainNamespace.solana) {
6946
- bg = "oui-bg-[linear-gradient(15deg,#7400D0_-11%,transparent_30%,transparent_77%,#009A7E_100%)]";
7060
+ bg = "oui-bg-[linear-gradient(15deg,rgb(var(--oui-color-link))_-11%,transparent_30%,transparent_77%,rgb(var(--oui-color-success))_100%)]";
6947
7061
  }
6948
7062
  return bg;
6949
7063
  }, [currentNamespace]);
@@ -7185,13 +7299,13 @@ var PortfolioValueMobile = (props) => {
7185
7299
  p: 4,
7186
7300
  children: [
7187
7301
  /* @__PURE__ */ jsxs(Flex, { direction: "row", gapX: 1, itemAlign: "center", children: [
7188
- /* @__PURE__ */ jsx(Text, { className: "oui-text-sm oui-text-base-contrast-54", children: t("portfolio.overview.handle.title") }),
7302
+ /* @__PURE__ */ jsx(Text, { className: "oui-text-sm oui-text-base-static-54", children: t("portfolio.overview.handle.title") }),
7189
7303
  /* @__PURE__ */ jsx(
7190
7304
  EyeIcon,
7191
7305
  {
7192
7306
  size: 16,
7193
7307
  className: cn(
7194
- props.canTrade ? "oui-text-base-contrast-54" : "oui-hidden"
7308
+ props.canTrade ? "oui-text-base-static-54" : "oui-hidden"
7195
7309
  ),
7196
7310
  onClick: props.toggleVisible
7197
7311
  }
@@ -7209,11 +7323,11 @@ var PortfolioValueMobile = (props) => {
7209
7323
  Text.numeral,
7210
7324
  {
7211
7325
  visible: props.visible,
7212
- className: "oui-text-3xl oui-font-bold oui-text-base-contrast",
7326
+ className: "oui-text-3xl oui-font-bold oui-text-base-static",
7213
7327
  children: props.portfolioValue ?? "--"
7214
7328
  }
7215
7329
  ),
7216
- /* @__PURE__ */ jsx(Text, { className: "oui-text-base oui-font-bold oui-text-base-contrast-80", children: "USDC" })
7330
+ /* @__PURE__ */ jsx(Text, { className: "oui-text-base oui-font-bold oui-text-base-static-80", children: "USDC" })
7217
7331
  ]
7218
7332
  }
7219
7333
  ),
@@ -7223,7 +7337,7 @@ var PortfolioValueMobile = (props) => {
7223
7337
  direction: "row",
7224
7338
  gapX: 1,
7225
7339
  itemAlign: "center",
7226
- className: "oui-text-sm oui-text-base-contrast",
7340
+ className: "oui-text-sm oui-text-base-static",
7227
7341
  children: [
7228
7342
  /* @__PURE__ */ jsx(Text.pnl, { visible: props.visible, children: props.unrealPnL ?? "--" }),
7229
7343
  /* @__PURE__ */ jsx(
@@ -7247,7 +7361,14 @@ var PortfolioValueMobile = (props) => {
7247
7361
  href: "/portfolio/assets" /* Assets */,
7248
7362
  name: "Assets"
7249
7363
  }),
7250
- children: /* @__PURE__ */ jsx(ArrowRightShortIcon, { size: 18, color: "white", opacity: 0.54 })
7364
+ children: /* @__PURE__ */ jsx(
7365
+ ArrowRightShortIcon,
7366
+ {
7367
+ size: 18,
7368
+ opacity: 0.99,
7369
+ className: "oui-text-base-static"
7370
+ }
7371
+ )
7251
7372
  }
7252
7373
  )
7253
7374
  ]
@@ -7511,7 +7632,7 @@ var FeeTierTable = (props) => {
7511
7632
  return {
7512
7633
  "data-state": "active",
7513
7634
  className: cn(
7514
- "oui-pointer-events-none oui-h-[54px] oui-text-[rgba(0,0,0,0.88)] oui-gradient-brand"
7635
+ "oui-pointer-events-none oui-h-[54px] oui-text-base-contrast-80 oui-gradient-brand"
7515
7636
  ),
7516
7637
  ...config.active
7517
7638
  };
@@ -8012,17 +8133,23 @@ __export(setting_exports, {
8012
8133
  SettingWidget: () => SettingWidget
8013
8134
  });
8014
8135
  var ORDERLY_ORDER_SOUND_ALERT_KEY = "orderly_order_sound_alert";
8136
+ var ORDERLY_ORDER_SOUND_OPTION_KEY = "orderly_order_sound_option";
8015
8137
  var ORDERLY_MWEB_ORDER_ENTRY_SIDE_MARKETS_LAYOUT = "orderly_mweb_order_entry_side_markets_layout";
8016
8138
  var useSettingScript = () => {
8017
- const { data, mutate: refresh } = useAccountInfo();
8139
+ const { data } = useAccountInfo();
8018
8140
  const { wrongNetwork, disabledConnect } = useAppContext();
8019
- const [update, { isMutating }] = useMutation("/v1/client/maintenance_config");
8141
+ const [update] = useMutation("/v1/client/maintenance_config");
8020
8142
  const [checked, setChecked] = useState(false);
8021
8143
  const { notification } = useOrderlyContext();
8144
+ const { themes, currentThemeId, setCurrentThemeId } = useOrderlyTheme();
8145
+ const soundOptions = notification?.orderFilled?.soundOptions;
8146
+ const hasSoundOptions = Boolean(soundOptions && soundOptions.length > 0);
8147
+ const defaultSoundValue = notification?.orderFilled?.defaultSoundValue ?? soundOptions?.[0]?.value;
8022
8148
  const [soundAlert, setSoundAlert] = useLocalStorage(
8023
8149
  ORDERLY_ORDER_SOUND_ALERT_KEY,
8024
8150
  notification?.orderFilled?.defaultOpen ?? false
8025
8151
  );
8152
+ const [selectedSoundValue, setSelectedSoundValue] = useLocalStorage(ORDERLY_ORDER_SOUND_OPTION_KEY, defaultSoundValue ?? null);
8026
8153
  const [orderPanelLayout, setOrderPanelLayout] = useLocalStorage(
8027
8154
  ORDERLY_MWEB_ORDER_ENTRY_SIDE_MARKETS_LAYOUT,
8028
8155
  "right"
@@ -8056,12 +8183,139 @@ var useSettingScript = () => {
8056
8183
  soundAlert,
8057
8184
  setSoundAlert,
8058
8185
  hasOrderFilledMedia: Boolean(notification?.orderFilled?.media),
8186
+ soundOptions,
8187
+ hasSoundOptions,
8188
+ selectedSoundValue,
8189
+ setSelectedSoundValue,
8059
8190
  orderPanelLayout,
8060
- setOrderPanelLayout
8191
+ setOrderPanelLayout,
8192
+ themes,
8193
+ currentThemeId,
8194
+ setCurrentThemeId
8061
8195
  };
8062
8196
  };
8197
+ var SoundRadioButton = ({
8198
+ sel,
8199
+ label,
8200
+ onCheckChange
8201
+ }) => {
8202
+ return /* @__PURE__ */ jsxs(
8203
+ Flex,
8204
+ {
8205
+ onClick: (e) => {
8206
+ onCheckChange();
8207
+ e.stopPropagation();
8208
+ },
8209
+ gap: 1,
8210
+ className: "oui-cursor-pointer",
8211
+ children: [
8212
+ sel ? /* @__PURE__ */ jsx(SoundSelIcon, { className: "oui-fill-base-contrast" }) : /* @__PURE__ */ jsx(SoundUnselIcon, { className: "oui-fill-base-contrast-54" }),
8213
+ /* @__PURE__ */ jsx(Text, { size: "2xs", intensity: sel ? 98 : 54, children: label })
8214
+ ]
8215
+ }
8216
+ );
8217
+ };
8218
+ var SoundSelIcon = (props) => {
8219
+ return /* @__PURE__ */ jsxs(
8220
+ "svg",
8221
+ {
8222
+ width: "16",
8223
+ height: "16",
8224
+ viewBox: "0 0 16 16",
8225
+ fill: "currentColor",
8226
+ xmlns: "http://www.w3.org/2000/svg",
8227
+ className: props.className,
8228
+ children: [
8229
+ /* @__PURE__ */ jsx("path", { d: "M8.01 1.333a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333m0 1.333a5.334 5.334 0 1 1-.001 10.667 5.334 5.334 0 0 1 0-10.667" }),
8230
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "3.333" })
8231
+ ]
8232
+ }
8233
+ );
8234
+ };
8235
+ var SoundUnselIcon = (props) => {
8236
+ return /* @__PURE__ */ jsx(
8237
+ "svg",
8238
+ {
8239
+ width: "16",
8240
+ height: "16",
8241
+ viewBox: "0 0 16 16",
8242
+ fill: "currentColor",
8243
+ xmlns: "http://www.w3.org/2000/svg",
8244
+ className: props.className,
8245
+ children: /* @__PURE__ */ jsx("path", { d: "M8.01 1.333a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333m0 1.333a5.334 5.334 0 1 1-.001 10.667 5.334 5.334 0 0 1 0-10.667" })
8246
+ }
8247
+ );
8248
+ };
8249
+ var ThemeSettingCard = (props) => {
8250
+ const { t } = useTranslation();
8251
+ const { themes, currentThemeId, setCurrentThemeId, classNames } = props;
8252
+ if (!themes || themes.length <= 1) {
8253
+ return null;
8254
+ }
8255
+ return /* @__PURE__ */ jsx(
8256
+ Card,
8257
+ {
8258
+ title: t("portfolio.setting.theme"),
8259
+ id: "portfolio-theme-setting",
8260
+ classNames: { root: classNames?.card },
8261
+ children: /* @__PURE__ */ jsx(
8262
+ Flex,
8263
+ {
8264
+ direction: "row",
8265
+ gap: 4,
8266
+ width: "100%",
8267
+ itemAlign: "center",
8268
+ className: cn(
8269
+ "oui-border-t-2 oui-border-line-6 oui-font-semibold",
8270
+ classNames?.content
8271
+ ),
8272
+ children: themes.length === 2 ? /* @__PURE__ */ jsx(Flex, { direction: "row", itemAlign: "center", gap: 2, children: themes.map((theme) => /* @__PURE__ */ jsx(
8273
+ Button,
8274
+ {
8275
+ variant: theme.id === currentThemeId ? "contained" : "outlined",
8276
+ size: "sm",
8277
+ onClick: () => setCurrentThemeId?.(theme.id),
8278
+ children: theme.displayName
8279
+ },
8280
+ theme.id
8281
+ )) }) : /* @__PURE__ */ jsx(Flex, { children: /* @__PURE__ */ jsx(
8282
+ Select.options,
8283
+ {
8284
+ value: currentThemeId,
8285
+ onValueChange: (value) => {
8286
+ setCurrentThemeId?.(value);
8287
+ },
8288
+ options: themes.map((theme) => ({
8289
+ value: theme.id,
8290
+ label: theme.displayName
8291
+ })),
8292
+ size: "sm",
8293
+ testid: "oui-testid-setting-theme-select",
8294
+ classNames: { trigger: "oui-min-w-[100px]" }
8295
+ }
8296
+ ) })
8297
+ }
8298
+ )
8299
+ }
8300
+ );
8301
+ };
8063
8302
  var SettingDesktop = (props) => {
8064
8303
  const { t } = useTranslation();
8304
+ const audioRef = useRef(null);
8305
+ const playPreview = useCallback((media) => {
8306
+ if (!media) return;
8307
+ try {
8308
+ if (!audioRef.current) {
8309
+ audioRef.current = new Audio();
8310
+ }
8311
+ const audio = audioRef.current;
8312
+ audio.pause();
8313
+ audio.currentTime = 0;
8314
+ audio.src = media;
8315
+ void audio.play().catch(() => void 0);
8316
+ } catch {
8317
+ }
8318
+ }, []);
8065
8319
  return /* @__PURE__ */ jsxs(Fragment, { children: [
8066
8320
  /* @__PURE__ */ jsx(
8067
8321
  Card,
@@ -8099,7 +8353,7 @@ var SettingDesktop = (props) => {
8099
8353
  )
8100
8354
  }
8101
8355
  ),
8102
- props.hasOrderFilledMedia && /* @__PURE__ */ jsx(
8356
+ (props.hasOrderFilledMedia || props.hasSoundOptions) && /* @__PURE__ */ jsx(
8103
8357
  Card,
8104
8358
  {
8105
8359
  title: t("portfolio.setting.soundAlerts"),
@@ -8108,35 +8362,65 @@ var SettingDesktop = (props) => {
8108
8362
  children: /* @__PURE__ */ jsxs(
8109
8363
  Flex,
8110
8364
  {
8111
- direction: "row",
8112
- gap: 4,
8365
+ direction: "column",
8366
+ gap: 3,
8113
8367
  width: "100%",
8114
- itemAlign: "center",
8115
8368
  pt: 4,
8369
+ itemAlign: "start",
8116
8370
  className: "oui-border-t-2 oui-border-line-6 oui-font-semibold",
8117
8371
  children: [
8118
- /* @__PURE__ */ jsx(
8119
- Flex,
8120
- {
8121
- direction: "column",
8122
- itemAlign: "start",
8123
- className: "oui-flex-1",
8124
- children: /* @__PURE__ */ jsx(Text, { intensity: 54, size: "sm", children: t("portfolio.setting.soundAlerts.description") })
8125
- }
8126
- ),
8127
- /* @__PURE__ */ jsx(AuthGuardTooltip, { align: "end", children: /* @__PURE__ */ jsx(
8128
- Switch,
8129
- {
8130
- checked: props.soundAlert,
8131
- onCheckedChange: (checked) => props.setSoundAlert(checked),
8132
- disabled: !props.canTouch,
8133
- "data-testid": "oui-testid-setting-sound-switch-btn"
8134
- }
8135
- ) })
8372
+ /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: 4, width: "100%", itemAlign: "center", children: [
8373
+ /* @__PURE__ */ jsx(
8374
+ Flex,
8375
+ {
8376
+ direction: "column",
8377
+ itemAlign: "start",
8378
+ className: "oui-flex-1",
8379
+ children: /* @__PURE__ */ jsx(Text, { intensity: 54, size: "sm", children: t("portfolio.setting.soundAlerts.description") })
8380
+ }
8381
+ ),
8382
+ /* @__PURE__ */ jsx(AuthGuardTooltip, { align: "end", children: /* @__PURE__ */ jsx(
8383
+ Switch,
8384
+ {
8385
+ checked: props.soundAlert,
8386
+ onCheckedChange: (checked) => props.setSoundAlert(checked),
8387
+ disabled: !props.canTouch,
8388
+ "data-testid": "oui-testid-setting-sound-switch-btn"
8389
+ }
8390
+ ) })
8391
+ ] }),
8392
+ props.hasSoundOptions && props.soundOptions?.length && props.soundAlert && /* @__PURE__ */ jsx(AuthGuardTooltip, { align: "end", children: /* @__PURE__ */ jsx(Flex, { direction: "row", gap: 3, className: "oui-cursor-pointer", children: props.soundOptions.map((option) => {
8393
+ const sel = props.selectedSoundValue === option.value;
8394
+ return /* @__PURE__ */ jsx(
8395
+ SoundRadioButton,
8396
+ {
8397
+ sel,
8398
+ label: option.label,
8399
+ onCheckChange: () => {
8400
+ props.setSelectedSoundValue(option.value);
8401
+ props.setSoundAlert(Boolean(option.media));
8402
+ playPreview(option.media);
8403
+ }
8404
+ },
8405
+ option.value
8406
+ );
8407
+ }) }) })
8136
8408
  ]
8137
8409
  }
8138
8410
  )
8139
8411
  }
8412
+ ),
8413
+ /* @__PURE__ */ jsx(
8414
+ ThemeSettingCard,
8415
+ {
8416
+ themes: props.themes,
8417
+ currentThemeId: props.currentThemeId,
8418
+ setCurrentThemeId: props.setCurrentThemeId,
8419
+ classNames: {
8420
+ card: "oui-bg-base-9 oui-font-semibold oui-mt-3",
8421
+ content: "oui-pt-4"
8422
+ }
8423
+ }
8140
8424
  )
8141
8425
  ] });
8142
8426
  };
@@ -8146,6 +8430,21 @@ var SettingMobile = (props) => {
8146
8430
  const onLanguageChange = () => {
8147
8431
  setOpen(true);
8148
8432
  };
8433
+ const audioRef = useRef(null);
8434
+ const playPreview = useCallback((media) => {
8435
+ if (!media) return;
8436
+ try {
8437
+ if (!audioRef.current) {
8438
+ audioRef.current = new Audio();
8439
+ }
8440
+ const audio = audioRef.current;
8441
+ audio.pause();
8442
+ audio.currentTime = 0;
8443
+ audio.src = media;
8444
+ void audio.play().catch(() => void 0);
8445
+ } catch {
8446
+ }
8447
+ }, []);
8149
8448
  const renderItem = (position) => {
8150
8449
  const isSelected = props.orderPanelLayout === position;
8151
8450
  const handleClick = () => props.setOrderPanelLayout(position);
@@ -8290,7 +8589,7 @@ var SettingMobile = (props) => {
8290
8589
  )
8291
8590
  }
8292
8591
  ),
8293
- props.hasOrderFilledMedia && /* @__PURE__ */ jsx(
8592
+ (props.hasOrderFilledMedia || props.hasSoundOptions) && /* @__PURE__ */ jsx(
8294
8593
  Card,
8295
8594
  {
8296
8595
  title: /* @__PURE__ */ jsx("div", { className: "oui-text-sm", children: t("portfolio.setting.soundAlerts") }),
@@ -8325,7 +8624,23 @@ var SettingMobile = (props) => {
8325
8624
  disabled: !props.canTouch,
8326
8625
  "data-testid": "oui-testid-setting-sound-switch-btn"
8327
8626
  }
8328
- ) })
8627
+ ) }),
8628
+ props.hasSoundOptions && props.soundOptions?.length && props.soundAlert && /* @__PURE__ */ jsx(Flex, { direction: "row", gap: 3, wrap: "wrap", children: props.soundOptions.map((option) => {
8629
+ const sel = props.selectedSoundValue === option.value;
8630
+ return /* @__PURE__ */ jsx(
8631
+ SoundRadioButton,
8632
+ {
8633
+ sel,
8634
+ label: option.label,
8635
+ onCheckChange: () => {
8636
+ props.setSelectedSoundValue(option.value);
8637
+ props.setSoundAlert(Boolean(option.media));
8638
+ playPreview(option.media);
8639
+ }
8640
+ },
8641
+ option.value
8642
+ );
8643
+ }) })
8329
8644
  ]
8330
8645
  }
8331
8646
  )
@@ -8333,6 +8648,18 @@ var SettingMobile = (props) => {
8333
8648
  )
8334
8649
  }
8335
8650
  ),
8651
+ /* @__PURE__ */ jsx(
8652
+ ThemeSettingCard,
8653
+ {
8654
+ themes: props.themes,
8655
+ currentThemeId: props.currentThemeId,
8656
+ setCurrentThemeId: props.setCurrentThemeId,
8657
+ classNames: {
8658
+ card: "oui-mt-2 oui-bg-base-9 oui-font-semibold oui-p-3",
8659
+ content: "oui-pt-3"
8660
+ }
8661
+ }
8662
+ ),
8336
8663
  /* @__PURE__ */ jsx(
8337
8664
  Card,
8338
8665
  {
@@ -8365,10 +8692,11 @@ var EmptyBlockIcon = (props) => /* @__PURE__ */ jsx(
8365
8692
  width: "50",
8366
8693
  height: "80",
8367
8694
  viewBox: "0 0 50 80",
8368
- fill: "none",
8695
+ fill: "currentColor",
8696
+ className: "oui-fill-base-7",
8369
8697
  xmlns: "http://www.w3.org/2000/svg",
8370
8698
  ...props,
8371
- children: /* @__PURE__ */ jsx("rect", { width: "50", height: "80", rx: "2", fill: "#181C23" })
8699
+ children: /* @__PURE__ */ jsx("rect", { width: "50", height: "80", rx: "2" })
8372
8700
  }
8373
8701
  );
8374
8702
  var OrderEntryStripIcon = (props) => /* @__PURE__ */ jsxs(
@@ -8381,10 +8709,40 @@ var OrderEntryStripIcon = (props) => /* @__PURE__ */ jsxs(
8381
8709
  xmlns: "http://www.w3.org/2000/svg",
8382
8710
  ...props,
8383
8711
  children: [
8384
- /* @__PURE__ */ jsx("rect", { width: "50", height: "80", rx: "2", fill: "#181C23" }),
8385
- /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "21", height: "11", rx: "2", fill: "#008676" }),
8386
- /* @__PURE__ */ jsx("rect", { x: "26", y: "3", width: "21", height: "11", rx: "2", fill: "#D92D6B" }),
8387
- /* @__PURE__ */ jsx("rect", { x: "3", y: "69", width: "44", height: "8", rx: "2", fill: "#008676" })
8712
+ /* @__PURE__ */ jsx("rect", { width: "50", height: "80", rx: "2", fill: "rgb(var(--oui-color-base-7))" }),
8713
+ /* @__PURE__ */ jsx(
8714
+ "rect",
8715
+ {
8716
+ x: "3",
8717
+ y: "3",
8718
+ width: "21",
8719
+ height: "11",
8720
+ rx: "2",
8721
+ fill: "rgb(var(--oui-color-success-darken))"
8722
+ }
8723
+ ),
8724
+ /* @__PURE__ */ jsx(
8725
+ "rect",
8726
+ {
8727
+ x: "26",
8728
+ y: "3",
8729
+ width: "21",
8730
+ height: "11",
8731
+ rx: "2",
8732
+ fill: "rgb(var(--oui-color-danger-darken))"
8733
+ }
8734
+ ),
8735
+ /* @__PURE__ */ jsx(
8736
+ "rect",
8737
+ {
8738
+ x: "3",
8739
+ y: "69",
8740
+ width: "44",
8741
+ height: "8",
8742
+ rx: "2",
8743
+ fill: "rgb(var(--oui-color-success-darken))"
8744
+ }
8745
+ )
8388
8746
  ]
8389
8747
  }
8390
8748
  );
@@ -8651,7 +9009,7 @@ init_assets_ui_desktop();
8651
9009
  // src/pages/assets/assetsPage/assets.ui.mobile.tsx
8652
9010
  init_assets_ui_desktop();
8653
9011
  var AccountTag = ({ name }) => {
8654
- return /* @__PURE__ */ jsx("div", { className: "oui-mt-2 oui-flex oui-h-[18px] oui-w-fit oui-items-center oui-rounded oui-bg-white/[0.06] oui-px-2 oui-text-2xs oui-font-semibold oui-text-base-contrast-36", children: name });
9012
+ return /* @__PURE__ */ jsx("div", { className: "oui-mt-2 oui-flex oui-h-[18px] oui-w-fit oui-items-center oui-rounded oui-bg-base-contrast-6 oui-px-2 oui-text-2xs oui-font-semibold oui-text-base-contrast-36", children: name });
8655
9013
  };
8656
9014
  var AssetMobileItem = (props) => {
8657
9015
  const { item } = props;
@@ -8846,7 +9204,7 @@ var AssetMobileItem = (props) => {
8846
9204
  });
8847
9205
  },
8848
9206
  className: cn(
8849
- "oui-flex-1 oui-border-white/[0.36] oui-text-base-contrast-54"
9207
+ "oui-flex-1 oui-border-base-contrast-36 oui-text-base-contrast-54"
8850
9208
  ),
8851
9209
  children: t("transfer.convert")
8852
9210
  }
@@ -8865,7 +9223,7 @@ var AssetMobileItem = (props) => {
8865
9223
  });
8866
9224
  },
8867
9225
  className: cn(
8868
- "oui-flex-1 oui-border-white/[0.36] oui-text-base-contrast-54"
9226
+ "oui-flex-1 oui-border-base-contrast-36 oui-text-base-contrast-54"
8869
9227
  ),
8870
9228
  children: t("common.transfer")
8871
9229
  }