@gearbox-protocol/ui-kit 4.0.0-next.44 → 4.0.0-next.46
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/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
- package/dist/cjs/components/base/position-assets/constants.cjs +1 -1
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -1
- package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
- package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/format.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +46 -38
- package/dist/esm/components/base/position-assets/constants.js +1 -0
- package/dist/esm/components/base/position-assets/position-assets.js +85 -64
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +40 -32
- package/dist/esm/components/base/token-amount/token-amount.js +21 -16
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +26 -25
- package/dist/esm/index.js +155 -154
- package/dist/esm/utils/format.js +14 -12
- package/dist/esm/utils/index.js +76 -75
- package/dist/globals.css +1 -1
- package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +8 -1
- package/dist/types/components/base/position-assets/constants.d.ts +1 -0
- package/dist/types/components/base/position-assets/position-assets.d.ts +11 -1
- package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +8 -1
- package/dist/types/components/base/token-amount/token-amount.d.ts +8 -1
- package/dist/types/utils/format.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,96 +1,117 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as m, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import { Stack as h } from "../stack/stack.js";
|
|
3
|
-
import "
|
|
3
|
+
import { NoValue as v } from "../values/no-value.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "react-intl";
|
|
6
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
6
|
import "clsx";
|
|
8
7
|
import "tailwind-merge";
|
|
9
8
|
import "sonner";
|
|
9
|
+
import { APPROXIMATE_SYMBOL as k } from "../../../utils/format.js";
|
|
10
|
+
import { formatMoney as g } from "../../../utils/format-money.js";
|
|
10
11
|
import "luxon";
|
|
11
12
|
import "../../../utils/z-index.js";
|
|
12
13
|
import "../../points-icon/points-icon.js";
|
|
13
|
-
import { TokenBigint as
|
|
14
|
+
import { TokenBigint as p } from "../values/scalars.js";
|
|
14
15
|
import "../../badge/badge.js";
|
|
15
16
|
import "../../badge/chip.js";
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
import "react-intl";
|
|
18
|
+
import { ShortString as y } from "../../short-string/short-string.js";
|
|
19
|
+
import { TokenSymbol as T } from "../../token-symbol/token-symbol.js";
|
|
20
|
+
import { Typography as u } from "../../typography/typography.js";
|
|
21
|
+
import { PositionAssetsTest as d } from "./constants.js";
|
|
22
|
+
const x = 1, U = 20;
|
|
23
|
+
function G({
|
|
22
24
|
assets: s,
|
|
23
|
-
to:
|
|
25
|
+
to: n,
|
|
24
26
|
empty: a,
|
|
25
|
-
|
|
27
|
+
approximate: i,
|
|
28
|
+
testId: o
|
|
26
29
|
}) {
|
|
27
|
-
const
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
30
|
+
const r = S(s, n), l = n !== void 0;
|
|
31
|
+
return /* @__PURE__ */ e(h, { gap: "sm", align: "end", "data-testid": o ?? d.root, children: r.length === 0 ? a !== void 0 && /* @__PURE__ */ e(
|
|
32
|
+
u,
|
|
30
33
|
{
|
|
31
34
|
variant: "caption",
|
|
32
35
|
color: "secondary",
|
|
33
36
|
as: "div",
|
|
34
|
-
"data-testid":
|
|
37
|
+
"data-testid": d.empty,
|
|
35
38
|
children: a
|
|
36
39
|
}
|
|
37
|
-
) :
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
) : r.map((t) => {
|
|
41
|
+
const c = l ? t.valueToUsd : t.valueUsd;
|
|
42
|
+
return /* @__PURE__ */ m(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
className: "flex flex-col items-end",
|
|
46
|
+
"data-testid": d.row,
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
|
|
49
|
+
/* @__PURE__ */ e(T, { size: 20, token: t.token }),
|
|
50
|
+
/* @__PURE__ */ m("span", { className: "flex items-center", children: [
|
|
51
|
+
l && /* @__PURE__ */ m(f, { children: [
|
|
52
|
+
/* @__PURE__ */ e("span", { className: "text-secondary-foreground line-through [&_*]:text-secondary-foreground [&_*]:line-through", children: /* @__PURE__ */ e(
|
|
53
|
+
p,
|
|
54
|
+
{
|
|
55
|
+
data: t.value,
|
|
56
|
+
token: t.token,
|
|
57
|
+
showSymbol: !1
|
|
58
|
+
}
|
|
59
|
+
) }),
|
|
60
|
+
/* @__PURE__ */ e("span", { className: "px-1.5 text-gray-70", children: "→" })
|
|
61
|
+
] }),
|
|
62
|
+
i ? /* @__PURE__ */ e("span", { children: k }) : null,
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
p,
|
|
65
|
+
{
|
|
66
|
+
data: l ? t.valueTo : t.value,
|
|
67
|
+
token: t.token,
|
|
68
|
+
showSymbol: !1
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ e(y, { className: "ml-1", maxLength: U, children: t.token.symbol })
|
|
72
|
+
] })
|
|
55
73
|
] }),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
u,
|
|
58
76
|
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
77
|
+
as: "span",
|
|
78
|
+
variant: "caption",
|
|
79
|
+
color: "secondary",
|
|
80
|
+
"data-testid": d.worth,
|
|
81
|
+
children: c === null ? /* @__PURE__ */ e(v, {}) : g(c)
|
|
62
82
|
}
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
)) });
|
|
83
|
+
)
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
t.token.address
|
|
87
|
+
);
|
|
88
|
+
}) });
|
|
70
89
|
}
|
|
71
|
-
function
|
|
72
|
-
const a = /* @__PURE__ */ new Map(), i = (
|
|
73
|
-
const
|
|
74
|
-
a.set(
|
|
75
|
-
token:
|
|
90
|
+
function S(s, n) {
|
|
91
|
+
const a = /* @__PURE__ */ new Map(), i = (o, r) => {
|
|
92
|
+
const l = o.token.address.toLowerCase(), t = a.get(l);
|
|
93
|
+
a.set(l, {
|
|
94
|
+
token: t?.token ?? o.token,
|
|
76
95
|
// a token only the other side holds is a zero here, not a gap
|
|
77
|
-
value: r === "from" ?
|
|
78
|
-
valueTo: r === "to" ?
|
|
79
|
-
|
|
96
|
+
value: r === "from" ? o.value : t?.value ?? 0n,
|
|
97
|
+
valueTo: r === "to" ? o.value : t?.valueTo ?? 0n,
|
|
98
|
+
valueUsd: r === "from" ? o.valueUsd : t?.valueUsd ?? null,
|
|
99
|
+
valueToUsd: r === "to" ? o.valueUsd : t?.valueToUsd ?? null,
|
|
100
|
+
worth: M(t?.worth, o.valueUsd)
|
|
80
101
|
});
|
|
81
102
|
};
|
|
82
|
-
for (const
|
|
83
|
-
for (const
|
|
84
|
-
return [...a.values()].filter((
|
|
85
|
-
(
|
|
86
|
-
|
|
103
|
+
for (const o of s ?? []) i(o, "from");
|
|
104
|
+
for (const o of n ?? []) i(o, "to");
|
|
105
|
+
return [...a.values()].filter((o) => o.worth === null || o.worth >= x).sort(
|
|
106
|
+
(o, r) => (r.worth ?? 0) - (o.worth ?? 0) || // a tie has to break the same way every render, or the rows drift
|
|
107
|
+
o.token.address.localeCompare(r.token.address)
|
|
87
108
|
);
|
|
88
109
|
}
|
|
89
|
-
function
|
|
90
|
-
return s === void 0 ?
|
|
110
|
+
function M(s, n) {
|
|
111
|
+
return s === void 0 ? n : s === null || n === null ? null : Math.max(s, n);
|
|
91
112
|
}
|
|
92
113
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
114
|
+
G as PositionAssets,
|
|
115
|
+
d as PositionAssetsTest,
|
|
116
|
+
S as visibleAssets
|
|
96
117
|
};
|
|
@@ -1,60 +1,68 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useTitleText as
|
|
3
|
-
import { FadeoutLoading as
|
|
4
|
-
import { HealthDot as
|
|
5
|
-
import { FormattedMessageTyped as
|
|
6
|
-
import { VerticalIndicator as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { useTitleText as h } from "../text/use-title-text.js";
|
|
3
|
+
import { FadeoutLoading as s } from "../../fadeout-loading/fadeout-loading.js";
|
|
4
|
+
import { HealthDot as g } from "../../status-elements/status-elements.js";
|
|
5
|
+
import { FormattedMessageTyped as u } from "../../typed-intl/index.js";
|
|
6
|
+
import { VerticalIndicator as L } from "../../vertical-indicator/vertical-indicator.js";
|
|
7
|
+
import { APPROXIMATE_SYMBOL as I } from "../../../utils/format.js";
|
|
8
|
+
import { ttlLeft as x, getTTLZones as B } from "../../../utils/ttl.js";
|
|
9
|
+
import { TimeToLiquidationBlockTest as a } from "./constants.js";
|
|
9
10
|
function j({
|
|
10
11
|
data: o,
|
|
11
12
|
dataTo: n,
|
|
12
|
-
|
|
13
|
+
approximate: r,
|
|
14
|
+
zone: l,
|
|
13
15
|
isLoading: e,
|
|
14
16
|
title: i,
|
|
15
|
-
tip:
|
|
16
|
-
testId:
|
|
17
|
+
tip: v,
|
|
18
|
+
testId: p
|
|
17
19
|
}) {
|
|
18
|
-
const
|
|
20
|
+
const T = h(), d = n !== void 0;
|
|
19
21
|
return /* @__PURE__ */ t(
|
|
20
|
-
|
|
22
|
+
L,
|
|
21
23
|
{
|
|
22
24
|
align: "center",
|
|
23
25
|
dimPreviousValue: !1,
|
|
24
|
-
"data-testid":
|
|
25
|
-
label: i !== void 0 ?
|
|
26
|
-
tip:
|
|
27
|
-
value: /* @__PURE__ */ t(
|
|
28
|
-
|
|
26
|
+
"data-testid": p ?? a.root,
|
|
27
|
+
label: i !== void 0 ? T(i) : /* @__PURE__ */ t(u, { messageId: "components.timeToLiquidationBlock.label" }),
|
|
28
|
+
tip: v ?? /* @__PURE__ */ t(u, { messageId: "components.timeToLiquidationBlock.tip" }),
|
|
29
|
+
value: /* @__PURE__ */ t(s, { loading: e, children: /* @__PURE__ */ t(
|
|
30
|
+
c,
|
|
29
31
|
{
|
|
30
32
|
milliseconds: o,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
approximate: r,
|
|
34
|
+
zone: d ? void 0 : l,
|
|
35
|
+
testId: a.value
|
|
33
36
|
}
|
|
34
37
|
) }),
|
|
35
|
-
valueTo: d ? /* @__PURE__ */ t(
|
|
36
|
-
|
|
38
|
+
valueTo: d ? /* @__PURE__ */ t(s, { loading: e, children: /* @__PURE__ */ t(
|
|
39
|
+
c,
|
|
37
40
|
{
|
|
38
41
|
milliseconds: n ?? null,
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
approximate: r,
|
|
43
|
+
zone: l,
|
|
44
|
+
testId: a.valueTo
|
|
41
45
|
}
|
|
42
46
|
) }) : void 0
|
|
43
47
|
}
|
|
44
48
|
);
|
|
45
49
|
}
|
|
46
|
-
function
|
|
50
|
+
function c({
|
|
47
51
|
milliseconds: o,
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
approximate: n,
|
|
53
|
+
zone: r,
|
|
54
|
+
testId: l
|
|
50
55
|
}) {
|
|
51
|
-
const e = o == null ? void 0 :
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
o === void 0 ? "—" : o === null ? "N/A" :
|
|
54
|
-
|
|
56
|
+
const e = o == null ? void 0 : x(o), i = r ?? (o == null ? void 0 : B(o));
|
|
57
|
+
return /* @__PURE__ */ m("span", { className: "inline-flex items-center", "data-testid": l, children: [
|
|
58
|
+
o === void 0 ? "—" : o === null ? "N/A" : /* @__PURE__ */ m(f, { children: [
|
|
59
|
+
n ? /* @__PURE__ */ t("span", { className: "mr-0.5", children: I }) : null,
|
|
60
|
+
e?.months !== void 0 ? `${e.months}mo` : e?.day !== void 0 ? `${e.day}d` : "<1d"
|
|
61
|
+
] }),
|
|
62
|
+
o != null && i ? /* @__PURE__ */ t("span", { className: "ml-1.5", children: /* @__PURE__ */ t(g, { zone: i }) }) : null
|
|
55
63
|
] });
|
|
56
64
|
}
|
|
57
65
|
export {
|
|
58
66
|
j as TimeToLiquidationBlock,
|
|
59
|
-
|
|
67
|
+
a as TimeToLiquidationBlockTest
|
|
60
68
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { Stack as
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as s } from "../stack/stack.js";
|
|
3
3
|
import { NoValue as a } from "../values/no-value.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "tailwind-merge";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import {
|
|
9
|
+
import { APPROXIMATE_SYMBOL as l } from "../../../utils/format.js";
|
|
10
|
+
import { formatMoney as c } from "../../../utils/format-money.js";
|
|
10
11
|
import "luxon";
|
|
11
12
|
import "../../../utils/z-index.js";
|
|
12
13
|
import "../../points-icon/points-icon.js";
|
|
@@ -17,30 +18,34 @@ import "../../tooltip/simple-tooltip.js";
|
|
|
17
18
|
import "../../tooltip/tooltip.js";
|
|
18
19
|
import "../../badge/badge.js";
|
|
19
20
|
import "../../badge/chip.js";
|
|
20
|
-
import { TokenTemplate as
|
|
21
|
-
import { Typography as
|
|
22
|
-
import { TokenAmountTest as
|
|
23
|
-
function
|
|
21
|
+
import { TokenTemplate as u } from "../../token-template/token-template.js";
|
|
22
|
+
import { Typography as f } from "../../typography/typography.js";
|
|
23
|
+
import { TokenAmountTest as m } from "./constants.js";
|
|
24
|
+
function Y({
|
|
24
25
|
data: o,
|
|
25
|
-
token:
|
|
26
|
-
align: i = "end"
|
|
26
|
+
token: e,
|
|
27
|
+
align: i = "end",
|
|
28
|
+
approximate: n
|
|
27
29
|
}) {
|
|
28
30
|
if (o === null)
|
|
29
31
|
return /* @__PURE__ */ r(
|
|
30
32
|
"span",
|
|
31
33
|
{
|
|
32
34
|
className: "text-secondary-foreground",
|
|
33
|
-
"data-testid":
|
|
35
|
+
"data-testid": m.root,
|
|
34
36
|
children: "—"
|
|
35
37
|
}
|
|
36
38
|
);
|
|
37
|
-
const p =
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
39
|
+
const p = e ?? o.token;
|
|
40
|
+
return /* @__PURE__ */ t(s, { gap: "xs", align: i, "data-testid": m.root, children: [
|
|
41
|
+
/* @__PURE__ */ t("span", { className: "flex items-center", children: [
|
|
42
|
+
n ? /* @__PURE__ */ r("span", { className: "mr-0.5", children: l }) : null,
|
|
43
|
+
/* @__PURE__ */ r(u, { value: o.value, token: p })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ r(f, { as: "span", variant: "caption", color: "secondary", children: o.valueUsd === null ? /* @__PURE__ */ r(a, {}) : c(o.valueUsd) })
|
|
41
46
|
] });
|
|
42
47
|
}
|
|
43
48
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
Y as TokenAmount,
|
|
50
|
+
m as TokenAmountTest
|
|
46
51
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as d, jsx as
|
|
1
|
+
import { jsxs as i, Fragment as d, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cva as y } from "class-variance-authority";
|
|
3
3
|
import { FadeoutLoading as g } from "../../../../fadeout-loading/fadeout-loading.js";
|
|
4
4
|
import { TokenIcon as v } from "../../../../token-icon/token-icon.js";
|
|
@@ -7,11 +7,12 @@ import "react";
|
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
8
|
import { cn as h } from "../../../../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
-
import {
|
|
10
|
+
import { APPROXIMATE_SYMBOL as k } from "../../../../../utils/format.js";
|
|
11
|
+
import { formatMoney as N } from "../../../../../utils/format-money.js";
|
|
11
12
|
import "luxon";
|
|
12
13
|
import "../../../../../utils/z-index.js";
|
|
13
|
-
import { TransactionConfirmAmountFieldTest as
|
|
14
|
-
const
|
|
14
|
+
import { TransactionConfirmAmountFieldTest as T } from "./constants.js";
|
|
15
|
+
const b = y(
|
|
15
16
|
"flex w-full items-center justify-between bg-gray-20 px-4 py-3",
|
|
16
17
|
{
|
|
17
18
|
variants: {
|
|
@@ -29,59 +30,59 @@ const T = "≈", b = y(
|
|
|
29
30
|
defaultVariants: { position: "first", size: "md" }
|
|
30
31
|
}
|
|
31
32
|
);
|
|
32
|
-
function S(
|
|
33
|
-
if (
|
|
33
|
+
function S(n) {
|
|
34
|
+
if (n.primaryAmount !== void 0)
|
|
34
35
|
return {
|
|
35
|
-
primaryAmount:
|
|
36
|
-
secondaryAmount:
|
|
36
|
+
primaryAmount: n.primaryAmount,
|
|
37
|
+
secondaryAmount: n.secondaryAmount
|
|
37
38
|
};
|
|
38
|
-
const { amount: t } =
|
|
39
|
+
const { amount: t } = n;
|
|
39
40
|
return {
|
|
40
41
|
primaryAmount: { value: t?.value, token: t?.token },
|
|
41
42
|
secondaryAmount: { valueUSD: t?.valueUsd ?? void 0 }
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function E(n) {
|
|
45
46
|
const {
|
|
46
47
|
label: t,
|
|
47
48
|
loading: l = !1,
|
|
48
49
|
position: p,
|
|
49
|
-
size:
|
|
50
|
-
maxLength:
|
|
50
|
+
size: u = "md",
|
|
51
|
+
maxLength: c,
|
|
51
52
|
approximate: f
|
|
52
|
-
} =
|
|
53
|
-
e.token && /* @__PURE__ */
|
|
53
|
+
} = n, { isApproximate: m = !1, approximateSymbol: a = k } = f || {}, { primaryAmount: e, secondaryAmount: r } = S(n), x = e && "node" in e ? e.node : /* @__PURE__ */ i(d, { children: [
|
|
54
|
+
e.token && /* @__PURE__ */ o(v, { token: e.token, size: 16 }),
|
|
54
55
|
/* @__PURE__ */ i("span", { children: [
|
|
55
|
-
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
m && /* @__PURE__ */ o("span", { children: a }),
|
|
57
|
+
/* @__PURE__ */ o(
|
|
57
58
|
A,
|
|
58
59
|
{
|
|
59
60
|
value: e?.value,
|
|
60
61
|
token: e.token,
|
|
61
|
-
maxLength:
|
|
62
|
+
maxLength: c
|
|
62
63
|
}
|
|
63
64
|
)
|
|
64
65
|
] })
|
|
65
66
|
] }), s = r && "node" in r ? r.node : r?.valueUSD ? /* @__PURE__ */ i(d, { children: [
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
m && /* @__PURE__ */ o("span", { children: a }),
|
|
68
|
+
N(r.valueUSD)
|
|
68
69
|
] }) : null;
|
|
69
70
|
return /* @__PURE__ */ i(
|
|
70
71
|
"div",
|
|
71
72
|
{
|
|
72
|
-
className: h(b({ position: p, size:
|
|
73
|
-
"data-testid":
|
|
73
|
+
className: h(b({ position: p, size: u })),
|
|
74
|
+
"data-testid": T.root,
|
|
74
75
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ o("span", { className: "text-sm font-medium text-foreground", children: t }),
|
|
76
77
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
s && /* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ o(g, { loading: l, children: /* @__PURE__ */ o("span", { className: "inline-flex items-center gap-1.5 text-sm font-medium text-foreground", children: x }) }),
|
|
79
|
+
s && /* @__PURE__ */ o("span", { className: "text-xs leading-[130%] text-secondary-foreground", children: s })
|
|
79
80
|
] })
|
|
80
81
|
]
|
|
81
82
|
}
|
|
82
83
|
);
|
|
83
84
|
}
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
E as TransactionConfirmAmountField,
|
|
86
87
|
S as resolveAmountSlots
|
|
87
88
|
};
|