@gearbox-protocol/ui-kit 4.0.0-next.21 → 4.0.0-next.22

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("react");require("@gearbox-protocol/sdk");require("clsx");require("tailwind-merge");require("sonner");const S=require("../../../utils/format-money.cjs");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");require("../../points-icon/points-icon.cjs");const f=require("../../base/values/scalars.cjs");require("../../badge/badge.cjs");require("../../badge/chip.cjs");const o=require("../../typed-intl/index.cjs"),C=require("../../collateral-allocation-tooltip/allocation-wheel.cjs");require("@fortawesome/free-solid-svg-icons");require("../../icons/fa-icon.cjs");require("../../token-icon/token-icon.cjs");require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");const y=require("../../name-cell/name-cell.cjs"),b=require("../../short-string/short-string.cjs");require("react-intl");require("../../buttons/button/button.cjs");const t=require("../../table/grid-table.cjs");require("../../skeleton/skeleton.cjs");require("../../table/table.cjs");const i=require("../../table/table-sm.cjs"),A=require("../../token-symbol/token-symbol.cjs"),q=require("../../token-template/token-template.cjs"),z=require("../../vertical-indicator/vertical-indicator.cjs"),a=require("./constants.cjs");function k(s,l){if(l!==0n)return Number(s*10000n/l)}function N(s,l){return l<=0n||s<=0n?0:Number(s*10000n/l)/1e4}function P({poolName:s,asset:l,underlyingToken:c,last:j,isCompact:u,totalUsed:g,colorIndex:_}){const{token:m,limit:n,used:r}=l,v=u?40:21,d=N(r.value,g),p=()=>e.jsx(y.NameCell,{leading:e.jsx(A.TokenSymbol,{size:32,token:m}),title:e.jsx(b.ShortString,{maxLength:v,children:m.name}),subtitle:e.jsx(b.ShortString,{maxLength:20,children:s})}),x=()=>e.jsxs("div",{className:"flex items-center justify-end gap-2","data-testid":a.PoolAssetsTableTest.exposureCell,children:[e.jsx(C.AllocationWheel,{share:d,colorIndex:_,idle:d===0}),e.jsx(z.VerticalIndicator,{value:e.jsx(q.TokenTemplate,{decimalPartLength:2,precision:2,showSymbol:!1,token:c,value:r.value}),valueDescription:r.valueUsd===null?"—":S.formatMoney(r.valueUsd)})]}),h=()=>e.jsx("div",{"data-testid":a.PoolAssetsTableTest.capCell,children:n.value===0n?e.jsx("span",{children:"—"}):e.jsx(q.TokenTemplate,{decimalPartLength:2,precision:2,showSymbol:!1,token:c,value:n.value})}),T=()=>e.jsx("div",{"data-testid":a.PoolAssetsTableTest.capUtilizationCell,children:e.jsx(f.UtilizationValue,{data:k(r.value,n.value)})});return e.jsx(t.GridTableRow,{last:j,height:"auto",className:"cursor-default",style:{minHeight:"75px"},children:u?e.jsx(t.GridTableCell,{className:"px-3 py-0!",size:"sm",span:"full",children:e.jsxs(i.TableLineSm,{className:"w-full",columns:3,columnsXs:3,title:p(),children:[e.jsx(i.TableCellSm,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.poolAssetsTable.exposure"}),children:x()}),e.jsx(i.TableCellSm,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.poolAssetsTable.cap"}),children:h()}),e.jsx(i.TableCellSm,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.poolAssetsTable.capUtilization"}),children:T()})]})}):e.jsxs(e.Fragment,{children:[e.jsx(t.GridTableCell,{className:"pl-4",size:"sm",textAlign:"left",children:p()}),e.jsx(t.GridTableCell,{size:"sm",textAlign:"right",children:x()}),e.jsx(t.GridTableCell,{size:"sm",textAlign:"right",children:h()}),e.jsx(t.GridTableCell,{className:"pr-4",size:"sm",textAlign:"right",children:T()})]})})}exports.PoolAssetsTableRow=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("react");require("@gearbox-protocol/sdk");require("clsx");require("tailwind-merge");require("sonner");const v=require("../../../utils/format-money.cjs");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");require("../../points-icon/points-icon.cjs");const S=require("../../base/values/scalars.cjs");require("../../badge/badge.cjs");require("../../badge/chip.cjs");const a=require("../../typed-intl/index.cjs"),f=require("../../collateral-allocation-tooltip/allocation-wheel.cjs");require("@fortawesome/free-solid-svg-icons");require("../../icons/fa-icon.cjs");require("../../token-icon/token-icon.cjs");require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");const y=require("../../name-cell/name-cell.cjs"),b=require("../../short-string/short-string.cjs");require("react-intl");require("../../buttons/button/button.cjs");const t=require("../../table/grid-table.cjs");require("../../skeleton/skeleton.cjs");require("../../table/table.cjs");const i=require("../../table/table-sm.cjs"),C=require("../../token-symbol/token-symbol.cjs"),T=require("../../token-template/token-template.cjs"),A=require("../../vertical-indicator/vertical-indicator.cjs"),c=require("./constants.cjs");function z(s,l){if(l!==0n)return Number(s*10000n/l)}function k(s,l){return l<=0n||s<=0n?0:Number(s*10000n/l)/1e4}function N({asset:s,underlyingToken:l,last:q,isCompact:u,totalUsed:j,colorIndex:g}){const{token:n,limit:o,used:r}=s,_=u?40:21,m=k(r.value,j),d=()=>e.jsx(y.NameCell,{leading:e.jsx(C.TokenSymbol,{size:32,token:n}),title:e.jsx(b.ShortString,{maxLength:_,children:n.symbol}),subtitle:e.jsx(b.ShortString,{maxLength:20,children:n.name})}),p=()=>e.jsxs("div",{className:"flex items-center justify-end gap-2","data-testid":c.PoolAssetsTableTest.exposureCell,children:[e.jsx(f.AllocationWheel,{share:m,colorIndex:g,idle:m===0}),e.jsx(A.VerticalIndicator,{value:e.jsx(T.TokenTemplate,{decimalPartLength:2,precision:2,showSymbol:!1,token:l,value:r.value}),valueDescription:r.valueUsd===null?"—":v.formatMoney(r.valueUsd)})]}),x=()=>e.jsx("div",{"data-testid":c.PoolAssetsTableTest.capCell,children:o.value===0n?e.jsx("span",{children:"—"}):e.jsx(T.TokenTemplate,{decimalPartLength:2,precision:2,showSymbol:!1,token:l,value:o.value})}),h=()=>e.jsx("div",{"data-testid":c.PoolAssetsTableTest.capUtilizationCell,children:e.jsx(S.UtilizationValue,{data:z(r.value,o.value)})});return e.jsx(t.GridTableRow,{last:q,height:"auto",className:"cursor-default",style:{minHeight:"75px"},children:u?e.jsx(t.GridTableCell,{className:"px-3 py-0!",size:"sm",span:"full",children:e.jsxs(i.TableLineSm,{className:"w-full",columns:3,columnsXs:3,title:d(),children:[e.jsx(i.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.poolAssetsTable.exposure"}),children:p()}),e.jsx(i.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.poolAssetsTable.cap"}),children:x()}),e.jsx(i.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.poolAssetsTable.capUtilization"}),children:h()})]})}):e.jsxs(e.Fragment,{children:[e.jsx(t.GridTableCell,{className:"pl-4",size:"sm",textAlign:"left",children:d()}),e.jsx(t.GridTableCell,{size:"sm",textAlign:"right",children:p()}),e.jsx(t.GridTableCell,{size:"sm",textAlign:"right",children:x()}),e.jsx(t.GridTableCell,{className:"pr-4",size:"sm",textAlign:"right",children:h()})]})})}exports.PoolAssetsTableRow=N;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),q=require("../../cards/card/card.cjs");require("clsx");require("tailwind-merge");require("react");require("@fortawesome/free-solid-svg-icons");require("../../icons/fa-icon.cjs");require("@gearbox-protocol/sdk");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");require("react-intl");require("../../buttons/button/button.cjs");const i=require("../../table/grid-table.cjs");require("../../skeleton/skeleton.cjs");require("../../table/table.cjs");const p=require("../../../hooks/use-media-query.cjs"),T=require("../../../hooks/use-observed-width-key.cjs"),m=require("./constants.cjs"),_=require("./pool-assets-table-head.cjs"),h=require("./pool-assets-table-row.cjs"),A=680;function x({list:r,poolName:n,sort:a,underlyingToken:c}){const u=p.useIsMobile(),{ref:d,widthKey:l}=T.useObservedWidthKey(),t=l>0?l<A:u,b=r.reduce((s,o)=>s+o.used.value,0n);return e.jsx(q.Card,{ref:d,className:"overflow-hidden rounded-lg p-2",children:e.jsxs(i.GridTable,{cols:t?"1fr":"1fr max-content max-content minmax(0,1fr)","data-testid":m.PoolAssetsTableTest.root,gap:0,size:"lg",wrapperClassName:"overflow-visible",children:[!t&&e.jsx(i.GridTableHeader,{children:e.jsx(_.PoolAssetsTableHead,{sort:a})}),e.jsx(i.GridTableBody,{children:r.map((s,o)=>e.jsx(h.PoolAssetsTableRow,{asset:s,poolName:n,underlyingToken:c,last:o===r.length-1,isCompact:t,totalUsed:b,colorIndex:o},s.token.address))})]})})}exports.PoolAssetsTable=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("../../cards/card/card.cjs");require("clsx");require("tailwind-merge");require("react");require("@fortawesome/free-solid-svg-icons");require("../../icons/fa-icon.cjs");require("@gearbox-protocol/sdk");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");require("react-intl");require("../../buttons/button/button.cjs");const i=require("../../table/grid-table.cjs");require("../../skeleton/skeleton.cjs");require("../../table/table.cjs");const q=require("../../../hooks/use-media-query.cjs"),p=require("../../../hooks/use-observed-width-key.cjs"),T=require("./constants.cjs"),m=require("./pool-assets-table-head.cjs"),_=require("./pool-assets-table-row.cjs"),h=680;function A({list:r,sort:n,underlyingToken:a}){const c=q.useIsMobile(),{ref:u,widthKey:l}=p.useObservedWidthKey(),t=l>0?l<h:c,d=r.reduce((s,o)=>s+o.used.value,0n);return e.jsx(b.Card,{ref:u,className:"overflow-hidden rounded-lg p-2",children:e.jsxs(i.GridTable,{cols:t?"1fr":"1fr max-content max-content minmax(0,1fr)","data-testid":T.PoolAssetsTableTest.root,gap:0,size:"lg",wrapperClassName:"overflow-visible",children:[!t&&e.jsx(i.GridTableHeader,{children:e.jsx(m.PoolAssetsTableHead,{sort:n})}),e.jsx(i.GridTableBody,{children:r.map((s,o)=>e.jsx(_.PoolAssetsTableRow,{asset:s,underlyingToken:a,last:o===r.length-1,isCompact:t,totalUsed:d,colorIndex:o},s.token.address))})]})})}exports.PoolAssetsTable=A;
@@ -1,148 +1,147 @@
1
- import { jsx as e, jsxs as s, Fragment as C } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as m, Fragment as N } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import "@gearbox-protocol/sdk";
4
4
  import "clsx";
