@gearbox-protocol/ui-kit 3.11.2 → 3.12.0-next.1
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/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/strategies-table/columns.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/apy-feature/apy-feature.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/apy-feature/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/cells/cells.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/cells/cells.styles.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/cells/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/feature/feature.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/feature/feature.styles.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/feature/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/not-found-line.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/points-feature/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/points-feature/points-feature.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-view.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/components/strategies-table.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/types/cells.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/types/index.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/types/points-reward.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/types/rewards-tooltip.cjs +1 -0
- package/dist/cjs/components/composites/strategies-table/types/table.cjs +1 -0
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/test-ids/index.cjs +1 -1
- package/dist/cjs/test-ids/strategies-table.cjs +1 -0
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +8 -6
- package/dist/esm/components/block-sync/block-sync.js +8 -6
- package/dist/esm/components/checkbox/checkbox-labeled.js +6 -4
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +6 -4
- package/dist/esm/components/complex-input/complex-input.js +8 -6
- package/dist/esm/components/composites/index.js +72 -34
- package/dist/esm/components/composites/strategies-table/columns.js +176 -0
- package/dist/esm/components/composites/strategies-table/components/apy-feature/apy-feature.js +39 -0
- package/dist/esm/components/composites/strategies-table/components/apy-feature/index.js +5 -0
- package/dist/esm/components/composites/strategies-table/components/cells/cells.js +168 -0
- package/dist/esm/components/composites/strategies-table/components/cells/cells.styles.js +46 -0
- package/dist/esm/components/composites/strategies-table/components/cells/index.js +11 -0
- package/dist/esm/components/composites/strategies-table/components/feature/feature.js +39 -0
- package/dist/esm/components/composites/strategies-table/components/feature/feature.styles.js +43 -0
- package/dist/esm/components/composites/strategies-table/components/feature/index.js +6 -0
- package/dist/esm/components/composites/strategies-table/components/index.js +35 -0
- package/dist/esm/components/composites/strategies-table/components/not-found-line.js +19 -0
- package/dist/esm/components/composites/strategies-table/components/points-feature/index.js +6 -0
- package/dist/esm/components/composites/strategies-table/components/points-feature/points-feature.js +69 -0
- package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/index.js +11 -0
- package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js +30 -0
- package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-view.js +78 -0
- package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip.js +44 -0
- package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.js +263 -0
- package/dist/esm/components/composites/strategies-table/components/strategies-table.js +249 -0
- package/dist/esm/components/composites/strategies-table/index.js +40 -0
- package/dist/esm/components/composites/strategies-table/types/cells.js +1 -0
- package/dist/esm/components/composites/strategies-table/types/index.js +1 -0
- package/dist/esm/components/composites/strategies-table/types/points-reward.js +1 -0
- package/dist/esm/components/composites/strategies-table/types/rewards-tooltip.js +1 -0
- package/dist/esm/components/composites/strategies-table/types/table.js +1 -0
- package/dist/esm/components/compound-apy/compound-apy.js +9 -7
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +6 -4
- package/dist/esm/components/index.js +682 -644
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +8 -6
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +6 -4
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +8 -6
- package/dist/esm/components/with-copy/with-copy.js +8 -6
- package/dist/esm/index.js +888 -848
- package/dist/esm/locale/en.json.js +26 -3
- package/dist/esm/test-ids/index.js +7 -5
- package/dist/esm/test-ids/strategies-table.js +8 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/composites/index.d.ts +1 -0
- package/dist/types/components/composites/strategies-table/columns.d.ts +50 -0
- package/dist/types/components/composites/strategies-table/components/apy-feature/apy-feature.d.ts +13 -0
- package/dist/types/components/composites/strategies-table/components/apy-feature/index.d.ts +1 -0
- package/dist/types/components/composites/strategies-table/components/cells/cells.d.ts +38 -0
- package/dist/types/components/composites/strategies-table/components/cells/cells.styles.d.ts +7 -0
- package/dist/types/components/composites/strategies-table/components/cells/index.d.ts +2 -0
- package/dist/types/components/composites/strategies-table/components/feature/feature.d.ts +11 -0
- package/dist/types/components/composites/strategies-table/components/feature/feature.styles.d.ts +14 -0
- package/dist/types/components/composites/strategies-table/components/feature/index.d.ts +2 -0
- package/dist/types/components/composites/strategies-table/components/index.d.ts +7 -0
- package/dist/types/components/composites/strategies-table/components/not-found-line.d.ts +2 -0
- package/dist/types/components/composites/strategies-table/components/points-feature/index.d.ts +1 -0
- package/dist/types/components/composites/strategies-table/components/points-feature/points-feature.d.ts +24 -0
- package/dist/types/components/composites/strategies-table/components/rewards-tooltip/index.d.ts +4 -0
- package/dist/types/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.d.ts +17 -0
- package/dist/types/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-view.d.ts +10 -0
- package/dist/types/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip.d.ts +7 -0
- package/dist/types/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.d.ts +14 -0
- package/dist/types/components/composites/strategies-table/components/strategies-table.d.ts +35 -0
- package/dist/types/components/composites/strategies-table/index.d.ts +3 -0
- package/dist/types/components/composites/strategies-table/types/cells.d.ts +10 -0
- package/dist/types/components/composites/strategies-table/types/index.d.ts +4 -0
- package/dist/types/components/composites/strategies-table/types/points-reward.d.ts +11 -0
- package/dist/types/components/composites/strategies-table/types/rewards-tooltip.d.ts +53 -0
- package/dist/types/components/composites/strategies-table/types/table.d.ts +99 -0
- package/dist/types/locale/en.json.d.ts +27 -1
- package/dist/types/test-ids/index.d.ts +1 -0
- package/dist/types/test-ids/strategies-table.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { jsx as t, Fragment as $, jsxs as M } from "react/jsx-runtime";
|
|
2
|
+
import * as L from "react";
|
|
3
|
+
import { HeadCell as J } from "../../../head-cell/head-cell.js";
|
|
4
|
+
import { HelpTip as A } from "../../../help-tip/help-tip.js";
|
|
5
|
+
import { GridLoadingLine as K } from "../../../table/grid-loading-line.js";
|
|
6
|
+
import { GridTable as Q, GridTableHeader as U, GridTableBody as V, GridTableRow as P, GridTableHead as Y, GridTableCell as z } from "../../../table/grid-table.js";
|
|
7
|
+
import { TableLoaderGuard as Z } from "../../../table/table-loader-guard.js";
|
|
8
|
+
import { TableLineSm as _, TableCellSm as ee } from "../../../table/table-sm.js";
|
|
9
|
+
import { SimpleTooltip as te } from "../../../tooltip/simple-tooltip.js";
|
|
10
|
+
import "../../../tooltip/tooltip.js";
|
|
11
|
+
import { FormattedMessageTyped as ie } from "../../../typed-intl/index.js";
|
|
12
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
13
|
+
import "@gearbox-protocol/sdk";
|
|
14
|
+
import { useIsMobile as re, useIsMedium as se, useIsDesktop as ae } from "../../../../hooks/use-media-query.js";
|
|
15
|
+
import { strategiesTableTestIds as B } from "../../../../test-ids/strategies-table.js";
|
|
16
|
+
import { cn as h } from "../../../../utils/cn.js";
|
|
17
|
+
import { StrategiesTableNotFoundLine as le } from "./not-found-line.js";
|
|
18
|
+
function F({
|
|
19
|
+
last: e,
|
|
20
|
+
className: s,
|
|
21
|
+
...p
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ t(
|
|
24
|
+
P,
|
|
25
|
+
{
|
|
26
|
+
className: h(e && "*:after:hidden", s),
|
|
27
|
+
...p
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function ne({
|
|
32
|
+
columns: e,
|
|
33
|
+
sort: s,
|
|
34
|
+
isMedium: p
|
|
35
|
+
}) {
|
|
36
|
+
return /* @__PURE__ */ t(P, { noHover: !0, height: "32px", children: e.map((i) => {
|
|
37
|
+
if (i.hideOnMedium && p) return null;
|
|
38
|
+
const d = i.sort, m = d && s ? {
|
|
39
|
+
direction: s.state?.field === d.field ? s.state.sort : null,
|
|
40
|
+
onSort: () => s.set(d.field, d.defaultDirection ?? "desc")
|
|
41
|
+
} : void 0, f = typeof i.header == "function" ? i.header(m) : i.header;
|
|
42
|
+
return /* @__PURE__ */ t(
|
|
43
|
+
Y,
|
|
44
|
+
{
|
|
45
|
+
justify: i.align === "right" ? "end" : i.align === "center" ? "center" : "start",
|
|
46
|
+
size: "sm",
|
|
47
|
+
gapBefore: i.gapBefore,
|
|
48
|
+
className: h(i.className, i.headerClassName),
|
|
49
|
+
children: m ? /* @__PURE__ */ M($, { children: [
|
|
50
|
+
/* @__PURE__ */ t(
|
|
51
|
+
J,
|
|
52
|
+
{
|
|
53
|
+
arrowPosition: "right",
|
|
54
|
+
title: f,
|
|
55
|
+
sortDirection: m.direction ?? void 0,
|
|
56
|
+
onSort: m.onSort
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
i.headerTip && /* @__PURE__ */ t(A, { className: "ml-1.5", children: i.headerTip })
|
|
60
|
+
] }) : /* @__PURE__ */ M($, { children: [
|
|
61
|
+
f,
|
|
62
|
+
i.headerTip && /* @__PURE__ */ t(A, { className: "ml-1.5", children: i.headerTip })
|
|
63
|
+
] })
|
|
64
|
+
},
|
|
65
|
+
i.id
|
|
66
|
+
);
|
|
67
|
+
}) });
|
|
68
|
+
}
|
|
69
|
+
function oe({
|
|
70
|
+
row: e,
|
|
71
|
+
columns: s,
|
|
72
|
+
last: p,
|
|
73
|
+
rowHeight: i,
|
|
74
|
+
isSmall: d,
|
|
75
|
+
isMedium: m,
|
|
76
|
+
isDesktop: f,
|
|
77
|
+
mobileColumnsXs: u,
|
|
78
|
+
mobileColumnsMd: N,
|
|
79
|
+
rowTestId: y,
|
|
80
|
+
onStrategyClick: S
|
|
81
|
+
}) {
|
|
82
|
+
const g = e.strategy.tokenOutAddress, b = L.useMemo(
|
|
83
|
+
() => ({
|
|
84
|
+
row: e,
|
|
85
|
+
strategy: e.strategy,
|
|
86
|
+
tokensList: e.tokensList,
|
|
87
|
+
targetToken: e.tokensList?.[g],
|
|
88
|
+
targetTokenAddress: g,
|
|
89
|
+
rewardsCellInfo: e.rewardsCellInfo,
|
|
90
|
+
isMobile: d,
|
|
91
|
+
isDesktop: f
|
|
92
|
+
}),
|
|
93
|
+
[e, g, d, f]
|
|
94
|
+
), x = m ? s.filter((r) => !r.hideOnMedium) : s, a = !!e.disabled, T = !!e.disabledStyle, v = () => S?.(e), C = d ? (() => {
|
|
95
|
+
const r = s.filter((n) => !n.hideOnMobile), [c, ...R] = r, l = (n) => n.mobileCell ? n.mobileCell(b) : n.cell(b);
|
|
96
|
+
return /* @__PURE__ */ t(
|
|
97
|
+
F,
|
|
98
|
+
{
|
|
99
|
+
last: p,
|
|
100
|
+
href: a ? void 0 : e.href,
|
|
101
|
+
noHover: a,
|
|
102
|
+
"data-disabled": a,
|
|
103
|
+
"data-testid": y,
|
|
104
|
+
className: h(
|
|
105
|
+
T && "text-secondary-foreground!",
|
|
106
|
+
a && "cursor-not-allowed"
|
|
107
|
+
),
|
|
108
|
+
onRowClick: a ? () => {
|
|
109
|
+
} : v,
|
|
110
|
+
children: /* @__PURE__ */ t(z, { span: "full", size: "sm", className: "px-3 py-0!", children: /* @__PURE__ */ t(
|
|
111
|
+
_,
|
|
112
|
+
{
|
|
113
|
+
columns: N,
|
|
114
|
+
columnsXs: u,
|
|
115
|
+
columnsMd: N,
|
|
116
|
+
title: c ? l(c) : void 0,
|
|
117
|
+
className: "w-full",
|
|
118
|
+
children: R.map((n) => /* @__PURE__ */ t(ee, { title: n.mobileTitle, children: l(n) }, n.id))
|
|
119
|
+
}
|
|
120
|
+
) })
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
})() : /* @__PURE__ */ t(
|
|
124
|
+
F,
|
|
125
|
+
{
|
|
126
|
+
last: p,
|
|
127
|
+
href: a ? void 0 : e.href,
|
|
128
|
+
height: `${i}px`,
|
|
129
|
+
noHover: a,
|
|
130
|
+
"data-disabled": a,
|
|
131
|
+
"data-testid": y,
|
|
132
|
+
className: h(
|
|
133
|
+
T && "text-secondary-foreground!",
|
|
134
|
+
a && "cursor-not-allowed"
|
|
135
|
+
),
|
|
136
|
+
onRowClick: a ? () => {
|
|
137
|
+
} : v,
|
|
138
|
+
children: x.map((r) => /* @__PURE__ */ t(
|
|
139
|
+
z,
|
|
140
|
+
{
|
|
141
|
+
textAlign: r.align ?? "left",
|
|
142
|
+
size: "sm",
|
|
143
|
+
gapBefore: r.gapBefore,
|
|
144
|
+
className: r.className,
|
|
145
|
+
children: r.cell(b)
|
|
146
|
+
},
|
|
147
|
+
r.id
|
|
148
|
+
))
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
return T ? /* @__PURE__ */ t(te, { placement: "top", useTitleAsTrigger: !0, title: C, children: e.disabledTooltip ?? /* @__PURE__ */ t(ie, { messageId: "components.strategiesTable.line.disabled" }) }) : C;
|
|
152
|
+
}
|
|
153
|
+
function Se({
|
|
154
|
+
columns: e,
|
|
155
|
+
rows: s,
|
|
156
|
+
loading: p = !1,
|
|
157
|
+
partialLoading: i = !1,
|
|
158
|
+
error: d,
|
|
159
|
+
emptyContent: m = /* @__PURE__ */ t(le, {}),
|
|
160
|
+
skeletonRows: f = 5,
|
|
161
|
+
rowHeight: u = 66,
|
|
162
|
+
size: N = "lg",
|
|
163
|
+
mobileColumnsXs: y = 2,
|
|
164
|
+
mobileColumnsMd: S = 2,
|
|
165
|
+
className: g,
|
|
166
|
+
wrapperClassName: b,
|
|
167
|
+
sort: x,
|
|
168
|
+
onStrategyClick: a,
|
|
169
|
+
rootTestId: T,
|
|
170
|
+
rowTestId: v,
|
|
171
|
+
loaderTestId: w
|
|
172
|
+
}) {
|
|
173
|
+
const H = v ?? B.activeLine, C = w ?? B.activeLineLoading, r = re(), c = se(), R = ae(), l = L.useMemo(
|
|
174
|
+
() => c ? e.filter((o) => !o.hideOnMedium) : e,
|
|
175
|
+
[e, c]
|
|
176
|
+
), n = L.useMemo(() => r ? "1fr" : l.map((o) => (c ? o.mediumWidth ?? o.width : o.width) ?? "1fr").join(" "), [r, c, l]), j = L.useMemo(() => {
|
|
177
|
+
const o = l.map((W, X) => {
|
|
178
|
+
const G = W.gapBefore;
|
|
179
|
+
if (!G || G === "none") return null;
|
|
180
|
+
const q = G === "md" ? "pl-10" : "pl-5";
|
|
181
|
+
return `[&:nth-child(${X + 1})]:${q}`;
|
|
182
|
+
}).filter(Boolean).join(" "), I = l[l.length - 1]?.className?.includes("pr-4") ? "last:pr-4" : "";
|
|
183
|
+
return h("px-1 py-2 first:pl-4", I, o);
|
|
184
|
+
}, [l]), k = p || !s, E = !k && s && s.length === 0, D = i && !k;
|
|
185
|
+
return d ? null : E && m ? /* @__PURE__ */ t($, { children: m }) : /* @__PURE__ */ M(
|
|
186
|
+
Q,
|
|
187
|
+
{
|
|
188
|
+
cols: n,
|
|
189
|
+
gap: 0,
|
|
190
|
+
size: N,
|
|
191
|
+
wrapperClassName: h("overflow-visible", b),
|
|
192
|
+
className: g,
|
|
193
|
+
"data-testid": T ?? B.root,
|
|
194
|
+
children: [
|
|
195
|
+
!r && /* @__PURE__ */ t(U, { children: /* @__PURE__ */ t(
|
|
196
|
+
ne,
|
|
197
|
+
{
|
|
198
|
+
columns: e,
|
|
199
|
+
sort: x,
|
|
200
|
+
isMedium: c
|
|
201
|
+
}
|
|
202
|
+
) }),
|
|
203
|
+
/* @__PURE__ */ t(
|
|
204
|
+
Z,
|
|
205
|
+
{
|
|
206
|
+
showGuard: k,
|
|
207
|
+
rows: f,
|
|
208
|
+
columns: r ? 1 : l.length,
|
|
209
|
+
height: `${u}px`,
|
|
210
|
+
"data-testid": C,
|
|
211
|
+
cellClassName: r ? "px-1 py-2 first:pl-4 last:pr-4" : j,
|
|
212
|
+
children: /* @__PURE__ */ M(V, { children: [
|
|
213
|
+
s?.map((o, O, I) => /* @__PURE__ */ t(
|
|
214
|
+
oe,
|
|
215
|
+
{
|
|
216
|
+
row: o,
|
|
217
|
+
columns: e,
|
|
218
|
+
last: O === I.length - 1 && !D,
|
|
219
|
+
rowHeight: u,
|
|
220
|
+
isSmall: r,
|
|
221
|
+
isMedium: c,
|
|
222
|
+
isDesktop: R,
|
|
223
|
+
mobileColumnsXs: y,
|
|
224
|
+
mobileColumnsMd: S,
|
|
225
|
+
rowTestId: H,
|
|
226
|
+
onStrategyClick: a
|
|
227
|
+
},
|
|
228
|
+
`${o.strategy.chainId}-${o.strategy.id}`
|
|
229
|
+
)),
|
|
230
|
+
D && /* @__PURE__ */ t(
|
|
231
|
+
K,
|
|
232
|
+
{
|
|
233
|
+
height: `${u}px`,
|
|
234
|
+
columns: l.length,
|
|
235
|
+
cellClassName: j,
|
|
236
|
+
"data-testid": C,
|
|
237
|
+
last: !0
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
] })
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
export {
|
|
248
|
+
Se as StrategiesTable
|
|
249
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { customStrategyColumn as t, strategyColumn as r, strategyLeverageColumn as a, strategyRewardsColumn as p } from "./columns.js";
|
|
2
|
+
import { APYFeature as l, APYFeatureTooltip as s } from "./components/apy-feature/apy-feature.js";
|
|
3
|
+
import { RWAFeature as u, StrategiesRewardsCell as f, StrategyPoints as x, ZeroSlippageFeature as n } from "./components/cells/cells.js";
|
|
4
|
+
import { DisabledWrap as g, Plus as R, TitleGrid as T } from "./components/cells/cells.styles.js";
|
|
5
|
+
import { Feature as w } from "./components/feature/feature.js";
|
|
6
|
+
import { FeatureRoot as C } from "./components/feature/feature.styles.js";
|
|
7
|
+
import { StrategiesTableNotFoundLine as y } from "./components/not-found-line.js";
|
|
8
|
+
import { PointsFeature as A, PointsFeatureTooltip as L, PointsLabel as v } from "./components/points-feature/points-feature.js";
|
|
9
|
+
import { RewardsTooltip as Y, RewardsTooltipHover as c } from "./components/rewards-tooltip/rewards-tooltip.js";
|
|
10
|
+
import { RewardsTooltipRoot as G } from "./components/rewards-tooltip/rewards-tooltip-root.js";
|
|
11
|
+
import { RewardsTooltipView as N } from "./components/rewards-tooltip/rewards-tooltip-view.js";
|
|
12
|
+
import { RewardsTooltipContent as Z } from "./components/rewards-tooltip/tooltip-content.js";
|
|
13
|
+
import { StrategiesTable as j } from "./components/strategies-table.js";
|
|
14
|
+
export {
|
|
15
|
+
l as APYFeature,
|
|
16
|
+
s as APYFeatureTooltip,
|
|
17
|
+
g as DisabledWrap,
|
|
18
|
+
w as Feature,
|
|
19
|
+
C as FeatureRoot,
|
|
20
|
+
R as Plus,
|
|
21
|
+
A as PointsFeature,
|
|
22
|
+
L as PointsFeatureTooltip,
|
|
23
|
+
v as PointsLabel,
|
|
24
|
+
u as RWAFeature,
|
|
25
|
+
Y as RewardsTooltip,
|
|
26
|
+
Z as RewardsTooltipContent,
|
|
27
|
+
c as RewardsTooltipHover,
|
|
28
|
+
G as RewardsTooltipRoot,
|
|
29
|
+
N as RewardsTooltipView,
|
|
30
|
+
f as StrategiesRewardsCell,
|
|
31
|
+
j as StrategiesTable,
|
|
32
|
+
y as StrategiesTableNotFoundLine,
|
|
33
|
+
x as StrategyPoints,
|
|
34
|
+
T as TitleGrid,
|
|
35
|
+
n as ZeroSlippageFeature,
|
|
36
|
+
t as customStrategyColumn,
|
|
37
|
+
r as strategyColumn,
|
|
38
|
+
a as strategyLeverageColumn,
|
|
39
|
+
p as strategyRewardsColumn
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -65,6 +65,13 @@ import "../rounded-image/rounded-image.js";
|
|
|
65
65
|
import "../progress/progress.js";
|
|
66
66
|
import "../pool-indicator-icon/pool-indicator-icon.js";
|
|
67
67
|
import "../skeleton/skeleton.js";
|
|
68
|
+
import "../composites/strategies-table/components/feature/feature.styles.js";
|
|
69
|
+
import "viem";
|
|
70
|
+
import "../icon-button/icon-button.js";
|
|
71
|
+
import "../separate-line/separate-line.js";
|
|
72
|
+
import "../tip-card/tip-card.js";
|
|
73
|
+
import "../vertical-list/vertical-list.js";
|
|
74
|
+
import "../composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
68
75
|
import "../currency-button/currency-button.js";
|
|
69
76
|
import "../detailed-apy/detailed-apy.js";
|
|
70
77
|
import "../detailed-page-title/detailed-page-title.js";
|
|
@@ -79,7 +86,6 @@ import "../dialog/dialog-footer.js";
|
|
|
79
86
|
import "../dialog/dialog-header.js";
|
|
80
87
|
import "../dialog/dialog-title.js";
|
|
81
88
|
import "../dialog/dialog-overlay.js";
|
|
82
|
-
import "viem";
|
|
83
89
|
import "../label/label.js";
|
|
84
90
|
import "../dropdown-menu/dropdown-menu.js";
|
|
85
91
|
import "../dropdown-menu/dropdown-menu-checkbox-item.js";
|
|
@@ -111,7 +117,6 @@ import "lightweight-charts";
|
|
|
111
117
|
import "../graph/graph-view.js";
|
|
112
118
|
import "../health-factor/health-factor.js";
|
|
113
119
|
import "../horizontal-indicator/horizontal-indicator.js";
|
|
114
|
-
import "../icon-button/icon-button.js";
|
|
115
120
|
import "../layout/col/col.js";
|
|
116
121
|
import "../layout/container/container.js";
|
|
117
122
|
import "../layout/footer/footer.js";
|
|
@@ -139,7 +144,6 @@ import "../radio-group/radio-group.js";
|
|
|
139
144
|
import "../search-bar/search-bar.js";
|
|
140
145
|
import "../segmented-control/segmented-control.js";
|
|
141
146
|
import "../select/select.js";
|
|
142
|
-
import "../separate-line/separate-line.js";
|
|
143
147
|
import "../separator/separator.js";
|
|
144
148
|
import "../simple-accordion/simple-accordion.js";
|
|
145
149
|
import "../simple-dropdown/simple-dropdown-menu-item.js";
|
|
@@ -158,15 +162,13 @@ import "../table/grid-table-loader.js";
|
|
|
158
162
|
import "../textarea/textarea.js";
|
|
159
163
|
import "../theme-provider.js";
|
|
160
164
|
import "../time-to-liquidation/time-to-liquidation.js";
|
|
161
|
-
import "../tip-card/tip-card.js";
|
|
162
165
|
import "../toggle/toggle.js";
|
|
163
|
-
import "../vertical-list/vertical-list.js";
|
|
164
166
|
import "../with-filter-button/with-filter-button.js";
|
|
165
167
|
function G(i, p) {
|
|
166
168
|
const e = i?.symbol || p;
|
|
167
169
|
return e === "GEAR" ? { icon: L("/logo/logo_symbol.png") } : C(i) || e;
|
|
168
170
|
}
|
|
169
|
-
function
|
|
171
|
+
function Br({
|
|
170
172
|
totalAPY: i,
|
|
171
173
|
totalAPYLoading: p,
|
|
172
174
|
baseAPY: e,
|
|
@@ -268,6 +270,6 @@ function _r({
|
|
|
268
270
|
) : x();
|
|
269
271
|
}
|
|
270
272
|
export {
|
|
271
|
-
|
|
273
|
+
Br as CompoundAPY,
|
|
272
274
|
G as getRewardTokenSymbol
|
|
273
275
|
};
|
|
@@ -63,6 +63,12 @@ import "../vertical-list/vertical-list.js";
|
|
|
63
63
|
import "../rounded-image/rounded-image.js";
|
|
64
64
|
import "../progress/progress.js";
|
|
65
65
|
import "../pool-indicator-icon/pool-indicator-icon.js";
|
|
66
|
+
import "../composites/strategies-table/components/feature/feature.styles.js";
|
|
67
|
+
import "viem";
|
|
68
|
+
import "../icon-button/icon-button.js";
|
|
69
|
+
import "../separate-line/separate-line.js";
|
|
70
|
+
import "../tip-card/tip-card.js";
|
|
71
|
+
import "../composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
66
72
|
import "../currency-button/currency-button.js";
|
|
67
73
|
import "../detailed-apy/detailed-apy.js";
|
|
68
74
|
import { DetailedPageTitleCopyButton as h } from "./detailed-page-title-copy-button.js";
|
|
@@ -76,7 +82,6 @@ import "../dialog/dialog-footer.js";
|
|
|
76
82
|
import "../dialog/dialog-header.js";
|
|
77
83
|
import "../dialog/dialog-title.js";
|
|
78
84
|
import "../dialog/dialog-overlay.js";
|
|
79
|
-
import "viem";
|
|
80
85
|
import "../label/label.js";
|
|
81
86
|
import "../dropdown-menu/dropdown-menu.js";
|
|
82
87
|
import "../dropdown-menu/dropdown-menu-checkbox-item.js";
|
|
@@ -108,7 +113,6 @@ import "lightweight-charts";
|
|
|
108
113
|
import "../graph/graph-view.js";
|
|
109
114
|
import "../health-factor/health-factor.js";
|
|
110
115
|
import "../horizontal-indicator/horizontal-indicator.js";
|
|
111
|
-
import "../icon-button/icon-button.js";
|
|
112
116
|
import "../layout/col/col.js";
|
|
113
117
|
import "../layout/container/container.js";
|
|
114
118
|
import "../layout/footer/footer.js";
|
|
@@ -135,7 +139,6 @@ import "../radio-group/radio-group.js";
|
|
|
135
139
|
import "../search-bar/search-bar.js";
|
|
136
140
|
import "../segmented-control/segmented-control.js";
|
|
137
141
|
import "../select/select.js";
|
|
138
|
-
import "../separate-line/separate-line.js";
|
|
139
142
|
import "../separator/separator.js";
|
|
140
143
|
import "../simple-accordion/simple-accordion.js";
|
|
141
144
|
import "../simple-dropdown/simple-dropdown-menu-item.js";
|
|
@@ -154,7 +157,6 @@ import "../table/grid-table-loader.js";
|
|
|
154
157
|
import "../textarea/textarea.js";
|
|
155
158
|
import "../theme-provider.js";
|
|
156
159
|
import "../time-to-liquidation/time-to-liquidation.js";
|
|
157
|
-
import "../tip-card/tip-card.js";
|
|
158
160
|
import "../toggle/toggle.js";
|
|
159
161
|
import "../with-filter-button/with-filter-button.js";
|
|
160
162
|
const b = g.forwardRef(function({
|