@openzeppelin/ui-components 1.0.4 → 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.
@@ -1,2412 +0,0 @@
1
- import * as React$2 from "react";
2
- import React$1, { ForwardedRef, JSX, ReactElement, ReactNode } from "react";
3
- import { Control, FieldError, FieldPath, FieldValues, FormProvider, UseFormReturn } from "react-hook-form";
4
- import * as class_variance_authority_types0 from "class-variance-authority/types";
5
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
6
- import { VariantProps } from "class-variance-authority";
7
- import { DateRange, DayPicker } from "react-day-picker";
8
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
9
- import * as DialogPrimitive from "@radix-ui/react-dialog";
10
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
11
- import * as _radix_ui_react_label0 from "@radix-ui/react-label";
12
- import { ContractAdapter, ContractSchema, EnumValue, FieldValidation, FormFieldType, FunctionParameter, MapEntry, NetworkConfig, NetworkType, RelayerDetails, RelayerDetailsRich } from "@openzeppelin/ui-types";
13
- import * as PopoverPrimitive from "@radix-ui/react-popover";
14
- import * as ProgressPrimitive from "@radix-ui/react-progress";
15
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
16
- import * as SelectPrimitive from "@radix-ui/react-select";
17
- import * as TabsPrimitive from "@radix-ui/react-tabs";
18
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
19
- import { ToasterProps } from "sonner";
20
-
21
- //#region src/components/ui/accordion.d.ts
22
- declare const accordionItemVariants: (props?: ({
23
- variant?: "default" | "card" | null | undefined;
24
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
25
- declare const accordionTriggerVariants: (props?: ({
26
- variant?: "default" | "card" | null | undefined;
27
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
28
- declare const accordionContentVariants: (props?: ({
29
- variant?: "default" | "card" | null | undefined;
30
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
31
- type AccordionVariant = 'default' | 'card';
32
- type AccordionProps = (AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & {
33
- variant?: AccordionVariant;
34
- };
35
- declare const Accordion: React$2.ForwardRefExoticComponent<AccordionProps & React$2.RefAttributes<HTMLDivElement>>;
36
- interface AccordionItemProps extends React$2.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>, VariantProps<typeof accordionItemVariants> {}
37
- declare const AccordionItem: React$2.ForwardRefExoticComponent<AccordionItemProps & React$2.RefAttributes<HTMLDivElement>>;
38
- interface AccordionTriggerProps extends React$2.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>, VariantProps<typeof accordionTriggerVariants> {}
39
- declare const AccordionTrigger: React$2.ForwardRefExoticComponent<AccordionTriggerProps & React$2.RefAttributes<HTMLButtonElement>>;
40
- interface AccordionContentProps extends React$2.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>, VariantProps<typeof accordionContentVariants> {}
41
- declare const AccordionContent: React$2.ForwardRefExoticComponent<AccordionContentProps & React$2.RefAttributes<HTMLDivElement>>;
42
- //#endregion
43
- //#region src/components/ui/address-display.d.ts
44
- interface AddressDisplayProps extends React$2.HTMLAttributes<HTMLDivElement> {
45
- /**
46
- * The blockchain address to display
47
- */
48
- address: string;
49
- /**
50
- * Whether to truncate the address in the middle
51
- * @default true
52
- */
53
- truncate?: boolean;
54
- /**
55
- * Number of characters to show at the beginning when truncating
56
- * @default 6
57
- */
58
- startChars?: number;
59
- /**
60
- * Number of characters to show at the end when truncating
61
- * @default 4
62
- */
63
- endChars?: number;
64
- /**
65
- * Whether to show a copy button
66
- * @default false
67
- */
68
- showCopyButton?: boolean;
69
- /**
70
- * Whether to show the copy button only on hover
71
- * @default false
72
- */
73
- showCopyButtonOnHover?: boolean;
74
- /**
75
- * Optional explorer URL to make the address clickable
76
- */
77
- explorerUrl?: string;
78
- /**
79
- * Additional CSS classes
80
- */
81
- className?: string;
82
- }
83
- /** Displays a blockchain address with optional truncation, copy button, and explorer link. */
84
- declare function AddressDisplay({
85
- address,
86
- truncate,
87
- startChars,
88
- endChars,
89
- showCopyButton,
90
- showCopyButtonOnHover,
91
- explorerUrl,
92
- className,
93
- ...props
94
- }: AddressDisplayProps): React$2.ReactElement;
95
- //#endregion
96
- //#region src/components/ui/alert.d.ts
97
- declare const Alert: React$2.ForwardRefExoticComponent<React$2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
98
- variant?: "default" | "destructive" | "success" | null | undefined;
99
- } & class_variance_authority_types0.ClassProp) | undefined) => string> & React$2.RefAttributes<HTMLDivElement>>;
100
- declare const AlertTitle: React$2.ForwardRefExoticComponent<React$2.HTMLAttributes<HTMLHeadingElement> & React$2.RefAttributes<HTMLParagraphElement>>;
101
- declare const AlertDescription: React$2.ForwardRefExoticComponent<React$2.HTMLAttributes<HTMLParagraphElement> & React$2.RefAttributes<HTMLParagraphElement>>;
102
- //#endregion
103
- //#region src/components/ui/banner.d.ts
104
- interface BannerProps {
105
- /**
106
- * The variant/style of the banner
107
- * @default 'info'
108
- */
109
- variant?: 'info' | 'success' | 'warning' | 'error';
110
- /**
111
- * Title text displayed at the top of the banner
112
- */
113
- title?: React$2.ReactNode;
114
- /**
115
- * Body text/content of the banner
116
- */
117
- children: React$2.ReactNode;
118
- /**
119
- * Whether the banner can be dismissed
120
- * @default true
121
- */
122
- dismissible?: boolean;
123
- /**
124
- * Callback when the banner is dismissed
125
- */
126
- onDismiss?: () => void;
127
- /**
128
- * Icon to display on the left (replaces default based on variant)
129
- */
130
- icon?: React$2.ReactNode;
131
- /**
132
- * Additional CSS classes
133
- */
134
- className?: string;
135
- }
136
- /**
137
- * Dismissible banner component for notifications and alerts
138
- * Can be used with various variants (info, success, warning, error)
139
- */
140
- declare const Banner: React$2.ForwardRefExoticComponent<BannerProps & React$2.RefAttributes<HTMLDivElement>>;
141
- //#endregion
142
- //#region src/utils/button-variants.d.ts
143
- declare const buttonVariants: (props?: ({
144
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
145
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
146
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
147
- //# sourceMappingURL=button-variants.d.ts.map
148
- //#endregion
149
- //#region src/components/ui/button.d.ts
150
- interface ButtonProps extends React$2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
151
- asChild?: boolean;
152
- }
153
- declare const Button: React$2.ForwardRefExoticComponent<ButtonProps & React$2.RefAttributes<HTMLButtonElement>>;
154
- //#endregion
155
- //#region src/components/ui/calendar.d.ts
156
- type CalendarProps = React$2.ComponentProps<typeof DayPicker>;
157
- /**
158
- * Calendar component built on react-day-picker with shadcn/ui styling.
159
- * Supports single date, multiple dates, and date range selection modes.
160
- */
161
- declare function Calendar({
162
- className,
163
- classNames,
164
- showOutsideDays,
165
- ...props
166
- }: CalendarProps): React$2.ReactElement;
167
- declare namespace Calendar {
168
- var displayName: string;
169
- }
170
- //#endregion
171
- //#region src/components/ui/card.d.ts
172
- /** Card container component with rounded borders. */
173
- declare function Card({
174
- className,
175
- ...props
176
- }: React.ComponentProps<'div'>): JSX.Element;
177
- /** Card header section for title and description. Provides top padding for the card. */
178
- declare function CardHeader({
179
- className,
180
- ...props
181
- }: React.ComponentProps<'div'>): JSX.Element;
182
- /** Card title with semibold styling. */
183
- declare function CardTitle({
184
- className,
185
- ...props
186
- }: React.ComponentProps<'div'>): JSX.Element;
187
- /** Card description with muted text styling. */
188
- declare function CardDescription({
189
- className,
190
- ...props
191
- }: React.ComponentProps<'div'>): JSX.Element;
192
- /** Card content area with horizontal padding, top spacing, and bottom padding. */
193
- declare function CardContent({
194
- className,
195
- ...props
196
- }: React.ComponentProps<'div'>): JSX.Element;
197
- /** Card footer with flex alignment for actions, top spacing, and bottom padding. */
198
- declare function CardFooter({
199
- className,
200
- ...props
201
- }: React.ComponentProps<'div'>): JSX.Element;
202
- //#endregion
203
- //#region src/components/ui/checkbox.d.ts
204
- /** Checkbox component wrapping Radix UI Checkbox primitive. */
205
- declare function Checkbox({
206
- className,
207
- ...props
208
- }: React$2.ComponentProps<typeof CheckboxPrimitive.Root>): React$2.ReactElement;
209
- //#endregion
210
- //#region src/components/ui/date-range-picker.d.ts
211
- /**
212
- * Props for the DateRangePicker component.
213
- */
214
- interface DateRangePickerProps {
215
- /** The selected date range */
216
- value?: DateRange;
217
- /** Callback when the date range changes */
218
- onChange?: (range: DateRange | undefined) => void;
219
- /** Placeholder text when no date is selected */
220
- placeholder?: string;
221
- /** Additional CSS classes */
222
- className?: string;
223
- /** Whether the picker is disabled */
224
- disabled?: boolean;
225
- /** Number of months to display (default: 2) */
226
- numberOfMonths?: number;
227
- /** Alignment of the popover */
228
- align?: 'start' | 'center' | 'end';
229
- }
230
- /**
231
- * DateRangePicker component for selecting a date range.
232
- * Uses react-day-picker with Radix Popover for a shadcn-styled date range selection.
233
- *
234
- * @example
235
- * ```tsx
236
- * const [dateRange, setDateRange] = useState<DateRange | undefined>();
237
- *
238
- * <DateRangePicker
239
- * value={dateRange}
240
- * onChange={setDateRange}
241
- * placeholder="Select date range"
242
- * />
243
- * ```
244
- */
245
- declare function DateRangePicker({
246
- value,
247
- onChange,
248
- placeholder,
249
- className,
250
- disabled,
251
- numberOfMonths,
252
- align
253
- }: DateRangePickerProps): React.ReactElement;
254
- declare namespace DateRangePicker {
255
- var displayName: string;
256
- }
257
- //#endregion
258
- //#region src/components/ui/dialog.d.ts
259
- declare const Dialog: React$2.FC<DialogPrimitive.DialogProps>;
260
- declare const DialogTrigger: React$2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$2.RefAttributes<HTMLButtonElement>>;
261
- declare const DialogPortal: React$2.FC<DialogPrimitive.DialogPortalProps>;
262
- declare const DialogClose: React$2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$2.RefAttributes<HTMLButtonElement>>;
263
- declare const DialogOverlay: React$2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
264
- declare const DialogContent: React$2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
265
- declare const DialogHeader: {
266
- ({
267
- className,
268
- ...props
269
- }: React$2.HTMLAttributes<HTMLDivElement>): React$2.JSX.Element;
270
- displayName: string;
271
- };
272
- declare const DialogFooter: {
273
- ({
274
- className,
275
- ...props
276
- }: React$2.HTMLAttributes<HTMLDivElement>): React$2.JSX.Element;
277
- displayName: string;
278
- };
279
- declare const DialogTitle: React$2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$2.RefAttributes<HTMLHeadingElement>, "ref"> & React$2.RefAttributes<HTMLHeadingElement>>;
280
- declare const DialogDescription: React$2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$2.RefAttributes<HTMLParagraphElement>, "ref"> & React$2.RefAttributes<HTMLParagraphElement>>;
281
- //#endregion
282
- //#region src/components/ui/dropdown-menu.d.ts
283
- declare const DropdownMenu: React$2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
284
- declare const DropdownMenuTrigger: React$2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$2.RefAttributes<HTMLButtonElement>>;
285
- declare const DropdownMenuGroup: React$2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$2.RefAttributes<HTMLDivElement>>;
286
- declare const DropdownMenuPortal: React$2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
287
- declare const DropdownMenuSub: React$2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
288
- declare const DropdownMenuRadioGroup: React$2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$2.RefAttributes<HTMLDivElement>>;
289
- declare const DropdownMenuSubTrigger: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & {
290
- inset?: boolean;
291
- } & React$2.RefAttributes<HTMLDivElement>>;
292
- declare const DropdownMenuSubContent: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
293
- declare const DropdownMenuContent: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
294
- declare const DropdownMenuItem: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & {
295
- inset?: boolean;
296
- } & React$2.RefAttributes<HTMLDivElement>>;
297
- declare const DropdownMenuCheckboxItem: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
298
- declare const DropdownMenuRadioItem: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
299
- declare const DropdownMenuLabel: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & {
300
- inset?: boolean;
301
- } & React$2.RefAttributes<HTMLDivElement>>;
302
- declare const DropdownMenuSeparator: React$2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
303
- declare const DropdownMenuShortcut: {
304
- ({
305
- className,
306
- ...props
307
- }: React$2.HTMLAttributes<HTMLSpanElement>): React$2.ReactNode;
308
- displayName: string;
309
- };
310
- //#endregion
311
- //#region src/components/ui/empty-state.d.ts
312
- interface EmptyStateProps {
313
- /**
314
- * The icon to display - can be a React component or SVG path
315
- */
316
- icon?: React$1.ReactNode;
317
- /**
318
- * Main heading text
319
- */
320
- title: string;
321
- /**
322
- * Descriptive text explaining the empty state
323
- */
324
- description: string;
325
- /**
326
- * Additional CSS classes for the container
327
- */
328
- className?: string;
329
- /**
330
- * Size variant for the empty state
331
- * @default 'default'
332
- */
333
- size?: 'small' | 'default' | 'large';
334
- }
335
- /**
336
- * Reusable empty state component for showing helpful messages when content is not available
337
- */
338
- declare function EmptyState({
339
- icon,
340
- title,
341
- description,
342
- className,
343
- size
344
- }: EmptyStateProps): React$1.ReactElement;
345
- //# sourceMappingURL=empty-state.d.ts.map
346
- //#endregion
347
- //#region src/components/ui/external-link.d.ts
348
- declare const ExternalLink: React$1.ForwardRefExoticComponent<React$1.AnchorHTMLAttributes<HTMLAnchorElement> & React$1.RefAttributes<HTMLAnchorElement>>;
349
- //# sourceMappingURL=external-link.d.ts.map
350
-
351
- //#endregion
352
- //#region src/components/ui/footer.d.ts
353
- /**
354
- * Props for the Footer component
355
- */
356
- interface FooterProps {
357
- /**
358
- * Company or organization name for the copyright notice
359
- * @default 'OpenZeppelin'
360
- */
361
- companyName?: string;
362
- /**
363
- * Copyright year to display
364
- * @default Current year
365
- */
366
- copyrightYear?: number;
367
- /**
368
- * URL for the privacy policy link
369
- * @default 'https://www.openzeppelin.com/privacy'
370
- */
371
- privacyPolicyUrl?: string;
372
- /**
373
- * Text for the privacy policy link
374
- * @default 'Privacy Policy'
375
- */
376
- privacyPolicyText?: string;
377
- /**
378
- * URL for the terms of service link
379
- * @default 'https://www.openzeppelin.com/tos'
380
- */
381
- termsOfServiceUrl?: string;
382
- /**
383
- * Text for the terms of service link
384
- * @default 'Terms of Service'
385
- */
386
- termsOfServiceText?: string;
387
- /**
388
- * Whether to show the privacy policy link
389
- * @default true
390
- */
391
- showPrivacyPolicy?: boolean;
392
- /**
393
- * Whether to show the terms of service link
394
- * @default true
395
- */
396
- showTermsOfService?: boolean;
397
- /**
398
- * Additional CSS classes for the footer container
399
- */
400
- className?: string;
401
- }
402
- /**
403
- * Application footer component with customizable legal links and branding.
404
- *
405
- * This component provides a consistent footer layout with customizable:
406
- * - Company name and copyright year
407
- * - Privacy policy and terms of service links and text
408
- * - Optional visibility controls for legal links
409
- * - Custom styling support
410
- */
411
- declare const Footer: ({
412
- companyName,
413
- copyrightYear,
414
- privacyPolicyUrl,
415
- privacyPolicyText,
416
- termsOfServiceUrl,
417
- termsOfServiceText,
418
- showPrivacyPolicy,
419
- showTermsOfService,
420
- className
421
- }?: FooterProps) => JSX.Element;
422
- //# sourceMappingURL=footer.d.ts.map
423
- //#endregion
424
- //#region src/components/ui/form.d.ts
425
- /**
426
- * Context provider for the form
427
- */
428
- declare const Form: <TFieldValues extends FieldValues = FieldValues, TContext = unknown>({
429
- ...props
430
- }: React$2.ComponentProps<typeof FormProvider<TFieldValues, TContext>>) => React$2.ReactElement;
431
- /**
432
- * Form field component
433
- */
434
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
435
- ...props
436
- }: ControllerProps<TFieldValues, TName>) => React$2.ReactElement;
437
- /**
438
- * Form item component
439
- */
440
- declare const FormItem: React$2.ForwardRefExoticComponent<React$2.HTMLAttributes<HTMLDivElement> & React$2.RefAttributes<HTMLDivElement>>;
441
- /**
442
- * Form label component
443
- */
444
- declare const FormLabel: React$2.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_label0.LabelProps & React$2.RefAttributes<HTMLLabelElement>, "ref"> & React$2.RefAttributes<HTMLLabelElement>, "ref"> & React$2.RefAttributes<HTMLLabelElement>>;
445
- /**
446
- * Form control component
447
- */
448
- declare const FormControl: React$2.ForwardRefExoticComponent<React$2.HTMLAttributes<HTMLDivElement> & React$2.RefAttributes<HTMLDivElement>>;
449
- /**
450
- * Form description component
451
- */
452
- declare const FormDescription: React$2.ForwardRefExoticComponent<React$2.HTMLAttributes<HTMLParagraphElement> & React$2.RefAttributes<HTMLParagraphElement>>;
453
- /**
454
- * Form error message component
455
- */
456
- declare const FormMessage: React$2.ForwardRefExoticComponent<React$2.HTMLAttributes<HTMLParagraphElement> & React$2.RefAttributes<HTMLParagraphElement>>;
457
- /**
458
- * Types for form controller props
459
- */
460
- type ControllerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
461
- name: TName;
462
- control?: UseFormReturn<TFieldValues>['control'];
463
- render: (props: {
464
- field: {
465
- value: unknown;
466
- onChange: (...event: unknown[]) => void;
467
- onBlur: () => void;
468
- name: TName;
469
- ref: React$2.RefCallback<HTMLInputElement>;
470
- };
471
- fieldState: {
472
- invalid: boolean;
473
- isTouched: boolean;
474
- isDirty: boolean;
475
- error?: unknown;
476
- };
477
- formState: UseFormReturn<TFieldValues>['formState'];
478
- }) => React$2.ReactElement;
479
- };
480
- //#endregion
481
- //#region src/components/ui/header.d.ts
482
- interface HeaderProps {
483
- title?: string;
484
- /** Open the mobile sidebar */
485
- onOpenSidebar?: () => void;
486
- /** Content to display on the right side of the header */
487
- rightContent?: React$1.ReactNode;
488
- }
489
- declare const Header: ({
490
- title,
491
- onOpenSidebar,
492
- rightContent
493
- }: HeaderProps) => React$1.ReactElement;
494
- //# sourceMappingURL=header.d.ts.map
495
- //#endregion
496
- //#region src/components/ui/input.d.ts
497
- /**
498
- * Input component that follows shadcn/ui styling and accessibility patterns
499
- */
500
- type InputProps = React$2.InputHTMLAttributes<HTMLInputElement>;
501
- declare const Input: React$2.ForwardRefExoticComponent<InputProps & React$2.RefAttributes<HTMLInputElement>>;
502
- //#endregion
503
- //#region src/components/ui/label.d.ts
504
- /**
505
- * Label component for form fields, following shadcn/ui styling
506
- */
507
- declare const Label: React$2.ForwardRefExoticComponent<Omit<_radix_ui_react_label0.LabelProps & React$2.RefAttributes<HTMLLabelElement>, "ref"> & React$2.RefAttributes<HTMLLabelElement>>;
508
- //#endregion
509
- //#region src/components/ui/loading-button.d.ts
510
- interface LoadingButtonProps extends React$2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
511
- asChild?: boolean;
512
- loading?: boolean;
513
- }
514
- declare const LoadingButton: React$2.ForwardRefExoticComponent<LoadingButtonProps & React$2.RefAttributes<HTMLButtonElement>>;
515
- //#endregion
516
- //#region src/components/ui/network-icon.d.ts
517
- interface NetworkIconProps {
518
- network: Pick<NetworkConfig, 'ecosystem' | 'iconComponent'>;
519
- className?: string;
520
- size?: number;
521
- variant?: 'mono' | 'branded';
522
- }
523
- /** Displays the appropriate icon for a blockchain network. */
524
- declare function NetworkIcon({
525
- network,
526
- className,
527
- size,
528
- variant
529
- }: NetworkIconProps): React$1.ReactElement;
530
- //# sourceMappingURL=network-icon.d.ts.map
531
- //#endregion
532
- //#region src/components/ui/network-selector.d.ts
533
- interface NetworkSelectorProps<T> {
534
- networks: T[];
535
- selectedNetwork: T | null;
536
- onSelectNetwork: (network: T) => void;
537
- getNetworkLabel: (network: T) => string;
538
- getNetworkIcon?: (network: T) => React$2.ReactNode;
539
- getNetworkType?: (network: T) => NetworkType | undefined;
540
- getNetworkId: (network: T) => string;
541
- groupByEcosystem?: boolean;
542
- getEcosystem?: (network: T) => string;
543
- filterNetwork?: (network: T, query: string) => boolean;
544
- className?: string;
545
- placeholder?: string;
546
- }
547
- /** Searchable dropdown selector for blockchain networks with optional grouping. */
548
- declare function NetworkSelector<T>({
549
- networks,
550
- selectedNetwork,
551
- onSelectNetwork,
552
- getNetworkLabel,
553
- getNetworkIcon,
554
- getNetworkType,
555
- getNetworkId,
556
- groupByEcosystem,
557
- getEcosystem,
558
- filterNetwork,
559
- className,
560
- placeholder
561
- }: NetworkSelectorProps<T>): React$2.ReactElement;
562
- //# sourceMappingURL=network-selector.d.ts.map
563
- //#endregion
564
- //#region src/components/ui/network-status-badge.d.ts
565
- interface NetworkStatusBadgeProps {
566
- network: NetworkConfig | null;
567
- className?: string;
568
- }
569
- /**
570
- * NetworkStatusBadge - Displays network information in a compact badge format
571
- * Shows the network icon, ecosystem, and name with dashed borders for testnet/devnet
572
- */
573
- declare function NetworkStatusBadge({
574
- network,
575
- className
576
- }: NetworkStatusBadgeProps): React$1.ReactElement | null;
577
- //#endregion
578
- //#region src/components/ui/popover.d.ts
579
- declare const Popover: React$2.FC<PopoverPrimitive.PopoverProps>;
580
- declare const PopoverTrigger: React$2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$2.RefAttributes<HTMLButtonElement>>;
581
- declare const PopoverAnchor: React$2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$2.RefAttributes<HTMLDivElement>>;
582
- declare const PopoverContent: React$2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
583
- //#endregion
584
- //#region src/components/ui/progress.d.ts
585
- declare const Progress: React$2.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
586
- //#endregion
587
- //#region src/components/ui/radio-group.d.ts
588
- declare const RadioGroup: React$2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
589
- declare const RadioGroupItem: React$2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$2.RefAttributes<HTMLButtonElement>, "ref"> & React$2.RefAttributes<HTMLButtonElement>>;
590
- //#endregion
591
- //#region src/components/ui/select.d.ts
592
- declare const Select: React$2.FC<SelectPrimitive.SelectProps>;
593
- declare const SelectGroup: React$2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$2.RefAttributes<HTMLDivElement>>;
594
- declare const SelectValue: React$2.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$2.RefAttributes<HTMLSpanElement>>;
595
- declare const SelectTrigger: React$2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$2.RefAttributes<HTMLButtonElement>, "ref"> & React$2.RefAttributes<HTMLButtonElement>>;
596
- declare const SelectScrollUpButton: React$2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
597
- declare const SelectScrollDownButton: React$2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
598
- declare const SelectContent: React$2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
599
- declare const SelectLabel: React$2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
600
- declare const SelectItem: React$2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
601
- declare const SelectSeparator: React$2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
602
- //#endregion
603
- //#region src/components/ui/sidebar/SidebarButton.d.ts
604
- interface SidebarButtonProps {
605
- icon?: ReactNode;
606
- children: ReactNode;
607
- onClick?: () => void;
608
- size?: 'default' | 'small';
609
- badge?: string;
610
- disabled?: boolean;
611
- isSelected?: boolean;
612
- /** When provided, renders as an anchor element instead of a button */
613
- href?: string;
614
- target?: React$1.HTMLAttributeAnchorTarget;
615
- rel?: string;
616
- className?: string;
617
- }
618
- /**
619
- * A styled button component for sidebar actions with consistent styling.
620
- * Can render as a button or anchor element depending on whether href is provided.
621
- */
622
- declare function SidebarButton({
623
- icon,
624
- children,
625
- onClick,
626
- size,
627
- badge,
628
- disabled,
629
- isSelected,
630
- href,
631
- target,
632
- rel,
633
- className
634
- }: SidebarButtonProps): React$1.ReactElement;
635
- //# sourceMappingURL=SidebarButton.d.ts.map
636
- //#endregion
637
- //#region src/components/ui/sidebar/SidebarLayout.d.ts
638
- interface SidebarLayoutProps {
639
- /** Content for the sidebar header (e.g., logo) */
640
- header?: ReactNode;
641
- /** Content to be displayed below the header but above the scrollable area */
642
- subHeader?: ReactNode;
643
- /** Main scrollable content area */
644
- children: ReactNode;
645
- /** Content for the fixed footer (e.g., nav icons) */
646
- footer?: ReactNode;
647
- /** Additional CSS classes for the sidebar container */
648
- className?: string;
649
- /** Width of the sidebar (default: 289px) */
650
- width?: number | string;
651
- /** Background color/class for the sidebar */
652
- background?: string;
653
- /** Controls visibility in mobile slide-over */
654
- mobileOpen?: boolean;
655
- /** Close handler for mobile slide-over */
656
- onMobileOpenChange?: (open: boolean) => void;
657
- /** Aria label for mobile dialog */
658
- mobileAriaLabel?: string;
659
- }
660
- /**
661
- * A flexible sidebar layout component with desktop sidebar and mobile slide-over.
662
- * Provides slots for header, scrollable content, and footer.
663
- */
664
- declare function SidebarLayout({
665
- header,
666
- subHeader,
667
- children,
668
- footer,
669
- className,
670
- width,
671
- background,
672
- mobileOpen,
673
- onMobileOpenChange,
674
- mobileAriaLabel
675
- }: SidebarLayoutProps): React$1.ReactElement;
676
- //# sourceMappingURL=SidebarLayout.d.ts.map
677
- //#endregion
678
- //#region src/components/ui/sidebar/SidebarSection.d.ts
679
- interface SidebarSectionProps {
680
- /** Optional section title displayed above the content */
681
- title?: string;
682
- /** Content to render within the section */
683
- children: ReactNode;
684
- /** Additional CSS classes */
685
- className?: string;
686
- /** CSS classes for the title element */
687
- titleClassName?: string;
688
- /** Whether this section should grow to fill available space */
689
- grow?: boolean;
690
- }
691
- /**
692
- * A generic sidebar section wrapper with optional title.
693
- * Used to group related sidebar items together.
694
- */
695
- declare function SidebarSection({
696
- title,
697
- children,
698
- className,
699
- titleClassName,
700
- grow
701
- }: SidebarSectionProps): React$1.ReactElement;
702
- //# sourceMappingURL=SidebarSection.d.ts.map
703
- //#endregion
704
- //#region src/components/ui/tabs.d.ts
705
- /** Tabs container component wrapping Radix UI Tabs Root. */
706
- declare function Tabs({
707
- className,
708
- ...props
709
- }: React$2.ComponentProps<typeof TabsPrimitive.Root>): React$2.ReactElement;
710
- /** Tabs list component containing tab triggers. */
711
- declare function TabsList({
712
- className,
713
- ...props
714
- }: React$2.ComponentProps<typeof TabsPrimitive.List>): React$2.ReactElement;
715
- /** Individual tab trigger button. */
716
- declare function TabsTrigger({
717
- className,
718
- ...props
719
- }: React$2.ComponentProps<typeof TabsPrimitive.Trigger>): React$2.ReactElement;
720
- /** Tab content panel displayed when its trigger is active. */
721
- declare function TabsContent({
722
- className,
723
- ...props
724
- }: React$2.ComponentProps<typeof TabsPrimitive.Content>): React$2.ReactElement;
725
- //#endregion
726
- //#region src/components/ui/textarea.d.ts
727
- type TextareaProps = React$2.TextareaHTMLAttributes<HTMLTextAreaElement>;
728
- declare const Textarea: React$2.ForwardRefExoticComponent<TextareaProps & React$2.RefAttributes<HTMLTextAreaElement>>;
729
- //#endregion
730
- //#region src/components/ui/tooltip.d.ts
731
- declare const TooltipProvider: React$2.FC<TooltipPrimitive.TooltipProviderProps>;
732
- declare const Tooltip: React$2.FC<TooltipPrimitive.TooltipProps>;
733
- declare const TooltipTrigger: React$2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$2.RefAttributes<HTMLButtonElement>>;
734
- declare const TooltipContent: React$2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$2.RefAttributes<HTMLDivElement>, "ref"> & React$2.RefAttributes<HTMLDivElement>>;
735
- //#endregion
736
- //#region src/components/ui/view-contract-state-button.d.ts
737
- interface ViewContractStateButtonProps {
738
- contractAddress: string | null;
739
- onToggle: () => void;
740
- }
741
- /**
742
- * ViewContractStateButton - A button to toggle the contract state widget
743
- * Shows the contract address in a truncated format
744
- */
745
- declare function ViewContractStateButton({
746
- contractAddress,
747
- onToggle
748
- }: ViewContractStateButtonProps): React$1.ReactElement | null;
749
- //#endregion
750
- //#region src/components/fields/BaseField.d.ts
751
- /**
752
- * Base props shared by all field components
753
- *
754
- * @template TFieldValues The field values type from React Hook Form
755
- */
756
- interface BaseFieldProps<TFieldValues extends FieldValues = FieldValues> {
757
- /**
758
- * Unique identifier for the field
759
- */
760
- id: string;
761
- /**
762
- * Label text to display
763
- */
764
- label: string;
765
- /**
766
- * Placeholder text when empty
767
- */
768
- placeholder?: string;
769
- /**
770
- * Helper text to display below the field
771
- */
772
- helperText?: string;
773
- /**
774
- * Field width for layout
775
- */
776
- width?: 'full' | 'half' | 'third';
777
- /**
778
- * Validation rules for the field
779
- */
780
- validation?: FieldValidation;
781
- /**
782
- * Form control from React Hook Form
783
- */
784
- control: Control<TFieldValues>;
785
- /**
786
- * Field name in the form
787
- */
788
- name: FieldPath<TFieldValues>;
789
- /**
790
- * Whether the field should be displayed as read-only/disabled.
791
- * @default false
792
- */
793
- readOnly?: boolean;
794
- }
795
- /**
796
- * BaseField component to provide a consistent layout for form fields
797
- *
798
- * @important This component is the foundation of the app rendering architecture and should
799
- * ONLY be used by field-specific components within the system, not as a standalone component.
800
- *
801
- * Architecture role:
802
- * 1. Provides a consistent layout structure for all field types
803
- * 2. Handles integration with React Hook Form through the FormField component
804
- * 3. Manages common rendering aspects like labels, error messages, and help text
805
- * 4. Delegates actual input rendering to field-specific components via renderInput
806
- *
807
- * Field component hierarchy:
808
- * - TransactionForm (top-level renderer)
809
- * - DynamicFormField (field type selector)
810
- * - Specific field components (TextField, NumberField, etc.)
811
- * - BaseField (common field structure - this component)
812
- * - Actual input element rendered by renderInput
813
- *
814
- * This component should only be extended by field-specific components like
815
- * TextField, NumberField, and AddressField - it is not meant for direct use in forms.
816
- */
817
- declare function BaseField<TFieldValues extends FieldValues = FieldValues>({
818
- id,
819
- label,
820
- helperText,
821
- control,
822
- name,
823
- width,
824
- renderInput
825
- }: BaseFieldProps<TFieldValues> & {
826
- renderInput: (field: Record<string, unknown>, props: {
827
- id: string;
828
- ref?: ForwardedRef<HTMLElement>;
829
- }) => ReactNode;
830
- ref?: ForwardedRef<HTMLElement>;
831
- }): ReactElement;
832
- declare namespace BaseField {
833
- var displayName: string;
834
- }
835
- //# sourceMappingURL=BaseField.d.ts.map
836
- //#endregion
837
- //#region src/components/fields/AddressField.d.ts
838
- interface AddressFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
839
- adapter?: ContractAdapter;
840
- }
841
- /**
842
- * Address input field component specifically designed for blockchain addresses via React Hook Form integration.
843
- *
844
- * Architecture flow:
845
- * 1. Form schemas are generated from contract functions using adapters
846
- * 2. TransactionForm renders the overall form structure with React Hook Form
847
- * 3. DynamicFormField selects the appropriate field component (like AddressField) based on field type
848
- * 4. BaseField provides consistent layout and hook form integration
849
- * 5. This component handles blockchain address-specific rendering and validation using the passed adapter
850
- *
851
- * The component includes:
852
- * - Integration with React Hook Form
853
- * - Blockchain address validation through adapter-provided custom validation
854
- * - Automatic error handling and reporting
855
- * - Chain-agnostic design (validation handled by adapters)
856
- * - Full accessibility support with ARIA attributes
857
- * - Keyboard navigation
858
- */
859
- declare function AddressField<TFieldValues extends FieldValues = FieldValues>({
860
- id,
861
- label,
862
- placeholder,
863
- helperText,
864
- control,
865
- name,
866
- width,
867
- validation,
868
- adapter,
869
- readOnly
870
- }: AddressFieldProps<TFieldValues>): React$1.ReactElement;
871
- declare namespace AddressField {
872
- var displayName: string;
873
- }
874
- //#endregion
875
- //#region src/components/fields/AmountField.d.ts
876
- /**
877
- * AmountField component properties
878
- */
879
- interface AmountFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
880
- /**
881
- * Minimum value validation
882
- */
883
- min?: number;
884
- /**
885
- * Maximum value validation
886
- */
887
- max?: number;
888
- /**
889
- * Step value for increment/decrement
890
- */
891
- step?: number;
892
- /**
893
- * Number of decimal places to allow
894
- */
895
- decimals?: number;
896
- /**
897
- * Currency/token symbol to display
898
- */
899
- symbol?: string;
900
- /**
901
- * Position of the symbol (before or after the amount)
902
- */
903
- symbolPosition?: 'prefix' | 'suffix';
904
- /**
905
- * Custom validation function for amount values
906
- */
907
- validateAmount?: (value: number) => boolean | string;
908
- }
909
- /**
910
- * Amount input field component specifically designed for currency/token amounts with React Hook Form integration.
911
- *
912
- * Architecture flow:
913
- * 1. Form schemas are generated from contract functions using adapters
914
- * 2. TransactionForm renders the overall form structure with React Hook Form
915
- * 3. DynamicFormField selects the appropriate field component based on field type
916
- * 4. BaseField provides consistent layout and hook form integration
917
- * 5. This component handles amount-specific rendering and validation
918
- *
919
- * The component includes:
920
- * - Integration with React Hook Form
921
- * - Support for currency/token symbols
922
- * - Numeric-specific validations (min, max, decimals)
923
- * - Customizable validation through adapter integration
924
- * - Automatic error handling and reporting
925
- * - Full accessibility support with ARIA attributes
926
- * - Keyboard navigation with arrow keys for numeric increment/decrement
927
- */
928
- declare function AmountField<TFieldValues extends FieldValues = FieldValues>({
929
- id,
930
- label,
931
- placeholder,
932
- helperText,
933
- control,
934
- name,
935
- width,
936
- validation,
937
- min,
938
- max,
939
- step,
940
- decimals,
941
- symbol,
942
- symbolPosition,
943
- validateAmount
944
- }: AmountFieldProps<TFieldValues>): React$1.ReactElement;
945
- declare namespace AmountField {
946
- var displayName: string;
947
- }
948
- //# sourceMappingURL=AmountField.d.ts.map
949
- //#endregion
950
- //#region src/components/fields/ArrayField.d.ts
951
- /**
952
- * ArrayField component properties
953
- */
954
- interface ArrayFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
955
- /**
956
- * The type of elements in the array (e.g., 'text', 'number', 'blockchain-address')
957
- */
958
- elementType?: FormFieldType['type'];
959
- /**
960
- * Minimum number of array elements
961
- */
962
- minItems?: number;
963
- /**
964
- * Maximum number of array elements
965
- */
966
- maxItems?: number;
967
- /**
968
- * Base configuration for array element fields.
969
- * This allows specifying common properties like placeholder, helperText, or specific validation
970
- * for each element in the array.
971
- */
972
- elementFieldConfig?: Partial<FormFieldType>;
973
- /**
974
- * Render function for array elements.
975
- * This is crucial for rendering complex elements or integrating custom field components.
976
- */
977
- renderElement?: (field: FormFieldType, index: number) => React$1.ReactNode;
978
- }
979
- /**
980
- * Array input field component specifically designed for React Hook Form integration.
981
- *
982
- * This component provides a dynamic interface for managing array inputs with:
983
- * - Add/remove functionality for array items
984
- * - Validation for array length constraints
985
- * - Integration with existing field components for array elements
986
- * - Full accessibility support
987
- *
988
- * The component reuses existing field components (TextField, NumberField, etc.)
989
- * for individual array elements, maintaining consistency across the form system.
990
- *
991
- * Why the extra guards and synchronization exist (post-mortem/rationale):
992
- * - In certain runtime states (StrictMode double-invocation, preview remounts, state rehydration
993
- * from storage), React Hook Form's useFieldArray may not synchronously reflect an `append()`
994
- * or `remove()` call in the immediately subsequent read (e.g., reading `fields.length` or
995
- * `getValues(name)` right after the call). This resulted in newly added items (especially
996
- * falsy defaults like 0/false) appearing briefly and then disappearing, or remove operations
997
- * not updating the UI.
998
- * - To make array operations deterministic and resilient across flows (preview form with
999
- * FormProvider and the wizard's "Use Hardcoded Value" without a provider), we:
1000
- * 1) Read a stable snapshot of the array value BEFORE `append()` and, if the immediate
1001
- * post-append read doesn't reflect the addition, we coerce the state to
1002
- * "previousSnapshot + newValue" via `setValue` (when context exists) or `replace`.
1003
- * 2) Avoid `remove()` race conditions by always computing the new array via filter and
1004
- * applying it with `replace`, which proved to be the most consistent across contexts.
1005
- * 3) Keep `fields` in sync with the watched array value using a guarded `replace` in an effect.
1006
- * A ref flag (`isReplacingRef`) prevents infinite loops when we ourselves are driving
1007
- * the `replace`.
1008
- * 4) Use optional chaining for form context (`formContext?.control`, `formContext?.getValues`,
1009
- * `formContext?.setValue`) so the component works with either an inherited FormProvider or
1010
- * an explicit `control` prop.
1011
- * 5) Use `queueMicrotask` to reset the guard flag after our `replace` has been scheduled,
1012
- * avoiding an extra timer tick while ensuring the effect observes the final state.
1013
- *
1014
- * Guarantees:
1015
- * - Operations are idempotent: the fallback only runs when the immediate read does not reflect
1016
- * the intended state, so we don't double-append/remove.
1017
- * - Works both with and without FormProvider (preview vs wizard) due to context-agnostic state
1018
- * reads and `replace` fallback.
1019
- */
1020
- declare function ArrayField<TFieldValues extends FieldValues = FieldValues>({
1021
- id,
1022
- label,
1023
- helperText,
1024
- control,
1025
- name,
1026
- width,
1027
- validation,
1028
- elementType,
1029
- minItems,
1030
- maxItems,
1031
- elementFieldConfig,
1032
- renderElement,
1033
- readOnly
1034
- }: ArrayFieldProps<TFieldValues>): React$1.ReactElement;
1035
- declare namespace ArrayField {
1036
- var displayName: string;
1037
- }
1038
- //# sourceMappingURL=ArrayField.d.ts.map
1039
- //#endregion
1040
- //#region src/components/fields/ArrayObjectField.d.ts
1041
- /**
1042
- * ArrayObjectField component properties
1043
- */
1044
- interface ArrayObjectFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1045
- /**
1046
- * The components/properties of each object in the array.
1047
- * Defines the schema for the nested fields within each object item.
1048
- */
1049
- components?: FunctionParameter[];
1050
- /**
1051
- * Minimum number of array elements
1052
- */
1053
- minItems?: number;
1054
- /**
1055
- * Maximum number of array elements
1056
- */
1057
- maxItems?: number;
1058
- /**
1059
- * Render function for object properties.
1060
- * This function is responsible for rendering each individual property
1061
- * of an object within an array item.
1062
- */
1063
- renderProperty?: (field: FormFieldType, itemIndex: number, propertyName: string) => React$1.ReactNode;
1064
- /**
1065
- * Whether items should be collapsible.
1066
- * Useful for managing UI complexity when objects have many properties.
1067
- */
1068
- collapsible?: boolean;
1069
- /**
1070
- * Whether items should start collapsed.
1071
- */
1072
- defaultCollapsed?: boolean;
1073
- /**
1074
- * The adapter for chain-specific type mapping.
1075
- * Essential for correctly determining field types for object properties.
1076
- */
1077
- adapter?: ContractAdapter;
1078
- /**
1079
- * Optional contract schema to enrich nested field generation.
1080
- */
1081
- contractSchema?: ContractSchema;
1082
- }
1083
- /**
1084
- * Array of objects input field component specifically designed for React Hook Form integration.
1085
- *
1086
- * This component provides a dynamic interface for managing arrays of composite objects with:
1087
- * - Add/remove functionality for array items
1088
- * - Structured rendering of object properties within each array item
1089
- * - Collapsible items for better UX with complex objects
1090
- * - Validation for array constraints and object properties (though individual property validation is largely via rendered component)
1091
- * - Full accessibility support
1092
- *
1093
- * The component combines the functionality of ArrayField and ObjectField to handle
1094
- * complex nested data structures commonly found in blockchain contracts.
1095
- */
1096
- declare function ArrayObjectField<TFieldValues extends FieldValues = FieldValues>({
1097
- id,
1098
- label,
1099
- helperText,
1100
- control,
1101
- name,
1102
- width,
1103
- validation,
1104
- components,
1105
- minItems,
1106
- maxItems,
1107
- renderProperty,
1108
- collapsible,
1109
- defaultCollapsed,
1110
- readOnly,
1111
- adapter,
1112
- contractSchema
1113
- }: ArrayObjectFieldProps<TFieldValues>): React$1.ReactElement;
1114
- declare namespace ArrayObjectField {
1115
- var displayName: string;
1116
- }
1117
- //# sourceMappingURL=ArrayObjectField.d.ts.map
1118
- //#endregion
1119
- //#region src/components/fields/BigIntField.d.ts
1120
- /**
1121
- * BigIntField component properties
1122
- */
1123
- interface BigIntFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1124
- /**
1125
- * Custom validation function for big integer string values
1126
- */
1127
- validateBigInt?: (value: string) => boolean | string;
1128
- }
1129
- /**
1130
- * Big integer input field component for large numbers beyond JavaScript's Number precision.
1131
- *
1132
- * This component is designed for blockchain integer types like uint128, uint256, int128, int256
1133
- * that can hold values larger than JavaScript's Number.MAX_SAFE_INTEGER (2^53 - 1).
1134
- *
1135
- * Architecture flow:
1136
- * 1. Form schemas are generated from contract functions using adapters
1137
- * 2. TransactionForm renders the overall form structure with React Hook Form
1138
- * 3. DynamicFormField selects BigIntField for large integer types
1139
- * 4. This component handles string-based integer input with validation
1140
- * 5. Adapters convert the string to BigInt when submitting transactions
1141
- *
1142
- * The component includes:
1143
- * - Integer-only validation (no decimals allowed)
1144
- * - String-based storage to avoid JavaScript Number precision issues
1145
- * - Integration with React Hook Form
1146
- * - Automatic error handling and reporting
1147
- * - Full accessibility support with ARIA attributes
1148
- * - Keyboard navigation
1149
- */
1150
- declare function BigIntField<TFieldValues extends FieldValues = FieldValues>({
1151
- id,
1152
- label,
1153
- placeholder,
1154
- helperText,
1155
- control,
1156
- name,
1157
- width,
1158
- validation,
1159
- validateBigInt,
1160
- readOnly
1161
- }: BigIntFieldProps<TFieldValues>): React$1.ReactElement;
1162
- declare namespace BigIntField {
1163
- var displayName: string;
1164
- }
1165
- //# sourceMappingURL=BigIntField.d.ts.map
1166
- //#endregion
1167
- //#region src/components/fields/BooleanField.d.ts
1168
- /**
1169
- * BooleanField component properties
1170
- */
1171
- interface BooleanFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1172
- /**
1173
- * Custom validation function for boolean values
1174
- */
1175
- validateBoolean?: (value: boolean) => boolean | string;
1176
- }
1177
- /**
1178
- * Boolean input field component (checkbox) specifically designed for React Hook Form integration.
1179
- *
1180
- * Architecture flow:
1181
- * 1. Form schemas are generated from contract functions using adapters
1182
- * 2. TransactionForm renders the overall form structure with React Hook Form
1183
- * 3. DynamicFormField selects the appropriate field component (like BooleanField) based on field type
1184
- * 4. BaseField provides consistent layout and hook form integration
1185
- * 5. This component handles boolean-specific rendering and validation
1186
- *
1187
- * The component includes:
1188
- * - Integration with React Hook Form
1189
- * - Checkbox-specific behavior
1190
- * - Customizable validation through adapter integration
1191
- * - Automatic error handling and reporting
1192
- * - Full accessibility support with ARIA attributes
1193
- * - Keyboard navigation with Space/Enter for toggling
1194
- */
1195
- declare function BooleanField<TFieldValues extends FieldValues = FieldValues>({
1196
- id,
1197
- label,
1198
- helperText,
1199
- control,
1200
- name,
1201
- width,
1202
- validation,
1203
- validateBoolean,
1204
- readOnly
1205
- }: BooleanFieldProps<TFieldValues>): React$1.ReactElement;
1206
- declare namespace BooleanField {
1207
- var displayName: string;
1208
- }
1209
- //# sourceMappingURL=BooleanField.d.ts.map
1210
- //#endregion
1211
- //#region src/components/fields/BytesField.d.ts
1212
- /**
1213
- * BytesField component properties
1214
- */
1215
- interface BytesFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1216
- /**
1217
- * Number of rows for the textarea
1218
- */
1219
- rows?: number;
1220
- /**
1221
- * Maximum length in bytes (not characters)
1222
- */
1223
- maxBytes?: number;
1224
- /**
1225
- * Whether to accept hex, base64, or both formats
1226
- */
1227
- acceptedFormats?: 'hex' | 'base64' | 'both';
1228
- /**
1229
- * Whether to automatically add/remove 0x prefix for hex values
1230
- */
1231
- autoPrefix?: boolean;
1232
- /**
1233
- * Whether to allow 0x prefix in hex input (defaults to true)
1234
- */
1235
- allowHexPrefix?: boolean;
1236
- }
1237
- /**
1238
- * Specialized input field for bytes data with built-in hex/base64 validation.
1239
- *
1240
- * This component provides proper validation for blockchain bytes data including:
1241
- * - Hex encoding validation (with optional 0x prefix support)
1242
- * - Base64 encoding validation
1243
- * - Byte length validation
1244
- * - Format detection and conversion
1245
- *
1246
- * Key props for EVM compatibility:
1247
- * - `allowHexPrefix`: Whether to accept 0x prefixed input (defaults to true)
1248
- * - `autoPrefix`: Whether to automatically add 0x prefixes (defaults to false)
1249
- *
1250
- * These are separate concerns - you can accept 0x input without auto-adding prefixes.
1251
- *
1252
- * Architecture flow:
1253
- * 1. Form schemas are generated from contract functions using adapters
1254
- * 2. TransactionForm renders the overall form structure with React Hook Form
1255
- * 3. DynamicFormField selects BytesField for 'bytes' field types
1256
- * 4. BaseField provides consistent layout and hook form integration
1257
- * 5. This component handles bytes-specific validation and formatting
1258
- */
1259
- declare function BytesField<TFieldValues extends FieldValues = FieldValues>({
1260
- id,
1261
- label,
1262
- helperText,
1263
- control,
1264
- name,
1265
- width,
1266
- validation,
1267
- placeholder,
1268
- rows,
1269
- maxBytes,
1270
- acceptedFormats,
1271
- autoPrefix,
1272
- allowHexPrefix,
1273
- readOnly
1274
- }: BytesFieldProps<TFieldValues>): React$1.ReactElement;
1275
- declare namespace BytesField {
1276
- var displayName: string;
1277
- }
1278
- //# sourceMappingURL=BytesField.d.ts.map
1279
- //#endregion
1280
- //#region src/components/fields/DateTimeField.d.ts
1281
- /**
1282
- * DateTimeField component properties
1283
- */
1284
- interface DateTimeFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1285
- /**
1286
- * Placeholder text displayed when the field is empty
1287
- */
1288
- placeholder?: string;
1289
- /**
1290
- * If true, clears the field when user clicks Escape; otherwise just blurs
1291
- */
1292
- clearOnEscape?: boolean;
1293
- }
1294
- /**
1295
- * Datetime-local input field component specifically designed for React Hook Form integration.
1296
- *
1297
- * Architecture flow:
1298
- * 1. Form schemas are generated from contract functions using adapters
1299
- * 2. TransactionForm renders the overall form structure with React Hook Form
1300
- * 3. DynamicFormField selects the appropriate field component (like DateTimeField) based on field type
1301
- * 4. BaseField provides consistent layout and hook form integration
1302
- * 5. This component handles date-time specific rendering, conversion, and validation
1303
- *
1304
- * The component includes:
1305
- * - Integration with React Hook Form
1306
- * - Conversion between input value (YYYY-MM-DDTHH:mm) and ISO 8601 strings (toISOString)
1307
- * - Customizable validation through adapter integration
1308
- * - Automatic error handling and reporting
1309
- * - Full accessibility support with ARIA attributes
1310
- * - Keyboard navigation with Escape-to-clear behavior
1311
- */
1312
- declare function DateTimeField<TFieldValues extends FieldValues = FieldValues>({
1313
- id,
1314
- label,
1315
- placeholder,
1316
- helperText,
1317
- control,
1318
- name,
1319
- width,
1320
- validation,
1321
- readOnly,
1322
- clearOnEscape
1323
- }: DateTimeFieldProps<TFieldValues>): React$1.ReactElement;
1324
- declare namespace DateTimeField {
1325
- var displayName: string;
1326
- }
1327
- //# sourceMappingURL=DateTimeField.d.ts.map
1328
- //#endregion
1329
- //#region src/components/fields/EnumField.d.ts
1330
- /**
1331
- * Enum variant definition
1332
- */
1333
- interface EnumVariant {
1334
- /** Name of the variant (e.g., 'One', 'Two', 'Three') */
1335
- name: string;
1336
- /** Type of variant: 'void' for unit variants, 'tuple' for variants with payload, 'integer' for numeric enums */
1337
- type: 'void' | 'tuple' | 'integer';
1338
- /** For tuple variants: array of payload type names (e.g., ['U32', 'ScString']) */
1339
- payloadTypes?: string[];
1340
- /** Optional nested component definitions for tuple payload entries */
1341
- payloadComponents?: (FunctionParameter[] | undefined)[];
1342
- /** For integer variants: the numeric value */
1343
- value?: number;
1344
- /** Flag indicating if this variant has a single Tuple payload (for serialization) */
1345
- isSingleTuplePayload?: boolean;
1346
- }
1347
- /**
1348
- * Enum metadata extracted from contract spec
1349
- */
1350
- interface EnumMetadata {
1351
- /** Name of the enum type */
1352
- name: string;
1353
- /** Array of variants in the enum */
1354
- variants: EnumVariant[];
1355
- /** True if all variants are unit variants (no payloads), suitable for simple select/radio */
1356
- isUnitOnly: boolean;
1357
- }
1358
- /**
1359
- * Enum field value structure for blockchain enum types
1360
- */
1361
- type EnumFieldValue = EnumValue;
1362
- /**
1363
- * EnumField component properties
1364
- */
1365
- interface EnumFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1366
- /**
1367
- * Enum metadata containing variant information
1368
- */
1369
- enumMetadata?: EnumMetadata;
1370
- /**
1371
- * Custom validation function for enum values
1372
- */
1373
- validateEnum?: (value: EnumFieldValue) => boolean | string;
1374
- /**
1375
- * Render function for payload input fields.
1376
- * This allows the parent component to provide appropriate field components
1377
- * based on the payload type, maintaining separation of concerns.
1378
- */
1379
- renderPayloadField?: (field: FormFieldType, payloadIndex: number) => React$1.ReactNode;
1380
- }
1381
- /**
1382
- * Composite enum field component for blockchain enum types.
1383
- *
1384
- * This component handles both unit enums (simple variants) and tagged enums (variants with payloads).
1385
- * For unit enums, it renders as a simple select dropdown.
1386
- * For tagged enums, it renders a variant picker plus conditional input fields for payload data.
1387
- *
1388
- * The value format is designed to be chain-agnostic:
1389
- * - Unit variants: { tag: "VariantName" }
1390
- * - Tuple variants: { tag: "VariantName", values: [...] }
1391
- */
1392
- declare function EnumField<TFieldValues extends FieldValues = FieldValues>({
1393
- id,
1394
- label,
1395
- placeholder,
1396
- helperText,
1397
- control,
1398
- name,
1399
- width,
1400
- validation,
1401
- enumMetadata,
1402
- validateEnum,
1403
- renderPayloadField,
1404
- readOnly
1405
- }: EnumFieldProps<TFieldValues>): React$1.ReactElement;
1406
- declare namespace EnumField {
1407
- var displayName: string;
1408
- }
1409
- //# sourceMappingURL=EnumField.d.ts.map
1410
- //#endregion
1411
- //#region src/components/fields/FileUploadField.d.ts
1412
- /**
1413
- * FileUploadField component properties
1414
- */
1415
- interface FileUploadFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1416
- /**
1417
- * Accepted file types (e.g., ".zip,.tar.gz")
1418
- */
1419
- accept?: string;
1420
- /**
1421
- * Maximum file size in bytes
1422
- */
1423
- maxSize?: number;
1424
- /**
1425
- * Whether to convert the file to base64 string
1426
- */
1427
- convertToBase64?: boolean;
1428
- }
1429
- /** File upload field component with drag-and-drop support. */
1430
- declare function FileUploadField<TFieldValues extends FieldValues = FieldValues>({
1431
- id,
1432
- label,
1433
- placeholder,
1434
- helperText,
1435
- control,
1436
- name,
1437
- width,
1438
- validation,
1439
- readOnly,
1440
- accept,
1441
- maxSize,
1442
- convertToBase64
1443
- }: FileUploadFieldProps<TFieldValues>): React.ReactElement;
1444
- //# sourceMappingURL=FileUploadField.d.ts.map
1445
- //#endregion
1446
- //#region src/components/fields/MapField/MapField.d.ts
1447
- /**
1448
- * MapField component properties
1449
- */
1450
- interface MapFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1451
- /**
1452
- * Map metadata containing key and value type information
1453
- */
1454
- mapMetadata?: {
1455
- keyType?: string;
1456
- valueType?: string;
1457
- keyFieldConfig?: Partial<FormFieldType>;
1458
- valueFieldConfig?: Partial<FormFieldType>;
1459
- };
1460
- /**
1461
- * Minimum number of map entries
1462
- */
1463
- minItems?: number;
1464
- /**
1465
- * Render function for map keys.
1466
- * This allows the parent component to provide appropriate field components
1467
- * based on the key type, maintaining separation of concerns.
1468
- */
1469
- renderKeyField?: (field: FormFieldType, entryIndex: number) => React$1.ReactNode;
1470
- /**
1471
- * Render function for map values.
1472
- * This allows the parent component to provide appropriate field components
1473
- * based on the value type, maintaining separation of concerns.
1474
- */
1475
- renderValueField?: (field: FormFieldType, entryIndex: number) => React$1.ReactNode;
1476
- }
1477
- /**
1478
- * Map (key-value dictionary) input field component specifically designed for React Hook Form integration.
1479
- *
1480
- * This component provides a dynamic interface for managing map/dictionary inputs with:
1481
- * - Add/remove functionality for key-value pairs
1482
- * - Validation for map size constraints
1483
- * - Integration with existing field components for keys and values
1484
- * - Chain-agnostic data format (array of {key, value} objects)
1485
- * - Full accessibility support
1486
- *
1487
- * Architecture flow:
1488
- * 1. Form schemas are generated from contract functions using adapters
1489
- * 2. TransactionForm renders the overall form structure with React Hook Form
1490
- * 3. DynamicFormField selects the appropriate field component (like MapField) based on field type
1491
- * 4. BaseField provides consistent layout and hook form integration
1492
- * 5. This component handles map-specific rendering and validation
1493
- *
1494
- * The component stores data in a chain-agnostic format as an array of {key, value} objects.
1495
- * The adapter is responsible for converting this to the chain-specific format (e.g., SorobanMapEntry[])
1496
- * when submitting to the blockchain.
1497
- */
1498
- declare function MapField<TFieldValues extends FieldValues = FieldValues>({
1499
- id,
1500
- label,
1501
- helperText,
1502
- control,
1503
- name,
1504
- width,
1505
- validation,
1506
- mapMetadata,
1507
- minItems,
1508
- renderKeyField,
1509
- renderValueField,
1510
- readOnly
1511
- }: MapFieldProps<TFieldValues>): React$1.ReactElement;
1512
- declare namespace MapField {
1513
- var displayName: string;
1514
- }
1515
- //# sourceMappingURL=MapField.d.ts.map
1516
- //#endregion
1517
- //#region src/components/fields/MapField/MapEntryRow.d.ts
1518
- interface Props {
1519
- keyField: FormFieldType;
1520
- valueField: FormFieldType;
1521
- isDuplicateKey: boolean;
1522
- renderKeyField?: (field: FormFieldType, entryIndex: number) => React$1.ReactNode;
1523
- renderValueField?: (field: FormFieldType, entryIndex: number) => React$1.ReactNode;
1524
- index: number;
1525
- }
1526
- /** Renders a single key-value entry row in a map field. */
1527
- declare function MapEntryRow({
1528
- keyField,
1529
- valueField,
1530
- isDuplicateKey,
1531
- renderKeyField,
1532
- renderValueField,
1533
- index
1534
- }: Props): React$1.ReactElement;
1535
- //#endregion
1536
- //#region src/components/fields/MapField/hooks/useChildTouched.d.ts
1537
- /** Computes whether any child field in a map has been touched. */
1538
- declare function computeChildTouched(formContext: UseFormReturn | undefined, name: string, watchedValue: unknown): boolean;
1539
- //# sourceMappingURL=useChildTouched.d.ts.map
1540
- //#endregion
1541
- //#region src/components/fields/MapField/hooks/useDuplicateKeyIndexes.d.ts
1542
- /** Hook that returns indexes of map entries with duplicate keys. */
1543
- declare function useDuplicateKeyIndexes(watchedValue: unknown): Set<number>;
1544
- //# sourceMappingURL=useDuplicateKeyIndexes.d.ts.map
1545
-
1546
- //#endregion
1547
- //#region src/components/fields/MapField/hooks/useMapFieldSync.d.ts
1548
- /**
1549
- * Keeps a field array synchronized with a watched value's length using replace,
1550
- * while preventing infinite loops via a guard ref.
1551
- */
1552
- declare function useMapFieldSync<TReplaceValue>(watchedValue: unknown, fieldsLength: number, replace: (value: TReplaceValue) => void): ReturnType<typeof React$1.useRef<boolean>>;
1553
- //# sourceMappingURL=useMapFieldSync.d.ts.map
1554
- //#endregion
1555
- //#region src/components/fields/MapField/validation/validateMapStructure.d.ts
1556
- interface ValidateArgs {
1557
- value: unknown;
1558
- required: boolean;
1559
- minItems?: number;
1560
- }
1561
- /** Validates a map field's structure including duplicates and required entries. */
1562
- declare function validateMapStructure({
1563
- value,
1564
- required,
1565
- minItems
1566
- }: ValidateArgs): string | true;
1567
- //#endregion
1568
- //#region src/components/fields/NumberField.d.ts
1569
- /**
1570
- * NumberField component properties
1571
- */
1572
- interface NumberFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1573
- /**
1574
- * Minimum value validation
1575
- */
1576
- min?: number;
1577
- /**
1578
- * Maximum value validation
1579
- */
1580
- max?: number;
1581
- /**
1582
- * Step value for increment/decrement
1583
- */
1584
- step?: number;
1585
- /**
1586
- * Custom validation function for number values
1587
- */
1588
- validateNumber?: (value: number) => boolean | string;
1589
- }
1590
- /**
1591
- * Number input field component specifically designed for React Hook Form integration.
1592
- *
1593
- * Architecture flow:
1594
- * 1. Form schemas are generated from contract functions using adapters
1595
- * 2. TransactionForm renders the overall form structure with React Hook Form
1596
- * 3. DynamicFormField selects the appropriate field component (like NumberField) based on field type
1597
- * 4. BaseField provides consistent layout and hook form integration
1598
- * 5. This component handles number-specific rendering and validation
1599
- *
1600
- * The component includes:
1601
- * - Integration with React Hook Form
1602
- * - Numeric-specific validations (min, max, step)
1603
- * - Customizable validation through adapter integration
1604
- * - Automatic error handling and reporting
1605
- * - Full accessibility support with ARIA attributes
1606
- * - Keyboard navigation with arrow keys for numeric increment/decrement
1607
- */
1608
- declare function NumberField<TFieldValues extends FieldValues = FieldValues>({
1609
- id,
1610
- label,
1611
- placeholder,
1612
- helperText,
1613
- control,
1614
- name,
1615
- width,
1616
- validation,
1617
- min,
1618
- max,
1619
- step,
1620
- validateNumber,
1621
- readOnly
1622
- }: NumberFieldProps<TFieldValues>): React$1.ReactElement;
1623
- declare namespace NumberField {
1624
- var displayName: string;
1625
- }
1626
- //# sourceMappingURL=NumberField.d.ts.map
1627
- //#endregion
1628
- //#region src/components/fields/ObjectField.d.ts
1629
- /**
1630
- * ObjectField component properties
1631
- */
1632
- interface ObjectFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1633
- /**
1634
- * The components/properties of the object.
1635
- * These define the schema for the nested fields within the object.
1636
- */
1637
- components?: FunctionParameter[];
1638
- /**
1639
- * Render function for object properties.
1640
- * This is crucial for rendering complex properties or integrating custom field components.
1641
- */
1642
- renderProperty?: (field: FormFieldType, propertyName: string) => React$1.ReactNode;
1643
- /**
1644
- * Whether to show the object in a card container.
1645
- * Useful for visually grouping object properties.
1646
- */
1647
- showCard?: boolean;
1648
- /**
1649
- * The adapter for chain-specific type mapping.
1650
- * Essential for correctly determining field types for object properties.
1651
- */
1652
- adapter?: ContractAdapter;
1653
- /**
1654
- * Optional contract schema for nested metadata (structs/enums).
1655
- */
1656
- contractSchema?: ContractSchema;
1657
- }
1658
- /**
1659
- * Object (composite/nested) input field component specifically designed for React Hook Form integration.
1660
- *
1661
- * This component provides a structured interface for managing object inputs with:
1662
- * - Nested field rendering based on object components
1663
- * - Validation for required properties (currently, the object itself can be required)
1664
- * - Integration with existing field components for object properties
1665
- * - Full accessibility support
1666
- *
1667
- * The component reuses existing field components for individual properties,
1668
- * maintaining consistency across the form system while supporting complex nested structures.
1669
- */
1670
- declare function ObjectField<TFieldValues extends FieldValues = FieldValues>({
1671
- id,
1672
- label,
1673
- helperText,
1674
- control,
1675
- name,
1676
- width,
1677
- validation,
1678
- components,
1679
- renderProperty,
1680
- showCard,
1681
- readOnly,
1682
- adapter,
1683
- contractSchema
1684
- }: ObjectFieldProps<TFieldValues>): React$1.ReactElement;
1685
- declare namespace ObjectField {
1686
- var displayName: string;
1687
- }
1688
- //# sourceMappingURL=ObjectField.d.ts.map
1689
- //#endregion
1690
- //#region src/components/fields/PasswordField.d.ts
1691
- /**
1692
- * PasswordField component properties
1693
- */
1694
- interface PasswordFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1695
- /**
1696
- * Placeholder text displayed when the field is empty
1697
- */
1698
- placeholder?: string;
1699
- /**
1700
- * Whether to show the password visibility toggle button
1701
- * @default true
1702
- */
1703
- showToggle?: boolean;
1704
- }
1705
- /**
1706
- * Password input field component specifically designed for React Hook Form integration.
1707
- *
1708
- * Architecture flow:
1709
- * 1. Form schemas are generated from contract functions using adapters
1710
- * 2. TransactionForm renders the overall form structure with React Hook Form
1711
- * 3. DynamicFormField selects the appropriate field component (like PasswordField) based on field type
1712
- * 4. BaseField provides consistent layout and hook form integration
1713
- * 5. This component handles password-specific rendering and validation
1714
- *
1715
- * The component includes:
1716
- * - Integration with React Hook Form
1717
- * - Password visibility toggle functionality
1718
- * - Password-specific validations (minLength, maxLength, pattern)
1719
- * - Customizable validation through adapter integration
1720
- * - Automatic error handling and reporting
1721
- * - Full accessibility support with ARIA attributes
1722
- * - Keyboard navigation
1723
- */
1724
- declare function PasswordField<TFieldValues extends FieldValues = FieldValues>({
1725
- id,
1726
- label,
1727
- placeholder,
1728
- helperText,
1729
- control,
1730
- name,
1731
- width,
1732
- validation,
1733
- readOnly,
1734
- showToggle
1735
- }: PasswordFieldProps<TFieldValues>): React$1.ReactElement;
1736
- declare namespace PasswordField {
1737
- var displayName: string;
1738
- }
1739
- //# sourceMappingURL=PasswordField.d.ts.map
1740
- //#endregion
1741
- //#region src/components/fields/RadioField.d.ts
1742
- /**
1743
- * Option item for radio fields
1744
- */
1745
- interface RadioOption {
1746
- /**
1747
- * Value to be submitted with the form
1748
- */
1749
- value: string;
1750
- /**
1751
- * Display label for the option
1752
- */
1753
- label: string;
1754
- /**
1755
- * Whether this option is disabled
1756
- */
1757
- disabled?: boolean;
1758
- }
1759
- /**
1760
- * RadioField component properties
1761
- */
1762
- interface RadioFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1763
- /**
1764
- * Available options for selection
1765
- */
1766
- options?: RadioOption[];
1767
- /**
1768
- * Direction of radio options layout
1769
- */
1770
- layout?: 'horizontal' | 'vertical';
1771
- /**
1772
- * Custom validation function for radio values
1773
- */
1774
- validateRadio?: (value: string) => boolean | string;
1775
- }
1776
- /**
1777
- * Radio button field component specifically designed for React Hook Form integration.
1778
- *
1779
- * Architecture flow:
1780
- * 1. Form schemas are generated from contract functions using adapters
1781
- * 2. TransactionForm renders the overall form structure with React Hook Form
1782
- * 3. DynamicFormField selects the appropriate field component based on field type
1783
- * 4. BaseField provides consistent layout and hook form integration
1784
- * 5. This component handles radio-specific rendering and validation
1785
- *
1786
- * The component includes:
1787
- * - Integration with React Hook Form
1788
- * - Customizable options list
1789
- * - Horizontal or vertical layout options
1790
- * - Customizable validation through adapter integration
1791
- * - Automatic error handling and reporting
1792
- * - Full accessibility support with ARIA attributes
1793
- */
1794
- declare function RadioField<TFieldValues extends FieldValues = FieldValues>({
1795
- id,
1796
- label,
1797
- helperText,
1798
- control,
1799
- name,
1800
- width,
1801
- validation,
1802
- options,
1803
- layout,
1804
- validateRadio
1805
- }: RadioFieldProps<TFieldValues>): React$1.ReactElement;
1806
- declare namespace RadioField {
1807
- var displayName: string;
1808
- }
1809
- //# sourceMappingURL=RadioField.d.ts.map
1810
- //#endregion
1811
- //#region src/components/fields/SelectField.d.ts
1812
- /**
1813
- * Option item for select fields
1814
- */
1815
- interface SelectOption {
1816
- /**
1817
- * Value to be submitted with the form
1818
- */
1819
- value: string;
1820
- /**
1821
- * Display label for the option
1822
- */
1823
- label: string;
1824
- /**
1825
- * Whether this option is disabled
1826
- */
1827
- disabled?: boolean;
1828
- }
1829
- /**
1830
- * SelectField component properties
1831
- */
1832
- interface SelectFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1833
- /**
1834
- * Available options for selection
1835
- */
1836
- options?: SelectOption[];
1837
- /**
1838
- * Custom validation function for select values
1839
- */
1840
- validateSelect?: (value: string) => boolean | string;
1841
- /**
1842
- * Optional default value used when the field has no value yet
1843
- */
1844
- defaultValue?: string;
1845
- }
1846
- /**
1847
- * Select dropdown field component specifically designed for React Hook Form integration.
1848
- *
1849
- * Architecture flow:
1850
- * 1. Form schemas are generated from contract functions using adapters
1851
- * 2. TransactionForm renders the overall form structure with React Hook Form
1852
- * 3. DynamicFormField selects the appropriate field component based on field type
1853
- * 4. BaseField provides consistent layout and hook form integration
1854
- * 5. This component handles radio-specific rendering and validation
1855
- *
1856
- * The component includes:
1857
- * - Integration with React Hook Form
1858
- * - Customizable options list
1859
- * - Horizontal or vertical layout options
1860
- * - Customizable validation through adapter integration
1861
- * - Automatic error handling and reporting
1862
- * - Full accessibility support with ARIA attributes
1863
- */
1864
- declare function SelectField<TFieldValues extends FieldValues = FieldValues>({
1865
- id,
1866
- label,
1867
- placeholder,
1868
- helperText,
1869
- control,
1870
- name,
1871
- width,
1872
- validation,
1873
- options,
1874
- validateSelect,
1875
- defaultValue
1876
- }: SelectFieldProps<TFieldValues>): React$1.ReactElement;
1877
- declare namespace SelectField {
1878
- var displayName: string;
1879
- }
1880
- //# sourceMappingURL=SelectField.d.ts.map
1881
- //#endregion
1882
- //#region src/components/fields/SelectGroupedField.d.ts
1883
- /**
1884
- * Option item for select fields with visual indicators
1885
- */
1886
- interface GroupedSelectOption {
1887
- /**
1888
- * Value to be submitted with the form
1889
- */
1890
- value: string;
1891
- /**
1892
- * Display label for the option
1893
- */
1894
- label: string;
1895
- /**
1896
- * Whether this option is disabled
1897
- */
1898
- disabled?: boolean;
1899
- /**
1900
- * Custom CSS class to apply to the option
1901
- */
1902
- className?: string;
1903
- }
1904
- /**
1905
- * Option group structure
1906
- */
1907
- interface OptionGroup {
1908
- /**
1909
- * Group label to display
1910
- */
1911
- label: string;
1912
- /**
1913
- * Options within this group
1914
- */
1915
- options: GroupedSelectOption[];
1916
- }
1917
- /**
1918
- * SelectGroupedField component properties
1919
- */
1920
- interface SelectGroupedFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1921
- /**
1922
- * Available option groups for selection
1923
- */
1924
- groups?: OptionGroup[];
1925
- /**
1926
- * Custom validation function for select values
1927
- */
1928
- validateSelect?: (value: string) => boolean | string;
1929
- }
1930
- /**
1931
- * Select dropdown field component with grouped options specifically designed for React Hook Form integration.
1932
- *
1933
- * Architecture flow:
1934
- * 1. Form schemas are generated from contract functions using adapters
1935
- * 2. TransactionForm renders the overall form structure with React Hook Form
1936
- * 3. DynamicFormField selects the appropriate field component based on field type
1937
- * 4. BaseField provides consistent layout and hook form integration
1938
- * 5. This component handles radio-specific rendering and validation
1939
- *
1940
- * The component includes:
1941
- * - Integration with React Hook Form
1942
- * - Customizable options list
1943
- * - Horizontal or vertical layout options
1944
- * - Customizable validation through adapter integration
1945
- * - Automatic error handling and reporting
1946
- * - Full accessibility support with ARIA attributes
1947
- */
1948
- declare function SelectGroupedField<TFieldValues extends FieldValues = FieldValues>({
1949
- id,
1950
- label,
1951
- placeholder,
1952
- helperText,
1953
- control,
1954
- name,
1955
- width,
1956
- validation,
1957
- groups,
1958
- validateSelect
1959
- }: SelectGroupedFieldProps<TFieldValues>): React$1.ReactElement;
1960
- declare namespace SelectGroupedField {
1961
- var displayName: string;
1962
- }
1963
- //# sourceMappingURL=SelectGroupedField.d.ts.map
1964
- //#endregion
1965
- //#region src/components/fields/TextAreaField.d.ts
1966
- /**
1967
- * TextAreaField component properties
1968
- */
1969
- interface TextAreaFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
1970
- /**
1971
- * Number of rows for the textarea
1972
- */
1973
- rows?: number;
1974
- /**
1975
- * Maximum characters allowed in textarea
1976
- */
1977
- maxLength?: number;
1978
- /**
1979
- * Custom validation function for textarea values
1980
- */
1981
- validateTextArea?: (value: string) => boolean | string;
1982
- }
1983
- /**
1984
- * Multi-line text input field component specifically designed for React Hook Form integration.
1985
- *
1986
- * Architecture flow:
1987
- * 1. Form schemas are generated from contract functions using adapters
1988
- * 2. TransactionForm renders the overall form structure with React Hook Form
1989
- * 3. DynamicFormField selects the appropriate field component based on field type
1990
- * 4. BaseField provides consistent layout and hook form integration
1991
- * 5. This component handles textarea-specific rendering and validation
1992
- *
1993
- * The component includes:
1994
- * - Integration with React Hook Form
1995
- * - Resizable multi-line text input
1996
- * - Character limit support
1997
- * - Customizable validation through adapter integration
1998
- * - Automatic error handling and reporting
1999
- * - Full accessibility support with ARIA attributes
2000
- * - Keyboard navigation with Escape to clear
2001
- */
2002
- declare function TextAreaField<TFieldValues extends FieldValues = FieldValues>({
2003
- id,
2004
- label,
2005
- placeholder,
2006
- helperText,
2007
- control,
2008
- name,
2009
- width,
2010
- validation,
2011
- rows,
2012
- maxLength,
2013
- validateTextArea
2014
- }: TextAreaFieldProps<TFieldValues>): React$1.ReactElement;
2015
- declare namespace TextAreaField {
2016
- var displayName: string;
2017
- }
2018
- //# sourceMappingURL=TextAreaField.d.ts.map
2019
- //#endregion
2020
- //#region src/components/fields/TextField.d.ts
2021
- /**
2022
- * TextField component properties
2023
- */
2024
- interface TextFieldProps<TFieldValues extends FieldValues = FieldValues> extends BaseFieldProps<TFieldValues> {
2025
- /**
2026
- * Placeholder text displayed when the field is empty
2027
- */
2028
- placeholder?: string;
2029
- }
2030
- /**
2031
- * Text input field component specifically designed for React Hook Form integration.
2032
- *
2033
- * Architecture flow:
2034
- * 1. Form schemas are generated from contract functions using adapters
2035
- * 2. TransactionForm renders the overall form structure with React Hook Form
2036
- * 3. DynamicFormField selects the appropriate field component (like TextField) based on field type
2037
- * 4. BaseField provides consistent layout and hook form integration
2038
- * 5. This component handles text-specific rendering and validation
2039
- *
2040
- * The component includes:
2041
- * - Integration with React Hook Form
2042
- * - Text-specific validations (minLength, maxLength, pattern)
2043
- * - Customizable validation through adapter integration
2044
- * - Automatic error handling and reporting
2045
- * - Full accessibility support with ARIA attributes
2046
- * - Keyboard navigation
2047
- */
2048
- declare function TextField<TFieldValues extends FieldValues = FieldValues>({
2049
- id,
2050
- label,
2051
- placeholder,
2052
- helperText,
2053
- control,
2054
- name,
2055
- width,
2056
- validation,
2057
- readOnly
2058
- }: TextFieldProps<TFieldValues>): React$1.ReactElement;
2059
- declare namespace TextField {
2060
- var displayName: string;
2061
- }
2062
- //# sourceMappingURL=TextField.d.ts.map
2063
- //#endregion
2064
- //#region src/components/fields/UrlField.d.ts
2065
- /**
2066
- * URL input field component specifically designed for React Hook Form integration.
2067
- */
2068
- declare function UrlField<TFieldValues extends FieldValues = FieldValues>({
2069
- id,
2070
- label,
2071
- placeholder,
2072
- helperText,
2073
- control,
2074
- name,
2075
- width,
2076
- validation,
2077
- readOnly
2078
- }: BaseFieldProps<TFieldValues>): React$1.ReactElement;
2079
- declare namespace UrlField {
2080
- var displayName: string;
2081
- }
2082
- //# sourceMappingURL=UrlField.d.ts.map
2083
- //#endregion
2084
- //#region src/components/fields/utils/accessibility.d.ts
2085
- /**
2086
- * Accessibility utilities for form field components
2087
- */
2088
- /**
2089
- * Default aria-describedby ID generator based on field ID
2090
- */
2091
- declare function getDescribedById(id: string, type?: 'error' | 'description' | 'counter'): string;
2092
- /**
2093
- * Interface for accessibility attributes to be applied to form fields
2094
- */
2095
- interface AccessibilityProps {
2096
- /**
2097
- * ARIA attributes for accessibility
2098
- */
2099
- 'aria-invalid'?: boolean;
2100
- 'aria-required'?: boolean;
2101
- 'aria-describedby'?: string;
2102
- 'aria-errormessage'?: string;
2103
- 'aria-labelledby'?: string;
2104
- /**
2105
- * Indicates if the input is required
2106
- */
2107
- required?: boolean;
2108
- /**
2109
- * Indicates if the input is disabled
2110
- */
2111
- disabled?: boolean;
2112
- /**
2113
- * Indicates if the input is readonly
2114
- */
2115
- readOnly?: boolean;
2116
- /**
2117
- * Tab index for keyboard navigation
2118
- * Use 0 for normal tab order
2119
- * Use -1 to remove from tab order
2120
- */
2121
- tabIndex?: number;
2122
- }
2123
- /**
2124
- * Generates accessibility attributes for form fields
2125
- */
2126
- declare function getAccessibilityProps({
2127
- id,
2128
- hasError,
2129
- isRequired,
2130
- isDisabled,
2131
- isReadOnly,
2132
- hasHelperText,
2133
- hasCharacterCounter
2134
- }: {
2135
- id: string;
2136
- hasError?: boolean;
2137
- isRequired?: boolean;
2138
- isDisabled?: boolean;
2139
- isReadOnly?: boolean;
2140
- hasHelperText?: boolean;
2141
- hasCharacterCounter?: boolean;
2142
- }): AccessibilityProps;
2143
- /**
2144
- * Utility function to handle keyboard events for interactive elements
2145
- * Helps ensure keyboard users can interact with form controls
2146
- */
2147
- declare function handleKeyboardEvent(event: React.KeyboardEvent, handlers: {
2148
- onEnter?: () => void;
2149
- onSpace?: () => void;
2150
- onEscape?: () => void;
2151
- onArrowUp?: () => void;
2152
- onArrowDown?: () => void;
2153
- onArrowLeft?: () => void;
2154
- onArrowRight?: () => void;
2155
- onTab?: () => void;
2156
- }): void;
2157
- /**
2158
- * Field focus management utility
2159
- * For managing focus within a field group or complex form component
2160
- */
2161
- declare function createFocusManager(): {
2162
- focusFirstElement: (container: HTMLElement | null) => void;
2163
- focusElementById: (id: string) => void;
2164
- trapFocus: (event: KeyboardEvent, container: HTMLElement | null) => void;
2165
- };
2166
- /**
2167
- * Provides a handler for Escape key to clear input fields
2168
- *
2169
- * @param onChange - Function to call when value changes
2170
- * @param value - Current value of the input
2171
- * @returns A function to handle the Escape key press
2172
- */
2173
- declare function handleEscapeKey(onChange: (value: string) => void, value: unknown): (e: React.KeyboardEvent) => void;
2174
- /**
2175
- * Provides a handler for Space/Enter keys for toggle components (checkboxes, switches)
2176
- *
2177
- * @param onChange - Function to call when value changes
2178
- * @param value - Current value of the input
2179
- * @returns A function to handle the Space/Enter key press
2180
- */
2181
- declare function handleToggleKeys(onChange: (value: boolean) => void, value: boolean): (e: React.KeyboardEvent) => void;
2182
- /**
2183
- * Provides a handler for arrow keys for numeric inputs
2184
- *
2185
- * @param onChange - Function to call when value changes
2186
- * @param value - Current numeric value
2187
- * @param step - Step amount for increments/decrements
2188
- * @param min - Minimum allowed value (optional)
2189
- * @param max - Maximum allowed value (optional)
2190
- * @returns A function to handle arrow key presses
2191
- */
2192
- declare function handleNumericKeys(onChange: (value: number) => void, value: number, step?: number, min?: number, max?: number): (e: React.KeyboardEvent) => void;
2193
- //# sourceMappingURL=accessibility.d.ts.map
2194
- //#endregion
2195
- //#region src/components/fields/utils/ErrorMessage.d.ts
2196
- interface ErrorMessageProps {
2197
- /**
2198
- * The error object from React Hook Form
2199
- */
2200
- error?: FieldError;
2201
- /**
2202
- * The ID of the error message for aria-errormessage references
2203
- */
2204
- id: string;
2205
- /**
2206
- * Optional custom error message to display instead of the error from React Hook Form
2207
- */
2208
- message?: string;
2209
- /**
2210
- * Optional additional CSS classes
2211
- */
2212
- className?: string;
2213
- }
2214
- /**
2215
- * Displays validation error messages for form fields
2216
- */
2217
- declare function ErrorMessage({
2218
- error,
2219
- id,
2220
- message,
2221
- className
2222
- }: ErrorMessageProps): React$1.ReactElement | null;
2223
- //#endregion
2224
- //#region src/components/fields/utils/integerValidation.d.ts
2225
- /**
2226
- * Shared integer validation patterns for BigInt fields and validation utilities.
2227
- *
2228
- * These patterns ensure consistent validation across the application.
2229
- */
2230
- /**
2231
- * Integer validation pattern - requires at least one digit
2232
- * Used for validation to ensure complete integers are entered
2233
- * Matches: -123, 0, 456
2234
- * Does not match: -, abc, 12.3
2235
- */
2236
- declare const INTEGER_PATTERN: RegExp;
2237
- /**
2238
- * Integer input pattern - allows partial input during typing
2239
- * Used during input to allow users to type minus sign first
2240
- * Matches: -, -1, 123, (empty string)
2241
- * Does not match: abc, 12.3
2242
- */
2243
- declare const INTEGER_INPUT_PATTERN: RegExp;
2244
- /**
2245
- * HTML pattern attribute for integer inputs
2246
- * Must use [0-9] instead of \d for HTML5 pattern attribute
2247
- */
2248
- declare const INTEGER_HTML_PATTERN = "-?[0-9]*";
2249
- //# sourceMappingURL=integerValidation.d.ts.map
2250
- //#endregion
2251
- //#region src/components/fields/utils/layout.d.ts
2252
- /**
2253
- * Layout utility functions for form components
2254
- */
2255
- /**
2256
- * Helper function to get width classes based on the field width
2257
- */
2258
- declare function getWidthClasses(width: 'full' | 'half' | 'third'): string;
2259
- //# sourceMappingURL=layout.d.ts.map
2260
- //#endregion
2261
- //#region src/components/fields/utils/validation.d.ts
2262
- /**
2263
- * Determines if a field has an error
2264
- */
2265
- declare function hasFieldError(error: FieldError | undefined): boolean;
2266
- /**
2267
- * Gets appropriate error message from field error
2268
- */
2269
- declare function getErrorMessage(error: FieldError | undefined): string | undefined;
2270
- /**
2271
- * Formats validation error messages for display
2272
- */
2273
- declare function formatValidationError(error: FieldError | undefined, fieldName?: string): string | undefined;
2274
- /**
2275
- * Generates common CSS classes for field validation states
2276
- */
2277
- declare function getValidationStateClasses(error: FieldError | undefined, touched?: boolean): string;
2278
- /**
2279
- * Helper for handling form validation errors with React Hook Form
2280
- */
2281
- declare function handleValidationError(error: FieldError | undefined, id: string): {
2282
- errorId: string;
2283
- errorMessage: string | undefined;
2284
- hasError: boolean;
2285
- validationClasses: string;
2286
- };
2287
- /**
2288
- * Creates a validation result object for field components
2289
- */
2290
- declare function createValidationResult(id: string, error: FieldError | undefined, touched?: boolean): {
2291
- hasError: boolean;
2292
- errorMessage: string | undefined;
2293
- errorId: string;
2294
- validationClasses: string;
2295
- 'aria-invalid': boolean;
2296
- 'aria-errormessage'?: string;
2297
- };
2298
- /**
2299
- * Generic field validation function that can be used to validate any field type
2300
- * based on common validation criteria
2301
- */
2302
- declare function validateField(value: unknown, validation?: FieldValidation): string | boolean;
2303
- /**
2304
- * Map validation utilities
2305
- */
2306
- /**
2307
- * Checks if a map entry at the given index has a duplicate key
2308
- * @param entries - Array of map entries
2309
- * @param currentIndex - Index of the entry to check
2310
- * @returns true if the key at currentIndex is duplicated elsewhere in the array
2311
- */
2312
- declare function isDuplicateMapKey(entries: MapEntry[], currentIndex: number): boolean;
2313
- /**
2314
- * Validates an array of map entries for duplicate keys
2315
- * @param entries - Array of map entries to validate
2316
- * @returns Validation error message if duplicates found, otherwise undefined
2317
- */
2318
- declare function validateMapEntries(entries: MapEntry[]): string | undefined;
2319
- //# sourceMappingURL=validation.d.ts.map
2320
- //#endregion
2321
- //#region src/components/RelayerDetailsCard/RelayerDetailsCard.d.ts
2322
- interface RelayerDetailsCardProps {
2323
- details: RelayerDetails;
2324
- enhancedDetails?: RelayerDetailsRich | null;
2325
- loading?: boolean;
2326
- className?: string;
2327
- /** Optional UI labels to override default copy */
2328
- labels?: Partial<{
2329
- detailsTitle: string;
2330
- active: string;
2331
- paused: string;
2332
- systemDisabled: string;
2333
- network: string;
2334
- relayerId: string;
2335
- balance: string;
2336
- nonce: string;
2337
- pending: string;
2338
- lastTransaction: string;
2339
- }>;
2340
- }
2341
- declare const RelayerDetailsCard: React$1.FC<RelayerDetailsCardProps>;
2342
- //# sourceMappingURL=RelayerDetailsCard.d.ts.map
2343
- //#endregion
2344
- //#region src/components/network-errors/NetworkErrorNotificationProvider.d.ts
2345
- interface NetworkErrorNotificationProviderProps {
2346
- children: React.ReactNode;
2347
- }
2348
- /** Provider component for managing and displaying network error notifications. */
2349
- declare function NetworkErrorNotificationProvider({
2350
- children
2351
- }: NetworkErrorNotificationProviderProps): React.ReactNode;
2352
- //#endregion
2353
- //#region src/components/network-errors/useNetworkErrors.d.ts
2354
- type NetworkErrorType = 'rpc' | 'explorer';
2355
- interface NetworkError {
2356
- id: string;
2357
- type: NetworkErrorType;
2358
- networkId: string;
2359
- networkName: string;
2360
- message: string;
2361
- timestamp: number;
2362
- }
2363
- interface NetworkErrorContextValue {
2364
- errors: NetworkError[];
2365
- reportNetworkError: (type: NetworkErrorType, networkId: string, networkName: string, message: string) => void;
2366
- clearError: (id: string) => void;
2367
- clearAllErrors: () => void;
2368
- onOpenNetworkSettings?: (networkId: string) => void;
2369
- setOpenNetworkSettingsHandler: (handler: (networkId: string) => void) => void;
2370
- }
2371
- /** Hook to access network error reporting and management functions. */
2372
- declare function useNetworkErrors(): NetworkErrorContextValue;
2373
- /**
2374
- * Hook for reporting network errors for a specific adapter
2375
- */
2376
- declare function useNetworkErrorReporter(adapter: ContractAdapter | null): {
2377
- reportRpcError: (message: string) => void;
2378
- reportExplorerError: (message: string) => void;
2379
- };
2380
- //# sourceMappingURL=useNetworkErrors.d.ts.map
2381
- //#endregion
2382
- //#region src/components/network-errors/NetworkErrorAwareAdapter.d.ts
2383
- /**
2384
- * Creates an adapter proxy that intercepts and reports network errors
2385
- */
2386
- declare function useNetworkErrorAwareAdapter(adapter: ContractAdapter | null): ContractAdapter | null;
2387
- //# sourceMappingURL=NetworkErrorAwareAdapter.d.ts.map
2388
- //#endregion
2389
- //#region src/components/icons/MidnightIcon.d.ts
2390
- interface MidnightIconProps {
2391
- size?: number;
2392
- className?: string;
2393
- variant?: 'mono' | 'branded';
2394
- }
2395
- /**
2396
- * MidnightIcon - SVG icon for the Midnight blockchain
2397
- * Inline SVG to ensure it renders correctly when this package is consumed as a library
2398
- */
2399
- declare function MidnightIcon({
2400
- size,
2401
- className,
2402
- variant: _variant
2403
- }: MidnightIconProps): React$1.ReactElement;
2404
- //# sourceMappingURL=MidnightIcon.d.ts.map
2405
- //#endregion
2406
- //#region src/components/ui/sonner.d.ts
2407
- declare const Toaster: ({
2408
- ...props
2409
- }: ToasterProps) => JSX.Element;
2410
- //#endregion
2411
- export { AccessibilityProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, AddressDisplay, AddressField, Alert, AlertDescription, AlertTitle, AmountField, AmountFieldProps, ArrayField, ArrayFieldProps, ArrayObjectField, ArrayObjectFieldProps, Banner, BaseField, BaseFieldProps, BigIntField, BigIntFieldProps, BooleanField, BooleanFieldProps, Button, ButtonProps, BytesField, BytesFieldProps, Calendar, CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type DateRange, DateRangePicker, DateRangePickerProps, DateTimeField, DateTimeFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateProps, EnumField, EnumFieldProps, EnumFieldValue, EnumMetadata, EnumVariant, ErrorMessage, ExternalLink, FileUploadField, FileUploadFieldProps, Footer, FooterProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GroupedSelectOption, Header, HeaderProps, INTEGER_HTML_PATTERN, INTEGER_INPUT_PATTERN, INTEGER_PATTERN, Input, InputProps, Label, LoadingButton, LoadingButtonProps, MapEntryRow, MapField, MapFieldProps, MidnightIcon, NetworkError, NetworkErrorNotificationProvider, NetworkErrorType, NetworkIcon, NetworkIconProps, NetworkSelector, NetworkSelectorProps, NetworkStatusBadge, NumberField, NumberFieldProps, ObjectField, ObjectFieldProps, OptionGroup, PasswordField, PasswordFieldProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioField, RadioFieldProps, RadioGroup, RadioGroupItem, RadioOption, RelayerDetailsCard, RelayerDetailsCardProps, Select, SelectContent, SelectField, SelectFieldProps, SelectGroup, SelectGroupedField, SelectGroupedFieldProps, SelectItem, SelectLabel, SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SidebarButton, SidebarButtonProps, SidebarLayout, SidebarLayoutProps, SidebarSection, SidebarSectionProps, Tabs, TabsContent, TabsList, TabsTrigger, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, Textarea, TextareaProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UrlField, ViewContractStateButton, buttonVariants, computeChildTouched, createFocusManager, createValidationResult, formatValidationError, getAccessibilityProps, getDescribedById, getErrorMessage, getValidationStateClasses, getWidthClasses, handleEscapeKey, handleKeyboardEvent, handleNumericKeys, handleToggleKeys, handleValidationError, hasFieldError, isDuplicateMapKey, useDuplicateKeyIndexes, useMapFieldSync, useNetworkErrorAwareAdapter, useNetworkErrorReporter, useNetworkErrors, validateField, validateMapEntries, validateMapStructure };
2412
- //# sourceMappingURL=index-mhkE-hOZ.d.cts.map