@gearbox-protocol/ui-kit 4.0.0-next.15 → 4.0.0-next.16

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.
Files changed (26) hide show
  1. package/dist/cjs/components/base/stat-badge/constants.cjs +1 -1
  2. package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
  3. package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
  4. package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
  5. package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
  6. package/dist/cjs/index.cjs +1 -1
  7. package/dist/cjs/locale/en.json.cjs +1 -1
  8. package/dist/cjs/utils/index.cjs +1 -1
  9. package/dist/cjs/utils/strategy-apy.cjs +1 -0
  10. package/dist/esm/components/base/stat-badge/constants.js +1 -0
  11. package/dist/esm/components/base/stat-badge/stat-badge.js +87 -52
  12. package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +130 -110
  13. package/dist/esm/components/base/tabber/tabber.js +67 -64
  14. package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +20 -19
  15. package/dist/esm/index.js +234 -230
  16. package/dist/esm/locale/en.json.js +2 -1
  17. package/dist/esm/utils/index.js +64 -60
  18. package/dist/esm/utils/strategy-apy.js +41 -0
  19. package/dist/types/components/base/stat-badge/constants.d.ts +1 -0
  20. package/dist/types/components/base/stat-badge/stat-badge.d.ts +11 -1
  21. package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +12 -0
  22. package/dist/types/components/base/tabber/tabber.d.ts +2 -2
  23. package/dist/types/locale/en.json.d.ts +2 -1
  24. package/dist/types/utils/index.d.ts +1 -0
  25. package/dist/types/utils/strategy-apy.d.ts +37 -0
  26. package/package.json +1 -1
@@ -1,124 +1,159 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { Stack as g } from "../stack/stack.js";
3
- import { useTitleText as f } from "../text/use-title-text.js";
4
- import { Skeleton as u } from "../../skeleton/skeleton.js";
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { Stack as p } from "../stack/stack.js";
3
+ import { useTitleText as x } from "../text/use-title-text.js";
4
+ import { faCaretDown as h, faCaretUp as S } from "@fortawesome/free-solid-svg-icons";
5
+ import { FaIcon as v } from "../../icons/fa-icon.js";
6
+ import { Skeleton as N } from "../../skeleton/skeleton.js";
5
7
  import "react";
6
8
  import "@gearbox-protocol/sdk";
7
- import { cn as d } from "../../../utils/cn.js";
9
+ import { cn as o } from "../../../utils/cn.js";
8
10
  import "sonner";
9
11
  import "@gearbox-protocol/sdk/common-utils";
10
12
  import "luxon";
11
13
  import "../../../utils/z-index.js";
14
+ import { SimpleTooltip as b } from "../../tooltip/simple-tooltip.js";
15
+ import "../../tooltip/tooltip.js";
12
16
  import { StatBadgeTest as m } from "./constants.js";
