@hyperbridge/ui 0.0.27 → 0.0.28
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 +29 -19
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbridge/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
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",
|