@iota/dapp-kit 0.10.4 → 0.11.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.
Files changed (106) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/components/AccountDropdownMenu.css +50 -16
  3. package/dist/cjs/components/AccountDropdownMenu.css.css +39 -16
  4. package/dist/cjs/components/AccountDropdownMenu.css.css.map +3 -3
  5. package/dist/cjs/components/AccountDropdownMenu.css.d.ts +3 -0
  6. package/dist/cjs/components/AccountDropdownMenu.css.d.ts.map +1 -1
  7. package/dist/cjs/components/AccountDropdownMenu.css.js +12 -6
  8. package/dist/cjs/components/AccountDropdownMenu.css.js.map +2 -2
  9. package/dist/cjs/components/AccountDropdownMenu.css.map +3 -3
  10. package/dist/cjs/components/AccountDropdownMenu.d.ts.map +1 -1
  11. package/dist/cjs/components/AccountDropdownMenu.js +184 -86
  12. package/dist/cjs/components/AccountDropdownMenu.js.map +4 -4
  13. package/dist/cjs/components/ConnectButton.css +50 -16
  14. package/dist/cjs/components/ConnectButton.css.map +3 -3
  15. package/dist/cjs/components/ConnectButton.js +259 -161
  16. package/dist/cjs/components/ConnectButton.js.map +4 -4
  17. package/dist/cjs/components/IotaNameNftImage.css +11 -0
  18. package/dist/cjs/components/IotaNameNftImage.css.css +11 -0
  19. package/dist/cjs/components/IotaNameNftImage.css.css.map +7 -0
  20. package/dist/cjs/components/IotaNameNftImage.css.d.ts +2 -0
  21. package/dist/cjs/components/IotaNameNftImage.css.d.ts.map +1 -0
  22. package/dist/cjs/components/IotaNameNftImage.css.js +27 -0
  23. package/dist/cjs/components/IotaNameNftImage.css.js.map +7 -0
  24. package/dist/cjs/components/IotaNameNftImage.css.map +7 -0
  25. package/dist/cjs/components/IotaNameNftImage.d.ts +8 -0
  26. package/dist/cjs/components/IotaNameNftImage.d.ts.map +1 -0
  27. package/dist/cjs/components/IotaNameNftImage.js +165 -0
  28. package/dist/cjs/components/IotaNameNftImage.js.map +7 -0
  29. package/dist/cjs/hooks/useGetDefaultIotaName.d.ts +1 -1
  30. package/dist/cjs/hooks/useGetDefaultIotaName.d.ts.map +1 -1
  31. package/dist/cjs/hooks/useGetDefaultIotaName.js +26 -16
  32. package/dist/cjs/hooks/useGetDefaultIotaName.js.map +4 -4
  33. package/dist/cjs/hooks/useGetIotaNameAvatar.d.ts +2 -0
  34. package/dist/cjs/hooks/useGetIotaNameAvatar.d.ts.map +1 -0
  35. package/dist/cjs/hooks/useGetIotaNameAvatar.js +144 -0
  36. package/dist/cjs/hooks/useGetIotaNameAvatar.js.map +7 -0
  37. package/dist/cjs/hooks/useIotaClientInfiniteQuery.d.ts +1 -1
  38. package/dist/cjs/hooks/useIotaClientInfiniteQuery.d.ts.map +1 -1
  39. package/dist/cjs/hooks/useIotaClientInfiniteQuery.js +1 -0
  40. package/dist/cjs/hooks/useIotaClientInfiniteQuery.js.map +2 -2
  41. package/dist/cjs/hooks/useIotaNamesClient.d.ts +7 -0
  42. package/dist/cjs/hooks/useIotaNamesClient.d.ts.map +1 -0
  43. package/dist/cjs/hooks/useIotaNamesClient.js +71 -0
  44. package/dist/cjs/hooks/useIotaNamesClient.js.map +7 -0
  45. package/dist/cjs/index.css +50 -16
  46. package/dist/cjs/index.css.map +3 -3
  47. package/dist/cjs/index.js +172 -76
  48. package/dist/cjs/index.js.map +4 -4
  49. package/dist/esm/components/AccountDropdownMenu.css +50 -16
  50. package/dist/esm/components/AccountDropdownMenu.css.css +39 -16
  51. package/dist/esm/components/AccountDropdownMenu.css.css.map +3 -3
  52. package/dist/esm/components/AccountDropdownMenu.css.d.ts +3 -0
  53. package/dist/esm/components/AccountDropdownMenu.css.d.ts.map +1 -1
  54. package/dist/esm/components/AccountDropdownMenu.css.js +12 -6
  55. package/dist/esm/components/AccountDropdownMenu.css.js.map +2 -2
  56. package/dist/esm/components/AccountDropdownMenu.css.map +3 -3
  57. package/dist/esm/components/AccountDropdownMenu.d.ts.map +1 -1
  58. package/dist/esm/components/AccountDropdownMenu.js +177 -79
  59. package/dist/esm/components/AccountDropdownMenu.js.map +4 -4
  60. package/dist/esm/components/ConnectButton.css +50 -16
  61. package/dist/esm/components/ConnectButton.css.map +3 -3
  62. package/dist/esm/components/ConnectButton.js +236 -138
  63. package/dist/esm/components/ConnectButton.js.map +4 -4
  64. package/dist/esm/components/IotaNameNftImage.css +11 -0
  65. package/dist/esm/components/IotaNameNftImage.css.css +11 -0
  66. package/dist/esm/components/IotaNameNftImage.css.css.map +7 -0
  67. package/dist/esm/components/IotaNameNftImage.css.d.ts +2 -0
  68. package/dist/esm/components/IotaNameNftImage.css.d.ts.map +1 -0
  69. package/dist/esm/components/IotaNameNftImage.css.js +6 -0
  70. package/dist/esm/components/IotaNameNftImage.css.js.map +7 -0
  71. package/dist/esm/components/IotaNameNftImage.css.map +7 -0
  72. package/dist/esm/components/IotaNameNftImage.d.ts +8 -0
  73. package/dist/esm/components/IotaNameNftImage.d.ts.map +1 -0
  74. package/dist/esm/components/IotaNameNftImage.js +144 -0
  75. package/dist/esm/components/IotaNameNftImage.js.map +7 -0
  76. package/dist/esm/hooks/useGetDefaultIotaName.d.ts +1 -1
  77. package/dist/esm/hooks/useGetDefaultIotaName.d.ts.map +1 -1
  78. package/dist/esm/hooks/useGetDefaultIotaName.js +26 -16
  79. package/dist/esm/hooks/useGetDefaultIotaName.js.map +4 -4
  80. package/dist/esm/hooks/useGetIotaNameAvatar.d.ts +2 -0
  81. package/dist/esm/hooks/useGetIotaNameAvatar.d.ts.map +1 -0
  82. package/dist/esm/hooks/useGetIotaNameAvatar.js +123 -0
  83. package/dist/esm/hooks/useGetIotaNameAvatar.js.map +7 -0
  84. package/dist/esm/hooks/useIotaClientInfiniteQuery.d.ts +1 -1
  85. package/dist/esm/hooks/useIotaClientInfiniteQuery.d.ts.map +1 -1
  86. package/dist/esm/hooks/useIotaClientInfiniteQuery.js +1 -0
  87. package/dist/esm/hooks/useIotaClientInfiniteQuery.js.map +2 -2
  88. package/dist/esm/hooks/useIotaNamesClient.d.ts +7 -0
  89. package/dist/esm/hooks/useIotaNamesClient.d.ts.map +1 -0
  90. package/dist/esm/hooks/useIotaNamesClient.js +50 -0
  91. package/dist/esm/hooks/useIotaNamesClient.js.map +7 -0
  92. package/dist/esm/index.css +50 -16
  93. package/dist/esm/index.css.map +3 -3
  94. package/dist/esm/index.js +143 -47
  95. package/dist/esm/index.js.map +4 -4
  96. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/package.json +4 -10
  99. package/src/components/AccountDropdownMenu.css.ts +24 -1
  100. package/src/components/AccountDropdownMenu.tsx +12 -2
  101. package/src/components/IotaNameNftImage.css.ts +14 -0
  102. package/src/components/IotaNameNftImage.tsx +30 -0
  103. package/src/hooks/useGetDefaultIotaName.ts +6 -22
  104. package/src/hooks/useGetIotaNameAvatar.ts +72 -0
  105. package/src/hooks/useIotaClientInfiniteQuery.ts +2 -1
  106. package/src/hooks/useIotaNamesClient.ts +29 -0
