@hyperbridge/ui 0.0.8 → 0.0.10
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 +1 -0
- package/dist/index.mjs +13 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -632,6 +632,7 @@ declare function TxListItemProcessing(props: ItemProps & {
|
|
|
632
632
|
}): react_jsx_runtime.JSX.Element;
|
|
633
633
|
type TxListItemProps = ItemProps & {
|
|
634
634
|
completedAt: string;
|
|
635
|
+
mode: "send" | "rollback";
|
|
635
636
|
} & React__default.ComponentPropsWithRef<"button">;
|
|
636
637
|
declare const TxListItem: (props: TxListItemProps) => react_jsx_runtime.JSX.Element;
|
|
637
638
|
declare function TxList({ children }: {
|
package/dist/index.mjs
CHANGED
|
@@ -685,7 +685,7 @@ function SwapForm({
|
|
|
685
685
|
className: "border-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 text-[48px] leading-[1.2] h-[58px] p-0 text-white placeholder:text-brand-black-100 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:opacity-50 !rounded-none"
|
|
686
686
|
}
|
|
687
687
|
),
|
|
688
|
-
/* @__PURE__ */ jsx10("div", { className: "w-[170px] pl-
|
|
688
|
+
/* @__PURE__ */ jsx10("div", { className: "w-[170px] pl-0 py-[13px]", children: /* @__PURE__ */ jsx10(
|
|
689
689
|
SwapTokenButton,
|
|
690
690
|
{
|
|
691
691
|
network: sender.token.network,
|
|
@@ -805,7 +805,7 @@ function SwapForm({
|
|
|
805
805
|
className: "border-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 text-[48px] leading-[1.2] h-[58px] p-0 text-white placeholder:text-brand-black-100 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:opacity-50 !rounded-none"
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
|
-
/* @__PURE__ */ jsx10("div", { className: "w-[170px] pl-
|
|
808
|
+
/* @__PURE__ */ jsx10("div", { className: "w-[170px] pl-0 py-[13px]", children: /* @__PURE__ */ jsx10(
|
|
809
809
|
SwapTokenButton,
|
|
810
810
|
{
|
|
811
811
|
network: receiver.token.network,
|
|
@@ -1151,7 +1151,7 @@ function DrawerContent(_a) {
|
|
|
1151
1151
|
)
|
|
1152
1152
|
}, props), {
|
|
1153
1153
|
children: [
|
|
1154
|
-
/* @__PURE__ */ jsx14("div", { className: "bg-
|
|
1154
|
+
/* @__PURE__ */ jsx14("div", { className: "bg-brand-black-350 mx-auto my-2 hidden h-[5px] w-16 shrink-0 rounded-[2.5px] group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
1155
1155
|
children
|
|
1156
1156
|
]
|
|
1157
1157
|
})
|
|
@@ -3565,7 +3565,7 @@ function TxListItemProcessing(props) {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
),
|
|
3567
3567
|
/* @__PURE__ */ jsxs26("div", { className: "flex flex-grow flex-col text-start", children: [
|
|
3568
|
-
/* @__PURE__ */ jsx37("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem]", children: props.caption }),
|
|
3568
|
+
/* @__PURE__ */ jsx37("span", { className: "text-brand-white-500 whitespace-nowrap text-[0.875rem] h-[1.25rem]", children: props.caption }),
|
|
3569
3569
|
/* @__PURE__ */ jsxs26(StatusBadge, { variant: props.status === "failed" ? "error" : "none", children: [
|
|
3570
3570
|
"~ ",
|
|
3571
3571
|
props.eta
|
|
@@ -3618,7 +3618,7 @@ function TxListItemProcessing(props) {
|
|
|
3618
3618
|
] }) });
|
|
3619
3619
|
}
|
|
3620
3620
|
var TxListItem = function TxListItem2(props) {
|
|
3621
|
-
const _a = props, { caption, completedAt, from, to, amount } = _a, rest = __objRest(_a, ["caption", "completedAt", "from", "to", "amount"]);
|
|
3621
|
+
const _a = props, { caption, completedAt, mode, from, to, amount } = _a, rest = __objRest(_a, ["caption", "completedAt", "mode", "from", "to", "amount"]);
|
|
3622
3622
|
return /* @__PURE__ */ jsx37(
|
|
3623
3623
|
"button",
|
|
3624
3624
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -3629,9 +3629,9 @@ var TxListItem = function TxListItem2(props) {
|
|
|
3629
3629
|
),
|
|
3630
3630
|
children: /* @__PURE__ */ jsxs26("div", { className: "flex gap-[1rem] flex-1 z-20 text-brand-black-100 font-medium", children: [
|
|
3631
3631
|
/* @__PURE__ */ jsx37(TokenTransferPair, { fromToken: from, toToken: to, size: "2rem" }),
|
|
3632
|
-
/* @__PURE__ */ jsxs26("div", { className: "flex flex-grow flex-col text-start", children: [
|
|
3632
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex flex-grow flex-col text-start whitespace-nowrap", children: [
|
|
3633
3633
|
/* @__PURE__ */ jsx37("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem]", children: caption }),
|
|
3634
|
-
/* @__PURE__ */ jsx37(StatusBadge, { variant: "success" })
|
|
3634
|
+
/* @__PURE__ */ jsx37(StatusBadge, { variant: mode === "rollback" ? "refunded" : "success" })
|
|
3635
3635
|
] }),
|
|
3636
3636
|
/* @__PURE__ */ jsxs26("div", { className: "shrink-0 flex flex-col text-end", children: [
|
|
3637
3637
|
/* @__PURE__ */ jsx37("span", { className: "text-base text-brand-white-500 h-[1.25rem]", children: amount }),
|
|
@@ -3651,6 +3651,10 @@ function StatusBadge({
|
|
|
3651
3651
|
" ",
|
|
3652
3652
|
/* @__PURE__ */ jsx37("span", { children: "Success" })
|
|
3653
3653
|
] }) : null,
|
|
3654
|
+
variant === "refunded" ? /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
3655
|
+
/* @__PURE__ */ jsx37(StepBack_default, { strokeWidth: 2, width: "0.75rem", height: "0.75rem" }),
|
|
3656
|
+
/* @__PURE__ */ jsx37("span", { children: "Refunded" })
|
|
3657
|
+
] }) : null,
|
|
3654
3658
|
variant === "error" ? /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
3655
3659
|
/* @__PURE__ */ jsx37(
|
|
3656
3660
|
Alert_default,
|
|
@@ -4602,6 +4606,7 @@ function HBDrawerContent(_a) {
|
|
|
4602
4606
|
"children"
|
|
4603
4607
|
]);
|
|
4604
4608
|
return /* @__PURE__ */ jsxs33(Fragment12, { children: [
|
|
4609
|
+
/* @__PURE__ */ jsx47(HBDrawerPortal, {}),
|
|
4605
4610
|
/* @__PURE__ */ jsx47(HBDrawerOverlay, {}),
|
|
4606
4611
|
/* @__PURE__ */ jsxs33(
|
|
4607
4612
|
DrawerPrimitive2.Content,
|
|
@@ -4750,7 +4755,7 @@ function CWDrawerContent(_a) {
|
|
|
4750
4755
|
]);
|
|
4751
4756
|
const isMobile = useIsMobile();
|
|
4752
4757
|
if (isMobile) {
|
|
4753
|
-
return /* @__PURE__ */ jsx48(
|
|
4758
|
+
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 }) });
|
|
4754
4759
|
}
|
|
4755
4760
|
return /* @__PURE__ */ jsx48(
|
|
4756
4761
|
SheetContent,
|