13
- const p = {
17
+ const I = {
14
18
  sm: "p-4",
15
19
  md: "p-5",
16
20
  default: "p-6"
17
- }, x = {
21
+ }, T = {
18
22
  sm: "mb-2.5",
19
23
  md: "mb-2",
20
24
  default: "mb-3"
21
- }, S = {
25
+ }, d = {
22
26
  sm: "text-xs leading-[0.8125rem]",
23
27
  md: "text-xs leading-[0.9rem]",
24
28
  default: "text-sm leading-[1.0625rem]"
25
- }, h = {
29
+ }, _ = {
26
30
  sm: "text-sm leading-[1.0625rem]",
27
31
  md: "text-base leading-[1.25rem]",
28
32
  default: "text-xl leading-[1.5625rem]"
29
33
  };
30
- function A({
31
- title: i,
32
- value: r,
33
- isLoading: a = !1,
34
- size: t = "default",
35
- action: l,
36
- className: o,
37
- testId: n
34
+ function w({
35
+ delta: t,
36
+ size: i
38
37
  }) {
39
- const c = f();
40
- return /* @__PURE__ */ s(
38
+ const l = t.value > 0 ? "text-success" : t.value < 0 ? "text-destructive" : "text-muted-foreground", e = /* @__PURE__ */ a(
39
+ "span",
40
+ {
41
+ className: o(
42
+ "inline-flex items-center gap-0.5 font-medium",
43
+ d[i],
44
+ l
45
+ ),
46
+ "data-testid": m.delta,
47
+ children: [
48
+ /* @__PURE__ */ r(
49
+ v,
50
+ {
51
+ icon: t.value < 0 ? h : S,
52
+ className: "size-3"
53
+ }
54
+ ),
55
+ t.label
56
+ ]
57
+ }
58
+ );
59
+ return t.tooltip == null ? e : /* @__PURE__ */ r(b, { title: e, triggerClassName: "shrink-0", children: t.tooltip });
60
+ }
61
+ function J({
62
+ title: t,
63
+ value: i,
64
+ isLoading: l = !1,
65
+ size: e = "default",
66
+ delta: s,
67
+ action: n,
68
+ className: c,
69
+ testId: u
70
+ }) {
71
+ const f = x(), g = s != null && !l;
72
+ return /* @__PURE__ */ a(
41
73
  "div",
42
74
  {
43
- className: d(
75
+ className: o(
44
76
  "h-full w-full rounded-lg border border-border bg-card",
45
- p[t],
46
- o
77
+ I[e],
78
+ c
47
79
  ),
48
- "data-testid": n ?? m.root,
80
+ "data-testid": u ?? m.root,
49
81
  children: [
50
- /* @__PURE__ */ s(
82
+ /* @__PURE__ */ a(
51
83
  "div",
52
84
  {
53
- className: d(
85
+ className: o(
54
86
  "flex items-center justify-between gap-2",
55
- x[t]
87
+ T[e]
56
88
  ),
57
89
  children: [
58
- /* @__PURE__ */ e(
90
+ /* @__PURE__ */ r(
59
91
  "div",
60
92
  {
61
- className: d("font-medium text-muted-foreground", S[t]),
62
- children: c(i)
93
+ className: o("font-medium text-muted-foreground", d[e]),
94
+ children: f(t)
63
95
  }
64
96
  ),
65
- l != null ? /* @__PURE__ */ e("div", { className: "shrink-0", "data-testid": m.action, children: l }) : null
97
+ g || n != null ? /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: [
98
+ s != null && !l ? /* @__PURE__ */ r(w, { delta: s, size: e }) : null,
99
+ n != null ? /* @__PURE__ */ r("div", { className: "shrink-0", "data-testid": m.action, children: n }) : null
100
+ ] }) : null
66
101
  ]
67
102
  }
68
103
  ),
69
- /* @__PURE__ */ e(
104
+ /* @__PURE__ */ r(
70
105
  "div",
71
106
  {
72
- className: d(
107
+ className: o(
73
108
  "text-left font-medium text-foreground",
74
- h[t]
109
+ _[e]
75
110
  ),
76
- children: /* @__PURE__ */ e(u, { width: 80, loading: a, children: /* @__PURE__ */ e(g, { gap: "xs", align: "start", className: "w-full items-start", children: r }) })
111
+ children: /* @__PURE__ */ r(N, { width: 80, loading: l, children: /* @__PURE__ */ r(p, { gap: "xs", align: "start", className: "w-full items-start", children: i }) })
77
112
  }
78
113
  )
79
114
  ]
80
115
  }
81
116
  );
82
117
  }
83
- const b = {
118
+ const E = {
84
119
  1: "grid-cols-1",
85
120
  2: "grid-cols-2",
86
121
  3: "grid-cols-3",
87
122
  4: "grid-cols-4"
88
- }, I = {
123
+ }, G = {
89
124
  1: "lg:grid-cols-1",
90
125
  2: "lg:grid-cols-2",
91
126
  3: "lg:grid-cols-3",
92
127
  4: "lg:grid-cols-4"
93
- }, _ = {
128
+ }, D = {
94
129
  sm: "gap-2",
95
130
  default: "gap-4",
96
131
  lg: "gap-6"
97
132
  };
98
- function B({
99
- cols: i = 1,
100
- colsLg: r,
101
- gap: a = "default",
102
- children: t,
103
- className: l
133
+ function K({
134
+ cols: t = 1,
135
+ colsLg: i,
136
+ gap: l = "default",
137
+ children: e,
138
+ className: s
104
139
  }) {
105
- return /* @__PURE__ */ e(
140
+ return /* @__PURE__ */ r(
106
141
  "div",
107
142
  {
108
- className: d(
143
+ className: o(
109
144
  "grid w-full",
110
- b[i],
111
- r ? I[r] : void 0,
112
- _[a],
113
- l
145
+ E[t],
146
+ i ? G[i] : void 0,
147
+ D[l],
148
+ s
114
149
  ),
115
150
  "data-testid": m.grid,
116
- children: t
151
+ children: e
117
152
  }
118
153
  );
119
154
  }
120
155
  export {
121
- A as StatBadge,
122
- B as StatBadgeGrid,
156
+ J as StatBadge,
157
+ K as StatBadgeGrid,
123
158
  m as StatBadgeTest
124
159
  };
@@ -1,174 +1,194 @@
1
- import { jsxs as a, jsx as n, Fragment as I } from "react/jsx-runtime";
2
- import { PointsIcon as P } from "../../points-icon/points-icon.js";
3
- import { TokenIcon as L } from "../../token-icon/token-icon.js";
4
- import { FormattedMessageTyped as p } from "../../typed-intl/index.js";
1
+ import { jsxs as u, jsx as l, Fragment as M } from "react/jsx-runtime";
2
+ import { PointsIcon as $ } from "../../points-icon/points-icon.js";
3
+ import { TokenIcon as q } from "../../token-icon/token-icon.js";
4
+ import { FormattedMessageTyped as d } from "../../typed-intl/index.js";
5
5
  import "react";
6
- import { positiveTokenRewardsOf as R, pointProgramsOf as M } from "../../../utils/apy-breakdown.js";
6
+ import { positiveTokenRewardsOf as F, pointProgramsOf as T, totalApyOf as R } from "../../../utils/apy-breakdown.js";
7
7
  import "@gearbox-protocol/sdk";
8
- import { bpsToPercent as T } from "../../../utils/bps.js";
8
+ import { bpsToPercent as j } from "../../../utils/bps.js";
9
9
  import { cn as w } from "../../../utils/cn.js";
10
10
  import "sonner";
11
- import { formatLeverage as g } from "../../../utils/format-leverage.js";
12
- import { formatCompactPercent as $ } from "../../../utils/format-money.js";
13
- import { formatChipLeverage as C } from "../../../utils/leverage-presets.js";
11
+ import { formatLeverage as s } from "../../../utils/format-leverage.js";
12
+ import { formatCompactPercent as S } from "../../../utils/format-money.js";
13
+ import { strategyApyPartsAtLeverage as O } from "../../../utils/strategy-apy.js";
14
14
  import "@gearbox-protocol/sdk/common-utils";
15
15
  import "luxon";
16
16
  import "../../../utils/z-index.js";
17
- import { StrategyApyBreakdownCardTest as A } from "./constants.js";
18
- const u = "—";
19
- function m(r) {
20
- const t = T(r);
21
- if (Math.abs(t) >= 1e3) {
22
- const i = $(Math.abs(t));
23
- return t < 0 ? `−${i}` : i;
17
+ import { StrategyApyBreakdownCardTest as h } from "./constants.js";
18
+ const i = "—";
19
+ function a(e) {
20
+ const r = j(e);
21
+ if (Math.abs(r) >= 1e3) {
22
+ const p = S(Math.abs(r));
23
+ return r < 0 ? `−${p}` : p;
24
24
  }
25
- const l = Math.abs(t), s = l % 1 === 0 ? String(l) : l.toFixed(1);
26
- return t < 0 ? `−${s}%` : `${s}%`;
25
+ const m = Math.abs(r).toFixed(2);
26
+ return r < 0 ? `−${m}%` : `${m}%`;
27
27
  }
28
- function F(r) {
29
- return r == null || r <= 0 ? "bg-muted text-muted-foreground" : "bg-success/20 text-success";
28
+ function z(e) {
29
+ return e == null || e <= 0 ? "bg-muted text-muted-foreground" : "bg-success/20 text-success";
30
30
  }
31
- function y({
32
- base: r,
33
- leverage: t
31
+ function g({
32
+ base: e,
33
+ leverage: r
34
34
  }) {
35
- return /* @__PURE__ */ n(
36
- p,
35
+ return /* @__PURE__ */ l(
36
+ d,
37
37
  {
38
38
  messageId: "components.strategyApyBreakdownCard.formula",
39
- values: { base: r, leverage: t }
39
+ values: { base: e, leverage: r }
40
40
  }
41
41
  );
42
42
  }
43
- function Z({
44
- data: r,
45
- leverage: t
43
+ function oe({
44
+ data: e,
45
+ leverage: r
46
46
  }) {
47
- const l = t ?? (r.maxLeverage != null && r.maxLeverage > 0 ? r.maxLeverage : void 0), s = l != null ? g(l) : u, i = r.collateralApy ? R(r.collateralApy) : [], k = r.collateralApy ? M(r.collateralApy) : [], N = r.borrowApy != null || r.additionalBorrowApy != null, f = N ? (r.borrowApy ?? 0) + (r.additionalBorrowApy ?? 0) : void 0, B = l != null ? Math.max(l - 1, 0) : void 0, v = r.collateralApy?.organicApy, d = v != null && l != null ? v * l : void 0, c = i.map(
48
- (e) => e.supplyApr != null && l != null ? e.supplyApr * l : void 0
49
- ), b = f != null && B != null ? -(f * B) : void 0, h = d != null && b != null && c.every((e) => e != null) ? d + c.reduce((e, o) => e + (o ?? 0), 0) + b : d != null && c.every((e) => e != null) && !N ? d + c.reduce((e, o) => e + (o ?? 0), 0) : void 0;
50
- return /* @__PURE__ */ a(
47
+ const t = r ?? (e.maxLeverage != null && e.maxLeverage > 0 ? e.maxLeverage : void 0), m = t != null ? s(t) : i, p = e.collateralApy ? F(e.collateralApy) : [], k = e.collateralApy ? T(e.collateralApy) : [], n = t != null ? O({
48
+ leverage: t,
49
+ maxLeverage: e.maxLeverage,
50
+ borrowApy: e.borrowApy,
51
+ additionalBorrowApy: e.additionalBorrowApy
52
+ }) : void 0, y = e.collateralApy?.organicApy, b = y != null && t != null ? y * t : void 0, f = p.map(
53
+ (o) => o.supplyApr != null && t != null ? o.supplyApr * t : void 0
54
+ ), N = e.borrowApy != null && n != null ? -n.borrowCost : void 0, L = e.additionalBorrowApy, x = L != null && L !== 0, B = x && n != null ? n.quotaRate : void 0, C = x && n != null ? -n.quotaCost : void 0, I = b != null && n != null && f.every((o) => o != null) ? b + f.reduce((o, c) => o + (c ?? 0), 0) - n.totalCost : void 0, P = t != null && e.maxLeverage != null && e.maxLeverage > 0 && Math.abs(t - e.maxLeverage) < 1e-9, A = e.netApy != null ? R(e.netApy) : P && e.maxLeverageApy != null ? R(e.maxLeverageApy) : I;
55
+ return /* @__PURE__ */ u(
51
56
  "div",
52
57
  {
53
58
  className: "flex w-full min-w-0 flex-col gap-4 rounded-xl border border-border bg-card p-4",
54
- "data-testid": A.root,
59
+ "data-testid": h.root,
55
60
  children: [
56
- /* @__PURE__ */ a("div", { className: "flex h-6 items-center justify-between gap-3", children: [
57
- /* @__PURE__ */ n("span", { className: "text-base font-semibold leading-4 text-foreground", children: /* @__PURE__ */ n(
58
- p,
61
+ /* @__PURE__ */ u("div", { className: "flex h-6 items-center justify-between gap-3", children: [
62
+ /* @__PURE__ */ l("span", { className: "text-base font-semibold leading-4 text-foreground", children: /* @__PURE__ */ l(
63
+ d,
59
64
  {
60
65
  messageId: "components.strategyApyBreakdownCard.titleAtLeverage",
61
- values: { leverage: s }
66
+ values: { leverage: m }
62
67
  }
63
68
  ) }),
64
- /* @__PURE__ */ n(
69
+ /* @__PURE__ */ l(
65
70
  "span",
66
71
  {
67
72
  className: w(
68
73
  "rounded-md px-2 py-0.5 text-sm font-semibold tabular-nums",
69
- F(h)
74
+ z(A)
70
75
  ),
71
- "data-testid": A.net,
72
- children: h == null ? u : m(h)
76
+ "data-testid": h.net,
77
+ children: A == null ? i : a(A)
73
78
  }
74
79
  )
75
80
  ] }),
76
- /* @__PURE__ */ a("div", { className: "flex flex-col gap-3", children: [
77
- /* @__PURE__ */ n(
78
- x,
81
+ /* @__PURE__ */ u("div", { className: "flex flex-col gap-3", children: [
82
+ /* @__PURE__ */ l(
83
+ v,
79
84
  {
80
- label: /* @__PURE__ */ n(p, { messageId: "components.strategyApyBreakdownCard.collateralApy" }),
81
- value: d == null ? u : m(d),
82
- subtext: v != null && l != null ? /* @__PURE__ */ n(
83
- y,
85
+ label: /* @__PURE__ */ l(d, { messageId: "components.strategyApyBreakdownCard.collateralApy" }),
86
+ value: b == null ? i : a(b),
87
+ subtext: y != null && t != null ? /* @__PURE__ */ l(
88
+ g,
84
89
  {
85
- base: m(v),
86
- leverage: g(l)
90
+ base: a(y),
91
+ leverage: s(t)
87
92
  }
88
93
  ) : void 0
89
94
  }
90
95
  ),
91
- i.map((e, o) => /* @__PURE__ */ n(
92
- x,
96
+ p.map((o, c) => /* @__PURE__ */ l(
97
+ v,
93
98
  {
94
- label: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5", children: [
95
- /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
96
- p,
99
+ label: /* @__PURE__ */ u("span", { className: "inline-flex items-center gap-1.5", children: [
100
+ /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(
101
+ d,
97
102
  {
98
103
  messageId: "components.apyParts.extraAPY",
99
- values: { symbol: e.token.symbol }
104
+ values: { symbol: o.token.symbol }
100
105
  }
101
106
  ) }),
102
- /* @__PURE__ */ n(
103
- L,
107
+ /* @__PURE__ */ l(
108
+ q,
104
109
  {
105
- token: e.token,
106
- symbol: e.token.symbol,
110
+ token: o.token,
111
+ symbol: o.token.symbol,
107
112
  size: 16,
108
113
  className: "shrink-0"
109
114
  }
110
115
  )
111
116
  ] }),
112
- value: c[o] == null ? u : m(c[o]),
113
- subtext: e.supplyApr != null && l != null ? /* @__PURE__ */ n(
114
- y,
117
+ value: f[c] == null ? i : a(f[c]),
118
+ subtext: o.supplyApr != null && t != null ? /* @__PURE__ */ l(
119
+ g,
115
120
  {
116
- base: m(e.supplyApr),
117
- leverage: g(l)
121
+ base: a(o.supplyApr),
122
+ leverage: s(t)
118
123
  }
119
124
  ) : void 0
120
125
  },
121
- `incentive-${e.token.address}-${e.supplyApr ?? 0}`
126
+ `incentive-${o.token.address}-${o.supplyApr ?? 0}`
122
127
  )),
123
- /* @__PURE__ */ n(
124
- x,
128
+ /* @__PURE__ */ l(
129
+ v,
125
130
  {
126
131
  muted: !0,
127
- label: /* @__PURE__ */ n(p, { messageId: "components.strategyApyBreakdownCard.borrowRate" }),
128
- value: b == null ? u : m(b),
129
- subtext: f != null && l != null ? /* @__PURE__ */ n(
130
- y,
132
+ label: /* @__PURE__ */ l(d, { messageId: "components.strategyApyBreakdownCard.borrowRate" }),
133
+ value: N == null ? i : a(N),
134
+ subtext: e.borrowApy != null && n != null ? /* @__PURE__ */ l(
135
+ g,
131
136
  {
132
- base: m(f),
133
- leverage: g(l)
137
+ base: a(-e.borrowApy),
138
+ leverage: s(n.debtMultiplier)
134
139
  }
135
140
  ) : void 0
136
141
  }
137
142
  ),
138
- k.length > 0 ? /* @__PURE__ */ a(I, { children: [
139
- /* @__PURE__ */ n("div", { className: "h-px w-full bg-divider" }),
140
- k.map((e) => {
141
- const o = e.multiplier != null && l != null ? e.multiplier * l : void 0;
142
- return /* @__PURE__ */ n(
143
- x,
143
+ x ? /* @__PURE__ */ l(
144
+ v,
145
+ {
146
+ muted: !0,
147
+ label: /* @__PURE__ */ l(d, { messageId: "components.strategyApyBreakdownCard.quotaRate" }),
148
+ value: C == null ? i : a(C),
149
+ subtext: B != null && t != null ? /* @__PURE__ */ l(
150
+ g,
151
+ {
152
+ base: a(-B),
153
+ leverage: s(t)
154
+ }
155
+ ) : void 0
156
+ }
157
+ ) : null,
158
+ k.length > 0 ? /* @__PURE__ */ u(M, { children: [
159
+ /* @__PURE__ */ l("div", { className: "h-px w-full bg-divider" }),
160
+ k.map((o) => {
161
+ const c = o.multiplier != null && t != null ? o.multiplier * t : void 0;
162
+ return /* @__PURE__ */ l(
163
+ v,
144
164
  {
145
- label: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5", children: [
146
- /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
147
- p,
165
+ label: /* @__PURE__ */ u("span", { className: "inline-flex items-center gap-1.5", children: [
166
+ /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(
167
+ d,
148
168
  {
149
169
  messageId: "components.yieldBreakdown.programPoints",
150
- values: { name: e.name }
170
+ values: { name: o.name }
151
171
  }
152
172
  ) }),
153
- /* @__PURE__ */ n(
154
- P,
173
+ /* @__PURE__ */ l(
174
+ $,
155
175
  {
156
- reward: { name: e.name, type: e.id },
176
+ reward: { name: o.name, type: o.id },
157
177
  size: 16,
158
178
  className: "shrink-0"
159
179
  }
160
180
  )
161
181
  ] }),
162
- value: o != null ? `${C(o)}×` : u,
163
- subtext: e.multiplier != null && l != null ? /* @__PURE__ */ n(
164
- y,
182
+ value: c != null ? `${s(c)}×` : i,
183
+ subtext: o.multiplier != null && t != null ? /* @__PURE__ */ l(
184
+ g,
165
185
  {
166
- base: C(e.multiplier),
167
- leverage: g(l)
186
+ base: s(o.multiplier),
187
+ leverage: s(t)
168
188
  }
169
189
  ) : void 0
170
190
  },
171
- e.id
191
+ o.id
172
192
  );
173
193
  })
174
194
  ] }) : null
@@ -177,38 +197,38 @@ function Z({
177
197
  }
178
198
  );
179
199
  }
180
- function x({
181
- label: r,
182
- value: t,
183
- subtext: l,
184
- muted: s = !1
200
+ function v({
201
+ label: e,
202
+ value: r,
203
+ subtext: t,
204
+ muted: m = !1
185
205
  }) {
186
- const i = s ? "text-muted-foreground" : "text-foreground";
187
- return /* @__PURE__ */ a(
206
+ const p = m ? "text-muted-foreground" : "text-foreground";
207
+ return /* @__PURE__ */ u(
188
208
  "div",
189
209
  {
190
210
  className: "flex items-start justify-between gap-3",
191
- "data-testid": A.row,
211
+ "data-testid": h.row,
192
212
  children: [
193
- /* @__PURE__ */ n("span", { className: w("min-w-0 text-sm font-semibold leading-5", i), children: r }),
194
- /* @__PURE__ */ a("span", { className: "flex shrink-0 flex-col items-end", children: [
195
- /* @__PURE__ */ n(
213
+ /* @__PURE__ */ l("span", { className: w("min-w-0 text-sm font-semibold leading-5", p), children: e }),
214
+ /* @__PURE__ */ u("span", { className: "flex shrink-0 flex-col items-end", children: [
215
+ /* @__PURE__ */ l(
196
216
  "span",
197
217
  {
198
218
  className: w(
199
219
  "text-sm font-semibold leading-5 tabular-nums",
200
- t === u || s ? "text-muted-foreground" : "text-foreground"
220
+ r === i || m ? "text-muted-foreground" : "text-foreground"
201
221
  ),
202
- children: t
222
+ children: r
203
223
  }
204
224
  ),
205
- l != null ? /* @__PURE__ */ n("span", { className: "text-xs leading-4 text-muted-foreground", children: l }) : null
225
+ t != null ? /* @__PURE__ */ l("span", { className: "text-xs leading-4 text-muted-foreground", children: t }) : null
206
226
  ] })
207
227
  ]
208
228
  }
209
229
  );
210
230
  }
211
231
  export {
212
- Z as StrategyApyBreakdownCard,
213
- A as StrategyApyBreakdownCardTest
232
+ oe as StrategyApyBreakdownCard,
233
+ h as StrategyApyBreakdownCardTest
214
234
  };