@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.
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -1
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/table/grid-table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/format-price.cjs +1 -0
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/esm/components/base/title-meta/title-meta.js +49 -48
- package/dist/esm/components/link/link.js +48 -38
- package/dist/esm/components/table/grid-table.js +94 -90
- package/dist/esm/index.js +68 -66
- package/dist/esm/utils/format-price.js +10 -0
- package/dist/esm/utils/index.js +15 -13
- package/dist/types/components/link/link.d.ts +8 -1
- package/dist/types/components/table/grid-table.d.ts +0 -52
- package/dist/types/utils/format-price.d.ts +14 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
6
|
-
import { Grid as
|
|
7
|
-
import { cn as
|
|
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
|
-
}),
|
|
20
|
-
({ className: e, size: t, cols:
|
|
21
|
-
|
|
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:
|
|
24
|
-
cols:
|
|
23
|
+
ref: u,
|
|
24
|
+
cols: r,
|
|
25
25
|
gap: d,
|
|
26
|
-
className:
|
|
26
|
+
className: a(D({ size: t, className: e })),
|
|
27
27
|
...f
|
|
28
28
|
}
|
|
29
29
|
) })
|
|
30
30
|
);
|
|
31
|
-
|
|
32
|
-
const
|
|
31
|
+
K.displayName = "GridTable";
|
|
32
|
+
const A = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
|
-
ref:
|
|
36
|
-
className:
|
|
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
|
-
|
|
48
|
-
const
|
|
47
|
+
A.displayName = "GridTableHeader";
|
|
48
|
+
const E = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
ref:
|
|
52
|
-
className:
|
|
51
|
+
ref: r,
|
|
52
|
+
className: a("contents [&>*:last-child>*]:after:hidden", e),
|
|
53
53
|
...t
|
|
54
54
|
}
|
|
55
55
|
));
|
|
56
|
-
|
|
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:
|
|
67
|
+
gap: r = 0,
|
|
62
68
|
last: d,
|
|
63
69
|
height: s,
|
|
64
70
|
hideValue: f,
|
|
65
|
-
noHover:
|
|
66
|
-
noRound:
|
|
71
|
+
noHover: u,
|
|
72
|
+
noRound: x,
|
|
67
73
|
onRowClick: l,
|
|
68
|
-
href:
|
|
69
|
-
target:
|
|
70
|
-
rel:
|
|
71
|
-
style:
|
|
72
|
-
children:
|
|
73
|
-
...
|
|
74
|
-
},
|
|
75
|
-
const
|
|
76
|
-
(
|
|
77
|
-
|
|
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
|
-
(
|
|
84
|
-
if (l && (
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
l(
|
|
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 =
|
|
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
|
-
!
|
|
100
|
+
!x && [
|
|
97
101
|
"[&>*:first-child]:after:left-3",
|
|
98
102
|
"[&>*:last-child]:after:right-3"
|
|
99
103
|
],
|
|
100
|
-
!
|
|
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
|
-
!
|
|
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 =
|
|
112
|
+
), G = a(
|
|
109
113
|
"grid grid-cols-subgrid col-span-full",
|
|
110
114
|
N,
|
|
111
115
|
"cursor-pointer",
|
|
112
116
|
e
|
|
113
|
-
),
|
|
114
|
-
...
|
|
115
|
-
...
|
|
117
|
+
), y = {
|
|
118
|
+
...V,
|
|
119
|
+
...v ? { height: v } : {}
|
|
116
120
|
};
|
|
117
|
-
return
|
|
121
|
+
return c ? /* @__PURE__ */ o(
|
|
118
122
|
H,
|
|
119
123
|
{
|
|
120
|
-
ref:
|
|
121
|
-
href:
|
|
122
|
-
target:
|
|
123
|
-
rel:
|
|
124
|
+
ref: p,
|
|
125
|
+
href: c,
|
|
126
|
+
target: w,
|
|
127
|
+
rel: B,
|
|
124
128
|
size: "unset",
|
|
125
129
|
variant: "unset",
|
|
126
|
-
className:
|
|
127
|
-
style:
|
|
128
|
-
onClick: l ?
|
|
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
|
-
...
|
|
131
|
-
children:
|
|
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__ */
|
|
139
|
+
/* @__PURE__ */ o(
|
|
136
140
|
"div",
|
|
137
141
|
{
|
|
138
|
-
ref:
|
|
142
|
+
ref: p,
|
|
139
143
|
role: "row",
|
|
140
144
|
tabIndex: 0,
|
|
141
145
|
className: G,
|
|
142
|
-
style:
|
|
143
|
-
onClick:
|
|
146
|
+
style: y,
|
|
147
|
+
onClick: T,
|
|
144
148
|
onKeyDown: h,
|
|
145
|
-
...
|
|
146
|
-
children:
|
|
149
|
+
...b,
|
|
150
|
+
children: m
|
|
147
151
|
}
|
|
148
152
|
)
|
|
149
|
-
) : /* @__PURE__ */
|
|
153
|
+
) : /* @__PURE__ */ o(
|
|
150
154
|
"div",
|
|
151
155
|
{
|
|
152
|
-
ref:
|
|
153
|
-
className:
|
|
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:
|
|
159
|
-
...
|
|
160
|
-
children:
|
|
162
|
+
style: y,
|
|
163
|
+
...b,
|
|
164
|
+
children: m
|
|
161
165
|
}
|
|
162
166
|
);
|
|
163
167
|
}
|
|
164
168
|
);
|
|
165
169
|
S.displayName = "GridTableRow";
|
|
166
|
-
const
|
|
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:
|
|
194
|
-
|
|
197
|
+
({ className: e, size: t, span: r = 1, justify: d = "start", gapBefore: s, ...f }, u) => /* @__PURE__ */ o(
|
|
198
|
+
z,
|
|
195
199
|
{
|
|
196
|
-
ref:
|
|
197
|
-
span:
|
|
198
|
-
className:
|
|
199
|
-
|
|
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
|
-
}),
|
|
230
|
-
({ className: e, size: t, span:
|
|
231
|
-
|
|
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:
|
|
234
|
-
span:
|
|
235
|
-
className:
|
|
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
|
-
|
|
246
|
+
O.displayName = "GridTableCell";
|
|
243
247
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
248
|
+
K as GridTable,
|
|
249
|
+
E as GridTableBody,
|
|
250
|
+
O as GridTableCell,
|
|
247
251
|
I as GridTableHead,
|
|
248
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
207
|
-
import {
|
|
208
|
-
import {
|
|
209
|
-
import {
|
|
210
|
-
import {
|
|
211
|
-
import {
|
|
212
|
-
import {
|
|
213
|
-
import {
|
|
214
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
248
|
-
|
|
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
|
-
|
|
266
|
-
|
|
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
|
-
|
|
279
|
+
Oi as DetailedPageTitleTest,
|
|
279
280
|
u as DetailsView,
|
|
280
281
|
c as DetailsViewLeftPane,
|
|
281
282
|
S as DetailsViewManagePane,
|
|
282
|
-
|
|
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
|
-
|
|
299
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
331
|
+
Up as LegalAgreementLink,
|
|
331
332
|
w as LeverageInput,
|
|
332
|
-
|
|
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
|
-
|
|
344
|
+
_ as ManagePane,
|
|
344
345
|
X as ManagePaneActionTab,
|
|
345
346
|
Y as ManagePaneMessage,
|
|
346
347
|
Z as ManagePaneTab,
|
|
347
348
|
z as ManagePaneTabDropdown,
|
|
348
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
392
|
+
pn as SectionHeadingTest,
|
|
392
393
|
Da as SegmentedControl,
|
|
393
394
|
Bo as SegmentedTabs,
|
|
394
|
-
|
|
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
|
-
|
|
409
|
+
_a as Spinner,
|
|
409
410
|
Ya as SpinnerLoader,
|
|
410
411
|
za as SplitList,
|
|
411
412
|
Do as Stack,
|
|
412
|
-
|
|
413
|
+
fn as StackTest,
|
|
413
414
|
bo as StatBadge,
|
|
414
415
|
Lo as StatBadgeGrid,
|
|
415
|
-
|
|
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
|
-
|
|
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
|
-
|
|
444
|
-
|
|
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
|
-
|
|
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
|
-
|
|
473
|
+
_m as VSpace,
|
|
473
474
|
$o as ValueTest,
|
|
474
475
|
Om as VerticalIndicator,
|
|
475
476
|
Ym as WithCopy,
|
|
476
|
-
|
|
477
|
-
|
|
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
|
-
|
|
486
|
+
Ii as leveragePresets,
|
|
485
487
|
$m as nextMultiSortState,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
+
Vi as openInNewWindow,
|
|
489
|
+
wi as parseInputToBN,
|
|
488
490
|
Pi as percentageTemplate,
|
|
489
491
|
ui as shortenHash,
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
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,
|