@gearbox-protocol/ui-kit 4.0.0-next.61 → 4.0.0-next.63

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,10 +1,10 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import { cva as g } from "class-variance-authority";
3
3
  import * as n from "react";
4
4
  import { BaseLink as H } from "../base-link/base-link.js";
5
- import { Col as j } from "../layout/col/col.js";
6
- import { Grid as k } from "../layout/grid/grid.js";
7
- import { cn as r } from "../../utils/cn.js";
5
+ import { Col as z } from "../layout/col/col.js";
6
+ import { Grid as C } from "../layout/grid/grid.js";
7
+ import { cn as a } from "../../utils/cn.js";
8
8
  const D = g("w-full", {
9
9
  variants: {
10
10
  size: {
@@ -16,24 +16,24 @@ const D = g("w-full", {
16
16
  defaultVariants: {
17
17
  size: "default"
18
18
  }
19
- }), C = n.forwardRef(
20
- ({ className: e, size: t, cols: a = 12, gap: d = 0, wrapperClassName: s, ...f }, c) => /* @__PURE__ */ i("div", { className: r("relative w-full overflow-auto", s), children: /* @__PURE__ */ i(
21
- k,
19
+ }), K = n.forwardRef(
20
+ ({ className: e, size: t, cols: r = 12, gap: d = 0, wrapperClassName: s, ...f }, u) => /* @__PURE__ */ o("div", { className: a("relative w-full overflow-auto", s), children: /* @__PURE__ */ o(
21
+ C,
22
22
  {
23
- ref: c,
24
- cols: a,
23
+ ref: u,
24
+ cols: r,
25
25
  gap: d,
26
- className: r(D({ size: t, className: e })),
26
+ className: a(D({ size: t, className: e })),
27
27
  ...f
28
28
  }
29
29
  ) })
30
30
  );
31
- C.displayName = "GridTable";
32
- const K = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
31
+ K.displayName = "GridTable";
32
+ const A = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
33
33
  "div",
34
34
  {
35
- ref: a,
36
- className: r(
35
+ ref: r,
36
+ className: a(
37
37
  "contents",
38
38
  // Full-width border for header (no insets)
39
39
  "[&>*>*]:after:absolute [&>*>*]:after:bottom-0 [&>*>*]:after:inset-x-0 [&>*>*]:after:h-px [&>*>*]:after:bg-border",
@@ -44,126 +44,130 @@ const K = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
44
44
  ...t
45
45
  }
46
46
  ));
47
- K.displayName = "GridTableHeader";
48
- const A = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
47
+ A.displayName = "GridTableHeader";
48
+ const E = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
49
49
  "div",
50
50
  {
51
- ref: a,
52
- className: r("contents [&>*:last-child>*]:after:hidden", e),
51
+ ref: r,
52
+ className: a("contents [&>*:last-child>*]:after:hidden", e),
53
53
  ...t
54
54
  }
55
55
  ));
56
- A.displayName = "GridTableBody";
56
+ E.displayName = "GridTableBody";
57
+ function j(e) {
58
+ const t = e.target.closest(
59
+ "a, button, input, select, textarea, [role='button']"
60
+ );
61
+ return t !== null && t !== e.currentTarget;
62
+ }
57
63
  const S = n.forwardRef(
58
64
  ({
59
65
  className: e,
60
66
  cols: t,
61
- gap: a = 0,
67
+ gap: r = 0,
62
68
  last: d,
63
69
  height: s,
64
70
  hideValue: f,
65
- noHover: c,
66
- noRound: y,
71
+ noHover: u,
72
+ noRound: x,
67
73
  onRowClick: l,
68
- href: x,
69
- target: z,
70
- rel: w,
71
- style: B,
72
- children: u,
73
- ...m
74
- }, b) => {
75
- const T = typeof s == "number" ? `${s}px` : s, v = n.useCallback(
76
- (o) => {
77
- !l || o.target.closest(
78
- "a, button, input, select, textarea, [role='button']"
79
- ) || l(o);
74
+ href: c,
75
+ target: w,
76
+ rel: B,
77
+ style: V,
78
+ children: m,
79
+ ...b
80
+ }, p) => {
81
+ const v = typeof s == "number" ? `${s}px` : s, T = n.useCallback(
82
+ (i) => {
83
+ l && (j(i) || l(i));
80
84
  },
81
85
  [l]
82
86
  ), h = n.useCallback(
83
- (o) => {
84
- if (l && (o.key === "Enter" || o.key === " ")) {
85
- if (o.preventDefault(), o.target.closest(
86
- "a, button, input, select, textarea, [role='button']"
87
- ))
88
- return;
89
- l(o);
87
+ (i) => {
88
+ if (l && !(i.key !== "Enter" && i.key !== " ") && !j(i)) {
89
+ if (c) {
90
+ if (i.key !== "Enter") return;
91
+ } else
92
+ i.preventDefault();
93
+ l(i);
90
94
  }
91
95
  },
92
- [l]
93
- ), N = r(
96
+ [l, c]
97
+ ), N = a(
94
98
  "[&>*]:relative [&>*]:transition-colors data-[state=selected]:[&>*]:bg-muted",
95
99
  "[&>*]:after:absolute [&>*]:after:bottom-0 [&>*]:after:inset-x-0 [&>*]:after:h-px [&>*]:after:bg-border",
96
- !y && [
100
+ !x && [
97
101
  "[&>*:first-child]:after:left-3",
98
102
  "[&>*:last-child]:after:right-3"
99
103
  ],
100
- !c && [
104
+ !u && [
101
105
  "[&>*]:z-0",
102
106
  "[&>*]:before:absolute [&>*]:before:inset-x-0 [&>*]:before:top-0 [&>*]:before:bottom-px [&>*]:before:-z-10 [&>*]:before:bg-muted/50 [&>*]:before:opacity-0 [&>*]:before:transition-opacity",
103
107
  "hover:[&>*]:before:opacity-100",
104
- !y && "[&>*:first-child]:before:rounded-l-lg [&>*:last-child]:before:rounded-r-lg"
108
+ !x && "[&>*:first-child]:before:rounded-l-lg [&>*:last-child]:before:rounded-r-lg"
105
109
  ],
106
110
  d && "[&>*]:after:hidden",
107
111
  f && "[&>*]:opacity-0"
108
- ), G = r(
112
+ ), G = a(
109
113
  "grid grid-cols-subgrid col-span-full",
110
114
  N,
111
115
  "cursor-pointer",
112
116
  e
113
- ), p = {
114
- ...B,
115
- ...T ? { height: T } : {}
117
+ ), y = {
118
+ ...V,
119
+ ...v ? { height: v } : {}
116
120
  };
117
- return x ? /* @__PURE__ */ i(
121
+ return c ? /* @__PURE__ */ o(
118
122
  H,
119
123
  {
120
- ref: b,
121
- href: x,
122
- target: z,
123
- rel: w,
124
+ ref: p,
125
+ href: c,
126
+ target: w,
127
+ rel: B,
124
128
  size: "unset",
125
129
  variant: "unset",
126
- className: r("no-underline text-foreground!", G),
127
- style: p,
128
- onClick: l ? v : void 0,
130
+ className: a("no-underline text-foreground!", G),
131
+ style: y,
132
+ onClick: l ? T : void 0,
129
133
  onKeyDown: l ? h : void 0,
130
- ...m,
131
- children: u
134
+ ...b,
135
+ children: m
132
136
  }
133
137
  ) : l ? (
134
138
  // biome-ignore lint/a11y/useSemanticElements: Using div with subgrid layout, not a semantic table
135
- /* @__PURE__ */ i(
139
+ /* @__PURE__ */ o(
136
140
  "div",
137
141
  {
138
- ref: b,
142
+ ref: p,
139
143
  role: "row",
140
144
  tabIndex: 0,
141
145
  className: G,
142
- style: p,
143
- onClick: v,
146
+ style: y,
147
+ onClick: T,
144
148
  onKeyDown: h,
145
- ...m,
146
- children: u
149
+ ...b,
150
+ children: m
147
151
  }
148
152
  )
149
- ) : /* @__PURE__ */ i(
153
+ ) : /* @__PURE__ */ o(
150
154
  "div",
151
155
  {
152
- ref: b,
153
- className: r(
156
+ ref: p,
157
+ className: a(
154
158
  "grid grid-cols-subgrid col-span-full",
155
159
  N,
156
160
  e
157
161
  ),
158
- style: p,
159
- ...m,
160
- children: u
162
+ style: y,
163
+ ...b,
164
+ children: m
161
165
  }
162
166
  );
163
167
  }
164
168
  );
165
169
  S.displayName = "GridTableRow";
166
- const E = g(
170
+ const k = g(
167
171
  "flex items-center justify-start text-left align-middle font-medium text-muted-foreground !bg-transparent",
168
172
  {
169
173
  variants: {
@@ -190,13 +194,13 @@ const E = g(
190
194
  }
191
195
  }
192
196
  ), I = n.forwardRef(
193
- ({ className: e, size: t, span: a = 1, justify: d = "start", gapBefore: s, ...f }, c) => /* @__PURE__ */ i(
194
- j,
197
+ ({ className: e, size: t, span: r = 1, justify: d = "start", gapBefore: s, ...f }, u) => /* @__PURE__ */ o(
198
+ z,
195
199
  {
196
- ref: c,
197
- span: a,
198
- className: r(
199
- E({ size: t, justify: d, gapBefore: s, className: e })
200
+ ref: u,
201
+ span: r,
202
+ className: a(
203
+ k({ size: t, justify: d, gapBefore: s, className: e })
200
204
  ),
201
205
  ...f
202
206
  }
@@ -226,25 +230,25 @@ const L = g("flex items-center align-middle", {
226
230
  textAlign: "left",
227
231
  gapBefore: "none"
228
232
  }
229
- }), $ = n.forwardRef(
230
- ({ className: e, size: t, span: a = 1, textAlign: d, gapBefore: s, ...f }, c) => /* @__PURE__ */ i(
231
- j,
233
+ }), O = n.forwardRef(
234
+ ({ className: e, size: t, span: r = 1, textAlign: d, gapBefore: s, ...f }, u) => /* @__PURE__ */ o(
235
+ z,
232
236
  {
233
- ref: c,
234
- span: a,
235
- className: r(
237
+ ref: u,
238
+ span: r,
239
+ className: a(
236
240
  L({ size: t, textAlign: d, gapBefore: s, className: e })
237
241
  ),
238
242
  ...f
239
243
  }
240
244
  )
241
245
  );
242
- $.displayName = "GridTableCell";
246
+ O.displayName = "GridTableCell";
243
247
  export {
244
- C as GridTable,
245
- A as GridTableBody,
246
- $ as GridTableCell,
248
+ K as GridTable,
249
+ E as GridTableBody,
250
+ O as GridTableCell,
247
251
  I as GridTableHead,
248
- K as GridTableHeader,
252
+ A as GridTableHeader,
249
253
  S as GridTableRow
250
254
  };
package/dist/esm/index.js CHANGED
@@ -17,7 +17,7 @@ import { LiquidationParamsTableTest as V } from "./components/base/liquidation-p
17
17
  import { LiquidationParamsTable as N } from "./components/base/liquidation-params-table/liquidation-params-table.js";
18
18
  import { LiquidationPriceBlockTest as q } from "./components/base/liquidation-price-block/constants.js";
19
19
  import { LiquidationPriceBlock as O } from "./components/base/liquidation-price-block/liquidation-price-block.js";
20
- import { ManagePane as U, ManagePaneActionTab as X, ManagePaneMessage as Y, ManagePaneTab as Z, ManagePaneTabDropdown as z } from "./components/base/manage-pane/manage-pane.js";
20
+ import { ManagePane as _, ManagePaneActionTab as X, ManagePaneMessage as Y, ManagePaneTab as Z, ManagePaneTabDropdown as z } from "./components/base/manage-pane/manage-pane.js";
21
21
  import { MoreAccordionTest as j } from "./components/base/more-accordion/constants.js";
22
22
  import { MoreAccordion as K } from "./components/base/more-accordion/more-accordion.js";
23
23
  import { NestedInfoStackTest as oo } from "./components/base/nested-info-stack/constants.js";
@@ -40,7 +40,7 @@ import { TimeToLiquidationBlockTest as Vo } from "./components/base/time-to-liqu
40
40
  import { TimeToLiquidationBlock as No } from "./components/base/time-to-liquidation-block/time-to-liquidation-block.js";
41
41
  import { TitleMetaTest as qo } from "./components/base/title-meta/constants.js";
42
42
  import { TitleMeta as Oo } from "./components/base/title-meta/title-meta.js";
43
- import { TokenAmount as Uo } from "./components/base/token-amount/token-amount.js";
43
+ import { TokenAmount as _o } from "./components/base/token-amount/token-amount.js";
44
44
  import { TokenPairSymbolTest as Yo } from "./components/base/token-pair-symbol/constants.js";
45
45
  import { TokenPairSymbol as zo } from "./components/base/token-pair-symbol/token-pair-symbol.js";
46
46
  import { NoValue as jo } from "./components/no-value/no-value.js";
@@ -57,7 +57,7 @@ import { AlertModal as we } from "./components/alert-modal/alert-modal.js";
57
57
  import { AppBarDotsButton as Fe, AppBarDropdownMenu as He, AppBarHamburgerButton as ve, AppBarMenuItem as Re, AppBarNavItem as Ve } from "./components/app-bar/app-bar.js";
58
58
  import { AssetsListCell as Ne } from "./components/assets-list-cell/assets-list-cell.js";
59
59
  import { Badge as qe } from "./components/badge/badge.js";
60
- import { Chip as Oe, ChipTest as _e, Chips as Ue, ChipsTest as Xe } from "./components/badge/chip.js";
60
+ import { Chip as Oe, ChipTest as Ue, Chips as _e, ChipsTest as Xe } from "./components/badge/chip.js";
61
61
  import { BaseLink as Ze } from "./components/base-link/base-link.js";
62
62
  import { BaseTable as Qe } from "./components/base-table/base-table.js";
63
63
  import { BaseTableLine as Je } from "./components/base-table/base-table-line.js";
@@ -81,7 +81,7 @@ import { PoolAssetsTableTest as Vr } from "./components/composites/pool-assets-t
81
81
  import { PoolAssetsTable as Nr } from "./components/composites/pool-assets-table/pool-assets-table.js";
82
82
  import { TransactionConfirmAmountFieldTest as qr } from "./components/composites/tx-preview/confirm/amounts/constants.js";
83
83
  import { TransactionConfirmAmountField as Or } from "./components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js";
84
- import { TransactionConfirmDialogTest as Ur } from "./components/composites/tx-preview/confirm/dialog/constants.js";
84
+ import { TransactionConfirmDialogTest as _r } from "./components/composites/tx-preview/confirm/dialog/constants.js";
85
85
  import { TransactionConfirmShell as Yr } from "./components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js";
86
86
  import { TransactionConfirmExecuteButton as zr } from "./components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.js";
87
87
  import { TransactionConfirmExecuteButtonTest as jr, TransactionConfirmFailureResultTest as Jr, TransactionConfirmSuccessResultTest as Kr, TransactionConfirmTxHashRowTest as $r } from "./components/composites/tx-preview/confirm/result/constants.js";
@@ -105,7 +105,7 @@ import { DialogModalContainer as vt } from "./components/dialog/dialog-modal-con
105
105
  import { DialogTitle as Vt } from "./components/dialog/dialog-title.js";
106
106
  import { OneFieldDialog as Nt } from "./components/dialog/one-field-dialog.js";
107
107
  import { DisabledWrap as qt } from "./components/disabled-wrap/disabled-wrap.js";
108
- import { DropdownMenu as Ot, DropdownMenuPortal as _t, DropdownMenuTrigger as Ut } from "./components/dropdown-menu/dropdown-menu.js";
108
+ import { DropdownMenu as Ot, DropdownMenuPortal as Ut, DropdownMenuTrigger as _t } from "./components/dropdown-menu/dropdown-menu.js";
109
109
  import { DropdownMenuContent as Yt } from "./components/dropdown-menu/dropdown-menu-content.js";
110
110
  import { DropdownMenuItem as zt } from "./components/dropdown-menu/dropdown-menu-item.js";
111
111
  import { DropdownMenuLabel as jt } from "./components/dropdown-menu/dropdown-menu-label.js";
@@ -131,7 +131,7 @@ import { Container as vp } from "./components/layout/container/container.js";
131
131
  import { Grid as Vp } from "./components/layout/grid/grid.js";
132
132
  import { Layout as Np } from "./components/layout/layout/layout.js";
133
133
  import { BlockedRegionDialog as qp, LegalAgreementDialog as Gp } from "./components/legal-agreement/legal-agreement-dialog.js";
134
- import { LegalAgreementLink as _p } from "./components/legal-agreement/legal-agreement-link.js";
134
+ import { LegalAgreementLink as Up } from "./components/legal-agreement/legal-agreement-link.js";
135
135
  import { Link as Xp } from "./components/link/link.js";
136
136
  import { Loader as Zp } from "./components/loader/loader.js";
137
137
  import { Loading as Qp } from "./components/loading/loading.js";
@@ -156,7 +156,7 @@ import { SimpleDropdownMenuItem as Va } from "./components/simple-dropdown/simpl
156
156
  import { Skeleton as Na } from "./components/skeleton/skeleton.js";
157
157
  import { SkeletonStack as qa } from "./components/skeleton/skeleton-stack.js";
158
158
  import { SliderTest as Oa } from "./components/slider/constants.js";
159
- import { Spinner as Ua } from "./components/spinner/spinner.js";
159
+ import { Spinner as _a } from "./components/spinner/spinner.js";
160
160
  import { SpinnerLoader as Ya } from "./components/spinner-loader/spinner-loader.js";
161
161
  import { SplitList as za } from "./components/split-list/split-list.js";
162
162
  import { TabControl as ja } from "./components/tab-control/tab-control.js";
@@ -177,7 +177,7 @@ import { TruncatedText as Rm } from "./components/truncated-text/truncated-text.
177
177
  import { FormattedMessageTyped as Em, useIntlTyped as Nm } from "./components/typed-intl/index.js";
178
178
  import { Typography as qm } from "./components/typography/typography.js";
179
179
  import { VerticalIndicator as Om } from "./components/vertical-indicator/vertical-indicator.js";
180
- import { VSpace as Um } from "./components/vspace/vspace.js";
180
+ import { VSpace as _m } from "./components/vspace/vspace.js";
181
181
  import { WithCopy as Ym } from "./components/with-copy/with-copy.js";
182
182
  import { ApyBreakdownTooltip as zm } from "./components/yield-breakdown-tooltip/yield-breakdown-tooltip.js";
183
183
  import { useDebounceCall as jm } from "./hooks/use-debounce-call.js";
@@ -189,29 +189,30 @@ import { cn as li, cn as si } from "./utils/cn.js";
189
189
  import { APPROXIMATE_SYMBOL as di, formatTimestamp as gi, shortenHash as ui } from "./utils/format.js";
190
190
  import { formatLeverage as Si } from "./utils/format-leverage.js";
191
191
  import { formatMoney as Bi, percentageTemplate as Pi } from "./utils/format-money.js";
192
- import { slippageTemplate as Ai } from "./utils/format-slippage.js";
193
- import { leveragePresets as Li } from "./utils/leverage-presets.js";
194
- import { bnToLiquidationPriceView as Ii, parseInputToBN as Mi } from "./utils/parse-input-to-bn.js";
195
- import { shortenString as wi } from "./utils/shorten-string.js";
196
- import { tokenTemplateString as Fi } from "./utils/templates.js";
197
- import { openInNewWindow as vi } from "./utils/window.js";
198
- import { Z_INDEX as Vi } from "./utils/z-index.js";
199
- import { AmountInputTest as Ni } from "./components/base/amount-input/constants.js";
200
- import { DetailedPageTitleTest as qi } from "./components/base/detailed-page-title/constants.js";
201
- import { DetailsViewTest as Oi } from "./components/base/details-view/constants.js";
202
- import { HistoryChartTest as Ui } from "./components/base/history-chart/constants.js";
203
- import { InfoListTest as Yi } from "./components/base/info-list/constants.js";
204
- import { LeverageInputTest as zi } from "./components/base/leverage-input/constants.js";
205
- import { ManagePaneTest as ji } from "./components/base/manage-pane/constants.js";
206
- import { PageTitleTest as Ki } from "./components/base/page-title/constants.js";
207
- import { ReviewButtonTest as on } from "./components/base/review-button/constants.js";
208
- import { SectionHeadingTest as rn } from "./components/base/section-heading/constants.js";
209
- import { SegmentedTabsTest as pn } from "./components/base/segmented-tabs/constants.js";
210
- import { StackTest as mn } from "./components/base/stack/constants.js";
211
- import { StatBadgeTest as fn } from "./components/base/stat-badge/constants.js";
212
- import { TabberTest as ln } from "./components/base/tabber/constants.js";
213
- import { TokenAmountTest as Tn } from "./components/base/token-amount/constants.js";
214
- import { BaseTableLineTest as gn, BaseTableTest as un } from "./components/base-table/constants.js";
192
+ import { formatUsdPrice as Ai } from "./utils/format-price.js";
193
+ import { slippageTemplate as Li } from "./utils/format-slippage.js";
194
+ import { leveragePresets as Ii } from "./utils/leverage-presets.js";
195
+ import { bnToLiquidationPriceView as hi, parseInputToBN as wi } from "./utils/parse-input-to-bn.js";
196
+ import { shortenString as Fi } from "./utils/shorten-string.js";
197
+ import { tokenTemplateString as vi } from "./utils/templates.js";
198
+ import { openInNewWindow as Vi } from "./utils/window.js";
199
+ import { Z_INDEX as Ni } from "./utils/z-index.js";
200
+ import { AmountInputTest as qi } from "./components/base/amount-input/constants.js";
201
+ import { DetailedPageTitleTest as Oi } from "./components/base/detailed-page-title/constants.js";
202
+ import { DetailsViewTest as _i } from "./components/base/details-view/constants.js";
203
+ import { HistoryChartTest as Yi } from "./components/base/history-chart/constants.js";
204
+ import { InfoListTest as zi } from "./components/base/info-list/constants.js";
205
+ import { LeverageInputTest as ji } from "./components/base/leverage-input/constants.js";
206
+ import { ManagePaneTest as Ki } from "./components/base/manage-pane/constants.js";
207
+ import { PageTitleTest as on } from "./components/base/page-title/constants.js";
208
+ import { ReviewButtonTest as rn } from "./components/base/review-button/constants.js";
209
+ import { SectionHeadingTest as pn } from "./components/base/section-heading/constants.js";
210
+ import { SegmentedTabsTest as mn } from "./components/base/segmented-tabs/constants.js";
211
+ import { StackTest as fn } from "./components/base/stack/constants.js";
212
+ import { StatBadgeTest as ln } from "./components/base/stat-badge/constants.js";
213
+ import { TabberTest as Tn } from "./components/base/tabber/constants.js";
214
+ import { TokenAmountTest as gn } from "./components/base/token-amount/constants.js";
215
+ import { BaseTableLineTest as cn, BaseTableTest as Sn } from "./components/base-table/constants.js";
215
216
  export {
216
217
  di as APPROXIMATE_SYMBOL,
217
218
  Se as AlertBadge,
@@ -227,7 +228,7 @@ export {
227
228
  we as AlertModal,
228
229
  yr as AllocationWheelTest,
229
230
  r as AmountInput,
230
- Ni as AmountInputTest,
231
+ qi as AmountInputTest,
231
232
  Fe as AppBarDotsButton,
232
233
  He as AppBarDropdownMenu,
233
234
  ve as AppBarHamburgerButton,
@@ -244,8 +245,8 @@ export {
244
245
  Ze as BaseLink,
245
246
  Qe as BaseTable,
246
247
  Je as BaseTableLine,
247
- gn as BaseTableLineTest,
248
- un as BaseTableTest,
248
+ cn as BaseTableLineTest,
249
+ Sn as BaseTableTest,
249
250
  qp as BlockedRegionDialog,
250
251
  p as BorrowRateBlock,
251
252
  m as BorrowRateBlockTest,
@@ -262,8 +263,8 @@ export {
262
263
  Ar as Checkbox,
263
264
  Lr as CheckboxLabeled,
264
265
  Oe as Chip,
265
- _e as ChipTest,
266
- Ue as Chips,
266
+ Ue as ChipTest,
267
+ _e as Chips,
267
268
  Xe as ChipsTest,
268
269
  Fp as Col,
269
270
  Fr as CollateralAllocationTooltipTest,
@@ -275,11 +276,11 @@ export {
275
276
  Cr as DangerZone,
276
277
  s as DetailedPageTitle,
277
278
  gt as DetailedPageTitleExplorerDropdown,
278
- qi as DetailedPageTitleTest,
279
+ Oi as DetailedPageTitleTest,
279
280
  u as DetailsView,
280
281
  c as DetailsViewLeftPane,
281
282
  S as DetailsViewManagePane,
282
- Oi as DetailsViewTest,
283
+ _i as DetailsViewTest,
283
284
  Ct as Dialog,
284
285
  Dt as DialogContainer,
285
286
  bt as DialogContent,
@@ -295,8 +296,8 @@ export {
295
296
  Yt as DropdownMenuContent,
296
297
  zt as DropdownMenuItem,
297
298
  jt as DropdownMenuLabel,
298
- _t as DropdownMenuPortal,
299
- Ut as DropdownMenuTrigger,
299
+ Ut as DropdownMenuPortal,
300
+ _t as DropdownMenuTrigger,
300
301
  Kt as EditInput,
301
302
  fi as EnglishLocale,
302
303
  op as ErrorLineMessage,
@@ -317,19 +318,19 @@ export {
317
318
  se as HealthFactorValue,
318
319
  dp as HelpTip,
319
320
  b as HistoryChart,
320
- Ui as HistoryChartTest,
321
+ Yi as HistoryChartTest,
321
322
  Sp as IconButton,
322
323
  Dp as InfiniteScrollWrapper,
323
324
  k as InfoLine,
324
325
  I as InfoList,
325
- Yi as InfoListTest,
326
+ zi as InfoListTest,
326
327
  bp as Input,
327
328
  kp as Label,
328
329
  Np as Layout,
329
330
  Gp as LegalAgreementDialog,
330
- _p as LegalAgreementLink,
331
+ Up as LegalAgreementLink,
331
332
  w as LeverageInput,
332
- zi as LeverageInputTest,
333
+ ji as LeverageInputTest,
333
334
  v as LeveragePresetChips,
334
335
  F as LeveragePresetChipsTest,
335
336
  Te as LeverageValue,
@@ -340,12 +341,12 @@ export {
340
341
  q as LiquidationPriceBlockTest,
341
342
  Zp as Loader,
342
343
  Qp as Loading,
343
- U as ManagePane,
344
+ _ as ManagePane,
344
345
  X as ManagePaneActionTab,
345
346
  Y as ManagePaneMessage,
346
347
  Z as ManagePaneTab,
347
348
  z as ManagePaneTabDropdown,
348
- ji as ManagePaneTest,
349
+ Ki as ManagePaneTest,
349
350
  Jp as MarkdownText,
350
351
  ct as Modal,
351
352
  K as MoreAccordion,
@@ -361,7 +362,7 @@ export {
361
362
  Nt as OneFieldDialog,
362
363
  po as PageHeadProvider,
363
364
  ao as PageTitle,
364
- Ki as PageTitleTest,
365
+ on as PageTitleTest,
365
366
  ee as PnlValue,
366
367
  ia as PointsIcon,
367
368
  M as PointsInfoLine,
@@ -383,15 +384,15 @@ export {
383
384
  la as RadioGroup,
384
385
  sa as RadioGroupItem,
385
386
  uo as ReviewButton,
386
- on as ReviewButtonTest,
387
+ rn as ReviewButtonTest,
387
388
  Sa as SdkStatusPill,
388
389
  ua as SdkStatusPillTest,
389
390
  Ba as SearchLine,
390
391
  So as SectionHeading,
391
- rn as SectionHeadingTest,
392
+ pn as SectionHeadingTest,
392
393
  Da as SegmentedControl,
393
394
  Bo as SegmentedTabs,
394
- pn as SegmentedTabsTest,
395
+ mn as SegmentedTabsTest,
395
396
  ba as Select,
396
397
  La as SelectContent,
397
398
  ka as SelectItem,
@@ -405,14 +406,14 @@ export {
405
406
  Na as Skeleton,
406
407
  qa as SkeletonStack,
407
408
  Oa as SliderTest,
408
- Ua as Spinner,
409
+ _a as Spinner,
409
410
  Ya as SpinnerLoader,
410
411
  za as SplitList,
411
412
  Do as Stack,
412
- mn as StackTest,
413
+ fn as StackTest,
413
414
  bo as StatBadge,
414
415
  Lo as StatBadgeGrid,
415
- fn as StatBadgeTest,
416
+ ln as StatBadgeTest,
416
417
  ho as StrategyApyBreakdownCard,
417
418
  Io as StrategyApyBreakdownCardTest,
418
419
  Ir as StyledButton,
@@ -421,7 +422,7 @@ export {
421
422
  ja as TabControl,
422
423
  yo as Tabber,
423
424
  Fo as TabberSection,
424
- ln as TabberTest,
425
+ Tn as TabberTest,
425
426
  om as Table,
426
427
  em as TableBody,
427
428
  rm as TableCell,
@@ -440,8 +441,8 @@ export {
440
441
  Sm as TipCard,
441
442
  Oo as TitleMeta,
442
443
  qo as TitleMetaTest,
443
- Uo as TokenAmount,
444
- Tn as TokenAmountTest,
444
+ _o as TokenAmount,
445
+ gn as TokenAmountTest,
445
446
  de as TokenBigint,
446
447
  Bm as TokenIcon,
447
448
  zo as TokenPairSymbol,
@@ -455,7 +456,7 @@ export {
455
456
  Hm as TradingView,
456
457
  Or as TransactionConfirmAmountField,
457
458
  qr as TransactionConfirmAmountFieldTest,
458
- Ur as TransactionConfirmDialogTest,
459
+ _r as TransactionConfirmDialogTest,
459
460
  zr as TransactionConfirmExecuteButton,
460
461
  jr as TransactionConfirmExecuteButtonTest,
461
462
  et as TransactionConfirmFailureResult,
@@ -469,27 +470,28 @@ export {
469
470
  qm as Typography,
470
471
  ge as UsdValue,
471
472
  ue as UtilizationValue,
472
- Um as VSpace,
473
+ _m as VSpace,
473
474
  $o as ValueTest,
474
475
  Om as VerticalIndicator,
475
476
  Ym as WithCopy,
476
- Vi as Z_INDEX,
477
- Ii as bnToLiquidationPriceView,
477
+ Ni as Z_INDEX,
478
+ hi as bnToLiquidationPriceView,
478
479
  li as cn,
479
480
  si as default,
480
481
  Si as formatLeverage,
481
482
  Bi as formatMoney,
482
483
  gi as formatTimestamp,
484
+ Ai as formatUsdPrice,
483
485
  Km as getSortForFields,
484
- Li as leveragePresets,
486
+ Ii as leveragePresets,
485
487
  $m as nextMultiSortState,
486
- vi as openInNewWindow,
487
- Mi as parseInputToBN,
488
+ Vi as openInNewWindow,
489
+ wi as parseInputToBN,
488
490
  Pi as percentageTemplate,
489
491
  ui as shortenHash,
490
- wi as shortenString,
491
- Ai as slippageTemplate,
492
- Fi as tokenTemplateString,
492
+ Fi as shortenString,
493
+ Li as slippageTemplate,
494
+ vi as tokenTemplateString,
493
495
  jm as useDebounceCall,
494
496
  Nm as useIntlTyped,
495
497
  ri as useIsDesktop,
@@ -0,0 +1,10 @@
1
+ function s(i) {
2
+ const t = Math.abs(i) >= 1e3 ? 0 : 2;
3
+ return `${i < 0 ? "-" : ""}$${Math.abs(i).toLocaleString("en-US", {
4
+ minimumFractionDigits: t,
5
+ maximumFractionDigits: t
6
+ })}`;
7
+ }
8
+ export {
9
+ s as formatUsdPrice
10
+ };