@@ -204,13 +204,16 @@ function useSwitchAccount({
204
204
  }
205
205
 
206
206
  // src/components/AccountDropdownMenu.css.ts
207
+ var accountIdentity = "AccountDropdownMenu_accountIdentity__1x0gmpf8";
208
+ var accountName = "AccountDropdownMenu_accountName__1x0gmpf1";
209
+ var accountNameMenuItem = "AccountDropdownMenu_accountNameMenuItem__1x0gmpf2";
207
210
  var connectedAccount = "AccountDropdownMenu_connectedAccount__1x0gmpf0";
208
- var menuContainer = "AccountDropdownMenu_menuContainer__1x0gmpf1";
209
- var menuContent = "AccountDropdownMenu_menuContent__1x0gmpf2";
210
- var menuItem = "AccountDropdownMenu_menuItem__1x0gmpf4";
211
- var scrollableContent = "AccountDropdownMenu_scrollableContent__1x0gmpf3";
212
- var separator = "AccountDropdownMenu_separator__1x0gmpf6";
213
- var switchAccountMenuItem = "AccountDropdownMenu_switchAccountMenuItem__1x0gmpf5";
211
+ var menuContainer = "AccountDropdownMenu_menuContainer__1x0gmpf3";
212
+ var menuContent = "AccountDropdownMenu_menuContent__1x0gmpf4";
213
+ var menuItem = "AccountDropdownMenu_menuItem__1x0gmpf6";
214
+ var scrollableContent = "AccountDropdownMenu_scrollableContent__1x0gmpf5";
215
+ var separator = "AccountDropdownMenu_separator__1x0gmpf9";
216
+ var switchAccountMenuItem = "AccountDropdownMenu_switchAccountMenuItem__1x0gmpf7";
214
217
 
215
218
  // src/components/icons/CheckIcon.tsx
216
219
  import { jsx } from "react/jsx-runtime";
@@ -239,6 +242,147 @@ function ChevronIcon(props) {
239
242
  ) });
240
243
  }
241
244
 
