@hyperbridge/ui 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Z3U6XEBY.mjs → chunk-VAQN7OAZ.mjs} +0 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/index.d.mts +69 -3
- package/dist/index.mjs +658 -344
- package/package.json +3 -3
- package/styles/base.css +6 -0
package/dist/icons/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -53,6 +53,7 @@ type Props$2 = Pick<React.ComponentProps<typeof Image>, "src" | "alt" | "classNa
|
|
|
53
53
|
badgeSrc: string;
|
|
54
54
|
badgeAlt: string;
|
|
55
55
|
outline?: boolean;
|
|
56
|
+
className?: string;
|
|
56
57
|
size?: `${number}rem`;
|
|
57
58
|
};
|
|
58
59
|
declare function BadgeIcon(props: Props$2): react_jsx_runtime.JSX.Element;
|
|
@@ -399,6 +400,39 @@ declare const ReviewItemCopyAddressButton: React__default.ForwardRefExoticCompon
|
|
|
399
400
|
tag: string;
|
|
400
401
|
} & React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
401
402
|
|
|
403
|
+
declare function SwapReviewItem(props: {
|
|
404
|
+
tag: "from" | "to";
|
|
405
|
+
wallet: {
|
|
406
|
+
address: string;
|
|
407
|
+
networkName: string;
|
|
408
|
+
};
|
|
409
|
+
badge: React__default.ComponentProps<typeof BadgeIcon>;
|
|
410
|
+
asset: {
|
|
411
|
+
amount: string;
|
|
412
|
+
symbol: string;
|
|
413
|
+
secondaryValue: React__default.ReactNode;
|
|
414
|
+
};
|
|
415
|
+
mode: "processing" | "reviewing";
|
|
416
|
+
addressButton?: React__default.ReactNode;
|
|
417
|
+
}): react_jsx_runtime.JSX.Element;
|
|
418
|
+
declare const SwapReviewCopyAddressButton: React__default.ForwardRefExoticComponent<Omit<Omit<{
|
|
419
|
+
address: string;
|
|
420
|
+
tag: string;
|
|
421
|
+
} & React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
422
|
+
declare const SwapReviewItemAddress: React__default.ForwardRefExoticComponent<Omit<{
|
|
423
|
+
address: string;
|
|
424
|
+
tag: string;
|
|
425
|
+
} & React__default.ClassAttributes<HTMLSpanElement> & React__default.HTMLAttributes<HTMLSpanElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
426
|
+
declare function SwapReviewRoot(props: {
|
|
427
|
+
children: React__default.ReactNode;
|
|
428
|
+
}): react_jsx_runtime.JSX.Element;
|
|
429
|
+
declare function SwapReviewSeperator(props: {
|
|
430
|
+
children: React__default.ReactNode;
|
|
431
|
+
}): react_jsx_runtime.JSX.Element;
|
|
432
|
+
declare function SwapReviewSeperatorStatus(props: {
|
|
433
|
+
mode: "idle" | "processing" | "complete";
|
|
434
|
+
}): react_jsx_runtime.JSX.Element;
|
|
435
|
+
|
|
402
436
|
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
403
437
|
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
404
438
|
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
@@ -574,7 +608,7 @@ declare const SummaryValues: {
|
|
|
574
608
|
|
|
575
609
|
type TimePrefix = "min" | "second" | "hours";
|
|
576
610
|
type EstimatedTimeFormatted = `${number} ${TimePrefix | `${TimePrefix}s`}` | "";
|
|
577
|
-
type Prettify<T> = {
|
|
611
|
+
type Prettify$1<T> = {
|
|
578
612
|
[K in keyof T]: T[K];
|
|
579
613
|
} & {};
|
|
580
614
|
type Level = {
|
|
@@ -598,7 +632,7 @@ type TimelineData = {
|
|
|
598
632
|
completedIn: EstimatedTimeFormatted;
|
|
599
633
|
};
|
|
600
634
|
};
|
|
601
|
-
type TimelineItemProps = Prettify<TimelineData & Level & {
|
|
635
|
+
type TimelineItemProps = Prettify$1<TimelineData & Level & {
|
|
602
636
|
caption: string;
|
|
603
637
|
secondary?: string;
|
|
604
638
|
durationMode?: "none" | "visible";
|
|
@@ -627,6 +661,38 @@ declare function TimerWrap(props: {
|
|
|
627
661
|
children: React__default.ReactNode;
|
|
628
662
|
}): react_jsx_runtime.JSX.Element;
|
|
629
663
|
|
|
664
|
+
type Prettify<T> = {
|
|
665
|
+
[K in keyof T]: T[K];
|
|
666
|
+
} & {};
|
|
667
|
+
type TimelineAltData = {
|
|
668
|
+
processingStatus: "processing";
|
|
669
|
+
data: {
|
|
670
|
+
eta: React__default.ReactNode;
|
|
671
|
+
};
|
|
672
|
+
} | {
|
|
673
|
+
processingStatus: "upcoming" | "error";
|
|
674
|
+
data?: never;
|
|
675
|
+
} | {
|
|
676
|
+
processingStatus: "completed";
|
|
677
|
+
data?: {
|
|
678
|
+
transactionUrl: string;
|
|
679
|
+
completedIn: EstimatedTimeFormatted;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
type TimelineAltItemProps = Prettify<TimelineAltData & {
|
|
683
|
+
caption: string;
|
|
684
|
+
secondary?: string;
|
|
685
|
+
durationMode?: "none" | "visible";
|
|
686
|
+
}>;
|
|
687
|
+
declare const TimelineAltItem: React__default.ForwardRefExoticComponent<TimelineAltItemProps & React__default.RefAttributes<HTMLLIElement>>;
|
|
688
|
+
declare function TimelineAltListGroup(props: {
|
|
689
|
+
children: React__default.ReactNode;
|
|
690
|
+
}): react_jsx_runtime.JSX.Element;
|
|
691
|
+
declare function TimelineAltList(props: {
|
|
692
|
+
children: React__default.ReactNode;
|
|
693
|
+
}): react_jsx_runtime.JSX.Element;
|
|
694
|
+
declare const TimelineAltRoot: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
|
|
695
|
+
|
|
630
696
|
type Props = {
|
|
631
697
|
severity: "error" | "warning" | "info" | "success";
|
|
632
698
|
heading: string;
|
|
@@ -965,4 +1031,4 @@ declare function Badge({ className, variant, asChild, ...props }: React$1.Compon
|
|
|
965
1031
|
asChild?: boolean;
|
|
966
1032
|
}): react_jsx_runtime.JSX.Element;
|
|
967
1033
|
|
|
968
|
-
export { AccessoryButton, type AccessoryButtonProps, AccountItem, AccountStack, type AccountStackProps, AddressInput, AddressInputFocusBehaviour, AssetList, AssetListItem, AssetValueTrend, Badge, BadgeIcon, Balance, BridgeForm, type BridgeFormProps, BridgeInput, BridgeSettings, type BridgeSettingsProps, BridgeTokenButton, Button, type ButtonProps, CWDrawerContent, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogMorphContent, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerContent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateConceal, EmptyStateContent, EmptyStateDescription, EmptyStateTitle, type EstimatedTimeFormatted, GradientButton, HBDrawer, HBDrawerClose, HBDrawerContent, HBDrawerDescription, HBDrawerFooter, HBDrawerHeader, HBDrawerOverlay, HBDrawerPortal, HBDrawerTitle, HBDrawerTrigger, Header, HeaderChooseProvider, HeaderContent, HeaderGradient, HeaderNested, IconButton, Input, type InputProps, LabelledSeperator, ListHeading, ListSection, ManageAccounts, Modal, type ModalProps, type Network, NetworkGroupItem, NetworkSelectionItem, NetworkSelector, type NetworkSelectorProps, NetworkSwitcher, NetworkSwitcherButton, type NetworkSwitcherProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ReviewItem, ReviewItemAddress, ReviewItemCopyAddressButton, ScrollAwareSeparator, SearchInput, type SearchInputProps, Settings, type SettingsProps, Sheet, SheetContent, SheetTrigger, Summary, SummaryValues, SwapForm, type SwapFormProps, SwapTokenButton, SwapTokenItem, type SwapTokenItemProps, SwapTokenSelector, SwapTokenSelectorContent, type SwapTokenSelectorContentProps, SwapTokenSelectorEmpty, type SwapTokenSelectorEmptyProps, SwapTokenSelectorHeader, type SwapTokenSelectorHeaderProps, type SwapTokenSelectorProps, SwapTokenSelectorSearch, type SwapTokenSelectorSearchProps, SwapTokenSelectorSection, type SwapTokenSelectorSectionProps, TabAlt, TabAltContent, TabAltHeader, TabAltHeaders, TabAltPanel, TabItem, Tabs, TabsContent, TabsList, TagButton, Text, TimelineItem, TimelineList, TimelineListGroup, TimelineRoot, TimerWrap, ToastBox, type Token, TokenImage, type TokenInfo, TokenSelectionItem, TokenSelector, type TokenSelectorProps, TokenTransferPair, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionTimer, TxList, TxListItem, TxListItemProcessing, type WalletAccount, WalletAccountItem, WalletConnectedHeader, type WalletConnectedHeaderProps, WalletHeader, type WalletHeaderCallbacks, WalletHeaderContent, WalletHeaderContentBlur, type WalletHeaderContentProps, type WalletHeaderProps, WalletHeaderTabItem, WalletHeaderTabs, WalletHeaderTabsContent, WalletHeaderTabsList, type WalletHeaderTabsProps, WalletManagerUIContent, WalletManagerUIProvider, WalletProviderItem, badgeVariants, buttonVariants, makeEntry };
|
|
1034
|
+
export { AccessoryButton, type AccessoryButtonProps, AccountItem, AccountStack, type AccountStackProps, AddressInput, AddressInputFocusBehaviour, AssetList, AssetListItem, AssetValueTrend, Badge, BadgeIcon, Balance, BridgeForm, type BridgeFormProps, BridgeInput, BridgeSettings, type BridgeSettingsProps, BridgeTokenButton, Button, type ButtonProps, CWDrawerContent, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogMorphContent, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerContent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateConceal, EmptyStateContent, EmptyStateDescription, EmptyStateTitle, type EstimatedTimeFormatted, GradientButton, HBDrawer, HBDrawerClose, HBDrawerContent, HBDrawerDescription, HBDrawerFooter, HBDrawerHeader, HBDrawerOverlay, HBDrawerPortal, HBDrawerTitle, HBDrawerTrigger, Header, HeaderChooseProvider, HeaderContent, HeaderGradient, HeaderNested, IconButton, Input, type InputProps, LabelledSeperator, ListHeading, ListSection, ManageAccounts, Modal, type ModalProps, type Network, NetworkGroupItem, NetworkSelectionItem, NetworkSelector, type NetworkSelectorProps, NetworkSwitcher, NetworkSwitcherButton, type NetworkSwitcherProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ReviewItem, ReviewItemAddress, ReviewItemCopyAddressButton, ScrollAwareSeparator, SearchInput, type SearchInputProps, Settings, type SettingsProps, Sheet, SheetContent, SheetTrigger, Summary, SummaryValues, SwapForm, type SwapFormProps, SwapReviewCopyAddressButton, SwapReviewItem, SwapReviewItemAddress, SwapReviewRoot, SwapReviewSeperator, SwapReviewSeperatorStatus, SwapTokenButton, SwapTokenItem, type SwapTokenItemProps, SwapTokenSelector, SwapTokenSelectorContent, type SwapTokenSelectorContentProps, SwapTokenSelectorEmpty, type SwapTokenSelectorEmptyProps, SwapTokenSelectorHeader, type SwapTokenSelectorHeaderProps, type SwapTokenSelectorProps, SwapTokenSelectorSearch, type SwapTokenSelectorSearchProps, SwapTokenSelectorSection, type SwapTokenSelectorSectionProps, TabAlt, TabAltContent, TabAltHeader, TabAltHeaders, TabAltPanel, TabItem, Tabs, TabsContent, TabsList, TagButton, Text, TimelineAltItem, TimelineAltList, TimelineAltListGroup, TimelineAltRoot, TimelineItem, TimelineList, TimelineListGroup, TimelineRoot, TimerWrap, ToastBox, type Token, TokenImage, type TokenInfo, TokenSelectionItem, TokenSelector, type TokenSelectorProps, TokenTransferPair, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionTimer, TxList, TxListItem, TxListItemProcessing, type WalletAccount, WalletAccountItem, WalletConnectedHeader, type WalletConnectedHeaderProps, WalletHeader, type WalletHeaderCallbacks, WalletHeaderContent, WalletHeaderContentBlur, type WalletHeaderContentProps, type WalletHeaderProps, WalletHeaderTabItem, WalletHeaderTabs, WalletHeaderTabsContent, WalletHeaderTabsList, type WalletHeaderTabsProps, WalletManagerUIContent, WalletManagerUIProvider, WalletProviderItem, badgeVariants, buttonVariants, makeEntry };
|