@hyperbridge/ui 0.0.32 → 0.0.33
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 +2 -1
- package/dist/index.mjs +20 -8
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -412,7 +412,8 @@ declare function SwapReviewItem(props: {
|
|
|
412
412
|
symbol: string;
|
|
413
413
|
secondaryValue: React__default.ReactNode;
|
|
414
414
|
};
|
|
415
|
-
|
|
415
|
+
variant: "processing" | "reviewing";
|
|
416
|
+
pendingMode?: "idle" | "complete";
|
|
416
417
|
addressButton?: React__default.ReactNode;
|
|
417
418
|
}): react_jsx_runtime.JSX.Element;
|
|
418
419
|
declare const SwapReviewCopyAddressButton: React__default.ForwardRefExoticComponent<Omit<Omit<{
|
package/dist/index.mjs
CHANGED
|
@@ -3068,31 +3068,43 @@ import React11 from "react";
|
|
|
3068
3068
|
import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3069
3069
|
function SwapReviewItem(props) {
|
|
3070
3070
|
const addressButton = props.addressButton;
|
|
3071
|
+
const { pendingMode = "idle" } = props;
|
|
3071
3072
|
return /* @__PURE__ */ jsxs22("li", { className: "font-medium text-brand-black-100 items-center w-full h-[calc(48rem/16)] flex gap-[1rem]", children: [
|
|
3072
3073
|
/* @__PURE__ */ jsx31(BadgeIcon, __spreadValues({ size: "2.5rem" }, props.badge)),
|
|
3073
3074
|
/* @__PURE__ */ jsxs22("div", { className: "flex-1 text-start flex flex-col", children: [
|
|
3074
3075
|
/* @__PURE__ */ jsx31("span", { className: "text-[calc(12rem/16)] leading-[1rem]", children: props.tag === "from" ? "Amount in" : "Amount out" }),
|
|
3075
|
-
/* @__PURE__ */ jsxs22(
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3076
|
+
/* @__PURE__ */ jsxs22(
|
|
3077
|
+
"span",
|
|
3078
|
+
{
|
|
3079
|
+
className: cn(
|
|
3080
|
+
"text-[calc(20rem/16)] leading-[1.25] text-brand-white-500",
|
|
3081
|
+
{
|
|
3082
|
+
"text-brand-success-400": pendingMode === "complete" && props.tag === "to"
|
|
3083
|
+
}
|
|
3084
|
+
),
|
|
3085
|
+
children: [
|
|
3086
|
+
props.asset.amount,
|
|
3087
|
+
" ",
|
|
3088
|
+
props.asset.symbol
|
|
3089
|
+
]
|
|
3090
|
+
}
|
|
3091
|
+
)
|
|
3080
3092
|
] }),
|
|
3081
3093
|
/* @__PURE__ */ jsxs22("div", { className: "flex self-stretch items-end text-end shrink-0", children: [
|
|
3082
|
-
/* @__PURE__ */ jsx31(if_default, { cond: props.
|
|
3094
|
+
/* @__PURE__ */ jsx31(if_default, { cond: props.variant === "processing", children: /* @__PURE__ */ jsx31(
|
|
3083
3095
|
"span",
|
|
3084
3096
|
{
|
|
3085
3097
|
className: cn(
|
|
3086
3098
|
"transition-all opacity-0 translate-y-full delay-200 transform mb-1 text-[calc(12rem/16)] leading-[1rem] duration-400 ease-fluid",
|
|
3087
3099
|
{
|
|
3088
3100
|
"opacity-100 translate-y-0 delay-100": props.asset.secondaryValue !== null,
|
|
3089
|
-
"text-brand-success-400": props.tag === "to"
|
|
3101
|
+
"text-brand-success-400": pendingMode === "complete" && props.tag === "to"
|
|
3090
3102
|
}
|
|
3091
3103
|
),
|
|
3092
3104
|
children: props.asset.secondaryValue
|
|
3093
3105
|
}
|
|
3094
3106
|
) }),
|
|
3095
|
-
/* @__PURE__ */ jsx31(if_default, { cond: props.
|
|
3107
|
+
/* @__PURE__ */ jsx31(if_default, { cond: props.variant === "reviewing", children: /* @__PURE__ */ jsxs22("div", { className: "flex flex-col items-end gap-1.5", children: [
|
|
3096
3108
|
addressButton,
|
|
3097
3109
|
/* @__PURE__ */ jsxs22("span", { className: "text-[calc(11rem/16)] text-brand-black-100 px-2", children: [
|
|
3098
3110
|
props.wallet.networkName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbridge/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
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",
|