5
5
  import "tailwind-merge";
6
6
  import "sonner";
7
- import { formatMoney as S } from "../../../utils/format-money.js";
7
+ import { formatMoney as y } from "../../../utils/format-money.js";
8
8
  import "@gearbox-protocol/sdk/common-utils";
9
9
  import "luxon";
10
10
  import "../../../utils/z-index.js";
11
11
  import "../../points-icon/points-icon.js";
12
- import { UtilizationValue as y } from "../../base/values/scalars.js";
12
+ import { UtilizationValue as C } from "../../base/values/scalars.js";
13
13
  import "../../badge/badge.js";
14
14
  import "../../badge/chip.js";
15
- import { FormattedMessageTyped as m } from "../../typed-intl/index.js";
16
- import { AllocationWheel as L } from "../../collateral-allocation-tooltip/allocation-wheel.js";
15
+ import { FormattedMessageTyped as a } from "../../typed-intl/index.js";
16
+ import { AllocationWheel as S } from "../../collateral-allocation-tooltip/allocation-wheel.js";
17
17
  import "@fortawesome/free-solid-svg-icons";
18
18
  import "../../icons/fa-icon.js";
19
19
  import "../../token-icon/token-icon.js";
20
20
  import "../../tooltip/simple-tooltip.js";
21
21
  import "../../tooltip/tooltip.js";
