@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.
Files changed (26) hide show
  1. package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
  2. package/dist/cjs/components/grid-td-cell/grid-td-cell.cjs +1 -1
  3. package/dist/cjs/components/layout/footer/footer.cjs +1 -1
  4. package/dist/cjs/components/layout/header/header.cjs +1 -1
  5. package/dist/cjs/components/network-icon/network-icon.cjs +1 -1
  6. package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
  7. package/dist/cjs/components/table/grid-table.cjs +1 -1
  8. package/dist/cjs/components/table/table-sm.cjs +1 -1
  9. package/dist/cjs/components/table/table.cjs +1 -1
  10. package/dist/esm/components/assets-list-cell/assets-list-cell.js +99 -24
  11. package/dist/esm/components/grid-td-cell/grid-td-cell.js +5 -5
  12. package/dist/esm/components/layout/footer/footer.js +1 -1
  13. package/dist/esm/components/layout/header/header.js +16 -16
  14. package/dist/esm/components/network-icon/network-icon.js +58 -38
  15. package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +72 -46
  16. package/dist/esm/components/table/grid-table.js +101 -84
  17. package/dist/esm/components/table/table-sm.js +9 -9
  18. package/dist/esm/components/table/table.js +4 -4
  19. package/dist/globals.css +1 -1
  20. package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +70 -6
  21. package/dist/types/components/network-icon/network-icon.d.ts +8 -1
  22. package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +27 -1
  23. package/dist/types/components/table/grid-table.d.ts +4 -0
  24. package/dist/types/components/typed-intl/index.d.ts +0 -2
  25. package/dist/types/utils/network-icons.d.ts +3 -1
  26. package/package.json +6 -6
