@hyperbridge/ui 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,845 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Image } from '@unpic/react';
3
+ import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
4
+ import * as React$1 from 'react';
5
+ import React__default from 'react';
6
+ import { VariantProps } from 'class-variance-authority';
7
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
8
+ import { DialogContentProps } from '@radix-ui/react-dialog';
9
+ import * as motion_dist_react from 'motion/dist/react';
10
+ import { Variants } from 'motion/react';
11
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
12
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
13
+ import { Drawer as Drawer$1 } from 'vaul';
14
+
15
+ interface SearchInputProps extends Omit<React.ComponentProps<"input">, "size"> {
16
+ height?: string;
17
+ size?: "sm" | "md";
18
+ }
19
+ declare function SearchInput({ className, size, ...props }: SearchInputProps): react_jsx_runtime.JSX.Element;
20
+
21
+ declare function LabelledSeperator(props: {
22
+ children: React.ReactNode;
23
+ }): react_jsx_runtime.JSX.Element;
24
+
25
+ declare const variant_: {
26
+ disiplay: string;
27
+ h1: string;
28
+ h2: string;
29
+ h3: string;
30
+ h4: string;
31
+ h5: string;
32
+ h6: string;
33
+ h7: string;
34
+ body1: string;
35
+ body2: string;
36
+ p: string;
37
+ caption: string;
38
+ caption2: string;
39
+ };
40
+ declare function Text({ variant, ...props }: React.ComponentProps<"h1"> & {
41
+ asChild?: boolean;
42
+ variant: keyof typeof variant_;
43
+ }): react_jsx_runtime.JSX.Element;
44
+ declare function ListHeading({ text, count }: {
45
+ text: string;
46
+ count: number;
47
+ }): react_jsx_runtime.JSX.Element;
48
+
49
+ type Props$2 = Pick<React.ComponentProps<typeof Image>, "src" | "alt" | "className"> & {
50
+ badgeSrc: string;
51
+ badgeAlt: string;
52
+ outline?: boolean;
53
+ size?: `${number}rem`;
54
+ };
55
+ declare function BadgeIcon(props: Props$2): react_jsx_runtime.JSX.Element;
56
+ declare function TokenTransferPair(props: {
57
+ fromToken: Omit<Props$2, "size">;
58
+ toToken: Omit<Props$2, "size">;
59
+ size: Props$2["size"];
60
+ }): react_jsx_runtime.JSX.Element;
61
+
62
+ declare const buttonVariants: (props?: ({
63
+ variant?: "link" | "unset" | "default" | "outline" | "primary" | "secondary" | "level_1" | "level_2" | "message" | "destructive" | "ghost" | null | undefined;
64
+ size?: "unset" | "sm" | "default" | "xs" | "lg" | "xl" | null | undefined;
65
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
66
+ interface ButtonProps$1 extends React$1.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
67
+ asChild?: boolean;
68
+ animatedGradient?: boolean;
69
+ }
70
+ declare function Button$1({ className, variant, size, asChild, animatedGradient, ...props }: ButtonProps$1): react_jsx_runtime.JSX.Element;
71
+
72
+ interface ButtonProps extends React.ComponentProps<typeof Button$1> {
73
+ }
74
+ declare function Button({ children, ...other }: ButtonProps): React.ReactNode;
75
+ type ButtonAccessoryProps = {
76
+ size?: keyof typeof GAP_MAP;
77
+ leftIcon?: React.ReactNode;
78
+ rightIcon?: React.ReactNode;
79
+ children: React.ReactNode;
80
+ };
81
+ declare const GAP_MAP: {
82
+ xs: string;
83
+ sm: string;
84
+ default: string;
85
+ lg: string;
86
+ xl: string;
87
+ };
88
+ type AccessoryButtonProps = ButtonAccessoryProps & Omit<ButtonProps, "size">;
89
+ declare function AccessoryButton({ children, leftIcon, rightIcon, ...other }: AccessoryButtonProps): React.ReactNode;
90
+ type IconButtonProps$1 = React.ComponentProps<"button"> & {
91
+ variant: "default" | "secondary" | "message" | "level_1" | "level_2" | "primary" | "destructive" | "unset";
92
+ rounded?: "default" | "full";
93
+ size?: "default" | "xs" | "sm" | "lg" | "xl" | "smx" | "unset";
94
+ asChild?: boolean;
95
+ };
96
+ declare function IconButton(props: IconButtonProps$1): react_jsx_runtime.JSX.Element;
97
+
98
+ type IconButtonProps = Omit<React.ComponentProps<"button">, "children"> & {
99
+ src: string;
100
+ symbol: string;
101
+ variant: "badge" | "trigger";
102
+ };
103
+ declare function TagButton(props: IconButtonProps): react_jsx_runtime.JSX.Element;
104
+ declare function SwapTokenButton(props: React.ComponentProps<"button"> & {
105
+ token: {
106
+ image: string;
107
+ symbol: string;
108
+ };
109
+ network: {
110
+ image: string;
111
+ name: string;
112
+ };
113
+ }): react_jsx_runtime.JSX.Element;
114
+ declare function BridgeTokenButton(props: React.ComponentProps<"button"> & {
115
+ token: {
116
+ image: string;
117
+ symbol: string;
118
+ };
119
+ }): react_jsx_runtime.JSX.Element;
120
+
121
+ declare const GradientButton: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
122
+ variant?: "link" | "unset" | "default" | "outline" | "primary" | "secondary" | "level_1" | "level_2" | "message" | "destructive" | "ghost" | null | undefined;
123
+ size?: "unset" | "sm" | "default" | "xs" | "lg" | "xl" | null | undefined;
124
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
125
+ asChild?: boolean;
126
+ animate?: boolean;
127
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
128
+
129
+ interface TokenInfo {
130
+ symbol: string;
131
+ image: string;
132
+ network: {
133
+ name: string;
134
+ image: string;
135
+ };
136
+ }
137
+ interface SwapFormProps<T extends number = 25 | 50 | 100> {
138
+ senderAddress?: string;
139
+ senderBalance?: string;
140
+ senderAmount?: string;
141
+ senderUsdValue?: string | number;
142
+ senderToken?: TokenInfo;
143
+ onSenderAmountChange?: (value: string, event?: React.ChangeEvent<HTMLInputElement>) => void;
144
+ onSenderTokenSelect?: () => void;
145
+ receiverAddress?: string;
146
+ receiverAmount?: string | number;
147
+ receiverUsdValue?: string | number;
148
+ receiverToken?: TokenInfo;
149
+ onReceiverTokenSelect?: () => void;
150
+ onReceiverAddressEdit?: () => void;
151
+ percentagePresets?: T[];
152
+ activePercentage?: T | null;
153
+ onPercentageClick?: (percentage: T) => void;
154
+ onPercentageReset?: () => void;
155
+ onInvert?: () => void;
156
+ estimatedTime?: string;
157
+ isLoading?: boolean;
158
+ className?: string;
159
+ error?: boolean;
160
+ }
161
+ declare function SwapForm<T extends number = 25 | 50 | 100>({ senderAddress, senderBalance, senderAmount, senderUsdValue, senderToken, onSenderAmountChange, onSenderTokenSelect, receiverAddress, receiverAmount, receiverUsdValue, receiverToken, onReceiverTokenSelect, onReceiverAddressEdit, percentagePresets, activePercentage, onPercentageClick, onPercentageReset, onInvert, estimatedTime, isLoading, className, error, }: SwapFormProps<T>): react_jsx_runtime.JSX.Element;
162
+
163
+ interface Network {
164
+ name: string;
165
+ image: string;
166
+ group: string;
167
+ }
168
+ interface NetworkSwitcherProps {
169
+ from: Omit<Network, "group">;
170
+ to: Omit<Network, "group">;
171
+ onNetworkInvert?: () => void;
172
+ onSourceClick?: () => void;
173
+ onDestinationClick?: () => void;
174
+ }
175
+ declare const NetworkSwitcher: ({ from, to, onNetworkInvert, onSourceClick, onDestinationClick, }: NetworkSwitcherProps) => react_jsx_runtime.JSX.Element;
176
+ declare function NetworkSwitcherButton(props: React.ComponentProps<"button"> & {
177
+ label: string;
178
+ image: {
179
+ src: string;
180
+ alt: string;
181
+ };
182
+ }): react_jsx_runtime.JSX.Element;
183
+
184
+ interface MessageConfig {
185
+ bridgeFee: string;
186
+ gasFee: string;
187
+ slippageTolerance: string;
188
+ routes: number;
189
+ estimatedTime: string;
190
+ }
191
+ interface BridgeFormProps {
192
+ networks: {
193
+ from: {
194
+ image: string;
195
+ name: string;
196
+ };
197
+ to: {
198
+ image: string;
199
+ name: string;
200
+ };
201
+ };
202
+ onNetworkInvert?: () => void;
203
+ senderBalance?: string;
204
+ senderAddress?: string;
205
+ senderAmount?: string;
206
+ senderUsdValue?: string | number;
207
+ senderToken?: {
208
+ image: string;
209
+ symbol: string;
210
+ };
211
+ onSenderAmountChange?: (value: string) => void;
212
+ onSenderTokenSelect?: () => void;
213
+ receiverAddress?: string;
214
+ onReceiverAddressEdit?: () => void;
215
+ receiverAmount?: string | number;
216
+ receiverUsdValue?: string | number;
217
+ receiverToken?: {
218
+ image: string;
219
+ symbol: string;
220
+ };
221
+ onReceiverTokenSelect?: () => void;
222
+ percentagePresets?: number[];
223
+ activePercentage?: number | null;
224
+ onPercentageClick?: (percentage: number) => void;
225
+ onPercentageReset?: () => void;
226
+ estimatedTime?: string;
227
+ isLoading?: boolean;
228
+ className?: string;
229
+ error?: boolean;
230
+ errorMessage?: string;
231
+ onConnectWallet?: () => void;
232
+ onSubmit?: () => void;
233
+ onAdjustRelayerFee: () => void;
234
+ bridgeDetails?: MessageConfig;
235
+ availableNetworks?: Network[];
236
+ unavailableNetworks?: Network[];
237
+ onSourceNetworkSelect?: (network: Network) => void;
238
+ onDestinationNetworkSelect?: (network: Network) => void;
239
+ }
240
+ declare function BridgeForm({ networks, onNetworkInvert, senderAmount, onSenderTokenSelect, receiverAddress, onReceiverAddressEdit, senderBalance, senderUsdValue, senderToken, onSenderAmountChange, receiverAmount, receiverUsdValue, receiverToken, percentagePresets, activePercentage, onPercentageClick, onPercentageReset, estimatedTime, className, isLoading, senderAddress, error, errorMessage, onConnectWallet, onSubmit, onAdjustRelayerFee, bridgeDetails, availableNetworks, unavailableNetworks, onSourceNetworkSelect, onDestinationNetworkSelect, }: BridgeFormProps): react_jsx_runtime.JSX.Element;
241
+
242
+ type PercentageProps = {
243
+ percentage: {
244
+ options: number[];
245
+ value: number | null;
246
+ };
247
+ onPercentageChange: (percentage: number | null) => void;
248
+ };
249
+ type Props$1 = PercentageProps & {
250
+ sender: {
251
+ balance: React__default.JSX.Element;
252
+ address: string;
253
+ amount: string;
254
+ usdValue: string | number;
255
+ token: {
256
+ image: string;
257
+ symbol: string;
258
+ };
259
+ };
260
+ receiver: {
261
+ address: string;
262
+ amount: string | number;
263
+ usdValue: string | number;
264
+ network: Omit<Network, "group">;
265
+ estimatedTime?: string;
266
+ };
267
+ onValueChange?: (value: string, event: React__default.ChangeEvent<HTMLInputElement>) => void;
268
+ presentation: "loading" | "default";
269
+ className?: string;
270
+ mode: "ready" | "idle";
271
+ hasError?: boolean;
272
+ EditDestAddressTrigger?: typeof Button;
273
+ TokenChangeButton: React__default.ReactNode;
274
+ };
275
+ declare function BridgeInput(props: Props$1): react_jsx_runtime.JSX.Element;
276
+
277
+ declare function TokenImage(props: {
278
+ className?: string;
279
+ src: string;
280
+ alt: string;
281
+ }): react_jsx_runtime.JSX.Element;
282
+
283
+ declare function Input$1({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
284
+
285
+ interface InputProps extends React$1.ComponentProps<typeof Input$1> {
286
+ label?: string;
287
+ error?: string;
288
+ helperText?: string;
289
+ }
290
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
291
+
292
+ declare const AddressInput: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLInputElement> & React$1.InputHTMLAttributes<HTMLInputElement> & {
293
+ network: {
294
+ imageUrl: string;
295
+ name: string;
296
+ };
297
+ validity: {
298
+ status: "ok" | "error";
299
+ message: string;
300
+ };
301
+ }, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
302
+ declare function AddressInputFocusBehaviour(props: {
303
+ children: React.ReactNode;
304
+ }): react_jsx_runtime.JSX.Element;
305
+
306
+ declare function AssetListItem(props: {
307
+ amount: React.ReactNode;
308
+ caption: string;
309
+ address: string;
310
+ amountInUSD: string;
311
+ tokenImage: React.ComponentProps<typeof BadgeIcon>;
312
+ }): react_jsx_runtime.JSX.Element;
313
+ declare function AssetList(props: React.ComponentPropsWithoutRef<"ul">): react_jsx_runtime.JSX.Element;
314
+
315
+ declare function WalletAccountItem(props: {
316
+ network: {
317
+ name: string;
318
+ image: string;
319
+ };
320
+ wallet: {
321
+ image: string;
322
+ name: string;
323
+ };
324
+ address?: string;
325
+ onCopy?: () => void;
326
+ onDisconnect?: () => void;
327
+ isActive?: boolean;
328
+ }): react_jsx_runtime.JSX.Element;
329
+ declare function WalletProviderItem(props: {
330
+ image: {
331
+ src: string;
332
+ name: string;
333
+ };
334
+ status: "connecting" | "failed" | "idle" | "connected";
335
+ transition?: {
336
+ progress_duration: number;
337
+ };
338
+ installed?: false;
339
+ unsupported?: string;
340
+ onRetry?: () => void;
341
+ onCancel?: () => void;
342
+ onConnect?: () => void;
343
+ }): react_jsx_runtime.JSX.Element;
344
+ declare function NetworkGroupItem(props: {
345
+ image: {
346
+ src: string;
347
+ name: string;
348
+ };
349
+ description: string;
350
+ onConnect?: () => void;
351
+ }): react_jsx_runtime.JSX.Element;
352
+ declare function AccountItem(props: {
353
+ network: {
354
+ name: string;
355
+ image: string;
356
+ };
357
+ wallet: {
358
+ image: string;
359
+ name: string;
360
+ };
361
+ address?: string;
362
+ onCopy?: () => void;
363
+ onDisconnect?: () => void;
364
+ onConnect?: () => void;
365
+ isActive?: boolean;
366
+ }): react_jsx_runtime.JSX.Element;
367
+
368
+ declare function ReviewItem(props: {
369
+ tag: "from" | "to";
370
+ address: string;
371
+ networkName: string;
372
+ badge: React__default.ComponentProps<typeof BadgeIcon>;
373
+ asset: {
374
+ amount: string;
375
+ symbol: string;
376
+ secondaryValue: string;
377
+ };
378
+ AddressInfo: (props: {
379
+ tag: string;
380
+ address: string;
381
+ }) => React__default.ReactNode;
382
+ }): react_jsx_runtime.JSX.Element;
383
+ declare const ReviewItemCopyAddressButton: React__default.ForwardRefExoticComponent<Omit<{
384
+ address: string;
385
+ tag: string;
386
+ } & React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
387
+
388
+ declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
389
+ declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
390
+ declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
391
+ declare function DialogClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
392
+ declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
393
+ declare function DialogContent({ className, children, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
394
+ showCloseButton?: boolean;
395
+ }): react_jsx_runtime.JSX.Element;
396
+ declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
397
+ declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
398
+ declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
399
+ declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
400
+
401
+ declare function DialogMorphContent({ className, children, showCloseButton, ...props }: DialogPrimitive.DialogContentProps & {
402
+ showCloseButton?: boolean;
403
+ }): react_jsx_runtime.JSX.Element;
404
+
405
+ declare const EmptyStateContent: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
406
+ declare const EmptyStateTitle: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & React__default.RefAttributes<HTMLHeadingElement>>;
407
+ declare const EmptyStateDescription: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLParagraphElement>>;
408
+ declare function EmptyStateConceal(props: {
409
+ children?: React__default.ReactNode;
410
+ }): react_jsx_runtime.JSX.Element | null;
411
+ declare function EmptyState(props: {
412
+ isEmpty: boolean;
413
+ children?: React__default.ReactNode;
414
+ }): react_jsx_runtime.JSX.Element;
415
+
416
+ type Item = {
417
+ network: {
418
+ name: string;
419
+ image: string;
420
+ };
421
+ wallet: {
422
+ image: string;
423
+ name: string;
424
+ };
425
+ address: string;
426
+ isActive?: boolean;
427
+ };
428
+ declare function ConnectedHeader(props: {
429
+ accounts: Item[];
430
+ onCopy?: (account: string) => void;
431
+ onDisconnect?: (account: Item, index: number) => void;
432
+ onConnect?: (networkType: "evm" | "polkadot") => void;
433
+ polkadotImage?: {
434
+ name: string;
435
+ src: string;
436
+ };
437
+ evmImage?: {
438
+ name: string;
439
+ src: string;
440
+ };
441
+ }): react_jsx_runtime.JSX.Element;
442
+ declare function WalletManagerUIProvider(props: {
443
+ expand?: boolean;
444
+ children: React__default.ReactNode;
445
+ }): react_jsx_runtime.JSX.Element;
446
+ declare function WalletManagerUIContent({ children, }: {
447
+ children: React__default.ReactNode;
448
+ }): react_jsx_runtime.JSX.Element;
449
+
450
+ declare const animationPresets: {
451
+ readonly modal: {
452
+ readonly variants: Variants;
453
+ readonly transition: (motion_dist_react.Orchestration & motion_dist_react.Repeat & motion_dist_react.Spring) | (motion_dist_react.Orchestration & motion_dist_react.Repeat & {
454
+ [key: string]: any;
455
+ });
456
+ };
457
+ readonly slideUp: {
458
+ readonly variants: Variants;
459
+ readonly transition: (motion_dist_react.Orchestration & motion_dist_react.Repeat & motion_dist_react.Tween) | (motion_dist_react.Orchestration & motion_dist_react.Repeat & {
460
+ [key: string]: any;
461
+ });
462
+ };
463
+ readonly slideDown: {
464
+ readonly variants: Variants;
465
+ readonly transition: (motion_dist_react.Orchestration & motion_dist_react.Repeat & motion_dist_react.Tween) | (motion_dist_react.Orchestration & motion_dist_react.Repeat & {
466
+ [key: string]: any;
467
+ });
468
+ };
469
+ readonly fade: {
470
+ readonly variants: Variants;
471
+ readonly transition: (motion_dist_react.Orchestration & motion_dist_react.Repeat & motion_dist_react.Tween) | (motion_dist_react.Orchestration & motion_dist_react.Repeat & {
472
+ [key: string]: any;
473
+ });
474
+ };
475
+ readonly scale: {
476
+ readonly variants: Variants;
477
+ readonly transition: (motion_dist_react.Orchestration & motion_dist_react.Repeat & motion_dist_react.Tween) | (motion_dist_react.Orchestration & motion_dist_react.Repeat & {
478
+ [key: string]: any;
479
+ });
480
+ };
481
+ };
482
+ type AnimationPreset = keyof typeof animationPresets;
483
+
484
+ interface ModalProps {
485
+ isOpen: boolean;
486
+ children: React.ReactNode;
487
+ onClose?: () => void;
488
+ className?: string;
489
+ title?: string;
490
+ animationPreset?: AnimationPreset;
491
+ }
492
+ declare const Modal: ({ isOpen, children, onClose, className, animationPreset, }: ModalProps) => react_jsx_runtime.JSX.Element;
493
+
494
+ /**
495
+ * Renders a Separator that shows a border when the referenced Scrollable Element is scrolled.
496
+ *
497
+ * Example usage:
498
+ *
499
+ * ```tsx
500
+ * const scrollRef = React.useRef<HTMLDivElement>(null);
501
+ *
502
+ * return (
503
+ * <>
504
+ * <ScrollAwareSeparator scrollRef={scrollRef} />
505
+ * <div ref={scrollRef} style={{ overflowY: "auto", maxHeight: 300 }}>
506
+ * <div style={{ height: 1000 }}>Scrollable content here</div>
507
+ * </div>
508
+ * </>
509
+ * );
510
+ * ```
511
+ *
512
+ * @param props
513
+ * @returns
514
+ */
515
+ declare function ScrollAwareSeparator(props: React__default.ComponentProps<"div"> & {
516
+ /**
517
+ * Pass a ref to either a Radix ScrollArea container or any element with overflow: scroll.
518
+ * The component will detect and work with both.
519
+ */
520
+ scrollRef: React__default.RefObject<HTMLElement | null>;
521
+ }): react_jsx_runtime.JSX.Element;
522
+
523
+ declare function BridgeSummary(props: {
524
+ children: React.ReactNode;
525
+ }): react_jsx_runtime.JSX.Element;
526
+ type SummaryEntryItem = {
527
+ name: string;
528
+ icon: ({ size }: {
529
+ size: string | number;
530
+ }) => React.ReactNode;
531
+ children: React.ReactNode;
532
+ };
533
+ declare function makeEntry({ name, icon, }: Pick<SummaryEntryItem, "name" | "icon">): ({ children }: {
534
+ children: React.ReactNode;
535
+ }) => react_jsx_runtime.JSX.Element;
536
+ declare const SummaryValues: {
537
+ Key: {
538
+ Bridge: ({ children }: {
539
+ children: React.ReactNode;
540
+ }) => react_jsx_runtime.JSX.Element;
541
+ GasEntry: ({ children }: {
542
+ children: React.ReactNode;
543
+ }) => react_jsx_runtime.JSX.Element;
544
+ SpillageTolerance: ({ children }: {
545
+ children: React.ReactNode;
546
+ }) => react_jsx_runtime.JSX.Element;
547
+ Route: ({ children }: {
548
+ children: React.ReactNode;
549
+ }) => react_jsx_runtime.JSX.Element;
550
+ ETA: ({ children }: {
551
+ children: React.ReactNode;
552
+ }) => react_jsx_runtime.JSX.Element;
553
+ };
554
+ Values: {
555
+ Highlight: ({ children }: {
556
+ children: React.ReactNode;
557
+ }) => react_jsx_runtime.JSX.Element;
558
+ Soft: ({ children }: {
559
+ children: React.ReactNode;
560
+ }) => react_jsx_runtime.JSX.Element;
561
+ };
562
+ };
563
+
564
+ declare function TimelineList(props: {
565
+ children: React__default.ReactNode;
566
+ }): react_jsx_runtime.JSX.Element;
567
+ type TimePrefix = "min" | "second" | "hours";
568
+ type EstimatedTimeFormatted = `${number} ${TimePrefix | `${TimePrefix}s`}` | "";
569
+ type Prettify<T> = {
570
+ [K in keyof T]: T[K];
571
+ } & {};
572
+ type Level = {
573
+ level: 0;
574
+ badge: Omit<React__default.ComponentProps<typeof BadgeIcon>, "size">;
575
+ } | {
576
+ level: 1;
577
+ };
578
+ type TimelineData = {
579
+ processingStatus: "processing";
580
+ data: {
581
+ eta: string;
582
+ };
583
+ } | {
584
+ processingStatus: "upcoming" | "error";
585
+ } | {
586
+ processingStatus: "completed";
587
+ data: {
588
+ transactionUrl: string;
589
+ completedIn: EstimatedTimeFormatted;
590
+ };
591
+ };
592
+ type TimelineItemProps = Prettify<TimelineData & Level & {
593
+ caption: string;
594
+ secondary?: string;
595
+ }>;
596
+ declare function TimelineItem(props: TimelineItemProps): react_jsx_runtime.JSX.Element;
597
+ declare function TimelineListGroup(props: {
598
+ children: React__default.ReactNode;
599
+ }): react_jsx_runtime.JSX.Element;
600
+ declare const TimelineRoot: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
601
+ type TimerProps = {
602
+ hours: number;
603
+ mins: number;
604
+ seconds: number;
605
+ progress: number;
606
+ severity?: "default" | "warning";
607
+ };
608
+ declare function TransactionTimer(props: TimerProps): react_jsx_runtime.JSX.Element;
609
+ declare function TimerWrap(props: {
610
+ reveal: boolean;
611
+ Timer: React__default.ReactNode;
612
+ children: React__default.ReactNode;
613
+ }): react_jsx_runtime.JSX.Element;
614
+
615
+ type Props = {
616
+ severity: "error" | "warning" | "info" | "success";
617
+ heading: string;
618
+ actions?: React.ReactNode;
619
+ children: React.ReactNode;
620
+ onDismiss?: (event: React.MouseEvent<HTMLButtonElement>) => void;
621
+ };
622
+ declare function ToastBox(props: Props): react_jsx_runtime.JSX.Element;
623
+
624
+ type BadgeTokenProps = Omit<React__default.ComponentProps<typeof BadgeIcon>, "size">;
625
+ type ItemProps = {
626
+ caption: string;
627
+ from: BadgeTokenProps;
628
+ to: BadgeTokenProps;
629
+ amount: string;
630
+ };
631
+ declare function TxListItemProcessing(props: ItemProps & {
632
+ eta: string;
633
+ percentage: number;
634
+ status: "failed" | "processing";
635
+ }): react_jsx_runtime.JSX.Element;
636
+ type TxListItemProps = ItemProps & {
637
+ completedAt: string;
638
+ } & React__default.ComponentPropsWithRef<"button">;
639
+ declare const TxListItem: (props: TxListItemProps) => react_jsx_runtime.JSX.Element;
640
+ declare function TxList({ children }: {
641
+ children: React__default.ReactNode;
642
+ }): react_jsx_runtime.JSX.Element;
643
+
644
+ declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
645
+ declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
646
+
647
+ declare function TabsList(props: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
648
+ declare function TabItem(props: React.ComponentProps<typeof TabsPrimitive.TabsTrigger>): react_jsx_runtime.JSX.Element;
649
+ declare function AssetValueTrend(props: {
650
+ direction: "up" | "down";
651
+ percentage: number;
652
+ dollarValue: number;
653
+ }): react_jsx_runtime.JSX.Element;
654
+ declare function Balance(props: {
655
+ prefix?: string;
656
+ suffix?: string;
657
+ amount: number;
658
+ formatter?: Intl.NumberFormat;
659
+ }): react_jsx_runtime.JSX.Element;
660
+
661
+ interface WalletAccount {
662
+ address: string;
663
+ network: {
664
+ name: string;
665
+ image: string;
666
+ };
667
+ wallet: {
668
+ name: string;
669
+ image: string;
670
+ };
671
+ isActive?: boolean;
672
+ }
673
+ interface WalletHeaderCallbacks {
674
+ onCopy?: (address: string) => void;
675
+ onDisconnect?: (account: WalletAccount, index: number) => void;
676
+ onConnect?: (account: WalletAccount, index: number) => void;
677
+ onAccountSelect?: (account: WalletAccount, index: number) => void;
678
+ }
679
+ declare const walletHeaderVariants: (props?: ({
680
+ variant?: "default" | "contained" | null | undefined;
681
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
682
+ interface WalletHeaderProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof walletHeaderVariants> {
683
+ asChild?: boolean;
684
+ defaultOpen?: boolean;
685
+ }
686
+ declare const WalletHeader: React$1.ForwardRefExoticComponent<WalletHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
687
+ interface WalletConnectedHeaderProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
688
+ accounts: WalletAccount[];
689
+ children?: React$1.ReactNode;
690
+ }
691
+ declare const WalletConnectedHeader: React$1.ForwardRefExoticComponent<WalletConnectedHeaderProps & React$1.RefAttributes<HTMLButtonElement>>;
692
+ interface WalletHeaderContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
693
+ children: React$1.ReactNode;
694
+ }
695
+ declare const WalletHeaderContent: React$1.ForwardRefExoticComponent<WalletHeaderContentProps & React$1.RefAttributes<HTMLDivElement>>;
696
+ interface AccountStackProps {
697
+ accounts: WalletAccount[];
698
+ }
699
+ declare const AccountStack: React$1.ForwardRefExoticComponent<AccountStackProps & React$1.RefAttributes<HTMLDivElement>>;
700
+ interface WalletHeaderTabsProps extends React$1.ComponentProps<typeof Tabs> {
701
+ children: React$1.ReactNode;
702
+ }
703
+ declare const WalletHeaderTabs: React$1.ForwardRefExoticComponent<Omit<WalletHeaderTabsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
704
+ declare const WalletHeaderTabsList: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
705
+ declare const WalletHeaderTabItem: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
706
+ declare const WalletHeaderTabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
707
+ declare const WalletHeaderContentBlur: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
708
+ asChild?: boolean;
709
+ } & React$1.RefAttributes<HTMLDivElement>>;
710
+
711
+ declare function HeaderGradient(): react_jsx_runtime.JSX.Element;
712
+ declare function HeaderContent({ children, className, }: {
713
+ children: React.ReactNode;
714
+ className?: string;
715
+ }): react_jsx_runtime.JSX.Element;
716
+ declare function Header({ children, className, }: {
717
+ children: React.ReactNode;
718
+ className?: string;
719
+ }): react_jsx_runtime.JSX.Element;
720
+
721
+ /** @deprecated use Radix equivalent components */
722
+ declare function TabAltHeader({ label, isNew, isActive, onClick, className, }: {
723
+ label: string;
724
+ isNew?: boolean;
725
+ isActive: boolean;
726
+ onClick: () => void;
727
+ className?: string;
728
+ }): react_jsx_runtime.JSX.Element;
729
+ /** @deprecated use Radix equivalent components */
730
+ declare function TabAltHeaders({ children, className, }: {
731
+ children: React.ReactNode;
732
+ className?: string;
733
+ }): react_jsx_runtime.JSX.Element;
734
+ /** @deprecated use Radix equivalent components */
735
+ declare function TabAltContent({ children, className, }: {
736
+ children: React.ReactNode;
737
+ className?: string;
738
+ }): react_jsx_runtime.JSX.Element;
739
+ /** @deprecated use Radix equivalent components */
740
+ declare function TabAltPanel({ id, activeTab, children, className, }: {
741
+ id: string;
742
+ activeTab: string;
743
+ children: React.ReactNode;
744
+ className?: string;
745
+ }): react_jsx_runtime.JSX.Element | null;
746
+ /** @deprecated use Radix equivalent components */
747
+ declare function TabAlt({ children, className, }: {
748
+ children: React.ReactNode;
749
+ className?: string;
750
+ }): react_jsx_runtime.JSX.Element;
751
+
752
+ interface NetworkSelectorProps {
753
+ title?: string;
754
+ availableNetworks: Network[];
755
+ unavailableNetworks: Network[];
756
+ selectedNetwork: Network | null;
757
+ onNetworkSelect: (network: Network) => void;
758
+ isOpen?: boolean;
759
+ onClose?: () => void;
760
+ }
761
+ declare const NetworkSelector: ({ title, availableNetworks, unavailableNetworks, selectedNetwork, onNetworkSelect, isOpen, onClose, }: NetworkSelectorProps) => react_jsx_runtime.JSX.Element;
762
+ declare function NetworkSelectionItem(props: {
763
+ network: Network;
764
+ variant: "default" | "secondary";
765
+ isActive?: boolean;
766
+ SecondaryContent: React__default.ReactNode;
767
+ } & React__default.ComponentPropsWithoutRef<"button">): react_jsx_runtime.JSX.Element;
768
+
769
+ interface SettingsProps {
770
+ isOpen: boolean;
771
+ onClose: () => void;
772
+ slippage?: string;
773
+ deadline: string;
774
+ onSlippageChange?: (slippage: string) => void;
775
+ onDeadlineChange?: (deadline: string) => void;
776
+ type: "bridge" | "swap";
777
+ slippageTooltipText?: string;
778
+ deadlineTooltipText?: string;
779
+ }
780
+ declare const Settings: ({ isOpen, onClose, slippage, deadline, onSlippageChange, onDeadlineChange, type, slippageTooltipText, deadlineTooltipText, }: SettingsProps) => react_jsx_runtime.JSX.Element;
781
+
782
+ interface BridgeSettingsProps extends Omit<SettingsProps, "type"> {
783
+ }
784
+ declare const BridgeSettings: (props: BridgeSettingsProps) => react_jsx_runtime.JSX.Element;
785
+
786
+ declare function Sheet({ ...props }: React__default.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
787
+ declare function SheetTrigger({ ...props }: React__default.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
788
+ declare function SheetContent({ className, children, side, ...props }: React__default.ComponentProps<typeof DialogPrimitive.Content> & {
789
+ side?: "top" | "right" | "bottom" | "left";
790
+ }): react_jsx_runtime.JSX.Element;
791
+
792
+ declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
793
+ declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
794
+
795
+ declare function ManageAccounts(): react_jsx_runtime.JSX.Element;
796
+ declare function HeaderNested(props: {
797
+ heading: string;
798
+ image: {
799
+ src: string;
800
+ alt?: string;
801
+ };
802
+ onBack: () => void;
803
+ hideBackButton?: boolean;
804
+ }): react_jsx_runtime.JSX.Element;
805
+ declare function ListSection({ children, caption, }: {
806
+ caption: React.ReactNode;
807
+ children: React.ReactNode;
808
+ }): react_jsx_runtime.JSX.Element;
809
+ declare function CWDrawerContent({ children, ...props }: {
810
+ children: React.ReactNode;
811
+ } & DialogContentProps): react_jsx_runtime.JSX.Element;
812
+
813
+ interface Token {
814
+ symbol: string;
815
+ name: string;
816
+ image: string;
817
+ address: string;
818
+ network_group: "polkadot" | "evm";
819
+ amount: number;
820
+ usdValue: string;
821
+ }
822
+ interface TokenSelectorProps {
823
+ title?: string;
824
+ isOpen: boolean;
825
+ onClose: () => void;
826
+ allTokens: Token[];
827
+ availableTokens: Token[];
828
+ selectedToken?: Token | null;
829
+ onTokenSelect?: (token: Token) => void;
830
+ onAddToWallet?: (token: Token) => void;
831
+ }
832
+ declare const TokenSelector: ({ title, isOpen, onClose, allTokens, availableTokens, selectedToken, onTokenSelect, onAddToWallet, }: TokenSelectorProps) => react_jsx_runtime.JSX.Element;
833
+ declare function TokenSelectionItem(props: {
834
+ token: Pick<Token, "name" | "symbol" | "image" | "amount" | "address" | "usdValue">;
835
+ isActive: boolean;
836
+ isAvailable: boolean;
837
+ AddWalletButton: React__default.ReactNode;
838
+ } & React__default.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
839
+
840
+ declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
841
+ declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
842
+ declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
843
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
844
+
845
+ export { AccessoryButton, type AccessoryButtonProps, AccountItem, AccountStack, type AccountStackProps, AddressInput, AddressInputFocusBehaviour, AssetList, AssetListItem, AssetValueTrend, BadgeIcon, Balance, BridgeForm, type BridgeFormProps, BridgeInput, BridgeSettings, type BridgeSettingsProps, BridgeSummary, BridgeTokenButton, Button, type ButtonProps, CWDrawerContent, ConnectedHeader, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogMorphContent, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerContent, EmptyState, EmptyStateConceal, EmptyStateContent, EmptyStateDescription, EmptyStateTitle, type EstimatedTimeFormatted, GradientButton, Header, HeaderContent, HeaderGradient, HeaderNested, IconButton, Input, type InputProps, LabelledSeperator, ListHeading, ListSection, ManageAccounts, Modal, type ModalProps, type Network, NetworkGroupItem, NetworkSelectionItem, NetworkSelector, type NetworkSelectorProps, NetworkSwitcher, NetworkSwitcherButton, type NetworkSwitcherProps, ReviewItem, ReviewItemCopyAddressButton, ScrollAwareSeparator, SearchInput, type SearchInputProps, Settings, type SettingsProps, Sheet, SheetContent, SheetTrigger, SummaryValues, SwapForm, type SwapFormProps, SwapTokenButton, TabAlt, TabAltContent, TabAltHeader, TabAltHeaders, TabAltPanel, TabItem, Tabs, TabsContent, TabsList, TagButton, Text, TimelineItem, TimelineList, TimelineListGroup, TimelineRoot, TimerWrap, ToastBox, type Token, TokenImage, type TokenInfo, TokenSelectionItem, TokenSelector, type TokenSelectorProps, TokenTransferPair, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionTimer, TxList, TxListItem, TxListItemProcessing, type WalletAccount, WalletAccountItem, WalletConnectedHeader, type WalletConnectedHeaderProps, WalletHeader, type WalletHeaderCallbacks, WalletHeaderContent, WalletHeaderContentBlur, type WalletHeaderContentProps, type WalletHeaderProps, WalletHeaderTabItem, WalletHeaderTabs, WalletHeaderTabsContent, WalletHeaderTabsList, type WalletHeaderTabsProps, WalletManagerUIContent, WalletManagerUIProvider, WalletProviderItem, makeEntry };