22
- import { NameCell as U } from "../../name-cell/name-cell.js";
23
- import { ShortString as x } from "../../short-string/short-string.js";
22
+ import { NameCell as L } from "../../name-cell/name-cell.js";
23
+ import { ShortString as b } from "../../short-string/short-string.js";
24
24
  import "react-intl";
25
25
  import "../../buttons/button/button.js";
26
- import { GridTableRow as k, GridTableCell as o } from "../../table/grid-table.js";
26
+ import { GridTableRow as U, GridTableCell as o } from "../../table/grid-table.js";
27
27
  import "../../skeleton/skeleton.js";
28
28
  import "../../table/table.js";
29
- import { TableLineSm as w, TableCellSm as a } from "../../table/table-sm.js";
30
- import { TokenSymbol as I } from "../../token-symbol/token-symbol.js";
31
- import { TokenTemplate as b } from "../../token-template/token-template.js";
32
- import { VerticalIndicator as P } from "../../vertical-indicator/vertical-indicator.js";
33
- import { PoolAssetsTableTest as n } from "./constants.js";
34
- function j(i, t) {
29
+ import { TableLineSm as k, TableCellSm as n } from "../../table/table-sm.js";
30
+ import { TokenSymbol as w } from "../../token-symbol/token-symbol.js";
31
+ import { TokenTemplate as v } from "../../token-template/token-template.js";
32
+ import { VerticalIndicator as I } from "../../vertical-indicator/vertical-indicator.js";
33
+ import { PoolAssetsTableTest as p } from "./constants.js";
34
+ function P(i, t) {
35
35
  if (t !== 0n)
36
36
  return Number(i * 10000n / t);
37
37
  }
38
- function B(i, t) {
38
+ function j(i, t) {
39
39
  return t <= 0n || i <= 0n ? 0 : Number(i * 10000n / t) / 1e4;
40
40
  }
41
- function he({
42
- poolName: i,
43
- asset: t,
44
- underlyingToken: p,
45
- last: T,
41
+ function ue({
42
+ asset: i,
43
+ underlyingToken: t,
44
+ last: x,
46
45
  isCompact: c,
47
- totalUsed: z,
48
- colorIndex: A
46
+ totalUsed: T,
47
+ colorIndex: z
49
48
  }) {
50
- const { token: d, limit: r, used: l } = t, N = c ? 40 : 21, u = B(l.value, z), h = () => /* @__PURE__ */ e(
51
- U,
49
+ const { token: r, limit: s, used: l } = i, A = c ? 40 : 21, d = j(l.value, T), u = () => /* @__PURE__ */ e(
50
+ L,
52
51
  {
53
- leading: /* @__PURE__ */ e(I, { size: 32, token: d }),
54
- title: /* @__PURE__ */ e(x, { maxLength: N, children: d.name }),
55
- subtitle: /* @__PURE__ */ e(x, { maxLength: 20, children: i })
52
+ leading: /* @__PURE__ */ e(w, { size: 32, token: r }),
53
+ title: /* @__PURE__ */ e(b, { maxLength: A, children: r.symbol }),
54
+ subtitle: /* @__PURE__ */ e(b, { maxLength: 20, children: r.name })
56
55
  }
57
- ), f = () => /* @__PURE__ */ s(
56
+ ), h = () => /* @__PURE__ */ m(
58
57
  "div",
59
58
  {
60
59
  className: "flex items-center justify-end gap-2",
61
- "data-testid": n.exposureCell,
60
+ "data-testid": p.exposureCell,
62
61
  children: [
63
62
  /* @__PURE__ */ e(
64
- L,
63
+ S,
65
64
  {
66
- share: u,
67
- colorIndex: A,
68
- idle: u === 0
65
+ share: d,
66
+ colorIndex: z,
67
+ idle: d === 0
69
68
  }
70
69
  ),
71
70
  /* @__PURE__ */ e(
72
- P,
71
+ I,
73
72
  {
74
73
  value: /* @__PURE__ */ e(
75
- b,
74
+ v,
76
75
  {
77
76
  decimalPartLength: 2,
78
77
  precision: 2,
79
78
  showSymbol: !1,
80
- token: p,
79
+ token: t,
81
80
  value: l.value
82
81
  }
83
82
  ),
84
- valueDescription: l.valueUsd === null ? "—" : S(l.valueUsd)
83
+ valueDescription: l.valueUsd === null ? "—" : y(l.valueUsd)
85
84
  }
86
85
  )
87
86
  ]
88
87
  }
89
- ), g = () => /* @__PURE__ */ e("div", { "data-testid": n.capCell, children: r.value === 0n ? /* @__PURE__ */ e("span", { children: "—" }) : /* @__PURE__ */ e(
90
- b,
88
+ ), f = () => /* @__PURE__ */ e("div", { "data-testid": p.capCell, children: s.value === 0n ? /* @__PURE__ */ e("span", { children: "—" }) : /* @__PURE__ */ e(
89
+ v,
91
90
  {
92
91
  decimalPartLength: 2,
93
92
  precision: 2,
94
93
  showSymbol: !1,
95
- token: p,
96
- value: r.value
94
+ token: t,
95
+ value: s.value
97
96
  }
98
- ) }), v = () => /* @__PURE__ */ e("div", { "data-testid": n.capUtilizationCell, children: /* @__PURE__ */ e(y, { data: j(l.value, r.value) }) });
97
+ ) }), g = () => /* @__PURE__ */ e("div", { "data-testid": p.capUtilizationCell, children: /* @__PURE__ */ e(C, { data: P(l.value, s.value) }) });
99
98
  return /* @__PURE__ */ e(
100
- k,
99
+ U,
101
100
  {
102
- last: T,
101
+ last: x,
103
102
  height: "auto",
104
103
  className: "cursor-default",
105
104
  style: { minHeight: "75px" },
106
- children: c ? /* @__PURE__ */ e(o, { className: "px-3 py-0!", size: "sm", span: "full", children: /* @__PURE__ */ s(
107
- w,
105
+ children: c ? /* @__PURE__ */ e(o, { className: "px-3 py-0!", size: "sm", span: "full", children: /* @__PURE__ */ m(
106
+ k,
108
107
  {
109
108
  className: "w-full",
110
109
  columns: 3,
111
110
  columnsXs: 3,
112
- title: h(),
111
+ title: u(),
113
112
  children: [
114
113
  /* @__PURE__ */ e(
115
- a,
114
+ n,
116
115
  {
117
- title: /* @__PURE__ */ e(m, { messageId: "components.poolAssetsTable.exposure" }),
118
- children: f()
116
+ title: /* @__PURE__ */ e(a, { messageId: "components.poolAssetsTable.exposure" }),
117
+ children: h()
119
118
  }
120
119
  ),
121
120
  /* @__PURE__ */ e(
122
- a,
121
+ n,
123
122
  {
124
- title: /* @__PURE__ */ e(m, { messageId: "components.poolAssetsTable.cap" }),
125
- children: g()
123
+ title: /* @__PURE__ */ e(a, { messageId: "components.poolAssetsTable.cap" }),
124
+ children: f()
126
125
  }
127
126
  ),
128
127
  /* @__PURE__ */ e(
129
- a,
128
+ n,
130
129
  {
131
- title: /* @__PURE__ */ e(m, { messageId: "components.poolAssetsTable.capUtilization" }),
132
- children: v()
130
+ title: /* @__PURE__ */ e(a, { messageId: "components.poolAssetsTable.capUtilization" }),
131
+ children: g()
133
132
  }
134
133
  )
135
134
  ]
136
135
  }
137
- ) }) : /* @__PURE__ */ s(C, { children: [
138
- /* @__PURE__ */ e(o, { className: "pl-4", size: "sm", textAlign: "left", children: h() }),
136
+ ) }) : /* @__PURE__ */ m(N, { children: [
137
+ /* @__PURE__ */ e(o, { className: "pl-4", size: "sm", textAlign: "left", children: u() }),
138
+ /* @__PURE__ */ e(o, { size: "sm", textAlign: "right", children: h() }),
139
139
  /* @__PURE__ */ e(o, { size: "sm", textAlign: "right", children: f() }),
140
- /* @__PURE__ */ e(o, { size: "sm", textAlign: "right", children: g() }),
141
- /* @__PURE__ */ e(o, { className: "pr-4", size: "sm", textAlign: "right", children: v() })
140
+ /* @__PURE__ */ e(o, { className: "pr-4", size: "sm", textAlign: "right", children: g() })
142
141
  ] })
143
142
  }
144
143
  );
145
144
  }
146
145
  export {
147
- he as PoolAssetsTableRow
146
+ ue as PoolAssetsTableRow
148
147
  };
@@ -1,5 +1,5 @@
1
- import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
- import { Card as f } from "../../cards/card/card.js";
1
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
+ import { Card as c } from "../../cards/card/card.js";
3
3
  import "clsx";
4
4
  import "tailwind-merge";
5
5
  import "react";
@@ -12,41 +12,39 @@ import "luxon";
12
12
  import "../../../utils/z-index.js";
13
13
  import "react-intl";
14
14
  import "../../buttons/button/button.js";
15
- import { GridTable as b, GridTableHeader as T, GridTableBody as h } from "../../table/grid-table.js";
15
+ import { GridTable as f, GridTableHeader as b, GridTableBody as T } from "../../table/grid-table.js";
16
16
  import "../../skeleton/skeleton.js";
17
17
  import "../../table/table.js";
18
- import { useIsMobile as u } from "../../../hooks/use-media-query.js";
19
- import { useObservedWidthKey as x } from "../../../hooks/use-observed-width-key.js";
20
- import { PoolAssetsTableTest as v } from "./constants.js";
21
- import { PoolAssetsTableHead as w } from "./pool-assets-table-head.js";
22
- import { PoolAssetsTableRow as A } from "./pool-assets-table-row.js";
23
- const C = 680;
24
- function q({
18
+ import { useIsMobile as h } from "../../../hooks/use-media-query.js";
19
+ import { useObservedWidthKey as u } from "../../../hooks/use-observed-width-key.js";
20
+ import { PoolAssetsTableTest as x } from "./constants.js";
21
+ import { PoolAssetsTableHead as v } from "./pool-assets-table-head.js";
22
+ import { PoolAssetsTableRow as w } from "./pool-assets-table-row.js";
23
+ const A = 680;
24
+ function U({
25
25
  list: t,
26
- poolName: s,
27
- sort: p,
28
- underlyingToken: l
26
+ sort: s,
27
+ underlyingToken: p
29
28
  }) {
30
- const a = u(), { ref: d, widthKey: m } = x(), i = m > 0 ? m < C : a, n = t.reduce((r, e) => r + e.used.value, 0n);
31
- return /* @__PURE__ */ o(f, { ref: d, className: "overflow-hidden rounded-lg p-2", children: /* @__PURE__ */ c(
32
- b,
29
+ const l = h(), { ref: a, widthKey: m } = u(), i = m > 0 ? m < A : l, d = t.reduce((r, e) => r + e.used.value, 0n);
30
+ return /* @__PURE__ */ o(c, { ref: a, className: "overflow-hidden rounded-lg p-2", children: /* @__PURE__ */ n(
31
+ f,
33
32
  {
34
33
  cols: i ? "1fr" : "1fr max-content max-content minmax(0,1fr)",
35
- "data-testid": v.root,
34
+ "data-testid": x.root,
36
35
  gap: 0,
37
36
  size: "lg",
38
37
  wrapperClassName: "overflow-visible",
39
38
  children: [
40
- !i && /* @__PURE__ */ o(T, { children: /* @__PURE__ */ o(w, { sort: p }) }),
41
- /* @__PURE__ */ o(h, { children: t.map((r, e) => /* @__PURE__ */ o(
42
- A,
39
+ !i && /* @__PURE__ */ o(b, { children: /* @__PURE__ */ o(v, { sort: s }) }),
40
+ /* @__PURE__ */ o(T, { children: t.map((r, e) => /* @__PURE__ */ o(
41
+ w,
43
42
  {
44
43
  asset: r,
45
- poolName: s,
46
- underlyingToken: l,
44
+ underlyingToken: p,
47
45
  last: e === t.length - 1,
48
46
  isCompact: i,
49
- totalUsed: n,
47
+ totalUsed: d,
50
48
  colorIndex: e
51
49
  },
52
50
  r.token.address
@@ -56,5 +54,5 @@ function q({
56
54
  ) });
57
55
  }
58
56
  export {
59
- q as PoolAssetsTable
57
+ U as PoolAssetsTable
60
58
  };
@@ -1,7 +1,6 @@
1
1
  import { QuotaAsset, Token } from '@gearbox-protocol/sdk/model';
2
2
  import { default as React } from 'react';
3
3
  export interface PoolAssetsTableRowProps {
4
- readonly poolName: string;
5
4
  readonly asset: QuotaAsset;
6
5
  readonly underlyingToken: Token;
7
6
  readonly last: boolean;
@@ -12,4 +11,4 @@ export interface PoolAssetsTableRowProps {
12
11
  /**
13
12
  * Single data row: token name, exposure (amount + pie), cap, and cap utilization.
14
13
  */
15
- export declare function PoolAssetsTableRow({ poolName, asset, underlyingToken, last, isCompact, totalUsed, colorIndex, }: PoolAssetsTableRowProps): React.ReactElement;
14
+ export declare function PoolAssetsTableRow({ asset, underlyingToken, last, isCompact, totalUsed, colorIndex, }: PoolAssetsTableRowProps): React.ReactElement;
@@ -3,7 +3,6 @@ import { default as React } from 'react';
3
3
  import { PoolAssetsTableSort } from './types';
4
4
  export interface PoolAssetsTableProps {
5
5
  readonly list: ReadonlyArray<QuotaAsset>;
6
- readonly poolName: string;
7
6
  readonly sort: PoolAssetsTableSort;
8
7
  readonly underlyingToken: Token;
9
8
  }
@@ -11,4 +10,4 @@ export interface PoolAssetsTableProps {
11
10
  * Grid table of pool asset quotas: exposure, cap, and cap utilization.
12
11
  * Collapses into stacked cards below {@link COMPACT_WIDTH_THRESHOLD}.
13
12
  */
14
- export declare function PoolAssetsTable({ list, poolName, sort, underlyingToken, }: PoolAssetsTableProps): React.ReactElement | null;
13
+ export declare function PoolAssetsTable({ list, sort, underlyingToken, }: PoolAssetsTableProps): React.ReactElement | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "4.0.0-next.21",
3
+ "version": "4.0.0-next.22",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",