@@ -1,83 +1,109 @@
1
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import { TooltipProvider as f, Tooltip as v, TooltipTrigger as y, TooltipContent as g } from "../tooltip/tooltip.js";
3
- function w({
4
- children: o,
5
- totalAPY: s,
6
- extraAPYTotal: i,
7
- loading7DAgo: c,
8
- loading: h,
9
- baseAPY: d,
10
- extraAPY: a,
11
- apy7DAgo: l,
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: u
15
+ className: h
14
16
  }) {
15
- if (!(s !== void 0 || d?.length || a?.length) || h)
16
- return /* @__PURE__ */ t("span", { className: u, children: o });
17
- const m = typeof l == "object" ? l?.value : l;
18
- return /* @__PURE__ */ t(f, { children: /* @__PURE__ */ n(v, { children: [
19
- /* @__PURE__ */ t(y, { asChild: !0, children: /* @__PURE__ */ t("span", { className: u, children: o }) }),
20
- /* @__PURE__ */ t(g, { className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-2 text-sm", children: [
21
- d && d.length > 0 && /* @__PURE__ */ n("div", { children: [
22
- /* @__PURE__ */ t("div", { className: "font-medium text-muted-foreground mb-1", children: "Base APY" }),
23
- d.map((e, r) => /* @__PURE__ */ n(
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__ */ t("span", { children: e.type === "supplyAPY" ? "Supply" : e.type || "Base" }),
29
- /* @__PURE__ */ n("span", { className: "tabular-nums", children: [
30
- e.apy.toFixed(2),
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-${e.type || r}-${e.apy}`
37
+ `base-${n.type || d}-${n.apy}`
36
38
  ))
37
39
  ] }),
38
- a && a.length > 0 && /* @__PURE__ */ n("div", { children: [
39
- /* @__PURE__ */ t("div", { className: "font-medium text-muted-foreground mb-1", children: "Rewards" }),
40
- a.map((e, r) => {
41
- const x = e.token && p ? p[e.token]?.symbol : e.token;
42
- return /* @__PURE__ */ n(
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__ */ t("span", { children: x || e.type || "Reward" }),
48
- /* @__PURE__ */ n("span", { className: "tabular-nums", children: [
49
- e.apy.toFixed(2),
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-${e.token || r}-${e.apy}`
56
+ `extra-${n.token || d}-${n.apy}`
55
57
  );
56
58
  }),
57
- i !== void 0 && /* @__PURE__ */ n("div", { className: "flex justify-between gap-4 text-muted-foreground", children: [
58
- /* @__PURE__ */ t("span", { children: "Total Extra" }),
59
- /* @__PURE__ */ n("span", { className: "tabular-nums", children: [
60
- i.toFixed(2),
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
- s !== void 0 && /* @__PURE__ */ n("div", { className: "border-t pt-2 flex justify-between gap-4 font-medium", children: [
66
- /* @__PURE__ */ t("span", { children: "Total APY" }),
67
- /* @__PURE__ */ n("span", { className: "tabular-nums", children: [
68
- s.toFixed(2),
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
- m !== void 0 && !c && /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
98
+ f !== void 0 && !u && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: [
73
99
  "7d ago: ",
74
- m.toFixed(2),
100
+ f.toFixed(2),
75
101
  "%"
76
102
  ] }),
77
- c && /* @__PURE__ */ t("div", { className: "text-xs text-muted-foreground", children: "Loading 7d data..." })
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
- w as PoolAPYTooltip
108
+ F as PoolAPYTooltip
83
109
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { cva as c } from "class-variance-authority";
2
+ import { cva as u } from "class-variance-authority";
3
3
  import * as r from "react";
4
- import { Col as h } from "../layout/col/col.js";
5
- import { Grid as T } from "../layout/grid/grid.js";
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 V = c("w-full", {
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
- }), C = r.forwardRef(
19
- ({ className: e, size: t, cols: a = 12, gap: o = 0, ...i }, n) => /* @__PURE__ */ l("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ l(
20
- T,
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: o,
25
- className: s(V({ size: t, className: e })),
24
+ gap: d,
25
+ className: s(B({ size: t, className: e })),
26
26
  ...i
27
27
  }
28
28
  ) })
29
29
  );
30
- C.displayName = "GridTable";
31
- const H = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
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
- H.displayName = "GridTableHeader";
47
- const R = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
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
- R.displayName = "GridTableBody";
56
- const D = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
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
- D.displayName = "GridTableFooter";
68
- const B = r.forwardRef(
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: o,
73
+ last: d,
74
74
  height: i,
75
75
  hideValue: n,
76
- noHover: v,
76
+ noHover: m,
77
77
  noRound: b,
78
78
  onRowClick: f,
79
- style: u,
80
- children: p,
81
- ...g
82
- }, y) => {
83
- const m = typeof i == "number" ? `${i}px` : i, w = r.useCallback(
84
- (d) => {
85
- !f || d.target.closest("a, button, input, select, textarea, [role='button']") || f(d);
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
- ), z = r.useCallback(
89
- (d) => {
90
- if (f && (d.key === "Enter" || d.key === " ")) {
91
- if (d.preventDefault(), d.target.closest(
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(d);
95
+ f(o);
96
96
  }
97
97
  },
98
98
  [f]
99
- ), x = s(
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
- !v && [
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
- o && "md:[&>*]:after:hidden",
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: y,
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
- x,
129
+ h,
130
130
  "cursor-pointer",
131
131
  e
132
132
  ),
133
- style: { ...u, ...m ? { height: m } : {} },
134
- onClick: w,
135
- onKeyDown: z,
136
- ...g,
137
- children: p
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
- T,
141
+ G,
142
142
  {
143
- ref: y,
143
+ ref: x,
144
144
  cols: t,
145
145
  gap: a,
146
- className: s("contents", x, e),
147
- style: { ...u, ...m ? { height: m } : {} },
148
- ...g,
149
- children: p
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
- B.displayName = "GridTableRow";
155
- const F = c(
156
- "flex items-center justify-startborder-b text-left align-middle font-medium text-muted-foreground !bg-transparent",
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
- ), G = r.forwardRef(
176
- ({ className: e, size: t, span: a = 1, justify: o = "start", ...i }, n) => /* @__PURE__ */ l(
177
- h,
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: n,
185
+ ref: m,
180
186
  span: a,
181
- className: s(F({ size: t, justify: o, className: e })),
182
- ...i
187
+ className: s(
188
+ A({ size: t, justify: d, gapBefore: i, className: e })
189
+ ),
190
+ ...n
183
191
  }
184
192
  )
185
193
  );
186
- G.displayName = "GridTableHead";
187
- const K = c("align-middle", {
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
- }), N = r.forwardRef(
204
- ({ className: e, size: t, span: a = 1, textAlign: o, ...i }, n) => /* @__PURE__ */ l(
205
- h,
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: n,
222
+ ref: m,
208
223
  span: a,
209
- className: s(K({ size: t, textAlign: o, className: e })),
210
- ...i
224
+ className: s(
225
+ F({ size: t, textAlign: d, gapBefore: i, className: e })
226
+ ),
227
+ ...n
211
228
  }
212
229
  )
213
230
  );
214
- N.displayName = "GridTableCell";
215
- const A = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l(
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
- A.displayName = "GridTableCaption";
227
- const q = N, J = G;
243
+ K.displayName = "GridTableCaption";
244
+ const q = v, J = N;
228
245
  export {
229
- C as GridTable,
230
- R as GridTableBody,
231
- A as GridTableCaption,
232
- N as GridTableCell,
233
- D as GridTableFooter,
234
- G as GridTableHead,
235
- H as GridTableHeader,
236
- B as GridTableRow,
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
- K as gridTableCellVariants,
240
- F as gridTableHeadVariants,
241
- V as gridTableVariants
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: x,
25
- ...g
24
+ children: p,
25
+ ...x
26
26
  }) {
27
- const m = o, c = r ?? m, d = l ?? c, p = a ?? d;
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
- ...g,
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": m,
44
- "--grid-cols-sm": c,
43
+ "--grid-cols-xs": c,
44
+ "--grid-cols-sm": m,
45
45
  "--grid-cols-md": d,
46
- "--grid-cols-lg": p
46
+ "--grid-cols-lg": g
47
47
  },
48
- children: x
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 h, Tooltip as x, TooltipTrigger as T, TooltipContent as N } from "../tooltip/tooltip.js";
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(h, { children: /* @__PURE__ */ i(x, { delayDuration: 200, children: [
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
  {