@txnlab/use-wallet-ui-react 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/cjs/chunks/floating-ui.react-O3sXJ80G.cjs +5 -0
- package/dist/cjs/chunks/floating-ui.react-O3sXJ80G.cjs.map +1 -0
- package/dist/cjs/index.cjs +15 -18
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/plugins/export-key.cjs +9 -0
- package/dist/cjs/plugins/export-key.cjs.map +1 -0
- package/dist/esm/chunks/floating-ui.react-Co7v2aHO.js +2619 -0
- package/dist/esm/chunks/floating-ui.react-Co7v2aHO.js.map +1 -0
- package/dist/esm/index.js +4932 -7775
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugins/export-key.js +3030 -0
- package/dist/esm/plugins/export-key.js.map +1 -0
- package/dist/style.css +109 -1
- package/dist/types/components/AlgoSymbol.d.ts +11 -0
- package/dist/types/components/AlgoSymbol.d.ts.map +1 -0
- package/dist/types/components/ConnectWalletButton.d.ts +9 -0
- package/dist/types/components/ConnectWalletButton.d.ts.map +1 -0
- package/dist/types/components/ConnectWalletMenu.d.ts +10 -0
- package/dist/types/components/ConnectWalletMenu.d.ts.map +1 -0
- package/dist/types/components/ConnectedWalletButton.d.ts +9 -0
- package/dist/types/components/ConnectedWalletButton.d.ts.map +1 -0
- package/dist/types/components/ConnectedWalletMenu.d.ts +10 -0
- package/dist/types/components/ConnectedWalletMenu.d.ts.map +1 -0
- package/dist/types/components/NfdAvatar.d.ts +24 -0
- package/dist/types/components/NfdAvatar.d.ts.map +1 -0
- package/dist/types/components/WalletButton.d.ts +12 -0
- package/dist/types/components/WalletButton.d.ts.map +1 -0
- package/dist/types/components/WalletList.d.ts +7 -0
- package/dist/types/components/WalletList.d.ts.map +1 -0
- package/dist/types/hooks/useAccountInfo.d.ts +12 -0
- package/dist/types/hooks/useAccountInfo.d.ts.map +1 -0
- package/dist/types/hooks/useNfd.d.ts +32 -0
- package/dist/types/hooks/useNfd.d.ts.map +1 -0
- package/dist/types/hooks/useResolvedTheme.d.ts +11 -0
- package/dist/types/hooks/useResolvedTheme.d.ts.map +1 -0
- package/dist/types/index.d.cts +17 -197
- package/dist/types/index.d.ts +17 -197
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/plugins/PluginContext.d.ts +29 -0
- package/dist/types/plugins/PluginContext.d.ts.map +1 -0
- package/dist/types/plugins/PluginDialogRenderer.d.ts +10 -0
- package/dist/types/plugins/PluginDialogRenderer.d.ts.map +1 -0
- package/dist/types/plugins/PluginLifecycleManager.d.ts +9 -0
- package/dist/types/plugins/PluginLifecycleManager.d.ts.map +1 -0
- package/dist/types/plugins/PluginSlot.d.ts +10 -0
- package/dist/types/plugins/PluginSlot.d.ts.map +1 -0
- package/dist/types/plugins/export-key/ExportKeyDialog.d.ts +6 -0
- package/dist/types/plugins/export-key/ExportKeyDialog.d.ts.map +1 -0
- package/dist/types/plugins/export-key/ExportKeyMenuButton.d.ts +5 -0
- package/dist/types/plugins/export-key/ExportKeyMenuButton.d.ts.map +1 -0
- package/dist/types/plugins/export-key/constants.d.ts +2 -0
- package/dist/types/plugins/export-key/constants.d.ts.map +1 -0
- package/dist/types/plugins/export-key/index.d.cts +12 -0
- package/dist/types/plugins/export-key/index.d.ts +12 -0
- package/dist/types/plugins/export-key/index.d.ts.map +1 -0
- package/dist/types/plugins/index.d.ts +6 -0
- package/dist/types/plugins/index.d.ts.map +1 -0
- package/dist/types/plugins/types.d.ts +109 -0
- package/dist/types/plugins/types.d.ts.map +1 -0
- package/dist/types/providers/WalletUIProvider.d.ts +58 -0
- package/dist/types/providers/WalletUIProvider.d.ts.map +1 -0
- package/dist/types/test/setup.d.ts +2 -0
- package/dist/types/test/setup.d.ts.map +1 -0
- package/dist/types/utils/cn.d.ts +16 -0
- package/dist/types/utils/cn.d.ts.map +1 -0
- package/dist/types/utils/fontLoader.d.ts +8 -0
- package/dist/types/utils/fontLoader.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/ipfs.d.ts +10 -0
- package/dist/types/utils/ipfs.d.ts.map +1 -0
- package/dist/types/utils/ipfs.test.d.ts +2 -0
- package/dist/types/utils/ipfs.test.d.ts.map +1 -0
- package/package.json +23 -13
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
:root, :host {
|
|
4
4
|
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
--color-black: #000;
|
|
7
7
|
--spacing: 0.25rem;
|
|
8
8
|
--container-sm: 24rem;
|
|
9
|
+
--text-xs: 0.75rem;
|
|
10
|
+
--text-xs--line-height: calc(1 / 0.75);
|
|
9
11
|
--text-sm: 0.875rem;
|
|
10
12
|
--text-sm--line-height: calc(1.25 / 0.875);
|
|
11
13
|
--text-base: 1rem;
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
--radius-3xl: 1.5rem;
|
|
24
26
|
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
25
27
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
28
|
+
--animate-spin: spin 1s linear infinite;
|
|
26
29
|
--default-transition-duration: 150ms;
|
|
27
30
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
28
31
|
}
|
|
@@ -140,6 +143,9 @@
|
|
|
140
143
|
--wui-color-avatar-icon: #6b7280;
|
|
141
144
|
}
|
|
142
145
|
}
|
|
146
|
+
[data-wallet-ui].visible, [data-wallet-ui] .visible {
|
|
147
|
+
visibility: visible;
|
|
148
|
+
}
|
|
143
149
|
[data-wallet-ui].absolute, [data-wallet-ui] .absolute {
|
|
144
150
|
position: absolute;
|
|
145
151
|
}
|
|
@@ -182,6 +188,9 @@
|
|
|
182
188
|
[data-wallet-ui].mr-1\.5, [data-wallet-ui] .mr-1\.5 {
|
|
183
189
|
margin-right: calc(var(--spacing) * 1.5);
|
|
184
190
|
}
|
|
191
|
+
[data-wallet-ui].mb-0\.5, [data-wallet-ui] .mb-0\.5 {
|
|
192
|
+
margin-bottom: calc(var(--spacing) * 0.5);
|
|
193
|
+
}
|
|
185
194
|
[data-wallet-ui].mb-1, [data-wallet-ui] .mb-1 {
|
|
186
195
|
margin-bottom: calc(var(--spacing) * 1);
|
|
187
196
|
}
|
|
@@ -212,6 +221,9 @@
|
|
|
212
221
|
[data-wallet-ui].hidden, [data-wallet-ui] .hidden {
|
|
213
222
|
display: none;
|
|
214
223
|
}
|
|
224
|
+
[data-wallet-ui].inline, [data-wallet-ui] .inline {
|
|
225
|
+
display: inline;
|
|
226
|
+
}
|
|
215
227
|
[data-wallet-ui].inline-block, [data-wallet-ui] .inline-block {
|
|
216
228
|
display: inline-block;
|
|
217
229
|
}
|
|
@@ -290,6 +302,9 @@
|
|
|
290
302
|
[data-wallet-ui].transform, [data-wallet-ui] .transform {
|
|
291
303
|
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
292
304
|
}
|
|
305
|
+
[data-wallet-ui].animate-spin, [data-wallet-ui] .animate-spin {
|
|
306
|
+
animation: var(--animate-spin);
|
|
307
|
+
}
|
|
293
308
|
[data-wallet-ui].cursor-default, [data-wallet-ui] .cursor-default {
|
|
294
309
|
cursor: default;
|
|
295
310
|
}
|
|
@@ -299,12 +314,21 @@
|
|
|
299
314
|
[data-wallet-ui].grid-cols-1, [data-wallet-ui] .grid-cols-1 {
|
|
300
315
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
301
316
|
}
|
|
317
|
+
[data-wallet-ui].grid-cols-3, [data-wallet-ui] .grid-cols-3 {
|
|
318
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
319
|
+
}
|
|
320
|
+
[data-wallet-ui].flex-col, [data-wallet-ui] .flex-col {
|
|
321
|
+
flex-direction: column;
|
|
322
|
+
}
|
|
302
323
|
[data-wallet-ui].place-items-center, [data-wallet-ui] .place-items-center {
|
|
303
324
|
place-items: center;
|
|
304
325
|
}
|
|
305
326
|
[data-wallet-ui].items-center, [data-wallet-ui] .items-center {
|
|
306
327
|
align-items: center;
|
|
307
328
|
}
|
|
329
|
+
[data-wallet-ui].items-start, [data-wallet-ui] .items-start {
|
|
330
|
+
align-items: flex-start;
|
|
331
|
+
}
|
|
308
332
|
[data-wallet-ui].justify-between, [data-wallet-ui] .justify-between {
|
|
309
333
|
justify-content: space-between;
|
|
310
334
|
}
|
|
@@ -314,6 +338,9 @@
|
|
|
314
338
|
[data-wallet-ui].gap-1, [data-wallet-ui] .gap-1 {
|
|
315
339
|
gap: calc(var(--spacing) * 1);
|
|
316
340
|
}
|
|
341
|
+
[data-wallet-ui].gap-1\.5, [data-wallet-ui] .gap-1\.5 {
|
|
342
|
+
gap: calc(var(--spacing) * 1.5);
|
|
343
|
+
}
|
|
317
344
|
[data-wallet-ui].gap-2, [data-wallet-ui] .gap-2 {
|
|
318
345
|
gap: calc(var(--spacing) * 2);
|
|
319
346
|
}
|
|
@@ -394,6 +421,9 @@
|
|
|
394
421
|
[data-wallet-ui].object-contain, [data-wallet-ui] .object-contain {
|
|
395
422
|
object-fit: contain;
|
|
396
423
|
}
|
|
424
|
+
[data-wallet-ui].p-1, [data-wallet-ui] .p-1 {
|
|
425
|
+
padding: calc(var(--spacing) * 1);
|
|
426
|
+
}
|
|
397
427
|
[data-wallet-ui].p-2, [data-wallet-ui] .p-2 {
|
|
398
428
|
padding: calc(var(--spacing) * 2);
|
|
399
429
|
}
|
|
@@ -409,6 +439,9 @@
|
|
|
409
439
|
[data-wallet-ui].px-1\.5, [data-wallet-ui] .px-1\.5 {
|
|
410
440
|
padding-inline: calc(var(--spacing) * 1.5);
|
|
411
441
|
}
|
|
442
|
+
[data-wallet-ui].px-2, [data-wallet-ui] .px-2 {
|
|
443
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
444
|
+
}
|
|
412
445
|
[data-wallet-ui].px-3, [data-wallet-ui] .px-3 {
|
|
413
446
|
padding-inline: calc(var(--spacing) * 3);
|
|
414
447
|
}
|
|
@@ -442,6 +475,9 @@
|
|
|
442
475
|
[data-wallet-ui].py-5, [data-wallet-ui] .py-5 {
|
|
443
476
|
padding-block: calc(var(--spacing) * 5);
|
|
444
477
|
}
|
|
478
|
+
[data-wallet-ui].py-12, [data-wallet-ui] .py-12 {
|
|
479
|
+
padding-block: calc(var(--spacing) * 12);
|
|
480
|
+
}
|
|
445
481
|
[data-wallet-ui].pt-5, [data-wallet-ui] .pt-5 {
|
|
446
482
|
padding-top: calc(var(--spacing) * 5);
|
|
447
483
|
}
|
|
@@ -460,12 +496,18 @@
|
|
|
460
496
|
[data-wallet-ui].pr-9, [data-wallet-ui] .pr-9 {
|
|
461
497
|
padding-right: calc(var(--spacing) * 9);
|
|
462
498
|
}
|
|
499
|
+
[data-wallet-ui].pb-2, [data-wallet-ui] .pb-2 {
|
|
500
|
+
padding-bottom: calc(var(--spacing) * 2);
|
|
501
|
+
}
|
|
463
502
|
[data-wallet-ui].pb-3, [data-wallet-ui] .pb-3 {
|
|
464
503
|
padding-bottom: calc(var(--spacing) * 3);
|
|
465
504
|
}
|
|
466
505
|
[data-wallet-ui].pb-4, [data-wallet-ui] .pb-4 {
|
|
467
506
|
padding-bottom: calc(var(--spacing) * 4);
|
|
468
507
|
}
|
|
508
|
+
[data-wallet-ui].pb-5, [data-wallet-ui] .pb-5 {
|
|
509
|
+
padding-bottom: calc(var(--spacing) * 5);
|
|
510
|
+
}
|
|
469
511
|
[data-wallet-ui].pl-2, [data-wallet-ui] .pl-2 {
|
|
470
512
|
padding-left: calc(var(--spacing) * 2);
|
|
471
513
|
}
|
|
@@ -503,6 +545,17 @@
|
|
|
503
545
|
font-size: var(--text-xl);
|
|
504
546
|
line-height: var(--tw-leading, var(--text-xl--line-height));
|
|
505
547
|
}
|
|
548
|
+
[data-wallet-ui].text-xs, [data-wallet-ui] .text-xs {
|
|
549
|
+
font-size: var(--text-xs);
|
|
550
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
551
|
+
}
|
|
552
|
+
[data-wallet-ui].text-\[10px\], [data-wallet-ui] .text-\[10px\] {
|
|
553
|
+
font-size: 10px;
|
|
554
|
+
}
|
|
555
|
+
[data-wallet-ui].leading-none, [data-wallet-ui] .leading-none {
|
|
556
|
+
--tw-leading: 1;
|
|
557
|
+
line-height: 1;
|
|
558
|
+
}
|
|
506
559
|
[data-wallet-ui].font-bold, [data-wallet-ui] .font-bold {
|
|
507
560
|
--tw-font-weight: var(--font-weight-bold);
|
|
508
561
|
font-weight: var(--font-weight-bold);
|
|
@@ -542,6 +595,19 @@
|
|
|
542
595
|
[data-wallet-ui].text-green-500, [data-wallet-ui] .text-green-500 {
|
|
543
596
|
color: var(--color-green-500);
|
|
544
597
|
}
|
|
598
|
+
[data-wallet-ui].tabular-nums, [data-wallet-ui] .tabular-nums {
|
|
599
|
+
--tw-numeric-spacing: tabular-nums;
|
|
600
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
601
|
+
}
|
|
602
|
+
[data-wallet-ui].opacity-25, [data-wallet-ui] .opacity-25 {
|
|
603
|
+
opacity: 25%;
|
|
604
|
+
}
|
|
605
|
+
[data-wallet-ui].opacity-50, [data-wallet-ui] .opacity-50 {
|
|
606
|
+
opacity: 50%;
|
|
607
|
+
}
|
|
608
|
+
[data-wallet-ui].opacity-75, [data-wallet-ui] .opacity-75 {
|
|
609
|
+
opacity: 75%;
|
|
610
|
+
}
|
|
545
611
|
[data-wallet-ui].opacity-80, [data-wallet-ui] .opacity-80 {
|
|
546
612
|
opacity: 80%;
|
|
547
613
|
}
|
|
@@ -617,6 +683,13 @@
|
|
|
617
683
|
}
|
|
618
684
|
}
|
|
619
685
|
}
|
|
686
|
+
[data-wallet-ui].hover\:bg-\[var\(--wui-color-bg-secondary\)\], [data-wallet-ui] .hover\:bg-\[var\(--wui-color-bg-secondary\)\] {
|
|
687
|
+
&:hover {
|
|
688
|
+
@media (hover: hover) {
|
|
689
|
+
background-color: var(--wui-color-bg-secondary);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
620
693
|
[data-wallet-ui].hover\:bg-\[var\(--wui-color-danger-bg-hover\)\], [data-wallet-ui] .hover\:bg-\[var\(--wui-color-danger-bg-hover\)\] {
|
|
621
694
|
&:hover {
|
|
622
695
|
@media (hover: hover) {
|
|
@@ -814,10 +887,34 @@
|
|
|
814
887
|
inherits: false;
|
|
815
888
|
initial-value: solid;
|
|
816
889
|
}
|
|
890
|
+
@property --tw-leading {
|
|
891
|
+
syntax: "*";
|
|
892
|
+
inherits: false;
|
|
893
|
+
}
|
|
817
894
|
@property --tw-font-weight {
|
|
818
895
|
syntax: "*";
|
|
819
896
|
inherits: false;
|
|
820
897
|
}
|
|
898
|
+
@property --tw-ordinal {
|
|
899
|
+
syntax: "*";
|
|
900
|
+
inherits: false;
|
|
901
|
+
}
|
|
902
|
+
@property --tw-slashed-zero {
|
|
903
|
+
syntax: "*";
|
|
904
|
+
inherits: false;
|
|
905
|
+
}
|
|
906
|
+
@property --tw-numeric-figure {
|
|
907
|
+
syntax: "*";
|
|
908
|
+
inherits: false;
|
|
909
|
+
}
|
|
910
|
+
@property --tw-numeric-spacing {
|
|
911
|
+
syntax: "*";
|
|
912
|
+
inherits: false;
|
|
913
|
+
}
|
|
914
|
+
@property --tw-numeric-fraction {
|
|
915
|
+
syntax: "*";
|
|
916
|
+
inherits: false;
|
|
917
|
+
}
|
|
821
918
|
@property --tw-shadow {
|
|
822
919
|
syntax: "*";
|
|
823
920
|
inherits: false;
|
|
@@ -959,6 +1056,11 @@
|
|
|
959
1056
|
inherits: false;
|
|
960
1057
|
initial-value: 1;
|
|
961
1058
|
}
|
|
1059
|
+
@keyframes spin {
|
|
1060
|
+
to {
|
|
1061
|
+
transform: rotate(360deg);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
962
1064
|
@layer properties {
|
|
963
1065
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
964
1066
|
*, ::before, ::after, ::backdrop {
|
|
@@ -969,7 +1071,13 @@
|
|
|
969
1071
|
--tw-skew-y: initial;
|
|
970
1072
|
--tw-space-y-reverse: 0;
|
|
971
1073
|
--tw-border-style: solid;
|
|
1074
|
+
--tw-leading: initial;
|
|
972
1075
|
--tw-font-weight: initial;
|
|
1076
|
+
--tw-ordinal: initial;
|
|
1077
|
+
--tw-slashed-zero: initial;
|
|
1078
|
+
--tw-numeric-figure: initial;
|
|
1079
|
+
--tw-numeric-spacing: initial;
|
|
1080
|
+
--tw-numeric-fraction: initial;
|
|
973
1081
|
--tw-shadow: 0 0 #0000;
|
|
974
1082
|
--tw-shadow-color: initial;
|
|
975
1083
|
--tw-shadow-alpha: 100%;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface AlgoSymbolProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
/**
|
|
4
|
+
* Size relative to current font size (1em = 100%)
|
|
5
|
+
* @default 0.85
|
|
6
|
+
*/
|
|
7
|
+
scale?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function AlgoSymbol({ className, scale }: AlgoSymbolProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=AlgoSymbol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlgoSymbol.d.ts","sourceRoot":"","sources":["../../../src/components/AlgoSymbol.tsx"],"names":[],"mappings":"AAEA,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,KAAY,EAAE,EAAE,eAAe,2CAgBtE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface ConnectWalletButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/** Size variant for the button */
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare const ConnectWalletButton: React.ForwardRefExoticComponent<ConnectWalletButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
//# sourceMappingURL=ConnectWalletButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectWalletButton.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectWalletButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAQ3C,MAAM,WAAW,wBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,kCAAkC;IAClC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,eAAO,MAAM,mBAAmB,oGAqB9B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from 'react';
|
|
2
|
+
type RefableElement = ReactElement & {
|
|
3
|
+
ref?: RefObject<HTMLElement> | ((instance: HTMLElement | null) => void);
|
|
4
|
+
};
|
|
5
|
+
export interface ConnectWalletMenuProps {
|
|
6
|
+
children?: RefableElement;
|
|
7
|
+
}
|
|
8
|
+
export declare function ConnectWalletMenu({ children }: ConnectWalletMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ConnectWalletMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectWalletMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectWalletMenu.tsx"],"names":[],"mappings":"AAaA,OAAc,EAAE,YAAY,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAUhE,KAAK,cAAc,GAAG,YAAY,GAAG;IACnC,GAAG,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC,CAAA;CACxE,CAAA;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,cAAc,CAAA;CAC1B;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CAiLrE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonSize } from './ConnectWalletButton';
|
|
3
|
+
export interface ConnectedWalletButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/** Size variant for the button */
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare const ConnectedWalletButton: React.ForwardRefExoticComponent<ConnectedWalletButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
//# sourceMappingURL=ConnectedWalletButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectedWalletButton.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedWalletButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AA0BvD,MAAM,WAAW,0BACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,kCAAkC;IAClC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,eAAO,MAAM,qBAAqB,sGAsEhC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from 'react';
|
|
2
|
+
type RefableElement = ReactElement & {
|
|
3
|
+
ref?: RefObject<HTMLElement> | ((instance: HTMLElement | null) => void);
|
|
4
|
+
};
|
|
5
|
+
export interface ConnectedWalletMenuProps {
|
|
6
|
+
children?: RefableElement;
|
|
7
|
+
}
|
|
8
|
+
export declare function ConnectedWalletMenu(props: ConnectedWalletMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ConnectedWalletMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectedWalletMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedWalletMenu.tsx"],"names":[],"mappings":"AAuBA,OAAc,EAAE,YAAY,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAehE,KAAK,cAAc,GAAG,YAAY,GAAG;IACnC,GAAG,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC,CAAA;CACxE,CAAA;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,cAAc,CAAA;CAC1B;AA6eD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAQlE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NfdRecord } from '../hooks/useNfd';
|
|
3
|
+
export interface NfdAvatarProps {
|
|
4
|
+
/** NFD record containing avatar data */
|
|
5
|
+
nfd: NfdRecord | null | undefined;
|
|
6
|
+
/** Optional alt text for the image (defaults to NFD name or 'NFD Avatar') */
|
|
7
|
+
alt?: string;
|
|
8
|
+
/** Optional className for styling the image */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Optional size in pixels (defaults to 40px) */
|
|
11
|
+
size?: number;
|
|
12
|
+
/** Optional fallback element to show when no avatar is available */
|
|
13
|
+
fallback?: React.ReactNode;
|
|
14
|
+
/** Optional flag to show light only avatar */
|
|
15
|
+
lightOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Component for displaying NFD avatar images with automatic IPFS handling
|
|
19
|
+
* - Handles IPFS URLs by converting them to HTTPS
|
|
20
|
+
* - Checks availability on images.nf.domains and falls back to IPFS gateway if needed
|
|
21
|
+
* - Caches results using TanStack Query
|
|
22
|
+
*/
|
|
23
|
+
export declare function NfdAvatar({ nfd, alt, className, size, fallback, lightOnly, }: NfdAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=NfdAvatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NfdAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/NfdAvatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,GAAG,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,6EAA6E;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,GAAG,EACH,GAAG,EACH,SAAS,EACT,IAAS,EACT,QAAQ,EACR,SAAiB,GAClB,EAAE,cAAc,2CA6FhB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonSize } from './ConnectWalletButton';
|
|
3
|
+
export interface WalletButtonProps {
|
|
4
|
+
/** Size variant for the button */
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
/** Additional CSS classes to apply to the button */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Inline styles to apply to the button (can include CSS variable overrides) */
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
export declare function WalletButton({ size, className, style }: WalletButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=WalletButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletButton.d.ts","sourceRoot":"","sources":["../../../src/components/WalletButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,uBAAuB,CAAA;AAG5E,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,iBAAiB,2CAkBzE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Wallet } from '@txnlab/use-wallet-react';
|
|
2
|
+
export interface WalletListProps {
|
|
3
|
+
wallets: Wallet[];
|
|
4
|
+
handleWalletClick: (wallet: Wallet) => Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export declare function WalletList({ wallets, handleWalletClick }: WalletListProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=WalletList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletList.d.ts","sourceRoot":"","sources":["../../../src/components/WalletList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAEtD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACrD;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,eAAe,2CA6BzE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { default as algosdk } from 'algosdk';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook to fetch account information for Algorand address
|
|
5
|
+
*
|
|
6
|
+
* @param options.enabled Whether to enable the account lookup (defaults to true)
|
|
7
|
+
* @returns Account information query result
|
|
8
|
+
*/
|
|
9
|
+
export declare function useAccountInfo(options?: {
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
}): UseQueryResult<algosdk.modelsv2.Account | null>;
|
|
12
|
+
//# sourceMappingURL=useAccountInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccountInfo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccountInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEhE,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAClC,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,CAsBjD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
export type NfdRecord = {
|
|
3
|
+
name: string;
|
|
4
|
+
properties: {
|
|
5
|
+
verified: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
userDefined: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
image?: string;
|
|
13
|
+
avatar?: {
|
|
14
|
+
url?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type NfdLookupResponse = {
|
|
18
|
+
[address: string]: NfdRecord | null;
|
|
19
|
+
};
|
|
20
|
+
export type NfdView = 'tiny' | 'thumbnail' | 'brief' | 'full';
|
|
21
|
+
/**
|
|
22
|
+
* Custom hook to fetch NFD data for an Algorand address
|
|
23
|
+
*
|
|
24
|
+
* @param options.enabled Whether to enable the NFD lookup (defaults to true)
|
|
25
|
+
* @param options.view The view type for the NFD lookup ('tiny', 'thumbnail', 'brief', 'full') (defaults to 'thumbnail')
|
|
26
|
+
* @returns NFD data query result
|
|
27
|
+
*/
|
|
28
|
+
export declare function useNfd(options?: {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
view?: NfdView;
|
|
31
|
+
}): UseQueryResult<NfdRecord | null>;
|
|
32
|
+
//# sourceMappingURL=useNfd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNfd.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNfd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAIhE,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SACtB,CAAA;QACD,WAAW,EAAE;YACX,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SACtB,CAAA;KACF,CAAA;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE;QACP,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAE7D;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAClD,cAAc,CAAC,SAAS,GAAG,IAAI,CAAC,CAqDlC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type Theme = 'light' | 'dark' | 'system';
|
|
2
|
+
export type ResolvedTheme = 'light' | 'dark';
|
|
3
|
+
/**
|
|
4
|
+
* Hook to resolve the actual theme value, handling 'system' preference detection.
|
|
5
|
+
* When theme is 'system', it listens to the user's OS/browser color scheme preference.
|
|
6
|
+
*
|
|
7
|
+
* @param theme - The theme setting: 'light', 'dark', or 'system'
|
|
8
|
+
* @returns The resolved theme: 'light' or 'dark'
|
|
9
|
+
*/
|
|
10
|
+
export declare function useResolvedTheme(theme: Theme): ResolvedTheme;
|
|
11
|
+
//# sourceMappingURL=useResolvedTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResolvedTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useResolvedTheme.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAC/C,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAA;AAE5C;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,CAiC5D"}
|