@txnlab/use-wallet-ui-react 1.0.0 → 1.1.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-Hg8yTXAw.cjs +5 -0
- package/dist/cjs/chunks/floating-ui.react-Hg8yTXAw.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-BBJf3vGf.js +2599 -0
- package/dist/esm/chunks/floating-ui.react-BBJf3vGf.js.map +1 -0
- package/dist/esm/index.js +4780 -7744
- 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 +112 -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 +21 -11
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1
|
|
1
|
+
/*! tailwindcss v4.2.1 | 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
|
}
|
|
@@ -149,6 +155,9 @@
|
|
|
149
155
|
[data-wallet-ui].inset-y-0, [data-wallet-ui] .inset-y-0 {
|
|
150
156
|
inset-block: calc(var(--spacing) * 0);
|
|
151
157
|
}
|
|
158
|
+
[data-wallet-ui].start, [data-wallet-ui] .start {
|
|
159
|
+
inset-inline-start: var(--spacing);
|
|
160
|
+
}
|
|
152
161
|
[data-wallet-ui].right-0, [data-wallet-ui] .right-0 {
|
|
153
162
|
right: calc(var(--spacing) * 0);
|
|
154
163
|
}
|
|
@@ -182,6 +191,9 @@
|
|
|
182
191
|
[data-wallet-ui].mr-1\.5, [data-wallet-ui] .mr-1\.5 {
|
|
183
192
|
margin-right: calc(var(--spacing) * 1.5);
|
|
184
193
|
}
|
|
194
|
+
[data-wallet-ui].mb-0\.5, [data-wallet-ui] .mb-0\.5 {
|
|
195
|
+
margin-bottom: calc(var(--spacing) * 0.5);
|
|
196
|
+
}
|
|
185
197
|
[data-wallet-ui].mb-1, [data-wallet-ui] .mb-1 {
|
|
186
198
|
margin-bottom: calc(var(--spacing) * 1);
|
|
187
199
|
}
|
|
@@ -212,6 +224,9 @@
|
|
|
212
224
|
[data-wallet-ui].hidden, [data-wallet-ui] .hidden {
|
|
213
225
|
display: none;
|
|
214
226
|
}
|
|
227
|
+
[data-wallet-ui].inline, [data-wallet-ui] .inline {
|
|
228
|
+
display: inline;
|
|
229
|
+
}
|
|
215
230
|
[data-wallet-ui].inline-block, [data-wallet-ui] .inline-block {
|
|
216
231
|
display: inline-block;
|
|
217
232
|
}
|
|
@@ -290,6 +305,9 @@
|
|
|
290
305
|
[data-wallet-ui].transform, [data-wallet-ui] .transform {
|
|
291
306
|
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
292
307
|
}
|
|
308
|
+
[data-wallet-ui].animate-spin, [data-wallet-ui] .animate-spin {
|
|
309
|
+
animation: var(--animate-spin);
|
|
310
|
+
}
|
|
293
311
|
[data-wallet-ui].cursor-default, [data-wallet-ui] .cursor-default {
|
|
294
312
|
cursor: default;
|
|
295
313
|
}
|
|
@@ -299,12 +317,21 @@
|
|
|
299
317
|
[data-wallet-ui].grid-cols-1, [data-wallet-ui] .grid-cols-1 {
|
|
300
318
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
301
319
|
}
|
|
320
|
+
[data-wallet-ui].grid-cols-3, [data-wallet-ui] .grid-cols-3 {
|
|
321
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
322
|
+
}
|
|
323
|
+
[data-wallet-ui].flex-col, [data-wallet-ui] .flex-col {
|
|
324
|
+
flex-direction: column;
|
|
325
|
+
}
|
|
302
326
|
[data-wallet-ui].place-items-center, [data-wallet-ui] .place-items-center {
|
|
303
327
|
place-items: center;
|
|
304
328
|
}
|
|
305
329
|
[data-wallet-ui].items-center, [data-wallet-ui] .items-center {
|
|
306
330
|
align-items: center;
|
|
307
331
|
}
|
|
332
|
+
[data-wallet-ui].items-start, [data-wallet-ui] .items-start {
|
|
333
|
+
align-items: flex-start;
|
|
334
|
+
}
|
|
308
335
|
[data-wallet-ui].justify-between, [data-wallet-ui] .justify-between {
|
|
309
336
|
justify-content: space-between;
|
|
310
337
|
}
|
|
@@ -314,6 +341,9 @@
|
|
|
314
341
|
[data-wallet-ui].gap-1, [data-wallet-ui] .gap-1 {
|
|
315
342
|
gap: calc(var(--spacing) * 1);
|
|
316
343
|
}
|
|
344
|
+
[data-wallet-ui].gap-1\.5, [data-wallet-ui] .gap-1\.5 {
|
|
345
|
+
gap: calc(var(--spacing) * 1.5);
|
|
346
|
+
}
|
|
317
347
|
[data-wallet-ui].gap-2, [data-wallet-ui] .gap-2 {
|
|
318
348
|
gap: calc(var(--spacing) * 2);
|
|
319
349
|
}
|
|
@@ -394,6 +424,9 @@
|
|
|
394
424
|
[data-wallet-ui].object-contain, [data-wallet-ui] .object-contain {
|
|
395
425
|
object-fit: contain;
|
|
396
426
|
}
|
|
427
|
+
[data-wallet-ui].p-1, [data-wallet-ui] .p-1 {
|
|
428
|
+
padding: calc(var(--spacing) * 1);
|
|
429
|
+
}
|
|
397
430
|
[data-wallet-ui].p-2, [data-wallet-ui] .p-2 {
|
|
398
431
|
padding: calc(var(--spacing) * 2);
|
|
399
432
|
}
|
|
@@ -409,6 +442,9 @@
|
|
|
409
442
|
[data-wallet-ui].px-1\.5, [data-wallet-ui] .px-1\.5 {
|
|
410
443
|
padding-inline: calc(var(--spacing) * 1.5);
|
|
411
444
|
}
|
|
445
|
+
[data-wallet-ui].px-2, [data-wallet-ui] .px-2 {
|
|
446
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
447
|
+
}
|
|
412
448
|
[data-wallet-ui].px-3, [data-wallet-ui] .px-3 {
|
|
413
449
|
padding-inline: calc(var(--spacing) * 3);
|
|
414
450
|
}
|
|
@@ -442,6 +478,9 @@
|
|
|
442
478
|
[data-wallet-ui].py-5, [data-wallet-ui] .py-5 {
|
|
443
479
|
padding-block: calc(var(--spacing) * 5);
|
|
444
480
|
}
|
|
481
|
+
[data-wallet-ui].py-12, [data-wallet-ui] .py-12 {
|
|
482
|
+
padding-block: calc(var(--spacing) * 12);
|
|
483
|
+
}
|
|
445
484
|
[data-wallet-ui].pt-5, [data-wallet-ui] .pt-5 {
|
|
446
485
|
padding-top: calc(var(--spacing) * 5);
|
|
447
486
|
}
|
|
@@ -460,12 +499,18 @@
|
|
|
460
499
|
[data-wallet-ui].pr-9, [data-wallet-ui] .pr-9 {
|
|
461
500
|
padding-right: calc(var(--spacing) * 9);
|
|
462
501
|
}
|
|
502
|
+
[data-wallet-ui].pb-2, [data-wallet-ui] .pb-2 {
|
|
503
|
+
padding-bottom: calc(var(--spacing) * 2);
|
|
504
|
+
}
|
|
463
505
|
[data-wallet-ui].pb-3, [data-wallet-ui] .pb-3 {
|
|
464
506
|
padding-bottom: calc(var(--spacing) * 3);
|
|
465
507
|
}
|
|
466
508
|
[data-wallet-ui].pb-4, [data-wallet-ui] .pb-4 {
|
|
467
509
|
padding-bottom: calc(var(--spacing) * 4);
|
|
468
510
|
}
|
|
511
|
+
[data-wallet-ui].pb-5, [data-wallet-ui] .pb-5 {
|
|
512
|
+
padding-bottom: calc(var(--spacing) * 5);
|
|
513
|
+
}
|
|
469
514
|
[data-wallet-ui].pl-2, [data-wallet-ui] .pl-2 {
|
|
470
515
|
padding-left: calc(var(--spacing) * 2);
|
|
471
516
|
}
|
|
@@ -503,6 +548,17 @@
|
|
|
503
548
|
font-size: var(--text-xl);
|
|
504
549
|
line-height: var(--tw-leading, var(--text-xl--line-height));
|
|
505
550
|
}
|
|
551
|
+
[data-wallet-ui].text-xs, [data-wallet-ui] .text-xs {
|
|
552
|
+
font-size: var(--text-xs);
|
|
553
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
554
|
+
}
|
|
555
|
+
[data-wallet-ui].text-\[10px\], [data-wallet-ui] .text-\[10px\] {
|
|
556
|
+
font-size: 10px;
|
|
557
|
+
}
|
|
558
|
+
[data-wallet-ui].leading-none, [data-wallet-ui] .leading-none {
|
|
559
|
+
--tw-leading: 1;
|
|
560
|
+
line-height: 1;
|
|
561
|
+
}
|
|
506
562
|
[data-wallet-ui].font-bold, [data-wallet-ui] .font-bold {
|
|
507
563
|
--tw-font-weight: var(--font-weight-bold);
|
|
508
564
|
font-weight: var(--font-weight-bold);
|
|
@@ -542,6 +598,19 @@
|
|
|
542
598
|
[data-wallet-ui].text-green-500, [data-wallet-ui] .text-green-500 {
|
|
543
599
|
color: var(--color-green-500);
|
|
544
600
|
}
|
|
601
|
+
[data-wallet-ui].tabular-nums, [data-wallet-ui] .tabular-nums {
|
|
602
|
+
--tw-numeric-spacing: tabular-nums;
|
|
603
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
604
|
+
}
|
|
605
|
+
[data-wallet-ui].opacity-25, [data-wallet-ui] .opacity-25 {
|
|
606
|
+
opacity: 25%;
|
|
607
|
+
}
|
|
608
|
+
[data-wallet-ui].opacity-50, [data-wallet-ui] .opacity-50 {
|
|
609
|
+
opacity: 50%;
|
|
610
|
+
}
|
|
611
|
+
[data-wallet-ui].opacity-75, [data-wallet-ui] .opacity-75 {
|
|
612
|
+
opacity: 75%;
|
|
613
|
+
}
|
|
545
614
|
[data-wallet-ui].opacity-80, [data-wallet-ui] .opacity-80 {
|
|
546
615
|
opacity: 80%;
|
|
547
616
|
}
|
|
@@ -617,6 +686,13 @@
|
|
|
617
686
|
}
|
|
618
687
|
}
|
|
619
688
|
}
|
|
689
|
+
[data-wallet-ui].hover\:bg-\[var\(--wui-color-bg-secondary\)\], [data-wallet-ui] .hover\:bg-\[var\(--wui-color-bg-secondary\)\] {
|
|
690
|
+
&:hover {
|
|
691
|
+
@media (hover: hover) {
|
|
692
|
+
background-color: var(--wui-color-bg-secondary);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
620
696
|
[data-wallet-ui].hover\:bg-\[var\(--wui-color-danger-bg-hover\)\], [data-wallet-ui] .hover\:bg-\[var\(--wui-color-danger-bg-hover\)\] {
|
|
621
697
|
&:hover {
|
|
622
698
|
@media (hover: hover) {
|
|
@@ -814,10 +890,34 @@
|
|
|
814
890
|
inherits: false;
|
|
815
891
|
initial-value: solid;
|
|
816
892
|
}
|
|
893
|
+
@property --tw-leading {
|
|
894
|
+
syntax: "*";
|
|
895
|
+
inherits: false;
|
|
896
|
+
}
|
|
817
897
|
@property --tw-font-weight {
|
|
818
898
|
syntax: "*";
|
|
819
899
|
inherits: false;
|
|
820
900
|
}
|
|
901
|
+
@property --tw-ordinal {
|
|
902
|
+
syntax: "*";
|
|
903
|
+
inherits: false;
|
|
904
|
+
}
|
|
905
|
+
@property --tw-slashed-zero {
|
|
906
|
+
syntax: "*";
|
|
907
|
+
inherits: false;
|
|
908
|
+
}
|
|
909
|
+
@property --tw-numeric-figure {
|
|
910
|
+
syntax: "*";
|
|
911
|
+
inherits: false;
|
|
912
|
+
}
|
|
913
|
+
@property --tw-numeric-spacing {
|
|
914
|
+
syntax: "*";
|
|
915
|
+
inherits: false;
|
|
916
|
+
}
|
|
917
|
+
@property --tw-numeric-fraction {
|
|
918
|
+
syntax: "*";
|
|
919
|
+
inherits: false;
|
|
920
|
+
}
|
|
821
921
|
@property --tw-shadow {
|
|
822
922
|
syntax: "*";
|
|
823
923
|
inherits: false;
|
|
@@ -959,6 +1059,11 @@
|
|
|
959
1059
|
inherits: false;
|
|
960
1060
|
initial-value: 1;
|
|
961
1061
|
}
|
|
1062
|
+
@keyframes spin {
|
|
1063
|
+
to {
|
|
1064
|
+
transform: rotate(360deg);
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
962
1067
|
@layer properties {
|
|
963
1068
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
964
1069
|
*, ::before, ::after, ::backdrop {
|
|
@@ -969,7 +1074,13 @@
|
|
|
969
1074
|
--tw-skew-y: initial;
|
|
970
1075
|
--tw-space-y-reverse: 0;
|
|
971
1076
|
--tw-border-style: solid;
|
|
1077
|
+
--tw-leading: initial;
|
|
972
1078
|
--tw-font-weight: initial;
|
|
1079
|
+
--tw-ordinal: initial;
|
|
1080
|
+
--tw-slashed-zero: initial;
|
|
1081
|
+
--tw-numeric-figure: initial;
|
|
1082
|
+
--tw-numeric-spacing: initial;
|
|
1083
|
+
--tw-numeric-fraction: initial;
|
|
973
1084
|
--tw-shadow: 0 0 #0000;
|
|
974
1085
|
--tw-shadow-color: initial;
|
|
975
1086
|
--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"}
|