@hyperbridge/ui 0.0.23 → 0.0.24
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/index.d.mts +7 -1
- package/dist/index.mjs +47 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11,6 +11,7 @@ import { Variants } from 'motion/react';
|
|
|
11
11
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
12
12
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
14
15
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
15
16
|
|
|
16
17
|
interface SearchInputProps extends Omit<React.ComponentProps<"input">, "size"> {
|
|
@@ -939,6 +940,11 @@ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }
|
|
|
939
940
|
}): react_jsx_runtime.JSX.Element;
|
|
940
941
|
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
941
942
|
|
|
943
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
944
|
+
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
945
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
946
|
+
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
947
|
+
|
|
942
948
|
declare const badgeVariants: (props?: ({
|
|
943
949
|
size?: "sm" | null | undefined;
|
|
944
950
|
variant?: "default" | "outline" | "secondary" | "destructive" | "success" | null | undefined;
|
|
@@ -958,4 +964,4 @@ declare function HBDrawerFooter({ className, ...props }: React$1.ComponentProps<
|
|
|
958
964
|
declare function HBDrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
959
965
|
declare function HBDrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
960
966
|
|
|
961
|
-
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, 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, makeEntry };
|
|
967
|
+
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, makeEntry };
|
package/dist/index.mjs
CHANGED
|
@@ -3063,7 +3063,7 @@ function DialogMorphContent(_a) {
|
|
|
3063
3063
|
event.preventDefault();
|
|
3064
3064
|
}
|
|
3065
3065
|
};
|
|
3066
|
-
const
|
|
3066
|
+
const Content9 = /* @__PURE__ */ jsxs22(
|
|
3067
3067
|
DialogPrimitive2.Content,
|
|
3068
3068
|
__spreadProps(__spreadValues({
|
|
3069
3069
|
onInteractOutside: handleInteractOutside,
|
|
@@ -3095,7 +3095,7 @@ function DialogMorphContent(_a) {
|
|
|
3095
3095
|
);
|
|
3096
3096
|
return /* @__PURE__ */ jsxs22(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
3097
3097
|
/* @__PURE__ */ jsx31(DialogOverlay, {}),
|
|
3098
|
-
mode === "card" ? /* @__PURE__ */ jsx31(SmoothCorners, { children:
|
|
3098
|
+
mode === "card" ? /* @__PURE__ */ jsx31(SmoothCorners, { children: Content9 }) : /* @__PURE__ */ jsx31(Fragment7, { children: Content9 })
|
|
3099
3099
|
] });
|
|
3100
3100
|
}
|
|
3101
3101
|
|
|
@@ -5202,10 +5202,49 @@ function DropdownMenuSubContent(_a) {
|
|
|
5202
5202
|
);
|
|
5203
5203
|
}
|
|
5204
5204
|
|
|
5205
|
+
// src/@/ui/popover.tsx
|
|
5206
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5207
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
5208
|
+
function Popover(_a) {
|
|
5209
|
+
var props = __objRest(_a, []);
|
|
5210
|
+
return /* @__PURE__ */ jsx51(PopoverPrimitive.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
5211
|
+
}
|
|
5212
|
+
function PopoverTrigger(_a) {
|
|
5213
|
+
var props = __objRest(_a, []);
|
|
5214
|
+
return /* @__PURE__ */ jsx51(PopoverPrimitive.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
5215
|
+
}
|
|
5216
|
+
function PopoverContent(_a) {
|
|
5217
|
+
var _b = _a, {
|
|
5218
|
+
className,
|
|
5219
|
+
align = "center",
|
|
5220
|
+
sideOffset = 4
|
|
5221
|
+
} = _b, props = __objRest(_b, [
|
|
5222
|
+
"className",
|
|
5223
|
+
"align",
|
|
5224
|
+
"sideOffset"
|
|
5225
|
+
]);
|
|
5226
|
+
return /* @__PURE__ */ jsx51(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx51(
|
|
5227
|
+
PopoverPrimitive.Content,
|
|
5228
|
+
__spreadValues({
|
|
5229
|
+
"data-slot": "popover-content",
|
|
5230
|
+
align,
|
|
5231
|
+
sideOffset,
|
|
5232
|
+
className: cn(
|
|
5233
|
+
"bg-popover text-popover-foreground border-0 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-2xl p-4 shadow-md outline-hidden",
|
|
5234
|
+
className
|
|
5235
|
+
)
|
|
5236
|
+
}, props)
|
|
5237
|
+
) });
|
|
5238
|
+
}
|
|
5239
|
+
function PopoverAnchor(_a) {
|
|
5240
|
+
var props = __objRest(_a, []);
|
|
5241
|
+
return /* @__PURE__ */ jsx51(PopoverPrimitive.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
5242
|
+
}
|
|
5243
|
+
|
|
5205
5244
|
// src/@/ui/badge.tsx
|
|
5206
5245
|
import { Slot as Slot11 } from "@radix-ui/react-slot";
|
|
5207
5246
|
import { cva as cva7 } from "class-variance-authority";
|
|
5208
|
-
import { jsx as
|
|
5247
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
5209
5248
|
var badgeVariants = cva7(
|
|
5210
5249
|
"inline-flex font-semibold whitespace-nowrap items-center justify-center rounded-full px-2 py-1 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
5211
5250
|
{
|
|
@@ -5238,7 +5277,7 @@ function Badge(_a) {
|
|
|
5238
5277
|
"asChild"
|
|
5239
5278
|
]);
|
|
5240
5279
|
const Comp = asChild ? Slot11 : "span";
|
|
5241
|
-
return /* @__PURE__ */
|
|
5280
|
+
return /* @__PURE__ */ jsx52(
|
|
5242
5281
|
Comp,
|
|
5243
5282
|
__spreadValues({
|
|
5244
5283
|
"data-slot": "badge",
|
|
@@ -5325,6 +5364,10 @@ export {
|
|
|
5325
5364
|
NetworkSelector,
|
|
5326
5365
|
NetworkSwitcher,
|
|
5327
5366
|
NetworkSwitcherButton,
|
|
5367
|
+
Popover,
|
|
5368
|
+
PopoverAnchor,
|
|
5369
|
+
PopoverContent,
|
|
5370
|
+
PopoverTrigger,
|
|
5328
5371
|
ReviewItem,
|
|
5329
5372
|
ReviewItemAddress,
|
|
5330
5373
|
ReviewItemCopyAddressButton,
|