245
+ // src/components/IotaNameNftImage.tsx
246
+ import { useState as useState2 } from "react";
247
+
248
+ // src/hooks/useGetIotaNameAvatar.ts
249
+ import { getSubnameRegistrationType, isSubname, normalizeIotaName as normalizeIotaName2 } from "@iota/iota-names-sdk";
250
+ import { useQuery as useQuery2 } from "@tanstack/react-query";
251
+
252
+ // src/hooks/useGetDefaultIotaName.ts
253
+ import { normalizeIotaName } from "@iota/iota-names-sdk";
254
+ import { useQuery } from "@tanstack/react-query";
255
+
256
+ // src/hooks/useIotaNamesClient.ts
257
+ import { IotaGraphQLClient } from "@iota/iota-sdk/graphql";
258
+ import { IotaNamesClient } from "@iota/iota-names-sdk";
259
+ import { getNetwork as getNetwork2 } from "@iota/iota-sdk/client";
260
+ import { useMemo as useMemo2 } from "react";
261
+
262
+ // src/hooks/useIotaClient.ts
263
+ import { useContext as useContext2 } from "react";
264
+
265
+ // src/components/IotaClientProvider.tsx
266
+ import { getNetwork, isIotaClient, Network, IotaClient } from "@iota/iota-sdk/client";
267
+ import { createContext as createContext2, useMemo, useState } from "react";
268
+ import { jsx as jsx3 } from "react/jsx-runtime";
269
+ var IotaClientContext = createContext2(null);
270
+ var DEFAULT_NETWORKS = {
271
+ localnet: { url: getNetwork(Network.Localnet)?.url }
272
+ };
273
+
274
+ // src/hooks/useIotaClient.ts
275
+ function useIotaClientContext() {
276
+ const iotaClient = useContext2(IotaClientContext);
277
+ if (!iotaClient) {
278
+ throw new Error(
279
+ "Could not find IotaClientContext. Ensure that you have set up the IotaClientProvider"
280
+ );
281
+ }
282
+ return iotaClient;
283
+ }
284
+ function useIotaClient() {
285
+ return useIotaClientContext().client;
286
+ }
287
+
288
+ // src/hooks/useIotaNamesClient.ts
289
+ function useIotaNamesClient() {
290
+ const { network: networkId } = useIotaClientContext();
291
+ const network = getNetwork2(networkId);
292
+ const iotaNamesClient = useMemo2(() => {
293
+ if (!network.graphql) return null;
294
+ return new IotaNamesClient({
295
+ graphQlClient: new IotaGraphQLClient({ url: network.graphql }),
296
+ network: network.id
297
+ });
298
+ }, [network.id, network.graphql]);
299
+ return {
300
+ iotaNamesClient,
301
+ networkId: network.id,
302
+ isSupported: !!iotaNamesClient?.config
303
+ };
304
+ }
305
+
306
+ // src/hooks/useGetDefaultIotaName.ts
307
+ function useGetDefaultIotaName(address, iotaNamesEnabled) {
308
+ const { iotaNamesClient, networkId, isSupported } = useIotaNamesClient();
309
+ return useQuery({
310
+ queryKey: ["iota-name", "default-name", address, networkId],
311
+ queryFn: async () => {
312
+ if (!address) return null;
313
+ const name = await iotaNamesClient?.getPublicName(address);
314
+ return name ? normalizeIotaName(name) : name;
315
+ },
316
+ enabled: !!address && iotaNamesEnabled && isSupported,
317
+ staleTime: 1e3 * 60 * 10
318
+ });
319
+ }
320
+
321
+ // src/hooks/useGetIotaNameAvatar.ts
322
+ function useGetIotaNameAvatar(address, iotaNamesEnabled) {
323
+ const client = useIotaClient();
324
+ const { iotaNamesClient, networkId, isSupported } = useIotaNamesClient();
325
+ const { data: name } = useGetDefaultIotaName(address, iotaNamesEnabled);
326
+ return useQuery2({
327
+ // eslint-disable-next-line @tanstack/query/exhaustive-deps
328
+ queryKey: ["iota-name", "avatar", name, networkId],
329
+ queryFn: async () => {
330
+ if (!name || !address || !iotaNamesClient) return null;
331
+ const nameRecord = await iotaNamesClient.getNameRecord(name);
332
+ if (!nameRecord) return null;
333
+ const avatarObjectId = nameRecord.avatar ?? (isSubname(name) ? await findSubnameNftId() : nameRecord.nftId);
334
+ if (!avatarObjectId) return null;
335
+ const objectResponse = await client.getObject({
336
+ id: avatarObjectId,
337
+ options: { showDisplay: true }
338
+ });
339
+ return objectResponse?.data?.display?.data?.image_url ?? null;
340
+ async function findSubnameNftId() {
341
+ let subnameType;
342
+ try {
343
+ subnameType = getSubnameRegistrationType(
344
+ iotaNamesClient.getPackage("packageId", "v1")
345
+ );
346
+ } catch {
347
+ return null;
348
+ }
349
+ const { data } = await client.getOwnedObjects({
350
+ owner: address,
351
+ filter: { StructType: subnameType },
352
+ options: { showDisplay: true }
353
+ });
354
+ return data.find((object) => {
355
+ try {
356
+ return normalizeIotaName2(object.data?.display?.data?.name ?? "") === name;
357
+ } catch {
358
+ return false;
359
+ }
360
+ })?.data?.objectId ?? null;
361
+ }
362
+ },
363
+ enabled: iotaNamesEnabled && isSupported && !!name && !!address,
364
+ staleTime: 1e3 * 60 * 5
365
+ });
366
+ }
367
+
368
+ // src/components/IotaNameNftImage.css.ts
369
+ var image = "IotaNameNftImage_image__qs9r060";
370
+
371
+ // src/components/IotaNameNftImage.tsx
372
+ import { jsx as jsx4 } from "react/jsx-runtime";
373
+ function IotaNameNftImage({
374
+ address,
375
+ iotaNamesEnabled,
376
+ alt = "name NFT avatar"
377
+ }) {
378
+ const { data: imageUrl, isLoading } = useGetIotaNameAvatar(address, iotaNamesEnabled);
379
+ const [imgError, setImgError] = useState2(false);
380
+ if (!iotaNamesEnabled || isLoading || !imageUrl || imgError) {
381
+ return null;
382
+ }
383
+ return /* @__PURE__ */ jsx4("img", { src: imageUrl, alt, className: image, onError: () => setImgError(true) });
384
+ }
385
+
242
386
  // src/components/styling/StyleMarker.tsx
243
387
  import { Slot } from "@radix-ui/react-slot";
244
388
  import { forwardRef } from "react";
@@ -250,8 +394,8 @@ var styleDataAttribute = { [styleDataAttributeName]: "" };
250
394
 
251
395
  // src/components/styling/StyleMarker.tsx
252
396
  var import_StyleMarker_css = __toESM(require_StyleMarker_css());
253
- import { jsx as jsx3 } from "react/jsx-runtime";
254
- var StyleMarker = forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx3(Slot, { ref: forwardedRef, ...props, ...styleDataAttribute, children }));
397
+ import { jsx as jsx5 } from "react/jsx-runtime";
398
+ var StyleMarker = forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx5(Slot, { ref: forwardedRef, ...props, ...styleDataAttribute, children }));
255
399
  StyleMarker.displayName = "StyleMarker";
256
400
 
257
401
  // src/components/ui/Button.tsx
@@ -264,11 +408,11 @@ import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntim
264
408
  var buttonVariants = _7a468({ defaultClassName: "Button_buttonVariants__ctbx2n0", variantClassNames: { variant: { primary: "Button_buttonVariants_variant_primary__ctbx2n1", outline: "Button_buttonVariants_variant_outline__ctbx2n2" }, size: { md: "Button_buttonVariants_size_md__ctbx2n3", lg: "Button_buttonVariants_size_lg__ctbx2n4" } }, defaultVariants: { variant: "primary", size: "md" }, compoundVariants: [] });
265
409
 
266
410
  // src/components/ui/Button.tsx
