@hyperbridge/ui 0.0.27 → 0.0.29
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 +3 -2
- package/dist/index.mjs +31 -20
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Image } from '@unpic/react';
|
|
3
3
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
import * as React$1 from 'react';
|
|
5
6
|
import React__default from 'react';
|
|
6
|
-
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
8
|
import { DialogContentProps } from '@radix-ui/react-dialog';
|
|
9
9
|
import * as motion_dist_react from 'motion/dist/react';
|
|
@@ -642,6 +642,7 @@ type ItemProps = {
|
|
|
642
642
|
from: BadgeTokenProps;
|
|
643
643
|
to: BadgeTokenProps;
|
|
644
644
|
amount: string;
|
|
645
|
+
size?: `${number}rem`;
|
|
645
646
|
};
|
|
646
647
|
declare function TxListItemProcessing(props: ItemProps & {
|
|
647
648
|
eta: string;
|
|
@@ -964,4 +965,4 @@ declare function Badge({ className, variant, asChild, ...props }: React$1.Compon
|
|
|
964
965
|
asChild?: boolean;
|
|
965
966
|
}): react_jsx_runtime.JSX.Element;
|
|
966
967
|
|
|
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 };
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -246,6 +246,7 @@ function TokenTransferPair(props) {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
// src/components/button/button.tsx
|
|
249
|
+
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
249
250
|
import { cva as cva4 } from "class-variance-authority";
|
|
250
251
|
|
|
251
252
|
// src/@/ui/button.tsx
|
|
@@ -332,7 +333,6 @@ function Button(_a) {
|
|
|
332
333
|
}
|
|
333
334
|
|
|
334
335
|
// src/components/button/button.tsx
|
|
335
|
-
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
336
336
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
337
337
|
function Button2(_a) {
|
|
338
338
|
var _b = _a, { children } = _b, other = __objRest(_b, ["children"]);
|
|
@@ -3392,7 +3392,7 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3392
3392
|
}
|
|
3393
3393
|
),
|
|
3394
3394
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col flex-1 gap-[calc(4/16rem)]", children: [
|
|
3395
|
-
/* @__PURE__ */ jsx36("div", { className: "text-brand-white-500 text-
|
|
3395
|
+
/* @__PURE__ */ jsx36("div", { className: "text-brand-white-500 text-xs md:!text-base h-auto md:h-[1.25rem] truncate max-w-[150px] md:max-w-full", children: caption }),
|
|
3396
3396
|
/* @__PURE__ */ jsx36("div", { className: "text-xs h-[1rem] text-brand-black-100", children: processingStatus === "completed" ? ((_b = props.data) == null ? void 0 : _b.transactionUrl) ? /* @__PURE__ */ jsxs25(
|
|
3397
3397
|
"a",
|
|
3398
3398
|
{
|
|
@@ -3649,6 +3649,7 @@ function ToastBox(props) {
|
|
|
3649
3649
|
import { motion as motion4 } from "motion/react";
|
|
3650
3650
|
import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3651
3651
|
function TxListItemProcessing(props) {
|
|
3652
|
+
const { size = "2rem" } = props;
|
|
3652
3653
|
return /* @__PURE__ */ jsx38(GradientContainer, { children: /* @__PURE__ */ jsxs27("div", { className: "rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center", children: [
|
|
3653
3654
|
/* @__PURE__ */ jsx38(
|
|
3654
3655
|
GradientLine,
|
|
@@ -3664,11 +3665,11 @@ function TxListItemProcessing(props) {
|
|
|
3664
3665
|
{
|
|
3665
3666
|
fromToken: props.from,
|
|
3666
3667
|
toToken: props.to,
|
|
3667
|
-
size
|
|
3668
|
+
size
|
|
3668
3669
|
}
|
|
3669
3670
|
),
|
|
3670
3671
|
/* @__PURE__ */ jsxs27("div", { className: "flex flex-grow flex-col text-start", children: [
|
|
3671
|
-
/* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 whitespace-nowrap text-[0.875rem] h-[1.25rem]", children: props.caption }),
|
|
3672
|
+
/* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 whitespace-nowrap text-[0.875rem] h-[1.25rem] max-w-28 md:max-w-full truncate", children: props.caption }),
|
|
3672
3673
|
/* @__PURE__ */ jsxs27(StatusBadge, { variant: props.status === "failed" ? "error" : "none", children: [
|
|
3673
3674
|
"~ ",
|
|
3674
3675
|
props.eta
|
|
@@ -3721,7 +3722,23 @@ function TxListItemProcessing(props) {
|
|
|
3721
3722
|
] }) });
|
|
3722
3723
|
}
|
|
3723
3724
|
var TxListItem = function TxListItem2(props) {
|
|
3724
|
-
const _a = props, {
|
|
3725
|
+
const _a = props, {
|
|
3726
|
+
caption,
|
|
3727
|
+
completedAt,
|
|
3728
|
+
mode,
|
|
3729
|
+
from,
|
|
3730
|
+
to,
|
|
3731
|
+
amount,
|
|
3732
|
+
size = "2rem"
|
|
3733
|
+
} = _a, rest = __objRest(_a, [
|
|
3734
|
+
"caption",
|
|
3735
|
+
"completedAt",
|
|
3736
|
+
"mode",
|
|
3737
|
+
"from",
|
|
3738
|
+
"to",
|
|
3739
|
+
"amount",
|
|
3740
|
+
"size"
|
|
3741
|
+
]);
|
|
3725
3742
|
return /* @__PURE__ */ jsx38(
|
|
3726
3743
|
"button",
|
|
3727
3744
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -3730,10 +3747,10 @@ var TxListItem = function TxListItem2(props) {
|
|
|
3730
3747
|
"apperance-none rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center",
|
|
3731
3748
|
props.className
|
|
3732
3749
|
),
|
|
3733
|
-
children: /* @__PURE__ */ jsxs27("div", { className: "flex gap-
|
|
3734
|
-
/* @__PURE__ */ jsx38(TokenTransferPair, { fromToken: from, toToken: to, size
|
|
3750
|
+
children: /* @__PURE__ */ jsxs27("div", { className: "flex justify-between gap-4 flex-1 z-20 text-brand-black-100 font-medium", children: [
|
|
3751
|
+
/* @__PURE__ */ jsx38(TokenTransferPair, { fromToken: from, toToken: to, size }),
|
|
3735
3752
|
/* @__PURE__ */ jsxs27("div", { className: "flex flex-grow flex-col text-start whitespace-nowrap", children: [
|
|
3736
|
-
/* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem]", children: caption }),
|
|
3753
|
+
/* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem] max-w-28 md:max-w-full truncate", children: caption }),
|
|
3737
3754
|
/* @__PURE__ */ jsx38(StatusBadge, { variant: mode === "rollback" ? "refunded" : "success" })
|
|
3738
3755
|
] }),
|
|
3739
3756
|
/* @__PURE__ */ jsxs27("div", { className: "shrink-0 flex flex-col text-end", children: [
|
|
@@ -3748,25 +3765,18 @@ function StatusBadge({
|
|
|
3748
3765
|
variant,
|
|
3749
3766
|
children
|
|
3750
3767
|
}) {
|
|
3751
|
-
return /* @__PURE__ */ jsxs27("span", { className: "text-xs h-[1rem] flex items-center gap-[0.125rem]", children: [
|
|
3768
|
+
return /* @__PURE__ */ jsxs27("span", { className: "text-[0.625rem] md:text-xs h-[1rem] flex items-center gap-[0.125rem]", children: [
|
|
3752
3769
|
variant === "success" ? /* @__PURE__ */ jsxs27("span", { className: "text-brand-success-400 flex items-center gap-[0.125rem]", children: [
|
|
3753
|
-
/* @__PURE__ */ jsx38(Check_default, {
|
|
3770
|
+
/* @__PURE__ */ jsx38(Check_default, { className: "size-2 md:size-3" }),
|
|
3754
3771
|
" ",
|
|
3755
3772
|
/* @__PURE__ */ jsx38("span", { children: "Success" })
|
|
3756
3773
|
] }) : null,
|
|
3757
3774
|
variant === "refunded" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
3758
|
-
/* @__PURE__ */ jsx38(StepBack_default, { strokeWidth: 2,
|
|
3775
|
+
/* @__PURE__ */ jsx38(StepBack_default, { strokeWidth: 2, className: "size-2 md:size-3" }),
|
|
3759
3776
|
/* @__PURE__ */ jsx38("span", { children: "Refunded" })
|
|
3760
3777
|
] }) : null,
|
|
3761
3778
|
variant === "error" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
3762
|
-
/* @__PURE__ */ jsx38(
|
|
3763
|
-
Alert_default,
|
|
3764
|
-
{
|
|
3765
|
-
width: "0.75rem",
|
|
3766
|
-
height: "0.75rem",
|
|
3767
|
-
className: "text-brand-danger-500"
|
|
3768
|
-
}
|
|
3769
|
-
),
|
|
3779
|
+
/* @__PURE__ */ jsx38(Alert_default, { className: "size-2 md:size-3 text-brand-danger-500" }),
|
|
3770
3780
|
/* @__PURE__ */ jsx38("span", { className: "text-brand-danger-500", children: "Order expired" })
|
|
3771
3781
|
] }) : null,
|
|
3772
3782
|
variant === "none" ? children : null
|
|
@@ -4830,7 +4840,7 @@ function CWDrawerContent(_a) {
|
|
|
4830
4840
|
]);
|
|
4831
4841
|
const isMobile = useIsMobile();
|
|
4832
4842
|
if (isMobile) {
|
|
4833
|
-
return /* @__PURE__ */ jsx48(HBDrawerContent, { className: "bg-brand-black-550 rounded-t-[1rem] w-full px-[1rem] border-t border-brand-black-300 min-h-[90dvh]", children: /* @__PURE__ */ jsx48("div", { className: "flex flex-col", children }) });
|
|
4843
|
+
return /* @__PURE__ */ jsx48(HBDrawerContent, { className: "bg-brand-black-550 rounded-t-[1rem] w-full px-[1rem] border-t border-brand-black-300 min-h-[90dvh]", children: /* @__PURE__ */ jsx48("div", { className: "flex flex-col flex-1", children }) });
|
|
4834
4844
|
}
|
|
4835
4845
|
return /* @__PURE__ */ jsx48(
|
|
4836
4846
|
SheetContent,
|
|
@@ -5430,5 +5440,6 @@ export {
|
|
|
5430
5440
|
WalletManagerUIProvider,
|
|
5431
5441
|
WalletProviderItem,
|
|
5432
5442
|
badgeVariants,
|
|
5443
|
+
buttonVariants,
|
|
5433
5444
|
makeEntry
|
|
5434
5445
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbridge/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"typescript": "5.8.3",
|
|
34
34
|
"vite": "^6.3.4",
|
|
35
35
|
"vitest": "^3.1.2",
|
|
36
|
-
"@repo/
|
|
37
|
-
"@repo/
|
|
36
|
+
"@repo/eslint-config": "0.0.0",
|
|
37
|
+
"@repo/typescript-config": "0.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@radix-ui/react-dialog": "^1.1.14",
|