@vechain/vechain-kit 1.5.0 → 1.5.1
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/{Constants-k3w4-s6C.d.cts → Constants-CUrs_fy0.d.cts} +2 -1
- package/dist/{Constants-k3w4-s6C.d.ts → Constants-CUrs_fy0.d.ts} +2 -1
- package/dist/assets/index.cjs +59 -11
- package/dist/assets/index.d.cts +53 -13
- package/dist/assets/index.d.ts +53 -13
- package/dist/assets/index.js +1 -1
- package/dist/{chunk-RZI2FBKR.js → chunk-DYI6ON4O.js} +333 -21
- package/dist/chunk-DYI6ON4O.js.map +1 -0
- package/dist/{chunk-YKPB3KXP.js → chunk-EUQRNI5E.js} +33 -4
- package/dist/chunk-EUQRNI5E.js.map +1 -0
- package/dist/{chunk-AJYTKYSZ.cjs → chunk-FID67WC3.cjs} +344 -20
- package/dist/chunk-FID67WC3.cjs.map +1 -0
- package/dist/{chunk-CPG25VOQ.cjs → chunk-RUIC653T.cjs} +33 -3
- package/dist/chunk-RUIC653T.cjs.map +1 -0
- package/dist/index.cjs +663 -580
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +277 -194
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.cjs +34 -29
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -1
- package/package.json +1 -1
- package/dist/chunk-AJYTKYSZ.cjs.map +0 -1
- package/dist/chunk-CPG25VOQ.cjs.map +0 -1
- package/dist/chunk-RZI2FBKR.js.map +0 -1
- package/dist/chunk-YKPB3KXP.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IVechainEnergyOracleV1__factory, IB3TR__factory, IVOT3__factory, GalaxyMember__factory, NodeManagement__factory, X2EarnApps__factory, XAllocationVoting__factory, XAllocationVotingGovernor__factory, XAllocationPool__factory, VoterRewards__factory, VeBetterPassport__factory, IERC20__factory, MockENS__factory, SubdomainClaimer__factory, IReverseRegistrar__factory, ERC20__factory, SimpleAccountFactory__factory, SimpleAccount__factory, Emissions__factory, X2EarnRewardsPool__factory } from './chunk-FOSPSOWT.js';
|
|
2
|
-
import { getConfig, humanNumber, NodeStrengthLevelToImage, allNodeStrengthLevelToName, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, humanAddress, getPicassoImage, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, TOKEN_LOGOS, humanDomain, uploadBlobToIPFS, randomTransactionUser } from './chunk-
|
|
3
|
-
export { getConfig } from './chunk-
|
|
4
|
-
import { SimpleAccountFactoryABI,
|
|
2
|
+
import { getConfig, humanNumber, NodeStrengthLevelToImage, allNodeStrengthLevelToName, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, humanAddress, getPicassoImage, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, TOKEN_LOGO_COMPONENTS, TOKEN_LOGOS, humanDomain, uploadBlobToIPFS, randomTransactionUser } from './chunk-EUQRNI5E.js';
|
|
3
|
+
export { getConfig } from './chunk-EUQRNI5E.js';
|
|
4
|
+
import { SimpleAccountFactoryABI, VechainLogo, VechainLogoLight, VechainLogoDark, PrivyLogo, SimpleAccountABI } from './chunk-DYI6ON4O.js';
|
|
5
5
|
import './chunk-PZ5AY32C.js';
|
|
6
|
-
import
|
|
6
|
+
import React10, { createContext, useState, useEffect, useMemo, useCallback, useRef, useContext } from 'react';
|
|
7
7
|
import { useLoginWithOAuth, usePrivy, useLoginWithEmail, useMfaEnrollment, useLoginWithPasskey as useLoginWithPasskey$1, PrivyProvider } from '@privy-io/react-auth';
|
|
8
8
|
export { useMfaEnrollment, usePrivy } from '@privy-io/react-auth';
|
|
9
9
|
import { useConnex, useWallet as useWallet$1, useWalletModal, useVechainDomain as useVechainDomain$1, DAppKitProvider } from '@vechain/dapp-kit-react';
|
|
@@ -1804,7 +1804,7 @@ function getOrCreateQueryClient() {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
var EnsureQueryClient = ({ children }) => {
|
|
1806
1806
|
try {
|
|
1807
|
-
const existingQueryClient =
|
|
1807
|
+
const existingQueryClient = React10.useContext(QueryClientContext);
|
|
1808
1808
|
if (existingQueryClient) {
|
|
1809
1809
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1810
1810
|
}
|
|
@@ -4966,7 +4966,7 @@ var AddressDisplay = ({
|
|
|
4966
4966
|
// package.json
|
|
4967
4967
|
var package_default = {
|
|
4968
4968
|
name: "@vechain/vechain-kit",
|
|
4969
|
-
version: "1.5.
|
|
4969
|
+
version: "1.5.1",
|
|
4970
4970
|
private: false,
|
|
4971
4971
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
4972
4972
|
repository: "github:vechain/vechain-kit",
|
|
@@ -5093,16 +5093,26 @@ var VersionFooter = ({ ...props }) => {
|
|
|
5093
5093
|
spacing: 0,
|
|
5094
5094
|
...props,
|
|
5095
5095
|
children: [
|
|
5096
|
-
/* @__PURE__ */ jsx(
|
|
5096
|
+
/* @__PURE__ */ jsx(
|
|
5097
|
+
VechainLogo,
|
|
5098
|
+
{
|
|
5099
|
+
isDark,
|
|
5100
|
+
w: "70px",
|
|
5101
|
+
h: "auto",
|
|
5102
|
+
opacity: 0.4,
|
|
5103
|
+
mr: 1
|
|
5104
|
+
}
|
|
5105
|
+
),
|
|
5097
5106
|
/* @__PURE__ */ jsxs(
|
|
5098
5107
|
Link,
|
|
5099
5108
|
{
|
|
5100
5109
|
fontSize: "11px",
|
|
5101
|
-
fontWeight: "
|
|
5110
|
+
fontWeight: "500",
|
|
5102
5111
|
opacity: 0.4,
|
|
5103
5112
|
textAlign: "left",
|
|
5104
5113
|
href: `https://github.com/vechain/vechain-kit/releases/tag/${package_default.version}`,
|
|
5105
5114
|
isExternal: true,
|
|
5115
|
+
pt: "1px",
|
|
5106
5116
|
children: [
|
|
5107
5117
|
"v",
|
|
5108
5118
|
package_default.version
|
|
@@ -5138,7 +5148,7 @@ var StickyHeaderContainer = ({ children }) => {
|
|
|
5138
5148
|
left: "0",
|
|
5139
5149
|
w: "full",
|
|
5140
5150
|
borderRadius: "24px 24px 0px 0px",
|
|
5141
|
-
bg: isDark ? "
|
|
5151
|
+
bg: isDark ? "rgb(24 24 27 / 90%)" : "rgba(255, 255, 255, 0.8)",
|
|
5142
5152
|
backdropFilter: "blur(12px)",
|
|
5143
5153
|
style: { WebkitBackdropFilter: "blur(12px)" },
|
|
5144
5154
|
zIndex: 1e3,
|
|
@@ -5165,7 +5175,7 @@ var StickyFooterContainer = ({ children }) => {
|
|
|
5165
5175
|
bottom: "0",
|
|
5166
5176
|
left: "0",
|
|
5167
5177
|
right: "0",
|
|
5168
|
-
bg: isDark ? "#
|
|
5178
|
+
bg: isDark ? "#18181b" : "white",
|
|
5169
5179
|
zIndex: "1000",
|
|
5170
5180
|
p: 4,
|
|
5171
5181
|
boxShadow: "0px -1px 6px -3px rgb(0 0 0 / 56%)",
|
|
@@ -5241,56 +5251,69 @@ var AssetButton = ({
|
|
|
5241
5251
|
isDisabled,
|
|
5242
5252
|
onClick,
|
|
5243
5253
|
...buttonProps
|
|
5244
|
-
}) =>
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
{
|
|
5264
|
-
src: TOKEN_LOGOS[symbol],
|
|
5265
|
-
alt: `${symbol} logo`,
|
|
5254
|
+
}) => {
|
|
5255
|
+
const { darkMode: isDark } = useVeChainKitConfig();
|
|
5256
|
+
return /* @__PURE__ */ jsxs(
|
|
5257
|
+
Button,
|
|
5258
|
+
{
|
|
5259
|
+
height: "72px",
|
|
5260
|
+
variant: "ghost",
|
|
5261
|
+
justifyContent: "space-between",
|
|
5262
|
+
isDisabled,
|
|
5263
|
+
p: 4,
|
|
5264
|
+
w: "100%",
|
|
5265
|
+
_disabled: {
|
|
5266
|
+
cursor: "not-allowed",
|
|
5267
|
+
opacity: 0.5
|
|
5268
|
+
},
|
|
5269
|
+
onClick,
|
|
5270
|
+
...buttonProps,
|
|
5271
|
+
children: [
|
|
5272
|
+
/* @__PURE__ */ jsxs(HStack, { children: [
|
|
5273
|
+
TOKEN_LOGO_COMPONENTS[symbol] ? React10.cloneElement(TOKEN_LOGO_COMPONENTS[symbol], {
|
|
5266
5274
|
boxSize: "24px",
|
|
5267
|
-
borderRadius: "full"
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5275
|
+
borderRadius: "full"
|
|
5276
|
+
}) : /* @__PURE__ */ jsx(
|
|
5277
|
+
Image,
|
|
5278
|
+
{
|
|
5279
|
+
src: TOKEN_LOGOS[symbol],
|
|
5280
|
+
alt: `${symbol} logo`,
|
|
5281
|
+
boxSize: "24px",
|
|
5282
|
+
borderRadius: "full",
|
|
5283
|
+
fallback: /* @__PURE__ */ jsx(
|
|
5284
|
+
Box,
|
|
5285
|
+
{
|
|
5286
|
+
boxSize: "24px",
|
|
5287
|
+
borderRadius: "full",
|
|
5288
|
+
bg: "whiteAlpha.200",
|
|
5289
|
+
display: "flex",
|
|
5290
|
+
alignItems: "center",
|
|
5291
|
+
justifyContent: "center",
|
|
5292
|
+
children: /* @__PURE__ */ jsx(Text, { fontSize: "10px", fontWeight: "bold", children: symbol.slice(0, 3) })
|
|
5293
|
+
}
|
|
5294
|
+
)
|
|
5295
|
+
}
|
|
5296
|
+
),
|
|
5297
|
+
/* @__PURE__ */ jsx(Text, { children: symbol })
|
|
5288
5298
|
] }),
|
|
5289
|
-
/* @__PURE__ */
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
)
|
|
5299
|
+
/* @__PURE__ */ jsxs(VStack, { align: "flex-end", spacing: 0, children: [
|
|
5300
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
5301
|
+
"$",
|
|
5302
|
+
compactFormatter.format(usdValue)
|
|
5303
|
+
] }),
|
|
5304
|
+
/* @__PURE__ */ jsx(
|
|
5305
|
+
Text,
|
|
5306
|
+
{
|
|
5307
|
+
fontSize: "sm",
|
|
5308
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
5309
|
+
children: compactFormatter.format(amount)
|
|
5310
|
+
}
|
|
5311
|
+
)
|
|
5312
|
+
] })
|
|
5313
|
+
]
|
|
5314
|
+
}
|
|
5315
|
+
);
|
|
5316
|
+
};
|
|
5294
5317
|
var compactFormatter2 = new Intl.NumberFormat("en-US", {
|
|
5295
5318
|
notation: "compact",
|
|
5296
5319
|
compactDisplay: "short",
|
|
@@ -5320,7 +5343,7 @@ var AddressDisplayCard = ({
|
|
|
5320
5343
|
w: "full",
|
|
5321
5344
|
p: 2,
|
|
5322
5345
|
borderRadius: "lg",
|
|
5323
|
-
bg: isDark ? "#
|
|
5346
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
5324
5347
|
wordBreak: "break-word",
|
|
5325
5348
|
children: [
|
|
5326
5349
|
/* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", mb: 2, children: label }),
|
|
@@ -5446,7 +5469,7 @@ var TransactionButtonAndStatus = ({
|
|
|
5446
5469
|
{
|
|
5447
5470
|
isExternal: true,
|
|
5448
5471
|
fontSize: "sm",
|
|
5449
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
5472
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
5450
5473
|
textAlign: "center",
|
|
5451
5474
|
width: "full",
|
|
5452
5475
|
href: `${getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
|
|
@@ -5516,7 +5539,7 @@ var EmailCodeVerificationModal = ({
|
|
|
5516
5539
|
otp: true,
|
|
5517
5540
|
size: "lg",
|
|
5518
5541
|
isInvalid: !!error,
|
|
5519
|
-
errorBorderColor: "
|
|
5542
|
+
errorBorderColor: "#ef4444",
|
|
5520
5543
|
children: [
|
|
5521
5544
|
/* @__PURE__ */ jsx(
|
|
5522
5545
|
PinInputField,
|
|
@@ -5611,7 +5634,7 @@ var EmailCodeVerificationModal = ({
|
|
|
5611
5634
|
]
|
|
5612
5635
|
}
|
|
5613
5636
|
) }),
|
|
5614
|
-
error && /* @__PURE__ */ jsx(Text, { color: "
|
|
5637
|
+
error && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "xs", children: error })
|
|
5615
5638
|
] }) }),
|
|
5616
5639
|
/* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsxs(
|
|
5617
5640
|
Text,
|
|
@@ -6293,7 +6316,7 @@ var ActionButton = ({
|
|
|
6293
6316
|
}) => {
|
|
6294
6317
|
const { t } = useTranslation();
|
|
6295
6318
|
const { colorMode } = useColorMode();
|
|
6296
|
-
const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "
|
|
6319
|
+
const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "#ffffff05" : "#00000005";
|
|
6297
6320
|
return /* @__PURE__ */ jsx(
|
|
6298
6321
|
Button,
|
|
6299
6322
|
{
|
|
@@ -6307,7 +6330,9 @@ var ActionButton = ({
|
|
|
6307
6330
|
isLoading,
|
|
6308
6331
|
loadingText,
|
|
6309
6332
|
bgColor: baseBackgroundColor,
|
|
6310
|
-
_hover
|
|
6333
|
+
_hover: _hover ?? {
|
|
6334
|
+
backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
|
|
6335
|
+
},
|
|
6311
6336
|
...style,
|
|
6312
6337
|
children: /* @__PURE__ */ jsxs(HStack, { w: "full", justify: "space-between", children: [
|
|
6313
6338
|
/* @__PURE__ */ jsx(Box, { minW: "40px", children: leftImage ? /* @__PURE__ */ jsx(
|
|
@@ -6457,7 +6482,14 @@ var AssetIcons = ({
|
|
|
6457
6482
|
border: "2px solid #00000024",
|
|
6458
6483
|
alignItems: "center",
|
|
6459
6484
|
justifyContent: "center",
|
|
6460
|
-
children:
|
|
6485
|
+
children: TOKEN_LOGO_COMPONENTS[token.symbol] ? React10.cloneElement(
|
|
6486
|
+
TOKEN_LOGO_COMPONENTS[token.symbol],
|
|
6487
|
+
{
|
|
6488
|
+
width: `${iconSize * 0.8}px`,
|
|
6489
|
+
height: `${iconSize * 0.8}px`,
|
|
6490
|
+
rounded: "full"
|
|
6491
|
+
}
|
|
6492
|
+
) : TOKEN_LOGOS[token.symbol] ? /* @__PURE__ */ jsx(
|
|
6461
6493
|
Image,
|
|
6462
6494
|
{
|
|
6463
6495
|
src: TOKEN_LOGOS[token.symbol],
|
|
@@ -6596,7 +6628,7 @@ var BalanceSection = ({
|
|
|
6596
6628
|
onClick: onAssetsClick,
|
|
6597
6629
|
maxIcons: 10,
|
|
6598
6630
|
iconSize: 26,
|
|
6599
|
-
iconsGap:
|
|
6631
|
+
iconsGap: 3,
|
|
6600
6632
|
address: account?.address ?? "",
|
|
6601
6633
|
showNoAssetsWarning: true,
|
|
6602
6634
|
rightIcon: /* @__PURE__ */ jsx(
|
|
@@ -6611,12 +6643,12 @@ var BalanceSection = ({
|
|
|
6611
6643
|
style: {
|
|
6612
6644
|
width: "100%",
|
|
6613
6645
|
mt: 2,
|
|
6614
|
-
backgroundColor: isDark ? "
|
|
6646
|
+
backgroundColor: isDark ? "#ffffff05" : "blackAlpha.50",
|
|
6615
6647
|
borderRadius: "xl",
|
|
6616
6648
|
p: 3,
|
|
6617
6649
|
cursor: "pointer",
|
|
6618
6650
|
_hover: {
|
|
6619
|
-
backgroundColor: isDark ? "
|
|
6651
|
+
backgroundColor: isDark ? "#ffffff0d" : "blackAlpha.200"
|
|
6620
6652
|
},
|
|
6621
6653
|
justifyContent: "space-between"
|
|
6622
6654
|
}
|
|
@@ -7428,7 +7460,7 @@ var CrossAppConnectionCard = ({ connectionCache }) => {
|
|
|
7428
7460
|
VStack,
|
|
7429
7461
|
{
|
|
7430
7462
|
p: 4,
|
|
7431
|
-
bg: isDark ? "#
|
|
7463
|
+
bg: isDark ? "#00000038" : "#f5f5f5",
|
|
7432
7464
|
borderRadius: "xl",
|
|
7433
7465
|
spacing: 4,
|
|
7434
7466
|
w: "full",
|
|
@@ -7490,7 +7522,7 @@ var DappKitConnectionCard = () => {
|
|
|
7490
7522
|
VStack,
|
|
7491
7523
|
{
|
|
7492
7524
|
p: 4,
|
|
7493
|
-
bg: isDark ? "#
|
|
7525
|
+
bg: isDark ? "#00000038" : "#f5f5f5",
|
|
7494
7526
|
borderRadius: "xl",
|
|
7495
7527
|
spacing: 4,
|
|
7496
7528
|
w: "full",
|
|
@@ -7532,7 +7564,7 @@ var PrivyConnectionCard = () => {
|
|
|
7532
7564
|
VStack,
|
|
7533
7565
|
{
|
|
7534
7566
|
p: 4,
|
|
7535
|
-
bg: isDark ? "#
|
|
7567
|
+
bg: isDark ? "#00000038" : "#f5f5f5",
|
|
7536
7568
|
borderRadius: "xl",
|
|
7537
7569
|
spacing: 4,
|
|
7538
7570
|
w: "full",
|
|
@@ -7585,8 +7617,16 @@ var WalletSecuredBy = () => {
|
|
|
7585
7617
|
/* @__PURE__ */ jsx(Text, { fontSize: "xs", fontWeight: "800", children: t("Wallet secured by") }),
|
|
7586
7618
|
/* @__PURE__ */ jsxs(HStack, { justify: "center", children: [
|
|
7587
7619
|
/* @__PURE__ */ jsx(PrivyLogo, { isDark, w: "50px" }),
|
|
7588
|
-
/* @__PURE__ */ jsx(Icon, { as: PiLineVertical, ml:
|
|
7589
|
-
connection.isConnectedWithVeChain ? /* @__PURE__ */ jsx(
|
|
7620
|
+
/* @__PURE__ */ jsx(Icon, { as: PiLineVertical, ml: 3 }),
|
|
7621
|
+
connection.isConnectedWithVeChain ? /* @__PURE__ */ jsx(
|
|
7622
|
+
VechainLogo,
|
|
7623
|
+
{
|
|
7624
|
+
isDark,
|
|
7625
|
+
w: "80px",
|
|
7626
|
+
h: "auto",
|
|
7627
|
+
mb: "3px"
|
|
7628
|
+
}
|
|
7629
|
+
) : connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsx(
|
|
7590
7630
|
Image,
|
|
7591
7631
|
{
|
|
7592
7632
|
src: connectionCache.ecosystemApp.logoUrl,
|
|
@@ -7682,7 +7722,7 @@ var EmbeddedWalletContent = ({ setCurrentContent }) => {
|
|
|
7682
7722
|
{
|
|
7683
7723
|
href: "https://www.veworld.net/",
|
|
7684
7724
|
isExternal: true,
|
|
7685
|
-
color: "
|
|
7725
|
+
color: "blackAlpha.600",
|
|
7686
7726
|
fontSize: "14px",
|
|
7687
7727
|
textDecoration: "underline",
|
|
7688
7728
|
children: [
|
|
@@ -7702,7 +7742,7 @@ var EmbeddedWalletContent = ({ setCurrentContent }) => {
|
|
|
7702
7742
|
{
|
|
7703
7743
|
href: "https://docs.vechainkit.vechain.org/vechain-kit/embedded-wallets",
|
|
7704
7744
|
isExternal: true,
|
|
7705
|
-
color: "
|
|
7745
|
+
color: "blackAlpha.600",
|
|
7706
7746
|
fontSize: "14px",
|
|
7707
7747
|
textDecoration: "underline",
|
|
7708
7748
|
children: t("here")
|
|
@@ -7756,7 +7796,7 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
|
|
|
7756
7796
|
Input,
|
|
7757
7797
|
{
|
|
7758
7798
|
placeholder: "Search token",
|
|
7759
|
-
bg: isDark ? "#
|
|
7799
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
7760
7800
|
borderRadius: "xl",
|
|
7761
7801
|
height: "56px",
|
|
7762
7802
|
pl: 12,
|
|
@@ -7786,7 +7826,7 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
|
|
|
7786
7826
|
{
|
|
7787
7827
|
spacing: 2,
|
|
7788
7828
|
py: 8,
|
|
7789
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
7829
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
7790
7830
|
children: [
|
|
7791
7831
|
/* @__PURE__ */ jsx(Icon, { as: FiSlash, boxSize: 12, opacity: 0.5 }),
|
|
7792
7832
|
/* @__PURE__ */ jsx(Text, { fontSize: "lg", children: t("No tokens found") }),
|
|
@@ -7923,7 +7963,7 @@ var SendTokenContent = ({
|
|
|
7923
7963
|
{
|
|
7924
7964
|
p: 6,
|
|
7925
7965
|
borderRadius: "xl",
|
|
7926
|
-
bg: isDark ? "#
|
|
7966
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
7927
7967
|
children: /* @__PURE__ */ jsxs(VStack, { align: "stretch", spacing: 2, children: [
|
|
7928
7968
|
/* @__PURE__ */ jsxs(FormControl, { isInvalid: !!errors.amount, children: [
|
|
7929
7969
|
/* @__PURE__ */ jsxs(HStack, { justify: "space-between", children: [
|
|
@@ -7972,7 +8012,13 @@ var SendTokenContent = ({
|
|
|
7972
8012
|
bg: isDark ? "whiteAlpha.300" : "blackAlpha.300"
|
|
7973
8013
|
},
|
|
7974
8014
|
onClick: () => setIsSelectingToken(true),
|
|
7975
|
-
leftIcon:
|
|
8015
|
+
leftIcon: TOKEN_LOGO_COMPONENTS[selectedToken.symbol] ? React10.cloneElement(
|
|
8016
|
+
TOKEN_LOGO_COMPONENTS[selectedToken.symbol],
|
|
8017
|
+
{
|
|
8018
|
+
boxSize: "20px",
|
|
8019
|
+
borderRadius: "full"
|
|
8020
|
+
}
|
|
8021
|
+
) : /* @__PURE__ */ jsx(
|
|
7976
8022
|
Image,
|
|
7977
8023
|
{
|
|
7978
8024
|
src: TOKEN_LOGOS[selectedToken.symbol],
|
|
@@ -8023,7 +8069,7 @@ var SendTokenContent = ({
|
|
|
8023
8069
|
}
|
|
8024
8070
|
)
|
|
8025
8071
|
] }),
|
|
8026
|
-
errors.amount && /* @__PURE__ */ jsx(Text, { color: "
|
|
8072
|
+
errors.amount && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: errors.amount.message })
|
|
8027
8073
|
] }),
|
|
8028
8074
|
selectedToken && /* @__PURE__ */ jsxs(
|
|
8029
8075
|
HStack,
|
|
@@ -8066,7 +8112,7 @@ var SendTokenContent = ({
|
|
|
8066
8112
|
marginTop: "-20px",
|
|
8067
8113
|
marginBottom: "-20px",
|
|
8068
8114
|
marginX: "auto",
|
|
8069
|
-
bg: isDark ? "#
|
|
8115
|
+
bg: isDark ? "#151515" : "gray.100",
|
|
8070
8116
|
borderRadius: "xl",
|
|
8071
8117
|
w: "40px",
|
|
8072
8118
|
h: "40px",
|
|
@@ -8082,34 +8128,41 @@ var SendTokenContent = ({
|
|
|
8082
8128
|
)
|
|
8083
8129
|
}
|
|
8084
8130
|
),
|
|
8085
|
-
/* @__PURE__ */ jsx(
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8131
|
+
/* @__PURE__ */ jsx(
|
|
8132
|
+
Box,
|
|
8133
|
+
{
|
|
8134
|
+
borderRadius: "xl",
|
|
8135
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
8136
|
+
children: /* @__PURE__ */ jsx(VStack, { align: "stretch", spacing: 2, p: 6, width: "100%", children: /* @__PURE__ */ jsxs(FormControl, { isInvalid: !!errors.toAddressOrDomain, children: [
|
|
8137
|
+
/* @__PURE__ */ jsx(
|
|
8138
|
+
Input,
|
|
8139
|
+
{
|
|
8140
|
+
...register("toAddressOrDomain", {
|
|
8141
|
+
required: t("Address is required")
|
|
8142
|
+
}),
|
|
8143
|
+
onChange: (e) => {
|
|
8144
|
+
const trimmed = e.target.value.trim();
|
|
8145
|
+
e.target.value = trimmed;
|
|
8146
|
+
setValue("toAddressOrDomain", trimmed, {
|
|
8147
|
+
shouldValidate: true
|
|
8148
|
+
});
|
|
8149
|
+
},
|
|
8150
|
+
placeholder: t(
|
|
8151
|
+
"Type the receiver address or domain"
|
|
8152
|
+
),
|
|
8153
|
+
_placeholder: {
|
|
8154
|
+
fontSize: "md",
|
|
8155
|
+
fontWeight: "normal"
|
|
8156
|
+
},
|
|
8157
|
+
fontSize: "lg",
|
|
8158
|
+
fontWeight: "bold",
|
|
8159
|
+
variant: "unstyled"
|
|
8160
|
+
}
|
|
8101
8161
|
),
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
fontSize: "lg",
|
|
8107
|
-
fontWeight: "bold",
|
|
8108
|
-
variant: "unstyled"
|
|
8109
|
-
}
|
|
8110
|
-
),
|
|
8111
|
-
errors.toAddressOrDomain && /* @__PURE__ */ jsx(Text, { color: "red.500", fontSize: "sm", children: errors.toAddressOrDomain.message })
|
|
8112
|
-
] }) }) })
|
|
8162
|
+
errors.toAddressOrDomain && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: errors.toAddressOrDomain.message })
|
|
8163
|
+
] }) })
|
|
8164
|
+
}
|
|
8165
|
+
)
|
|
8113
8166
|
] }) }),
|
|
8114
8167
|
/* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx(
|
|
8115
8168
|
Button,
|
|
@@ -8549,7 +8602,7 @@ var ExistingDomainsList = ({
|
|
|
8549
8602
|
Text,
|
|
8550
8603
|
{
|
|
8551
8604
|
fontSize: "sm",
|
|
8552
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
8605
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
8553
8606
|
children: t(
|
|
8554
8607
|
"Current domain"
|
|
8555
8608
|
)
|
|
@@ -8562,8 +8615,8 @@ var ExistingDomainsList = ({
|
|
|
8562
8615
|
Tag,
|
|
8563
8616
|
{
|
|
8564
8617
|
size: "sm",
|
|
8565
|
-
bg: isDark ? "
|
|
8566
|
-
color: isDark ? "whiteAlpha.
|
|
8618
|
+
bg: isDark ? "#ffffff05" : "whiteAlpha.100",
|
|
8619
|
+
color: isDark ? "whiteAlpha.900" : "blackAlpha.600",
|
|
8567
8620
|
px: 3,
|
|
8568
8621
|
py: 1,
|
|
8569
8622
|
borderRadius: "full",
|
|
@@ -8700,7 +8753,7 @@ var ChooseNameSearchContent = ({
|
|
|
8700
8753
|
paddingRight: "120px",
|
|
8701
8754
|
fontSize: "lg",
|
|
8702
8755
|
height: "60px",
|
|
8703
|
-
bg: isDark ? "#
|
|
8756
|
+
bg: isDark ? "#00000038" : "white",
|
|
8704
8757
|
border: `1px solid ${isDark ? "#ffffff29" : "#ebebeb"}`,
|
|
8705
8758
|
_hover: {
|
|
8706
8759
|
border: `1px solid ${isDark ? "#ffffff40" : "#e0e0e0"}`
|
|
@@ -8723,19 +8776,19 @@ var ChooseNameSearchContent = ({
|
|
|
8723
8776
|
{
|
|
8724
8777
|
mr: 4,
|
|
8725
8778
|
fontSize: "sm",
|
|
8726
|
-
color: isDark ? "whiteAlpha.800" : "
|
|
8779
|
+
color: isDark ? "whiteAlpha.800" : "blackAlpha.600",
|
|
8727
8780
|
children: ".veworld.vet"
|
|
8728
8781
|
}
|
|
8729
8782
|
)
|
|
8730
8783
|
}
|
|
8731
8784
|
)
|
|
8732
8785
|
] }),
|
|
8733
|
-
error && hasInteracted && /* @__PURE__ */ jsx(Text, { color: "
|
|
8786
|
+
error && hasInteracted && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: error }),
|
|
8734
8787
|
!error && hasInteracted && name.length >= 3 && /* @__PURE__ */ jsx(
|
|
8735
8788
|
Text,
|
|
8736
8789
|
{
|
|
8737
8790
|
fontSize: "sm",
|
|
8738
|
-
color: isAvailable ? "green.500" : "
|
|
8791
|
+
color: isAvailable ? "green.500" : "#ef4444",
|
|
8739
8792
|
fontWeight: "500",
|
|
8740
8793
|
children: isOwnDomain ? t("YOU OWN THIS") : isAvailable ? t("AVAILABLE") : t("UNAVAILABLE")
|
|
8741
8794
|
}
|
|
@@ -8949,7 +9002,7 @@ var FAQAccordion = () => {
|
|
|
8949
9002
|
Input,
|
|
8950
9003
|
{
|
|
8951
9004
|
placeholder: t("Search FAQ"),
|
|
8952
|
-
bg: isDark ? "#
|
|
9005
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
8953
9006
|
borderRadius: "xl",
|
|
8954
9007
|
height: "56px",
|
|
8955
9008
|
pl: 12,
|
|
@@ -8957,14 +9010,19 @@ var FAQAccordion = () => {
|
|
|
8957
9010
|
onChange: (e) => setSearchQuery(e.target.value)
|
|
8958
9011
|
}
|
|
8959
9012
|
),
|
|
8960
|
-
/* @__PURE__ */ jsx(InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsx(
|
|
9013
|
+
/* @__PURE__ */ jsx(InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsx(
|
|
9014
|
+
CiSearch,
|
|
9015
|
+
{
|
|
9016
|
+
color: isDark ? "whiteAlpha.400" : "blackAlpha.600"
|
|
9017
|
+
}
|
|
9018
|
+
) })
|
|
8961
9019
|
] }),
|
|
8962
9020
|
filteredFaqItems.length === 0 ? /* @__PURE__ */ jsxs(
|
|
8963
9021
|
VStack,
|
|
8964
9022
|
{
|
|
8965
9023
|
spacing: 2,
|
|
8966
9024
|
py: 8,
|
|
8967
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
9025
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
8968
9026
|
children: [
|
|
8969
9027
|
/* @__PURE__ */ jsx(Icon, { as: FiSlash, boxSize: 12, opacity: 0.5 }),
|
|
8970
9028
|
/* @__PURE__ */ jsx(Text, { fontSize: "lg", children: t("No questions found") }),
|
|
@@ -8975,10 +9033,10 @@ var FAQAccordion = () => {
|
|
|
8975
9033
|
/* @__PURE__ */ jsxs(
|
|
8976
9034
|
AccordionButton,
|
|
8977
9035
|
{
|
|
8978
|
-
bg: isDark ? "whiteAlpha.50" : "
|
|
9036
|
+
bg: isDark ? "whiteAlpha.50" : "blackAlpha.50",
|
|
8979
9037
|
borderRadius: "xl",
|
|
8980
9038
|
_hover: {
|
|
8981
|
-
bg: isDark ? "whiteAlpha.100" : "
|
|
9039
|
+
bg: isDark ? "whiteAlpha.100" : "blackAlpha.100"
|
|
8982
9040
|
},
|
|
8983
9041
|
children: [
|
|
8984
9042
|
/* @__PURE__ */ jsx(Box, { flex: "1", textAlign: "left", py: 2, children: /* @__PURE__ */ jsx(Text, { fontWeight: "500", children: item.question }) }),
|
|
@@ -9294,6 +9352,7 @@ var en_default = {
|
|
|
9294
9352
|
"Save Changes": "Save Changes",
|
|
9295
9353
|
"Saving changes...": "Saving changes...",
|
|
9296
9354
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!",
|
|
9355
|
+
"Search Apps": "Search Apps",
|
|
9297
9356
|
"Search FAQ": "Search FAQ",
|
|
9298
9357
|
"Search dApps": "Search dApps",
|
|
9299
9358
|
"Search for a domain": "Search for a domain",
|
|
@@ -9772,6 +9831,7 @@ var de_default = {
|
|
|
9772
9831
|
"Save Changes": "\xC4nderungen speichern",
|
|
9773
9832
|
"Saving changes...": "\xC4nderungen werden gespeichert...",
|
|
9774
9833
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Verabschieden Sie sich von 0x-Adressen, beanspruchen Sie Ihre .veworld.vet-Subdomain jetzt kostenlos!",
|
|
9834
|
+
"Search Apps": "Apps durchsuchen",
|
|
9775
9835
|
"Search FAQ": "FAQ durchsuchen",
|
|
9776
9836
|
"Search dApps": "dApps durchsuchen",
|
|
9777
9837
|
"Search for a domain": "Nach einer Domain suchen",
|
|
@@ -10250,6 +10310,7 @@ var it_default = {
|
|
|
10250
10310
|
"Save Changes": "Salva modifiche",
|
|
10251
10311
|
"Saving changes...": "Salvataggio delle modifiche...",
|
|
10252
10312
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "D\xEC addio agli indirizzi 0x, richiedi il tuo sottodominio .veworld.vet ora gratuitamente!",
|
|
10313
|
+
"Search Apps": "Cerca App",
|
|
10253
10314
|
"Search FAQ": "Cerca FAQ",
|
|
10254
10315
|
"Search dApps": "Cerca dApp",
|
|
10255
10316
|
"Search for a domain": "Cerca un dominio",
|
|
@@ -10728,6 +10789,7 @@ var fr_default = {
|
|
|
10728
10789
|
"Save Changes": "Enregistrer les modifications",
|
|
10729
10790
|
"Saving changes...": "Enregistrement des modifications...",
|
|
10730
10791
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Dites adieu aux adresses 0x, r\xE9clamez d\xE8s maintenant votre sous-domaine .veworld.vet gratuitement!",
|
|
10792
|
+
"Search Apps": "Rechercher des applications",
|
|
10731
10793
|
"Search FAQ": "Rechercher dans la FAQ",
|
|
10732
10794
|
"Search dApps": "Rechercher des dApps",
|
|
10733
10795
|
"Search for a domain": "Rechercher un domaine",
|
|
@@ -11206,6 +11268,7 @@ var es_default = {
|
|
|
11206
11268
|
"Save Changes": "Guardar cambios",
|
|
11207
11269
|
"Saving changes...": "Guardando cambios...",
|
|
11208
11270
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Desp\xEDdete de las direcciones 0x, \xA1reclama tu subdominio .veworld.vet ahora gratis!",
|
|
11271
|
+
"Search Apps": "Buscar aplicaciones",
|
|
11209
11272
|
"Search FAQ": "Buscar en las preguntas frecuentes",
|
|
11210
11273
|
"Search dApps": "Buscar dApps",
|
|
11211
11274
|
"Search for a domain": "Buscar un dominio",
|
|
@@ -11684,6 +11747,7 @@ var zh_default = {
|
|
|
11684
11747
|
"Save Changes": "\u4FDD\u5B58\u66F4\u6539",
|
|
11685
11748
|
"Saving changes...": "\u6B63\u5728\u4FDD\u5B58\u66F4\u6539...",
|
|
11686
11749
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "\u544A\u522B 0x \u5730\u5740\uFF0C\u7ACB\u5373\u514D\u8D39\u9886\u53D6\u60A8\u7684 .veworld.vet \u5B50\u57DF\u540D\uFF01",
|
|
11750
|
+
"Search Apps": "\u641C\u7D22\u5E94\u7528",
|
|
11687
11751
|
"Search FAQ": "\u641C\u7D22\u5E38\u89C1\u95EE\u9898",
|
|
11688
11752
|
"Search dApps": "\u641C\u7D22 dApps",
|
|
11689
11753
|
"Search for a domain": "\u641C\u7D22\u57DF\u540D",
|
|
@@ -12162,6 +12226,7 @@ var ja_default = {
|
|
|
12162
12226
|
"Save Changes": "\u5909\u66F4\u3092\u4FDD\u5B58",
|
|
12163
12227
|
"Saving changes...": "\u5909\u66F4\u3092\u4FDD\u5B58\u3057\u3066\u3044\u307E\u3059...",
|
|
12164
12228
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "0x\u30A2\u30C9\u30EC\u30B9\u306B\u5225\u308C\u3092\u544A\u3052\u3001\u4ECA\u3059\u3050\u7121\u6599\u3067.veworld.vet\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u3092\u53D6\u5F97\u3057\u307E\u3057\u3087\u3046\uFF01",
|
|
12229
|
+
"Search Apps": "\u30A2\u30D7\u30EA\u3092\u691C\u7D22",
|
|
12165
12230
|
"Search FAQ": "FAQ\u3092\u691C\u7D22",
|
|
12166
12231
|
"Search dApps": "dApps\u3092\u691C\u7D22",
|
|
12167
12232
|
"Search for a domain": "\u30C9\u30E1\u30A4\u30F3\u3092\u691C\u7D22",
|
|
@@ -12412,10 +12477,12 @@ var FAQContent = ({ onGoBack }) => {
|
|
|
12412
12477
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { spacing: 6, align: "stretch", children: [
|
|
12413
12478
|
/* @__PURE__ */ jsxs(VStack, { children: [
|
|
12414
12479
|
/* @__PURE__ */ jsx(HStack, { justify: "center", children: /* @__PURE__ */ jsx(
|
|
12415
|
-
|
|
12480
|
+
VechainLogo,
|
|
12416
12481
|
{
|
|
12417
12482
|
isDark,
|
|
12418
|
-
w: "200px"
|
|
12483
|
+
w: "200px",
|
|
12484
|
+
h: "auto",
|
|
12485
|
+
ml: -6
|
|
12419
12486
|
}
|
|
12420
12487
|
) }),
|
|
12421
12488
|
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.7, textAlign: "center", children: t(
|
|
@@ -12602,7 +12669,7 @@ var CustomizationContent = ({
|
|
|
12602
12669
|
/* @__PURE__ */ jsxs(
|
|
12603
12670
|
Card,
|
|
12604
12671
|
{
|
|
12605
|
-
bg: isDark ? "
|
|
12672
|
+
bg: isDark ? "#1e1e21" : "#00000005",
|
|
12606
12673
|
borderRadius: "xl",
|
|
12607
12674
|
width: "full",
|
|
12608
12675
|
position: "relative",
|
|
@@ -12743,7 +12810,7 @@ var CustomizationContent = ({
|
|
|
12743
12810
|
placeholder: !hasDomain ? t("Set a domain first") : t("Enter your display name")
|
|
12744
12811
|
}
|
|
12745
12812
|
),
|
|
12746
|
-
errors.displayName && /* @__PURE__ */ jsx(Text, { color: "
|
|
12813
|
+
errors.displayName && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", mt: 1, children: errors.displayName.message })
|
|
12747
12814
|
]
|
|
12748
12815
|
}
|
|
12749
12816
|
),
|
|
@@ -12768,7 +12835,7 @@ var CustomizationContent = ({
|
|
|
12768
12835
|
placeholder: t("Eg: DevRel @ ENS Labs")
|
|
12769
12836
|
}
|
|
12770
12837
|
),
|
|
12771
|
-
errors.description && /* @__PURE__ */ jsx(Text, { color: "
|
|
12838
|
+
errors.description && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", mt: 1, children: errors.description.message })
|
|
12772
12839
|
]
|
|
12773
12840
|
}
|
|
12774
12841
|
),
|
|
@@ -12803,7 +12870,7 @@ var CustomizationContent = ({
|
|
|
12803
12870
|
errors.twitter && /* @__PURE__ */ jsx(
|
|
12804
12871
|
Text,
|
|
12805
12872
|
{
|
|
12806
|
-
color: "
|
|
12873
|
+
color: "#ef4444",
|
|
12807
12874
|
fontSize: "sm",
|
|
12808
12875
|
mt: 1,
|
|
12809
12876
|
children: errors.twitter.message
|
|
@@ -12839,7 +12906,7 @@ var CustomizationContent = ({
|
|
|
12839
12906
|
errors.website && /* @__PURE__ */ jsx(
|
|
12840
12907
|
Text,
|
|
12841
12908
|
{
|
|
12842
|
-
color: "
|
|
12909
|
+
color: "#ef4444",
|
|
12843
12910
|
fontSize: "sm",
|
|
12844
12911
|
mt: 1,
|
|
12845
12912
|
children: errors.website.message
|
|
@@ -12875,7 +12942,7 @@ var CustomizationContent = ({
|
|
|
12875
12942
|
errors.email && /* @__PURE__ */ jsx(
|
|
12876
12943
|
Text,
|
|
12877
12944
|
{
|
|
12878
|
-
color: "
|
|
12945
|
+
color: "#ef4444",
|
|
12879
12946
|
fontSize: "sm",
|
|
12880
12947
|
mt: 1,
|
|
12881
12948
|
children: errors.email.message
|
|
@@ -13011,7 +13078,7 @@ var CustomizationSummaryContent = ({
|
|
|
13011
13078
|
Text,
|
|
13012
13079
|
{
|
|
13013
13080
|
fontSize: "sm",
|
|
13014
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
13081
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
13015
13082
|
children: label
|
|
13016
13083
|
}
|
|
13017
13084
|
),
|
|
@@ -13041,7 +13108,7 @@ var CustomizationSummaryContent = ({
|
|
|
13041
13108
|
Text,
|
|
13042
13109
|
{
|
|
13043
13110
|
fontSize: "sm",
|
|
13044
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
13111
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
13045
13112
|
children: t("Profile Image")
|
|
13046
13113
|
}
|
|
13047
13114
|
),
|
|
@@ -13303,7 +13370,7 @@ var AssetsContent = ({ setCurrentContent }) => {
|
|
|
13303
13370
|
Input,
|
|
13304
13371
|
{
|
|
13305
13372
|
placeholder: "Search token",
|
|
13306
|
-
bg: darkMode ? "#
|
|
13373
|
+
bg: darkMode ? "#00000038" : "gray.50",
|
|
13307
13374
|
borderRadius: "xl",
|
|
13308
13375
|
height: "56px",
|
|
13309
13376
|
pl: 12,
|
|
@@ -13416,7 +13483,7 @@ var ManageCustomTokenContent = ({
|
|
|
13416
13483
|
fontWeight: "medium"
|
|
13417
13484
|
}
|
|
13418
13485
|
),
|
|
13419
|
-
errors.newTokenAddress && /* @__PURE__ */ jsx(Text, { color: "
|
|
13486
|
+
errors.newTokenAddress && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: errors.newTokenAddress.message })
|
|
13420
13487
|
] }) })
|
|
13421
13488
|
}
|
|
13422
13489
|
),
|
|
@@ -13520,7 +13587,7 @@ var BridgeContent = ({ setCurrentContent }) => {
|
|
|
13520
13587
|
/* @__PURE__ */ jsx(
|
|
13521
13588
|
Image,
|
|
13522
13589
|
{
|
|
13523
|
-
src: isDark ? "https://
|
|
13590
|
+
src: isDark ? "https://static.vechain.energy/logo-dark.svg" : "https://static.vechain.energy/logo-light.svg",
|
|
13524
13591
|
alt: "bridge token",
|
|
13525
13592
|
w: "200px",
|
|
13526
13593
|
h: "200px",
|
|
@@ -13567,7 +13634,7 @@ var ConnectionDetailsContent = ({ onGoBack }) => {
|
|
|
13567
13634
|
/* @__PURE__ */ jsxs(ModalBody, { w: "full", children: [
|
|
13568
13635
|
connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsx(CrossAppConnectionCard, { connectionCache }),
|
|
13569
13636
|
connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsx(PrivyConnectionCard, {}),
|
|
13570
|
-
connection.isConnectedWithDappKit && /* @__PURE__ */ jsx(
|
|
13637
|
+
connection.isConnectedWithDappKit && /* @__PURE__ */ jsx(DappKitConnectionCard, {}),
|
|
13571
13638
|
connection.isConnectedWithPrivy && /* @__PURE__ */ jsx(WalletSecuredBy, {})
|
|
13572
13639
|
] }),
|
|
13573
13640
|
/* @__PURE__ */ jsx(ModalFooter, { pt: 0 })
|
|
@@ -14271,6 +14338,7 @@ var NotificationsContent = ({ setCurrentContent }) => {
|
|
|
14271
14338
|
var SharedAppCard = ({
|
|
14272
14339
|
name,
|
|
14273
14340
|
imageUrl,
|
|
14341
|
+
logoComponent,
|
|
14274
14342
|
onClick,
|
|
14275
14343
|
size = "md"
|
|
14276
14344
|
}) => {
|
|
@@ -14281,8 +14349,8 @@ var SharedAppCard = ({
|
|
|
14281
14349
|
_hover: { opacity: 0.8 },
|
|
14282
14350
|
cursor: "pointer",
|
|
14283
14351
|
onClick,
|
|
14284
|
-
children: /* @__PURE__ */ jsx(CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxs(VStack, { spacing:
|
|
14285
|
-
imageUrl && /* @__PURE__ */ jsx(
|
|
14352
|
+
children: /* @__PURE__ */ jsx(CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxs(VStack, { spacing: 2, h: "100%", justifyContent: "space-between", children: [
|
|
14353
|
+
logoComponent ? logoComponent : imageUrl && /* @__PURE__ */ jsx(
|
|
14286
14354
|
Image,
|
|
14287
14355
|
{
|
|
14288
14356
|
src: imageUrl,
|
|
@@ -14318,6 +14386,7 @@ var AppComponent = ({ xApp, setCurrentContent }) => {
|
|
|
14318
14386
|
{
|
|
14319
14387
|
isLoaded: !appMetadataLoading && !isLogoLoading,
|
|
14320
14388
|
borderRadius: "md",
|
|
14389
|
+
height: "100%",
|
|
14321
14390
|
children: /* @__PURE__ */ jsx(
|
|
14322
14391
|
SharedAppCard,
|
|
14323
14392
|
{
|
|
@@ -14346,6 +14415,7 @@ var CustomAppComponent = ({
|
|
|
14346
14415
|
image,
|
|
14347
14416
|
url,
|
|
14348
14417
|
description,
|
|
14418
|
+
logoComponent,
|
|
14349
14419
|
setCurrentContent
|
|
14350
14420
|
}) => {
|
|
14351
14421
|
return /* @__PURE__ */ jsx(
|
|
@@ -14360,9 +14430,11 @@ var CustomAppComponent = ({
|
|
|
14360
14430
|
name,
|
|
14361
14431
|
image,
|
|
14362
14432
|
url,
|
|
14363
|
-
description
|
|
14433
|
+
description,
|
|
14434
|
+
logoComponent
|
|
14364
14435
|
}
|
|
14365
|
-
})
|
|
14436
|
+
}),
|
|
14437
|
+
...logoComponent && { logoComponent }
|
|
14366
14438
|
}
|
|
14367
14439
|
);
|
|
14368
14440
|
};
|
|
@@ -14450,7 +14522,17 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
|
|
|
14450
14522
|
) : [];
|
|
14451
14523
|
const filteredDefaultApps = DEFAULT_APPS.filter(
|
|
14452
14524
|
(dapp) => dapp.name.toLowerCase().includes(searchQuery.toLowerCase())
|
|
14453
|
-
)
|
|
14525
|
+
).map((dapp) => {
|
|
14526
|
+
if (dapp.logoComponent) {
|
|
14527
|
+
return {
|
|
14528
|
+
...dapp,
|
|
14529
|
+
logoComponent: React10.cloneElement(dapp.logoComponent, {
|
|
14530
|
+
isDark
|
|
14531
|
+
})
|
|
14532
|
+
};
|
|
14533
|
+
}
|
|
14534
|
+
return dapp;
|
|
14535
|
+
});
|
|
14454
14536
|
const { shortcuts } = useEcosystemShortcuts();
|
|
14455
14537
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
14456
14538
|
/* @__PURE__ */ jsxs(StickyHeaderContainer, { children: [
|
|
@@ -14474,10 +14556,10 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
|
|
|
14474
14556
|
/* @__PURE__ */ jsx(
|
|
14475
14557
|
Input,
|
|
14476
14558
|
{
|
|
14477
|
-
placeholder: t("Search
|
|
14559
|
+
placeholder: t("Search Apps"),
|
|
14478
14560
|
value: searchQuery,
|
|
14479
14561
|
onChange: (e) => setSearchQuery(e.target.value),
|
|
14480
|
-
bg: isDark ? "#
|
|
14562
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
14481
14563
|
borderRadius: "xl",
|
|
14482
14564
|
height: "56px",
|
|
14483
14565
|
pl: 12
|
|
@@ -14498,7 +14580,10 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
|
|
|
14498
14580
|
image: dapp.logo,
|
|
14499
14581
|
url: dapp.external_url,
|
|
14500
14582
|
setCurrentContent,
|
|
14501
|
-
description: dapp.description
|
|
14583
|
+
description: dapp.description,
|
|
14584
|
+
...dapp.logoComponent && {
|
|
14585
|
+
logoComponent: dapp.logoComponent
|
|
14586
|
+
}
|
|
14502
14587
|
}
|
|
14503
14588
|
) }, dapp.name)),
|
|
14504
14589
|
filteredDapps.map((dapp) => /* @__PURE__ */ jsx(GridItem, { children: /* @__PURE__ */ jsx(
|
|
@@ -14542,7 +14627,8 @@ var AppOverviewContent = ({
|
|
|
14542
14627
|
name,
|
|
14543
14628
|
image,
|
|
14544
14629
|
url,
|
|
14545
|
-
description
|
|
14630
|
+
description,
|
|
14631
|
+
logoComponent
|
|
14546
14632
|
}) => {
|
|
14547
14633
|
const { t } = useTranslation();
|
|
14548
14634
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
@@ -14557,7 +14643,7 @@ var AppOverviewContent = ({
|
|
|
14557
14643
|
/* @__PURE__ */ jsx(ModalCloseButton, {})
|
|
14558
14644
|
] }),
|
|
14559
14645
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { spacing: 6, align: "center", w: "full", children: [
|
|
14560
|
-
/* @__PURE__ */ jsx(
|
|
14646
|
+
logoComponent ? logoComponent : /* @__PURE__ */ jsx(
|
|
14561
14647
|
Image,
|
|
14562
14648
|
{
|
|
14563
14649
|
src: image,
|
|
@@ -14719,7 +14805,7 @@ var TransactionModalContent = ({
|
|
|
14719
14805
|
Icon,
|
|
14720
14806
|
{
|
|
14721
14807
|
as: MdOutlineErrorOutline,
|
|
14722
|
-
color: "
|
|
14808
|
+
color: "#ef4444",
|
|
14723
14809
|
fontSize: "100px"
|
|
14724
14810
|
}
|
|
14725
14811
|
),
|
|
@@ -14732,7 +14818,7 @@ var TransactionModalContent = ({
|
|
|
14732
14818
|
Icon,
|
|
14733
14819
|
{
|
|
14734
14820
|
as: IoIosCheckmarkCircleOutline,
|
|
14735
|
-
color: "#
|
|
14821
|
+
color: "#22c55e",
|
|
14736
14822
|
fontSize: "100px"
|
|
14737
14823
|
}
|
|
14738
14824
|
),
|
|
@@ -14767,22 +14853,17 @@ var TransactionModalContent = ({
|
|
|
14767
14853
|
)
|
|
14768
14854
|
] }),
|
|
14769
14855
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { align: "center", p: 6, spacing: 3, children: [
|
|
14770
|
-
statusConfig.icon
|
|
14771
|
-
|
|
14772
|
-
|
|
14773
|
-
|
|
14774
|
-
|
|
14775
|
-
|
|
14776
|
-
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
|
|
14780
|
-
|
|
14781
|
-
children: statusConfig.icon
|
|
14782
|
-
}
|
|
14783
|
-
),
|
|
14784
|
-
status === "success" && uiConfig?.showShareOnSocials && /* @__PURE__ */ jsxs(VStack, { mt: 2, children: [
|
|
14785
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "xs", children: t("Share on") }),
|
|
14856
|
+
statusConfig.icon,
|
|
14857
|
+
status === "success" && uiConfig?.showShareOnSocials && /* @__PURE__ */ jsxs(VStack, { mt: 2, spacing: 3, children: [
|
|
14858
|
+
/* @__PURE__ */ jsx(
|
|
14859
|
+
Text,
|
|
14860
|
+
{
|
|
14861
|
+
fontSize: "sm",
|
|
14862
|
+
fontWeight: "bold",
|
|
14863
|
+
opacity: 0.5,
|
|
14864
|
+
children: t("Share on")
|
|
14865
|
+
}
|
|
14866
|
+
),
|
|
14786
14867
|
/* @__PURE__ */ jsx(
|
|
14787
14868
|
ShareButtons,
|
|
14788
14869
|
{
|
|
@@ -14910,29 +14991,24 @@ var SuccessfulOperationContent = ({
|
|
|
14910
14991
|
] }),
|
|
14911
14992
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { align: "center", p: 6, spacing: 3, children: [
|
|
14912
14993
|
/* @__PURE__ */ jsx(
|
|
14913
|
-
|
|
14994
|
+
Icon,
|
|
14914
14995
|
{
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
repeat: Infinity
|
|
14919
|
-
},
|
|
14920
|
-
animate: {
|
|
14921
|
-
scale: [1, 1.1, 1]
|
|
14922
|
-
},
|
|
14923
|
-
children: /* @__PURE__ */ jsx(
|
|
14924
|
-
Icon,
|
|
14925
|
-
{
|
|
14926
|
-
as: IoIosCheckmarkCircleOutline,
|
|
14927
|
-
fontSize: "100px",
|
|
14928
|
-
color: "#00ff45de"
|
|
14929
|
-
}
|
|
14930
|
-
)
|
|
14996
|
+
as: IoIosCheckmarkCircleOutline,
|
|
14997
|
+
fontSize: "100px",
|
|
14998
|
+
color: "#22c55e"
|
|
14931
14999
|
}
|
|
14932
15000
|
),
|
|
14933
15001
|
description && /* @__PURE__ */ jsx(Text, { fontSize: "sm", textAlign: "center", children: description }),
|
|
14934
|
-
showSocialButtons && txId && /* @__PURE__ */ jsxs(VStack, { mt: 2, children: [
|
|
14935
|
-
/* @__PURE__ */ jsx(
|
|
15002
|
+
showSocialButtons && txId && /* @__PURE__ */ jsxs(VStack, { mt: 2, spacing: 3, children: [
|
|
15003
|
+
/* @__PURE__ */ jsx(
|
|
15004
|
+
Text,
|
|
15005
|
+
{
|
|
15006
|
+
fontSize: "sm",
|
|
15007
|
+
fontWeight: "bold",
|
|
15008
|
+
opacity: 0.5,
|
|
15009
|
+
children: t("Share on")
|
|
15010
|
+
}
|
|
15011
|
+
),
|
|
14936
15012
|
/* @__PURE__ */ jsx(
|
|
14937
15013
|
ShareButtons,
|
|
14938
15014
|
{
|
|
@@ -15619,8 +15695,8 @@ var LoadingContent = ({
|
|
|
15619
15695
|
onTryAgain
|
|
15620
15696
|
}) => {
|
|
15621
15697
|
const { t } = useTranslation();
|
|
15622
|
-
const [showTimeout, setShowTimeout] =
|
|
15623
|
-
|
|
15698
|
+
const [showTimeout, setShowTimeout] = React10.useState(false);
|
|
15699
|
+
React10.useEffect(() => {
|
|
15624
15700
|
const timer = setTimeout(() => {
|
|
15625
15701
|
setShowTimeout(true);
|
|
15626
15702
|
}, 7e3);
|
|
@@ -15698,7 +15774,7 @@ var ErrorContent = ({
|
|
|
15698
15774
|
Icon,
|
|
15699
15775
|
{
|
|
15700
15776
|
as: MdOutlineErrorOutline,
|
|
15701
|
-
color: "
|
|
15777
|
+
color: "#ef4444",
|
|
15702
15778
|
fontSize: "60px",
|
|
15703
15779
|
opacity: 0.5
|
|
15704
15780
|
}
|
|
@@ -15884,7 +15960,7 @@ var ProfileCard = ({
|
|
|
15884
15960
|
const activeAccountTextRecords = useGetTextRecords(
|
|
15885
15961
|
activeAccountDomain?.data?.domain
|
|
15886
15962
|
);
|
|
15887
|
-
const baseBackgroundColor = isDark ? "
|
|
15963
|
+
const baseBackgroundColor = isDark ? "#1e1e21" : "#00000005";
|
|
15888
15964
|
const headerImageSvg = getPicassoImage(address);
|
|
15889
15965
|
const isConnectedAccount = address === account?.address;
|
|
15890
15966
|
const hasLinks = activeAccountTextRecords?.data?.url || activeAccountTextRecords?.data?.["com.x"] || activeAccountTextRecords?.data?.email;
|
|
@@ -15939,7 +16015,7 @@ var ProfileCard = ({
|
|
|
15939
16015
|
)
|
|
15940
16016
|
}
|
|
15941
16017
|
),
|
|
15942
|
-
/* @__PURE__ */ jsx(CardBody, {
|
|
16018
|
+
/* @__PURE__ */ jsx(CardBody, { mt: 10, backgroundColor: "none", border: "none", children: /* @__PURE__ */ jsxs(VStack, { w: "full", spacing: 2, children: [
|
|
15943
16019
|
showDisplayName && activeAccountTextRecords?.data?.display && /* @__PURE__ */ jsx(
|
|
15944
16020
|
Text,
|
|
15945
16021
|
{
|
|
@@ -16004,7 +16080,7 @@ var ProfileCard = ({
|
|
|
16004
16080
|
}
|
|
16005
16081
|
)
|
|
16006
16082
|
] }) }),
|
|
16007
|
-
isConnectedAccount && showEdit && /* @__PURE__ */ jsx(CardFooter, {
|
|
16083
|
+
isConnectedAccount && showEdit && /* @__PURE__ */ jsx(CardFooter, { justify: "space-between", children: /* @__PURE__ */ jsxs(VStack, { w: "full", justify: "space-between", spacing: 4, children: [
|
|
16008
16084
|
/* @__PURE__ */ jsx(Divider, {}),
|
|
16009
16085
|
/* @__PURE__ */ jsxs(HStack, { w: "full", justify: "space-between", children: [
|
|
16010
16086
|
/* @__PURE__ */ jsx(
|
|
@@ -16300,7 +16376,10 @@ var ModalProvider = ({ children }) => {
|
|
|
16300
16376
|
[]
|
|
16301
16377
|
);
|
|
16302
16378
|
const [isAccountModalOpen, setIsAccountModalOpen] = useState(false);
|
|
16303
|
-
const openAccountModal = useCallback(() =>
|
|
16379
|
+
const openAccountModal = useCallback(() => {
|
|
16380
|
+
setAccountModalContent("main");
|
|
16381
|
+
setIsAccountModalOpen(true);
|
|
16382
|
+
}, []);
|
|
16304
16383
|
const closeAccountModal = useCallback(
|
|
16305
16384
|
() => setIsAccountModalOpen(false),
|
|
16306
16385
|
[]
|
|
@@ -17700,14 +17779,14 @@ var variants = {
|
|
|
17700
17779
|
overflowX: "hidden",
|
|
17701
17780
|
maxHeight: "550px",
|
|
17702
17781
|
borderRadius: "24px",
|
|
17703
|
-
backgroundColor: props.colorMode === "dark" ? "#
|
|
17782
|
+
backgroundColor: props.colorMode === "dark" ? "#18181b" : "white"
|
|
17704
17783
|
},
|
|
17705
17784
|
closeButton: {
|
|
17706
17785
|
borderRadius: "50%"
|
|
17707
17786
|
},
|
|
17708
17787
|
header: {
|
|
17709
17788
|
w: "full",
|
|
17710
|
-
color: props.colorMode === "dark" ? "#dfdfdd" : "#
|
|
17789
|
+
color: props.colorMode === "dark" ? "#dfdfdd" : "#2e2e2e",
|
|
17711
17790
|
fontSize: "md",
|
|
17712
17791
|
fontWeight: "700",
|
|
17713
17792
|
textAlign: "center"
|
|
@@ -17726,7 +17805,7 @@ var variants = {
|
|
|
17726
17805
|
pointerEvents: "auto",
|
|
17727
17806
|
boxShadow: "0px 0px 10px 0px rgba(0, 0, 0, 0.1)",
|
|
17728
17807
|
py: "10px",
|
|
17729
|
-
backgroundColor: props.colorMode === "dark" ? "#
|
|
17808
|
+
backgroundColor: props.colorMode === "dark" ? "#18181b" : "white"
|
|
17730
17809
|
},
|
|
17731
17810
|
closeButton: {
|
|
17732
17811
|
borderRadius: "50%",
|
|
@@ -17748,7 +17827,11 @@ var variants2 = {
|
|
|
17748
17827
|
body: {
|
|
17749
17828
|
borderRadius: "12px",
|
|
17750
17829
|
backgroundColor: props.colorMode === "dark" ? "#1f1f1e" : "white",
|
|
17751
|
-
border: props.colorMode === "dark" ? "1px solid #2d2d2d" : "1px solid #eaeaea"
|
|
17830
|
+
border: props.colorMode === "dark" ? "1px solid #2d2d2d" : "1px solid #eaeaea",
|
|
17831
|
+
p: 5
|
|
17832
|
+
},
|
|
17833
|
+
footer: {
|
|
17834
|
+
p: 5
|
|
17752
17835
|
}
|
|
17753
17836
|
}),
|
|
17754
17837
|
featureAnnouncement: (props) => definePartsStyle2({
|
|
@@ -17892,12 +17975,12 @@ var variants3 = {
|
|
|
17892
17975
|
})),
|
|
17893
17976
|
mainContentButton: defineStyle(({ colorMode }) => ({
|
|
17894
17977
|
width: "100%",
|
|
17895
|
-
backgroundColor: colorMode === "dark" ? "
|
|
17978
|
+
backgroundColor: colorMode === "dark" ? "#ffffff05" : "blackAlpha.50",
|
|
17896
17979
|
borderRadius: "xl",
|
|
17897
17980
|
p: 3,
|
|
17898
17981
|
cursor: "pointer",
|
|
17899
17982
|
_hover: {
|
|
17900
|
-
backgroundColor: colorMode === "dark" ? "
|
|
17983
|
+
backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
|
|
17901
17984
|
}
|
|
17902
17985
|
}))
|
|
17903
17986
|
};
|