@hyperbridge/ui 0.0.31 → 0.0.33
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 +70 -3
- package/dist/index.mjs +670 -344
- package/package.json +1 -1
- 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,40 @@ 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
|
+
variant: "processing" | "reviewing";
|
|
416
|
+
pendingMode?: "idle" | "complete";
|
|
417
|
+
addressButton?: React__default.ReactNode;
|
|
418
|
+
}): react_jsx_runtime.JSX.Element;
|
|
419
|
+
declare const SwapReviewCopyAddressButton: React__default.ForwardRefExoticComponent<Omit<Omit<{
|
|
420
|
+
address: string;
|
|
421
|
+
tag: string;
|
|
422
|
+
} & React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
423
|
+
declare const SwapReviewItemAddress: React__default.ForwardRefExoticComponent<Omit<{
|
|
424
|
+
address: string;
|
|
425
|
+
tag: string;
|
|
426
|
+
} & React__default.ClassAttributes<HTMLSpanElement> & React__default.HTMLAttributes<HTMLSpanElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
427
|
+
declare function SwapReviewRoot(props: {
|
|
428
|
+
children: React__default.ReactNode;
|
|
429
|
+
}): react_jsx_runtime.JSX.Element;
|
|
430
|
+
declare function SwapReviewSeperator(props: {
|
|
431
|
+
children: React__default.ReactNode;
|
|
432
|
+
}): react_jsx_runtime.JSX.Element;
|
|
433
|
+
declare function SwapReviewSeperatorStatus(props: {
|
|
434
|
+
mode: "idle" | "processing" | "complete";
|
|
435
|
+
}): react_jsx_runtime.JSX.Element;
|
|
436
|
+
|
|
402
437
|
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
403
438
|
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
404
439
|
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
@@ -574,7 +609,7 @@ declare const SummaryValues: {
|
|
|
574
609
|
|
|
575
610
|
type TimePrefix = "min" | "second" | "hours";
|
|
576
611
|
type EstimatedTimeFormatted = `${number} ${TimePrefix | `${TimePrefix}s`}` | "";
|
|
577
|
-
type Prettify<T> = {
|
|
612
|
+
type Prettify$1<T> = {
|
|
578
613
|
[K in keyof T]: T[K];
|
|
579
614
|
} & {};
|
|
580
615
|
type Level = {
|
|
@@ -598,7 +633,7 @@ type TimelineData = {
|
|
|
598
633
|
completedIn: EstimatedTimeFormatted;
|
|
599
634
|
};
|
|
600
635
|
};
|
|
601
|
-
type TimelineItemProps = Prettify<TimelineData & Level & {
|
|
636
|
+
type TimelineItemProps = Prettify$1<TimelineData & Level & {
|
|
602
637
|
caption: string;
|
|
603
638
|
secondary?: string;
|
|
604
639
|
durationMode?: "none" | "visible";
|
|
@@ -627,6 +662,38 @@ declare function TimerWrap(props: {
|
|
|
627
662
|
children: React__default.ReactNode;
|
|
628
663
|
}): react_jsx_runtime.JSX.Element;
|
|
629
664
|
|
|
665
|
+
type Prettify<T> = {
|
|
666
|
+
[K in keyof T]: T[K];
|
|
667
|
+
} & {};
|
|
668
|
+
type TimelineAltData = {
|
|
669
|
+
processingStatus: "processing";
|
|
670
|
+
data: {
|
|
671
|
+
eta: React__default.ReactNode;
|
|
672
|
+
};
|
|
673
|
+
} | {
|
|
674
|
+
processingStatus: "upcoming" | "error";
|
|
675
|
+
data?: never;
|
|
676
|
+
} | {
|
|
677
|
+
processingStatus: "completed";
|
|
678
|
+
data?: {
|
|
679
|
+
transactionUrl: string;
|
|
680
|
+
completedIn: EstimatedTimeFormatted;
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
type TimelineAltItemProps = Prettify<TimelineAltData & {
|
|
684
|
+
caption: string;
|
|
685
|
+
secondary?: string;
|
|
686
|
+
durationMode?: "none" | "visible";
|
|
687
|
+
}>;
|
|
688
|
+
declare const TimelineAltItem: React__default.ForwardRefExoticComponent<TimelineAltItemProps & React__default.RefAttributes<HTMLLIElement>>;
|
|
689
|
+
declare function TimelineAltListGroup(props: {
|
|
690
|
+
children: React__default.ReactNode;
|
|
691
|
+
}): react_jsx_runtime.JSX.Element;
|
|
692
|
+
declare function TimelineAltList(props: {
|
|
693
|
+
children: React__default.ReactNode;
|
|
694
|
+
}): react_jsx_runtime.JSX.Element;
|
|
695
|
+
declare const TimelineAltRoot: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
|
|
696
|
+
|
|
630
697
|
type Props = {
|
|
631
698
|
severity: "error" | "warning" | "info" | "success";
|
|
632
699
|
heading: string;
|
|
@@ -965,4 +1032,4 @@ declare function Badge({ className, variant, asChild, ...props }: React$1.Compon
|
|
|
965
1032
|
asChild?: boolean;
|
|
966
1033
|
}): react_jsx_runtime.JSX.Element;
|
|
967
1034
|
|
|
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 };
|
|
1035
|
+
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 };
|