@gearbox-protocol/permissionless-ui 1.22.0-next.28 → 1.22.0-next.29
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/grid-td-cell/grid-td-cell.cjs +1 -1
- package/dist/cjs/components/layout/footer/footer.cjs +1 -1
- package/dist/cjs/components/layout/header/header.cjs +1 -1
- package/dist/cjs/components/network-icon/network-icon.cjs +1 -1
- package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
- package/dist/cjs/components/table/grid-table.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +99 -24
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +5 -5
- package/dist/esm/components/layout/footer/footer.js +1 -1
- package/dist/esm/components/layout/header/header.js +16 -16
- package/dist/esm/components/network-icon/network-icon.js +58 -38
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +72 -46
- package/dist/esm/components/table/grid-table.js +101 -84
- package/dist/esm/components/table/table-sm.js +9 -9
- package/dist/esm/components/table/table.js +4 -4
- package/dist/globals.css +1 -1
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +70 -6
- package/dist/types/components/network-icon/network-icon.d.ts +8 -1
- package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +27 -1
- package/dist/types/components/table/grid-table.d.ts +4 -0
- package/dist/types/components/typed-intl/index.d.ts +0 -2
- package/dist/types/utils/network-icons.d.ts +3 -1
- package/package.json +6 -6
|
@@ -1,83 +1,109 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TooltipProvider as
|
|
3
|
-
function
|
|
4
|
-
children:
|
|
5
|
-
totalAPY:
|
|
6
|
-
extraAPYTotal:
|
|
7
|
-
loading7DAgo:
|
|
8
|
-
loading:
|
|
9
|
-
baseAPY:
|
|
10
|
-
extraAPY:
|
|
11
|
-
|
|
1
|
+
import { jsx as a, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { TooltipProvider as y, Tooltip as g, TooltipTrigger as N, TooltipContent as b } from "../tooltip/tooltip.js";
|
|
3
|
+
function F({
|
|
4
|
+
children: c,
|
|
5
|
+
totalAPY: r,
|
|
6
|
+
extraAPYTotal: m,
|
|
7
|
+
loading7DAgo: u,
|
|
8
|
+
loading: x,
|
|
9
|
+
baseAPY: l,
|
|
10
|
+
extraAPY: t,
|
|
11
|
+
points: s,
|
|
12
|
+
apy7DAgo: i,
|
|
13
|
+
externalAPY: o,
|
|
12
14
|
tokensList: p,
|
|
13
|
-
className:
|
|
15
|
+
className: h
|
|
14
16
|
}) {
|
|
15
|
-
if (!(
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
|
|
17
|
+
if (!(r !== void 0 || l?.length || t?.length || s?.length) || x)
|
|
18
|
+
return /* @__PURE__ */ a("span", { className: h, children: c });
|
|
19
|
+
const f = typeof i == "object" ? i?.value : i;
|
|
20
|
+
return /* @__PURE__ */ a(y, { children: /* @__PURE__ */ e(g, { children: [
|
|
21
|
+
/* @__PURE__ */ a(N, { asChild: !0, children: /* @__PURE__ */ a("span", { className: h, children: c }) }),
|
|
22
|
+
/* @__PURE__ */ a(b, { className: "max-w-xs", children: /* @__PURE__ */ e("div", { className: "space-y-2 text-sm", children: [
|
|
23
|
+
l && l.length > 0 && /* @__PURE__ */ e("div", { children: [
|
|
24
|
+
/* @__PURE__ */ a("div", { className: "font-medium text-muted-foreground mb-1", children: "Base APY" }),
|
|
25
|
+
l.map((n, d) => /* @__PURE__ */ e(
|
|
24
26
|
"div",
|
|
25
27
|
{
|
|
26
28
|
className: "flex justify-between gap-4",
|
|
27
29
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
30
|
+
/* @__PURE__ */ a("span", { children: n.type === "supplyAPY" ? "Supply" : n.type || "Base" }),
|
|
31
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: [
|
|
32
|
+
n.apy.toFixed(2),
|
|
31
33
|
"%"
|
|
32
34
|
] })
|
|
33
35
|
]
|
|
34
36
|
},
|
|
35
|
-
`base-${
|
|
37
|
+
`base-${n.type || d}-${n.apy}`
|
|
36
38
|
))
|
|
37
39
|
] }),
|
|
38
|
-
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
return /* @__PURE__ */
|
|
40
|
+
t && t.length > 0 && /* @__PURE__ */ e("div", { children: [
|
|
41
|
+
/* @__PURE__ */ a("div", { className: "font-medium text-muted-foreground mb-1", children: "Rewards" }),
|
|
42
|
+
t.map((n, d) => {
|
|
43
|
+
const v = n.token && p ? p[n.token]?.symbol : n.token;
|
|
44
|
+
return /* @__PURE__ */ e(
|
|
43
45
|
"div",
|
|
44
46
|
{
|
|
45
47
|
className: "flex justify-between gap-4",
|
|
46
48
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
49
|
+
/* @__PURE__ */ a("span", { children: v || n.type || "Reward" }),
|
|
50
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: [
|
|
51
|
+
n.apy.toFixed(2),
|
|
50
52
|
"%"
|
|
51
53
|
] })
|
|
52
54
|
]
|
|
53
55
|
},
|
|
54
|
-
`extra-${
|
|
56
|
+
`extra-${n.token || d}-${n.apy}`
|
|
55
57
|
);
|
|
56
58
|
}),
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
59
|
+
m !== void 0 && /* @__PURE__ */ e("div", { className: "flex justify-between gap-4 text-muted-foreground", children: [
|
|
60
|
+
/* @__PURE__ */ a("span", { children: "Total Extra" }),
|
|
61
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: [
|
|
62
|
+
m.toFixed(2),
|
|
61
63
|
"%"
|
|
62
64
|
] })
|
|
63
65
|
] })
|
|
64
66
|
] }),
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
67
|
+
o && /* @__PURE__ */ e("div", { children: [
|
|
68
|
+
/* @__PURE__ */ a("div", { className: "font-medium text-muted-foreground mb-1", children: "External" }),
|
|
69
|
+
/* @__PURE__ */ e("div", { className: "flex justify-between gap-4", children: [
|
|
70
|
+
/* @__PURE__ */ a("span", { children: o.name }),
|
|
71
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: [
|
|
72
|
+
o.apy.toFixed(2),
|
|
73
|
+
"%"
|
|
74
|
+
] })
|
|
75
|
+
] })
|
|
76
|
+
] }),
|
|
77
|
+
s && s.length > 0 && /* @__PURE__ */ e("div", { children: [
|
|
78
|
+
/* @__PURE__ */ a("div", { className: "font-medium text-muted-foreground mb-1", children: "Points" }),
|
|
79
|
+
s.map((n, d) => /* @__PURE__ */ e(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
className: "flex justify-between gap-4",
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ a("span", { children: n.name }),
|
|
85
|
+
/* @__PURE__ */ a("span", { className: "tabular-nums", children: n.amount })
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
`point-${n.name}-${d}`
|
|
89
|
+
))
|
|
90
|
+
] }),
|
|
91
|
+
r !== void 0 && /* @__PURE__ */ e("div", { className: "border-t pt-2 flex justify-between gap-4 font-medium", children: [
|
|
92
|
+
/* @__PURE__ */ a("span", { children: "Total APY" }),
|
|
93
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: [
|
|
94
|
+
r.toFixed(2),
|
|
69
95
|
"%"
|
|
70
96
|
] })
|
|
71
97
|
] }),
|
|
72
|
-
|
|
98
|
+
f !== void 0 && !u && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: [
|
|
73
99
|
"7d ago: ",
|
|
74
|
-
|
|
100
|
+
f.toFixed(2),
|
|
75
101
|
"%"
|
|
76
102
|
] }),
|
|
77
|
-
|
|
103
|
+
u && /* @__PURE__ */ a("div", { className: "text-xs text-muted-foreground", children: "Loading 7d data..." })
|
|
78
104
|
] }) })
|
|
79
105
|
] }) });
|
|
80
106
|
}
|
|
81
107
|
export {
|
|
82
|
-
|
|
108
|
+
F as PoolAPYTooltip
|
|
83
109
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { cva as
|
|
2
|
+
import { cva as u } from "class-variance-authority";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import { Col as
|
|
5
|
-
import { Grid as
|
|
4
|
+
import { Col as T } from "../layout/col/col.js";
|
|
5
|
+
import { Grid as G } from "../layout/grid/grid.js";
|
|
6
6
|
import { cn as s } from "../../utils/cn.js";
|
|
7
|
-
const
|
|
7
|
+
const B = u("w-full", {
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
10
|
sm: "text-xs",
|
|
@@ -15,20 +15,20 @@ const V = c("w-full", {
|
|
|
15
15
|
defaultVariants: {
|
|
16
16
|
size: "default"
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
19
|
-
({ className: e, size: t, cols: a = 12, gap:
|
|
20
|
-
|
|
18
|
+
}), V = r.forwardRef(
|
|
19
|
+
({ className: e, size: t, cols: a = 12, gap: d = 0, ...i }, n) => /* @__PURE__ */ l("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ l(
|
|
20
|
+
G,
|
|
21
21
|
{
|
|
22
22
|
ref: n,
|
|
23
23
|
cols: a,
|
|
24
|
-
gap:
|
|
25
|
-
className: s(
|
|
24
|
+
gap: d,
|
|
25
|
+
className: s(B({ size: t, className: e })),
|
|
26
26
|
...i
|
|
27
27
|
}
|
|
28
28
|
) })
|
|
29
29
|
);
|
|
30
|
-
|
|
31
|
-
const
|
|
30
|
+
V.displayName = "GridTable";
|
|
31
|
+
const C = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
34
|
ref: a,
|
|
@@ -43,8 +43,8 @@ const H = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
|
43
43
|
...t
|
|
44
44
|
}
|
|
45
45
|
));
|
|
46
|
-
|
|
47
|
-
const
|
|
46
|
+
C.displayName = "GridTableHeader";
|
|
47
|
+
const H = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
ref: a,
|
|
@@ -52,8 +52,8 @@ const R = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
|
52
52
|
...t
|
|
53
53
|
}
|
|
54
54
|
));
|
|
55
|
-
|
|
56
|
-
const
|
|
55
|
+
H.displayName = "GridTableBody";
|
|
56
|
+
const R = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
59
|
ref: a,
|
|
@@ -64,39 +64,39 @@ const D = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
|
64
64
|
...t
|
|
65
65
|
}
|
|
66
66
|
));
|
|
67
|
-
|
|
68
|
-
const
|
|
67
|
+
R.displayName = "GridTableFooter";
|
|
68
|
+
const D = r.forwardRef(
|
|
69
69
|
({
|
|
70
70
|
className: e,
|
|
71
71
|
cols: t,
|
|
72
72
|
gap: a = 0,
|
|
73
|
-
last:
|
|
73
|
+
last: d,
|
|
74
74
|
height: i,
|
|
75
75
|
hideValue: n,
|
|
76
|
-
noHover:
|
|
76
|
+
noHover: m,
|
|
77
77
|
noRound: b,
|
|
78
78
|
onRowClick: f,
|
|
79
|
-
style:
|
|
80
|
-
children:
|
|
81
|
-
...
|
|
82
|
-
},
|
|
83
|
-
const
|
|
84
|
-
(
|
|
85
|
-
!f ||
|
|
79
|
+
style: p,
|
|
80
|
+
children: g,
|
|
81
|
+
...y
|
|
82
|
+
}, x) => {
|
|
83
|
+
const c = typeof i == "number" ? `${i}px` : i, j = r.useCallback(
|
|
84
|
+
(o) => {
|
|
85
|
+
!f || o.target.closest("a, button, input, select, textarea, [role='button']") || f(o);
|
|
86
86
|
},
|
|
87
87
|
[f]
|
|
88
|
-
),
|
|
89
|
-
(
|
|
90
|
-
if (f && (
|
|
91
|
-
if (
|
|
88
|
+
), w = r.useCallback(
|
|
89
|
+
(o) => {
|
|
90
|
+
if (f && (o.key === "Enter" || o.key === " ")) {
|
|
91
|
+
if (o.preventDefault(), o.target.closest(
|
|
92
92
|
"a, button, input, select, textarea, [role='button']"
|
|
93
93
|
))
|
|
94
94
|
return;
|
|
95
|
-
f(
|
|
95
|
+
f(o);
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
[f]
|
|
99
|
-
),
|
|
99
|
+
), h = s(
|
|
100
100
|
"[&>*]:relative [&>*]:transition-colors data-[state=selected]:[&>*]:bg-muted",
|
|
101
101
|
// Bottom border via ::after with insets on first/last cells to avoid rounded corners
|
|
102
102
|
"md:[&>*]:after:absolute md:[&>*]:after:bottom-0 md:[&>*]:after:inset-x-0 md:[&>*]:after:h-px md:[&>*]:after:bg-border",
|
|
@@ -105,14 +105,14 @@ const B = r.forwardRef(
|
|
|
105
105
|
"md:[&>*:last-child]:after:right-3"
|
|
106
106
|
],
|
|
107
107
|
// Hover background with optional rounded corners on first and last cells (unless noHover)
|
|
108
|
-
!
|
|
108
|
+
!m && [
|
|
109
109
|
"[&>*]:z-0",
|
|
110
110
|
"[&>*]:before:absolute [&>*]:before:inset-0 [&>*]:before:-z-10 [&>*]:before:bg-muted/50 [&>*]:before:opacity-0 [&>*]:before:transition-opacity",
|
|
111
111
|
"hover:[&>*]:before:opacity-100",
|
|
112
112
|
// Only add rounded corners if noRound is not set
|
|
113
113
|
!b && "[&>*:first-child]:before:rounded-l-lg [&>*:last-child]:before:rounded-r-lg"
|
|
114
114
|
],
|
|
115
|
-
|
|
115
|
+
d && "md:[&>*]:after:hidden",
|
|
116
116
|
n && "[&>*]:opacity-0"
|
|
117
117
|
);
|
|
118
118
|
return f ? (
|
|
@@ -120,40 +120,40 @@ const B = r.forwardRef(
|
|
|
120
120
|
/* @__PURE__ */ l(
|
|
121
121
|
"div",
|
|
122
122
|
{
|
|
123
|
-
ref:
|
|
123
|
+
ref: x,
|
|
124
124
|
role: "row",
|
|
125
125
|
tabIndex: 0,
|
|
126
126
|
className: s(
|
|
127
127
|
// Use subgrid to inherit parent grid columns
|
|
128
128
|
"grid grid-cols-subgrid col-span-full",
|
|
129
|
-
|
|
129
|
+
h,
|
|
130
130
|
"cursor-pointer",
|
|
131
131
|
e
|
|
132
132
|
),
|
|
133
|
-
style: { ...
|
|
134
|
-
onClick:
|
|
135
|
-
onKeyDown:
|
|
136
|
-
...
|
|
137
|
-
children:
|
|
133
|
+
style: { ...p, ...c ? { height: c } : {} },
|
|
134
|
+
onClick: j,
|
|
135
|
+
onKeyDown: w,
|
|
136
|
+
...y,
|
|
137
|
+
children: g
|
|
138
138
|
}
|
|
139
139
|
)
|
|
140
140
|
) : /* @__PURE__ */ l(
|
|
141
|
-
|
|
141
|
+
G,
|
|
142
142
|
{
|
|
143
|
-
ref:
|
|
143
|
+
ref: x,
|
|
144
144
|
cols: t,
|
|
145
145
|
gap: a,
|
|
146
|
-
className: s("contents",
|
|
147
|
-
style: { ...
|
|
148
|
-
...
|
|
149
|
-
children:
|
|
146
|
+
className: s("contents", h, e),
|
|
147
|
+
style: { ...p, ...c ? { height: c } : {} },
|
|
148
|
+
...y,
|
|
149
|
+
children: g
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
);
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
"flex items-center justify-
|
|
154
|
+
D.displayName = "GridTableRow";
|
|
155
|
+
const A = u(
|
|
156
|
+
"flex items-center justify-start text-left align-middle font-medium text-muted-foreground !bg-transparent",
|
|
157
157
|
{
|
|
158
158
|
variants: {
|
|
159
159
|
size: {
|
|
@@ -165,26 +165,34 @@ const F = c(
|
|
|
165
165
|
start: "justify-start",
|
|
166
166
|
center: "justify-center",
|
|
167
167
|
end: "justify-end"
|
|
168
|
+
},
|
|
169
|
+
gapBefore: {
|
|
170
|
+
sm: "pl-5",
|
|
171
|
+
md: "pl-10",
|
|
172
|
+
none: ""
|
|
168
173
|
}
|
|
169
174
|
},
|
|
170
175
|
defaultVariants: {
|
|
171
176
|
size: "default",
|
|
172
|
-
justify: "start"
|
|
177
|
+
justify: "start",
|
|
178
|
+
gapBefore: "none"
|
|
173
179
|
}
|
|
174
180
|
}
|
|
175
|
-
),
|
|
176
|
-
({ className: e, size: t, span: a = 1, justify:
|
|
177
|
-
|
|
181
|
+
), N = r.forwardRef(
|
|
182
|
+
({ className: e, size: t, span: a = 1, justify: d = "start", gapBefore: i, ...n }, m) => /* @__PURE__ */ l(
|
|
183
|
+
T,
|
|
178
184
|
{
|
|
179
|
-
ref:
|
|
185
|
+
ref: m,
|
|
180
186
|
span: a,
|
|
181
|
-
className: s(
|
|
182
|
-
|
|
187
|
+
className: s(
|
|
188
|
+
A({ size: t, justify: d, gapBefore: i, className: e })
|
|
189
|
+
),
|
|
190
|
+
...n
|
|
183
191
|
}
|
|
184
192
|
)
|
|
185
193
|
);
|
|
186
|
-
|
|
187
|
-
const
|
|
194
|
+
N.displayName = "GridTableHead";
|
|
195
|
+
const F = u("flex items-center align-middle", {
|
|
188
196
|
variants: {
|
|
189
197
|
size: {
|
|
190
198
|
sm: "p-2",
|
|
@@ -192,27 +200,36 @@ const K = c("align-middle", {
|
|
|
192
200
|
lg: "p-6"
|
|
193
201
|
},
|
|
194
202
|
textAlign: {
|
|
195
|
-
left: "text-left",
|
|
196
|
-
center: "text-center",
|
|
197
|
-
right: "text-right"
|
|
203
|
+
left: "text-left justify-start",
|
|
204
|
+
center: "text-center justify-center",
|
|
205
|
+
right: "text-right justify-end"
|
|
206
|
+
},
|
|
207
|
+
gapBefore: {
|
|
208
|
+
sm: "pl-5",
|
|
209
|
+
md: "pl-10",
|
|
210
|
+
none: ""
|
|
198
211
|
}
|
|
199
212
|
},
|
|
200
213
|
defaultVariants: {
|
|
201
|
-
size: "default"
|
|
214
|
+
size: "default",
|
|
215
|
+
textAlign: "left",
|
|
216
|
+
gapBefore: "none"
|
|
202
217
|
}
|
|
203
|
-
}),
|
|
204
|
-
({ className: e, size: t, span: a = 1, textAlign:
|
|
205
|
-
|
|
218
|
+
}), v = r.forwardRef(
|
|
219
|
+
({ className: e, size: t, span: a = 1, textAlign: d, gapBefore: i, ...n }, m) => /* @__PURE__ */ l(
|
|
220
|
+
T,
|
|
206
221
|
{
|
|
207
|
-
ref:
|
|
222
|
+
ref: m,
|
|
208
223
|
span: a,
|
|
209
|
-
className: s(
|
|
210
|
-
|
|
224
|
+
className: s(
|
|
225
|
+
F({ size: t, textAlign: d, gapBefore: i, className: e })
|
|
226
|
+
),
|
|
227
|
+
...n
|
|
211
228
|
}
|
|
212
229
|
)
|
|
213
230
|
);
|
|
214
|
-
|
|
215
|
-
const
|
|
231
|
+
v.displayName = "GridTableCell";
|
|
232
|
+
const K = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
216
233
|
"div",
|
|
217
234
|
{
|
|
218
235
|
ref: a,
|
|
@@ -223,20 +240,20 @@ const A = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
|
|
|
223
240
|
...t
|
|
224
241
|
}
|
|
225
242
|
));
|
|
226
|
-
|
|
227
|
-
const q =
|
|
243
|
+
K.displayName = "GridTableCaption";
|
|
244
|
+
const q = v, J = N;
|
|
228
245
|
export {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
246
|
+
V as GridTable,
|
|
247
|
+
H as GridTableBody,
|
|
248
|
+
K as GridTableCaption,
|
|
249
|
+
v as GridTableCell,
|
|
250
|
+
R as GridTableFooter,
|
|
251
|
+
N as GridTableHead,
|
|
252
|
+
C as GridTableHeader,
|
|
253
|
+
D as GridTableRow,
|
|
237
254
|
q as Td,
|
|
238
255
|
J as Th,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
256
|
+
F as gridTableCellVariants,
|
|
257
|
+
A as gridTableHeadVariants,
|
|
258
|
+
B as gridTableVariants
|
|
242
259
|
};
|
|
@@ -10,7 +10,7 @@ function h({
|
|
|
10
10
|
...l
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ i("div", { className: t("flex flex-col gap-1", o), ...l, children: [
|
|
13
|
-
s && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground font-medium", children: s }),
|
|
13
|
+
s && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground font-medium uppercase", children: s }),
|
|
14
14
|
/* @__PURE__ */ e("div", { className: "text-sm", children: r })
|
|
15
15
|
] });
|
|
16
16
|
}
|
|
@@ -21,10 +21,10 @@ function S({
|
|
|
21
21
|
columnsMd: l,
|
|
22
22
|
columns: a,
|
|
23
23
|
className: n,
|
|
24
|
-
children:
|
|
25
|
-
...
|
|
24
|
+
children: p,
|
|
25
|
+
...x
|
|
26
26
|
}) {
|
|
27
|
-
const
|
|
27
|
+
const c = o, m = r ?? c, d = l ?? m, g = a ?? d;
|
|
28
28
|
return /* @__PURE__ */ i(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
@@ -32,7 +32,7 @@ function S({
|
|
|
32
32
|
"flex flex-col gap-3 py-3 px-0 md:px-4 border-b border-border",
|
|
33
33
|
n
|
|
34
34
|
),
|
|
35
|
-
...
|
|
35
|
+
...x,
|
|
36
36
|
children: [
|
|
37
37
|
s && /* @__PURE__ */ e("div", { className: "font-medium mb-2", children: s }),
|
|
38
38
|
/* @__PURE__ */ e(
|
|
@@ -40,12 +40,12 @@ function S({
|
|
|
40
40
|
{
|
|
41
41
|
className: "grid gap-2 md:gap-4 table-sm-grid",
|
|
42
42
|
style: {
|
|
43
|
-
"--grid-cols-xs":
|
|
44
|
-
"--grid-cols-sm":
|
|
43
|
+
"--grid-cols-xs": c,
|
|
44
|
+
"--grid-cols-sm": m,
|
|
45
45
|
"--grid-cols-md": d,
|
|
46
|
-
"--grid-cols-lg":
|
|
46
|
+
"--grid-cols-lg": g
|
|
47
47
|
},
|
|
48
|
-
children:
|
|
48
|
+
children: p
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
]
|
|
@@ -3,7 +3,7 @@ import { cva as d } from "class-variance-authority";
|
|
|
3
3
|
import { ArrowDown as u } from "lucide-react";
|
|
4
4
|
import * as l from "react";
|
|
5
5
|
import { Button as g } from "../buttons/button/button.js";
|
|
6
|
-
import { TooltipProvider as
|
|
6
|
+
import { TooltipProvider as x, Tooltip as h, TooltipTrigger as T, TooltipContent as N } from "../tooltip/tooltip.js";
|
|
7
7
|
import { cn as o } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
9
|
import "@gearbox-protocol/sdk";
|
|
@@ -80,7 +80,7 @@ const C = l.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ r(
|
|
|
80
80
|
));
|
|
81
81
|
C.displayName = "TableRow";
|
|
82
82
|
const H = d(
|
|
83
|
-
"border-b bg-muted/50 text-left align-middle font-medium text-muted-foreground border-input",
|
|
83
|
+
"border-b bg-muted/50 text-left align-middle font-medium text-muted-foreground border-input flex items-center",
|
|
84
84
|
{
|
|
85
85
|
variants: {
|
|
86
86
|
size: {
|
|
@@ -104,7 +104,7 @@ const H = d(
|
|
|
104
104
|
)
|
|
105
105
|
);
|
|
106
106
|
n.displayName = "TableHead";
|
|
107
|
-
const V = d("align-middle", {
|
|
107
|
+
const V = d("align-middle flex items-center", {
|
|
108
108
|
variants: {
|
|
109
109
|
size: {
|
|
110
110
|
sm: "p-1",
|
|
@@ -145,7 +145,7 @@ const S = l.forwardRef(
|
|
|
145
145
|
children: m,
|
|
146
146
|
className: b,
|
|
147
147
|
...c
|
|
148
|
-
}, p) => /* @__PURE__ */ r(n, { ref: p, className: b, ...c, children: /* @__PURE__ */ r(
|
|
148
|
+
}, p) => /* @__PURE__ */ r(n, { ref: p, className: b, ...c, children: /* @__PURE__ */ r(x, { children: /* @__PURE__ */ i(h, { delayDuration: 200, children: [
|
|
149
149
|
/* @__PURE__ */ r(T, { asChild: !0, children: /* @__PURE__ */ i(
|
|
150
150
|
"div",
|
|
151
151
|
{
|