267
- import { jsx as jsx4 } from "react/jsx-runtime";
411
+ import { jsx as jsx6 } from "react/jsx-runtime";
268
412
  var Button = forwardRef2(
269
413
  ({ className, variant, size, asChild = false, ...props }, forwardedRef) => {
270
414
  const Comp = asChild ? Slot2 : "button";
271
- return /* @__PURE__ */ jsx4(
415
+ return /* @__PURE__ */ jsx6(
272
416
  Comp,
273
417
  {
274
418
  ...props,
@@ -290,7 +434,7 @@ import { createRuntimeFn as _7a4682 } from "@vanilla-extract/recipes/createRunti
290
434
  var textVariants = _7a4682({ defaultClassName: "Text__aprhbd0", variantClassNames: { size: { sm: "Text_textVariants_size_sm__aprhbd1" }, weight: { normal: "Text_textVariants_weight_normal__aprhbd2", medium: "Text_textVariants_weight_medium__aprhbd3", bold: "Text_textVariants_weight_bold__aprhbd4" }, color: { muted: "Text_textVariants_color_muted__aprhbd5", danger: "Text_textVariants_color_danger__aprhbd6" }, mono: { true: "Text_textVariants_mono_true__aprhbd7" } }, defaultVariants: { size: "sm", weight: "normal" }, compoundVariants: [] });
291
435
 
292
436
  // src/components/ui/Text.tsx
293
- import { jsx as jsx5 } from "react/jsx-runtime";
437
+ import { jsx as jsx7 } from "react/jsx-runtime";
294
438
  var Text = forwardRef3(
295
439
  ({
296
440
  children,
@@ -303,77 +447,21 @@ var Text = forwardRef3(
303
447
  mono,
304
448
  ...textProps
305
449
  }, forwardedRef) => {
306
- return /* @__PURE__ */ jsx5(
450
+ return /* @__PURE__ */ jsx7(
307
451
  Slot3,
308
452
  {
309
453
  ...textProps,
310
454
  ref: forwardedRef,
311
455
  className: clsx2(textVariants({ size, weight, color, mono }), className),
312
- children: asChild ? children : /* @__PURE__ */ jsx5(Tag, { children })
456
+ children: asChild ? children : /* @__PURE__ */ jsx7(Tag, { children })
313
457
  }
314
458
  );
315
459
  }
316
460
  );
317
461
  Text.displayName = "Text";
318
462
 
319
- // src/hooks/useGetDefaultIotaName.ts
320
- import { getNetwork as getNetwork2 } from "@iota/iota-sdk/client";
321
- import { useQuery } from "@tanstack/react-query";
322
- import { IotaNamesClient, normalizeIotaName } from "@iota/iota-names-sdk";
323
-
324
- // src/hooks/useIotaClient.ts
325
- import { useContext as useContext2 } from "react";
326
-
327
- // src/components/IotaClientProvider.tsx
328
- import { getNetwork, isIotaClient, Network, IotaClient } from "@iota/iota-sdk/client";
329
- import { createContext as createContext2, useMemo, useState } from "react";
330
- import { jsx as jsx6 } from "react/jsx-runtime";
331
- var IotaClientContext = createContext2(null);
332
- var DEFAULT_NETWORKS = {
333
- localnet: { url: getNetwork(Network.Localnet)?.url }
334
- };
335
-
336
- // src/hooks/useIotaClient.ts
337
- function useIotaClientContext() {
338
- const iotaClient = useContext2(IotaClientContext);
339
- if (!iotaClient) {
340
- throw new Error(
341
- "Could not find IotaClientContext. Ensure that you have set up the IotaClientProvider"
342
- );
343
- }
344
- return iotaClient;
345
- }
346
-
347
- // src/hooks/useGetDefaultIotaName.ts
348
- import { useMemo as useMemo2 } from "react";
349
- import { IotaGraphQLClient } from "@iota/iota-sdk/graphql";
350
- function useGetDefaultIotaName(address, iotaNamesEnabled) {
351
- const iotaContext = useIotaClientContext();
352
- const network = getNetwork2(iotaContext.network);
353
- const iotaNamesClient = useMemo2(() => {
354
- const iotaGraphQLClient = new IotaGraphQLClient({
355
- url: network.graphql
356
- });
357
- return new IotaNamesClient({
358
- graphQlClient: iotaGraphQLClient,
359
- network: network.id
360
- });
361
- }, [network.id]);
362
- const iotaNamesSupported = !!iotaNamesClient.config;
363
- return useQuery({
364
- queryKey: ["iota-name", "default-name", address],
365
- queryFn: async () => {
366
- if (!address) return null;
367
- const name = await iotaNamesClient?.getPublicName(address);
368
- return name ? normalizeIotaName(name) : name;
369
- },
370
- enabled: !!iotaNamesClient && !!address && iotaNamesEnabled && iotaNamesSupported,
371
- staleTime: 1e3 * 60 * 10
372
- });
373
- }
374
-
375
463
  // src/components/AccountDropdownMenu.tsx
376
- import { jsx as jsx7, jsxs } from "react/jsx-runtime";
464
+ import { jsx as jsx8, jsxs } from "react/jsx-runtime";
377
465
  function AccountDropdownMenu({
378
466
  currentAccount,
379
467
  size = "lg",
@@ -384,12 +472,19 @@ function AccountDropdownMenu({
384
472
  const { data: iotaName } = useGetDefaultIotaName(currentAccount.address, iotaNamesEnabled);
385
473
  const displayAccount = iotaName ?? currentAccount.label ?? formatAddress(currentAccount.address);
386
474
  return /* @__PURE__ */ jsxs(DropdownMenu.Root, { modal: false, children: [
387
- /* @__PURE__ */ jsx7(StyleMarker, { children: /* @__PURE__ */ jsx7(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { size, className: connectedAccount, children: [
388
- /* @__PURE__ */ jsx7(Text, { mono: true, weight: "bold", children: displayAccount }),
389
- /* @__PURE__ */ jsx7(ChevronIcon, {})
475
+ /* @__PURE__ */ jsx8(StyleMarker, { children: /* @__PURE__ */ jsx8(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { size, className: connectedAccount, children: [
476
+ /* @__PURE__ */ jsx8(
477
+ IotaNameNftImage,
478
+ {
479
+ address: currentAccount.address,
480
+ iotaNamesEnabled
481
+ }
482
+ ),
483
+ /* @__PURE__ */ jsx8(Text, { mono: true, weight: "bold", className: accountName, children: displayAccount }),
484
+ /* @__PURE__ */ jsx8(ChevronIcon, {})
390
485
  ] }) }) }),
391
- /* @__PURE__ */ jsx7(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx7(StyleMarker, { className: menuContainer, children: /* @__PURE__ */ jsxs(DropdownMenu.Content, { className: menuContent, children: [
392
- /* @__PURE__ */ jsx7("div", { className: scrollableContent, children: accounts.map((account) => /* @__PURE__ */ jsx7(
486
+ /* @__PURE__ */ jsx8(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx8(StyleMarker, { className: menuContainer, children: /* @__PURE__ */ jsxs(DropdownMenu.Content, { className: menuContent, children: [
487
+ /* @__PURE__ */ jsx8("div", { className: scrollableContent, children: accounts.map((account) => /* @__PURE__ */ jsx8(
393
488
  AccountDropdownMenuItem,
394
489
  {
395
490
  account,
@@ -398,8 +493,8 @@ function AccountDropdownMenu({
398
493
  },
399
494
  account.address
400
495
  )) }),
401
- /* @__PURE__ */ jsx7(DropdownMenu.Separator, { className: separator }),
402
- /* @__PURE__ */ jsx7(
496
+ /* @__PURE__ */ jsx8(DropdownMenu.Separator, { className: separator }),
497
+ /* @__PURE__ */ jsx8(
403
498
  DropdownMenu.Item,
404
499
  {
405
500
  className: clsx3(menuItem),
@@ -424,8 +519,11 @@ function AccountDropdownMenuItem({
424
519
  className: clsx3(menuItem, switchAccountMenuItem),
425
520
  onSelect: () => switchAccount({ account }),
426
521
  children: [
427
- /* @__PURE__ */ jsx7(Text, { mono: true, children: displayAccount }),
428
- active ? /* @__PURE__ */ jsx7(CheckIcon, {}) : null
522
+ /* @__PURE__ */ jsxs("div", { className: accountIdentity, children: [
523
+ /* @__PURE__ */ jsx8(IotaNameNftImage, { address: account.address, iotaNamesEnabled }),
524
+ /* @__PURE__ */ jsx8(Text, { mono: true, className: accountNameMenuItem, children: displayAccount })
525
+ ] }),
526
+ active ? /* @__PURE__ */ jsx8(CheckIcon, {}) : null
429
527
  ]
430
528
  }
431
529
  );
@@ -434,7 +532,7 @@ function AccountDropdownMenuItem({
434
532
  // src/components/connect-modal/ConnectModal.tsx
435
533
  import * as Dialog from "@radix-ui/react-dialog";
436
534
  import clsx7 from "clsx";
437
- import { useState as useState2 } from "react";
535
+ import { useState as useState3 } from "react";
438
536
 
439
537
  // src/hooks/wallet/useConnectWallet.ts
440
538
  import { isSupportedChain } from "@iota/wallet-standard";
@@ -492,9 +590,9 @@ function getWalletUniqueIdentifier(wallet) {
492
590
  }
493
591
 
494
592
  // src/components/icons/BackIcon.tsx
495
- import { jsx as jsx8 } from "react/jsx-runtime";
593
+ import { jsx as jsx9 } from "react/jsx-runtime";
496
594
  function BackIcon(props) {
497
- return /* @__PURE__ */ jsx8("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx8(
595
+ return /* @__PURE__ */ jsx9("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx9(
498
596
  "path",
499
597
  {
500
598
  d: "M7.57 12.262c0 .341.13.629.403.895l5.175 5.059c.204.205.45.307.751.307.609 0 1.101-.485 1.101-1.087 0-.293-.123-.574-.349-.8L10.14 12.27l4.511-4.375A1.13 1.13 0 0 0 15 7.087C15 6.485 14.508 6 13.9 6c-.295 0-.54.103-.752.308l-5.175 5.058c-.28.28-.404.56-.404.896Z",
@@ -504,9 +602,9 @@ function BackIcon(props) {
504
602
  }
505
603
 
506
604
  // src/components/icons/CloseIcon.tsx
507
- import { jsx as jsx9 } from "react/jsx-runtime";
605
+ import { jsx as jsx10 } from "react/jsx-runtime";
508
606
  function CloseIcon(props) {
509
- return /* @__PURE__ */ jsx9("svg", { width: 10, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx9(
607
+ return /* @__PURE__ */ jsx10("svg", { width: 10, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx10(
510
608
  "path",
511
609
  {
512
610
  d: "M9.708.292a.999.999 0 0 0-1.413 0l-3.289 3.29L1.717.291A.999.999 0 0 0 .305 1.705l3.289 3.289-3.29 3.289a.999.999 0 1 0 1.413 1.412l3.29-3.289 3.288 3.29a.999.999 0 0 0 1.413-1.413l-3.29-3.29 3.29-3.288a.999.999 0 0 0 0-1.413Z",
@@ -525,7 +623,7 @@ import { createRuntimeFn as _7a4683 } from "@vanilla-extract/recipes/createRunti
525
623
  var headingVariants = _7a4683({ defaultClassName: "Heading__12b5l8i0", variantClassNames: { size: { sm: "Heading_headingVariants_size_sm__12b5l8i1", md: "Heading_headingVariants_size_md__12b5l8i2", lg: "Heading_headingVariants_size_lg__12b5l8i3", xl: "Heading_headingVariants_size_xl__12b5l8i4" }, weight: { normal: "Heading_headingVariants_weight_normal__12b5l8i5", bold: "Heading_headingVariants_weight_bold__12b5l8i6" }, truncate: { true: "Heading_headingVariants_truncate_true__12b5l8i7" } }, defaultVariants: { size: "lg", weight: "bold" }, compoundVariants: [] });
526
624
 
527
625
  // src/components/ui/Heading.tsx
528
- import { jsx as jsx10 } from "react/jsx-runtime";
626
+ import { jsx as jsx11 } from "react/jsx-runtime";
529
627
  var Heading = forwardRef4(
530
628
  ({
531
629
  children,
@@ -537,13 +635,13 @@ var Heading = forwardRef4(
537
635
  truncate,
538
636
  ...headingProps
539
637
  }, forwardedRef) => {
540
- return /* @__PURE__ */ jsx10(
638
+ return /* @__PURE__ */ jsx11(
541
639
  Slot4,
542
640
  {
543
641
  ...headingProps,
544
642
  ref: forwardedRef,
545
643
  className: clsx4(headingVariants({ size, weight, truncate }), className),
546
- children: asChild ? children : /* @__PURE__ */ jsx10(Tag, { children })
644
+ children: asChild ? children : /* @__PURE__ */ jsx11(Tag, { children })
547
645
  }
548
646
  );
549
647
  }
@@ -559,11 +657,11 @@ import { forwardRef as forwardRef5 } from "react";
559
657
  var container = "IconButton_container__ap1qll0";
560
658
 
561
659
  // src/components/ui/IconButton.tsx
562
- import { jsx as jsx11 } from "react/jsx-runtime";
660
+ import { jsx as jsx12 } from "react/jsx-runtime";
563
661
  var IconButton = forwardRef5(
564
662
  ({ className, asChild = false, ...props }, forwardedRef) => {
565
663
  const Comp = asChild ? Slot5 : "button";
566
- return /* @__PURE__ */ jsx11(Comp, { ...props, className: clsx5(container, className), ref: forwardedRef });
664
+ return /* @__PURE__ */ jsx12(Comp, { ...props, className: clsx5(container, className), ref: forwardedRef });
567
665
  }
568
666
  );
569
667
  IconButton.displayName = "Button";
@@ -589,14 +687,14 @@ var title2 = "ConnectionStatus_title__c5q1ll2";
589
687
  var walletIcon = "ConnectionStatus_walletIcon__c5q1ll1";
590
688
 
591
689
  // src/components/connect-modal/views/ConnectionStatus.tsx
592
- import { jsx as jsx12, jsxs as jsxs2 } from "react/jsx-runtime";
690
+ import { jsx as jsx13, jsxs as jsxs2 } from "react/jsx-runtime";
593
691
  function ConnectionStatus({
594
692
  selectedWallet,
595
693
  hadConnectionError,
596
694
  onRetryConnection
597
695
  }) {
598
696
  return /* @__PURE__ */ jsxs2("div", { className: container2, children: [
599
- selectedWallet.icon && /* @__PURE__ */ jsx12(
697
+ selectedWallet.icon && /* @__PURE__ */ jsx13(
600
698
  "img",
601
699
  {
602
700
  className: walletIcon,
@@ -604,12 +702,12 @@ function ConnectionStatus({
604
702
  alt: `${selectedWallet.name} logo`
605
703
  }
606
704
  ),
607
- /* @__PURE__ */ jsx12("div", { className: title2, children: /* @__PURE__ */ jsxs2(Heading, { as: "h2", size: "xl", children: [
705
+ /* @__PURE__ */ jsx13("div", { className: title2, children: /* @__PURE__ */ jsxs2(Heading, { as: "h2", size: "xl", children: [
608
706
  "Opening ",
609
707
  selectedWallet.name
610
708
  ] }) }),
611
- /* @__PURE__ */ jsx12("div", { className: connectionStatus, children: hadConnectionError ? /* @__PURE__ */ jsx12(Text, { color: "danger", children: "Connection failed" }) : /* @__PURE__ */ jsx12(Text, { color: "muted", children: "Confirm connection in the wallet..." }) }),
612
- hadConnectionError ? /* @__PURE__ */ jsx12("div", { className: retryButtonContainer, children: /* @__PURE__ */ jsx12(
709
+ /* @__PURE__ */ jsx13("div", { className: connectionStatus, children: hadConnectionError ? /* @__PURE__ */ jsx13(Text, { color: "danger", children: "Connection failed" }) : /* @__PURE__ */ jsx13(Text, { color: "muted", children: "Confirm connection in the wallet..." }) }),
710
+ hadConnectionError ? /* @__PURE__ */ jsx13("div", { className: retryButtonContainer, children: /* @__PURE__ */ jsx13(
613
711
  Button,
614
712
  {
615
713
  type: "button",
@@ -625,11 +723,11 @@ function ConnectionStatus({
625
723
  var container3 = "InfoSection_container__1d1nrmt0";
626
724
 
627
725
  // src/components/connect-modal/InfoSection.tsx
628
- import { jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
726
+ import { jsx as jsx14, jsxs as jsxs3 } from "react/jsx-runtime";
629
727
  function InfoSection({ title: title3, children }) {
630
728
  return /* @__PURE__ */ jsxs3("section", { className: container3, children: [
631
- /* @__PURE__ */ jsx13(Heading, { as: "h3", size: "sm", weight: "normal", children: title3 }),
632
- /* @__PURE__ */ jsx13(Text, { weight: "medium", color: "muted", children })
729
+ /* @__PURE__ */ jsx14(Heading, { as: "h3", size: "sm", weight: "normal", children: title3 }),
730
+ /* @__PURE__ */ jsx14(Text, { weight: "medium", color: "muted", children })
633
731
  ] });
634
732
  }
635
733
 
@@ -639,15 +737,15 @@ var content2 = "GettingStarted_content__qu36t91";
639
737
  var installButtonContainer = "GettingStarted_installButtonContainer__qu36t92";
640
738
 
641
739
  // src/components/connect-modal/views/GettingStarted.tsx
642
- import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
740
+ import { jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
643
741
  function GettingStarted() {
644
742
  return /* @__PURE__ */ jsxs4("div", { className: container4, children: [
645
- /* @__PURE__ */ jsx14(Heading, { as: "h2", children: "Get Started with IOTA" }),
743
+ /* @__PURE__ */ jsx15(Heading, { as: "h2", children: "Get Started with IOTA" }),
646
744
  /* @__PURE__ */ jsxs4("div", { className: content2, children: [
647
- /* @__PURE__ */ jsx14(InfoSection, { title: "Install the IOTA Wallet Extension", children: "We recommend pinning IOTA Wallet to your taskbar for quicker access." }),
648
- /* @__PURE__ */ jsx14(InfoSection, { title: "Create or Import a Wallet", children: "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." }),
649
- /* @__PURE__ */ jsx14(InfoSection, { title: "Refresh Your Browser", children: "Once you set up your wallet, refresh this window browser to load up the extension." }),
650
- /* @__PURE__ */ jsx14("div", { className: installButtonContainer, children: /* @__PURE__ */ jsx14(Button, { variant: "primary", asChild: true, children: /* @__PURE__ */ jsx14(
745
+ /* @__PURE__ */ jsx15(InfoSection, { title: "Install the IOTA Wallet Extension", children: "We recommend pinning IOTA Wallet to your taskbar for quicker access." }),
746
+ /* @__PURE__ */ jsx15(InfoSection, { title: "Create or Import a Wallet", children: "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." }),
747
+ /* @__PURE__ */ jsx15(InfoSection, { title: "Refresh Your Browser", children: "Once you set up your wallet, refresh this window browser to load up the extension." }),
748
+ /* @__PURE__ */ jsx15("div", { className: installButtonContainer, children: /* @__PURE__ */ jsx15(Button, { variant: "primary", asChild: true, children: /* @__PURE__ */ jsx15(
651
749
  "a",
652
750
  {
653
751
  href: "https://chrome.google.com/webstore/detail/iota-wallet/iidjkmdceolghepehaaddojmnjnkkija",
@@ -665,13 +763,13 @@ var container5 = "WhatIsAWallet_container__1kdcimq0";
665
763
  var content3 = "WhatIsAWallet_content__1kdcimq1";
666
764
 
667
765
  // src/components/connect-modal/views/WhatIsAWallet.tsx
668
- import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
766
+ import { jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
669
767
  function WhatIsAWallet() {
670
768
  return /* @__PURE__ */ jsxs5("div", { className: container5, children: [
671
- /* @__PURE__ */ jsx15(Heading, { as: "h2", children: "What is a Wallet" }),
769
+ /* @__PURE__ */ jsx16(Heading, { as: "h2", children: "What is a Wallet" }),
672
770
  /* @__PURE__ */ jsxs5("div", { className: content3, children: [
673
- /* @__PURE__ */ jsx15(InfoSection, { title: "Easy Login", children: "No need to create new accounts and passwords for every website. Just connect your wallet and get going." }),
674
- /* @__PURE__ */ jsx15(InfoSection, { title: "Store your Digital Assets", children: "Send, receive, store, and display your digital assets like NFTs & coins." })
771
+ /* @__PURE__ */ jsx16(InfoSection, { title: "Easy Login", children: "No need to create new accounts and passwords for every website. Just connect your wallet and get going." }),
772
+ /* @__PURE__ */ jsx16(InfoSection, { title: "Store your Digital Assets", children: "Send, receive, store, and display your digital assets like NFTs & coins." })
675
773
  ] })
676
774
  ] });
677
775
  }
@@ -682,9 +780,9 @@ function useWallets() {
682
780
  }
683
781
 
684
782
  // src/components/icons/IotaIcon.tsx
685
- import { jsx as jsx16 } from "react/jsx-runtime";
783
+ import { jsx as jsx17 } from "react/jsx-runtime";
686
784
  function IotaIcon(props) {
687
- return /* @__PURE__ */ jsx16(
785
+ return /* @__PURE__ */ jsx17(
688
786
  "svg",
689
787
  {
690
788
  xmlns: "http://www.w3.org/2000/svg",
@@ -693,7 +791,7 @@ function IotaIcon(props) {
693
791
  fill: "none",
694
792
  viewBox: "0 0 24 24",
695
793
  ...props,
696
- children: /* @__PURE__ */ jsx16(
794
+ children: /* @__PURE__ */ jsx17(
697
795
  "path",
698
796
  {
699
797
  fill: "#171d26",
@@ -718,27 +816,27 @@ var walletIcon2 = "WalletListItem_walletIcon__1vrvezk3";
718
816
  var walletItem = "WalletListItem_walletItem__1vrvezk1";
719
817
 
720
818
  // src/components/connect-modal/wallet-list/WalletListItem.tsx
721
- import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
819
+ import { jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
722
820
  function WalletListItem({ name, icon: icon2, onClick, isSelected = false }) {
723
- return /* @__PURE__ */ jsx17("li", { className: container7, children: /* @__PURE__ */ jsxs6(
821
+ return /* @__PURE__ */ jsx18("li", { className: container7, children: /* @__PURE__ */ jsxs6(
724
822
  "button",
725
823
  {
726
824
  className: clsx6(walletItem, { [selectedWalletItem]: isSelected }),
727
825
  type: "button",
728
826
  onClick,
729
827
  children: [
730
- icon2 && typeof icon2 === "string" ? /* @__PURE__ */ jsx17("img", { className: walletIcon2, src: icon2, alt: `${name} logo` }) : icon2,
731
- /* @__PURE__ */ jsx17(Heading, { size: "md", truncate: true, asChild: true, children: /* @__PURE__ */ jsx17("div", { children: name }) })
828
+ icon2 && typeof icon2 === "string" ? /* @__PURE__ */ jsx18("img", { className: walletIcon2, src: icon2, alt: `${name} logo` }) : icon2,
829
+ /* @__PURE__ */ jsx18(Heading, { size: "md", truncate: true, asChild: true, children: /* @__PURE__ */ jsx18("div", { children: name }) })
732
830
  ]
733
831
  }
734
832
  ) });
735
833
  }
736
834
 
737
835
  // src/components/connect-modal/wallet-list/WalletList.tsx
738
- import { jsx as jsx18 } from "react/jsx-runtime";
836
+ import { jsx as jsx19 } from "react/jsx-runtime";
739
837
  function WalletList({ selectedWalletName, onPlaceholderClick, onSelect }) {
740
838
  const wallets = useWallets();
741
- return /* @__PURE__ */ jsx18("ul", { className: container6, children: wallets.length > 0 ? wallets.map((wallet) => /* @__PURE__ */ jsx18(
839
+ return /* @__PURE__ */ jsx19("ul", { className: container6, children: wallets.length > 0 ? wallets.map((wallet) => /* @__PURE__ */ jsx19(
742
840
  WalletListItem,
743
841
  {
744
842
  name: wallet.name,
@@ -747,11 +845,11 @@ function WalletList({ selectedWalletName, onPlaceholderClick, onSelect }) {
747
845
  onClick: () => onSelect(wallet)
748
846
  },
749
847
  getWalletUniqueIdentifier(wallet)
750
- )) : /* @__PURE__ */ jsx18(
848
+ )) : /* @__PURE__ */ jsx19(
751
849
  WalletListItem,
752
850
  {
753
851
  name: "IOTA Wallet",
754
- icon: /* @__PURE__ */ jsx18(IotaIcon, { className: icon }),
852
+ icon: /* @__PURE__ */ jsx19(IotaIcon, { className: icon }),
755
853
  onClick: onPlaceholderClick,
756
854
  isSelected: true
757
855
  }
@@ -759,7 +857,7 @@ function WalletList({ selectedWalletName, onPlaceholderClick, onSelect }) {
759
857
  }
760
858
 
761
859
  // src/components/connect-modal/ConnectModal.tsx
762
- import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
860
+ import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
763
861
  function ConnectModal({
764
862
  trigger,
765
863
  open,
@@ -767,9 +865,9 @@ function ConnectModal({
767
865
  onOpenChange,
768
866
  onConnected
769
867
  }) {
770
- const [isModalOpen, setModalOpen] = useState2(open ?? defaultOpen);
771
- const [currentView, setCurrentView] = useState2();
772
- const [selectedWallet, setSelectedWallet] = useState2();
868
+ const [isModalOpen, setModalOpen] = useState3(open ?? defaultOpen);
869
+ const [currentView, setCurrentView] = useState3();
870
+ const [selectedWallet, setSelectedWallet] = useState3();
773
871
  const { mutate, isError } = useConnectWallet({
774
872
  onConnected
775
873
  });
@@ -796,13 +894,13 @@ function ConnectModal({
796
894
  let modalContent;
797
895
  switch (currentView) {
798
896
  case "what-is-a-wallet":
799
- modalContent = /* @__PURE__ */ jsx19(WhatIsAWallet, {});
897
+ modalContent = /* @__PURE__ */ jsx20(WhatIsAWallet, {});
800
898
  break;
801
899
  case "getting-started":
802
- modalContent = /* @__PURE__ */ jsx19(GettingStarted, {});
900
+ modalContent = /* @__PURE__ */ jsx20(GettingStarted, {});
803
901
  break;
804
902
  case "connection-status":
805
- modalContent = /* @__PURE__ */ jsx19(
903
+ modalContent = /* @__PURE__ */ jsx20(
806
904
  ConnectionStatus,
807
905
  {
808
906
  selectedWallet,
@@ -812,11 +910,11 @@ function ConnectModal({
812
910
  );
813
911
  break;
814
912
  default:
815
- modalContent = /* @__PURE__ */ jsx19(WhatIsAWallet, {});
913
+ modalContent = /* @__PURE__ */ jsx20(WhatIsAWallet, {});
816
914
  }
817
915
  return /* @__PURE__ */ jsxs7(Dialog.Root, { open: open ?? isModalOpen, onOpenChange: handleOpenChange, children: [
818
- /* @__PURE__ */ jsx19(Dialog.Trigger, { asChild: true, children: trigger }),
819
- /* @__PURE__ */ jsx19(Dialog.Portal, { children: /* @__PURE__ */ jsx19(StyleMarker, { children: /* @__PURE__ */ jsx19(Dialog.Overlay, { className: overlay, children: /* @__PURE__ */ jsxs7(Dialog.Content, { className: content, "aria-describedby": void 0, children: [
916
+ /* @__PURE__ */ jsx20(Dialog.Trigger, { asChild: true, children: trigger }),
917
+ /* @__PURE__ */ jsx20(Dialog.Portal, { children: /* @__PURE__ */ jsx20(StyleMarker, { children: /* @__PURE__ */ jsx20(Dialog.Overlay, { className: overlay, children: /* @__PURE__ */ jsxs7(Dialog.Content, { className: content, "aria-describedby": void 0, children: [
820
918
  /* @__PURE__ */ jsxs7(
821
919
  "div",
822
920
  {
@@ -825,8 +923,8 @@ function ConnectModal({
825
923
  }),
826
924
  children: [
827
925
  /* @__PURE__ */ jsxs7("div", { className: walletListContent, children: [
828
- /* @__PURE__ */ jsx19(Dialog.Title, { className: title, asChild: true, children: /* @__PURE__ */ jsx19(Heading, { as: "h2", children: "Connect a Wallet" }) }),
829
- /* @__PURE__ */ jsx19(
926
+ /* @__PURE__ */ jsx20(Dialog.Title, { className: title, asChild: true, children: /* @__PURE__ */ jsx20(Heading, { as: "h2", children: "Connect a Wallet" }) }),
927
+ /* @__PURE__ */ jsx20(
830
928
  WalletList,
831
929
  {
832
930
  selectedWalletName: getWalletUniqueIdentifier(
@@ -842,7 +940,7 @@ function ConnectModal({
842
940
  }
843
941
  )
844
942
  ] }),
845
- /* @__PURE__ */ jsx19(
943
+ /* @__PURE__ */ jsx20(
846
944
  "button",
847
945
  {
848
946
  className: whatIsAWalletButton,
@@ -861,26 +959,26 @@ function ConnectModal({
861
959
  [selectedViewContainer]: !!currentView
862
960
  }),
863
961
  children: [
864
- /* @__PURE__ */ jsx19("div", { className: backButtonContainer, children: /* @__PURE__ */ jsx19(
962
+ /* @__PURE__ */ jsx20("div", { className: backButtonContainer, children: /* @__PURE__ */ jsx20(
865
963
  IconButton,
866
964
  {
867
965
  type: "button",
868
966
  "aria-label": "Back",
869
967
  onClick: () => resetSelection(),
870
- children: /* @__PURE__ */ jsx19(BackIcon, {})
968
+ children: /* @__PURE__ */ jsx20(BackIcon, {})
871
969
  }
872
970
  ) }),
873
971
  modalContent
874
972
  ]
875
973
  }
876
974
  ),
877
- /* @__PURE__ */ jsx19(Dialog.Close, { className: closeButtonContainer, asChild: true, children: /* @__PURE__ */ jsx19(IconButton, { type: "button", "aria-label": "Close", children: /* @__PURE__ */ jsx19(CloseIcon, {}) }) })
975
+ /* @__PURE__ */ jsx20(Dialog.Close, { className: closeButtonContainer, asChild: true, children: /* @__PURE__ */ jsx20(IconButton, { type: "button", "aria-label": "Close", children: /* @__PURE__ */ jsx20(CloseIcon, {}) }) })
878
976
  ] }) }) }) })
879
977
  ] });
880
978
  }
881
979
 
882
980
  // src/components/ConnectButton.tsx
883
- import { jsx as jsx20 } from "react/jsx-runtime";
981
+ import { jsx as jsx21 } from "react/jsx-runtime";
884
982
  function ConnectButton({
885
983
  connectText = "Connect Wallet",
886
984
  size,
@@ -889,18 +987,18 @@ function ConnectButton({
889
987
  ...buttonProps
890
988
  }) {
891
989
  const currentAccount = useCurrentAccount();
892
- return currentAccount ? /* @__PURE__ */ jsx20(
990
+ return currentAccount ? /* @__PURE__ */ jsx21(
893
991
  AccountDropdownMenu,
894
992
  {
895
993
  currentAccount,
896
994
  size,
897
995
  iotaNamesEnabled
898
996
  }
899
- ) : /* @__PURE__ */ jsx20(
997
+ ) : /* @__PURE__ */ jsx21(
900
998
  ConnectModal,
901
999
  {
902
1000
  onConnected,
903
- trigger: /* @__PURE__ */ jsx20(StyleMarker, { children: /* @__PURE__ */ jsx20(Button, { ...buttonProps, size, children: connectText }) })
1001
+ trigger: /* @__PURE__ */ jsx21(StyleMarker, { children: /* @__PURE__ */ jsx21(Button, { ...buttonProps, size, children: connectText }) })
904
1002
  }
905
1003
  );
906
1004
  }