@hyperbridge/ui 0.0.8 → 0.0.9
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 +8 -4
- package/package.json +3 -3
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
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbridge/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
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/typescript-config": "0.0.0",
|
|
37
|
+
"@repo/eslint-config": "0.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@radix-ui/react-dialog": "^1.1.14",
|