@gearbox-protocol/ui-kit 4.0.0-next.51 → 4.0.0-next.52
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/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/copy-button.cjs +1 -0
- package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
- package/dist/cjs/components/base/values/index.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -1
- package/dist/cjs/components/base-table/base-table.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/loading/loading.cjs +1 -1
- package/dist/cjs/components/sdk-status-pill/sdk-status-pill.cjs +1 -1
- package/dist/cjs/components/table/index.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +2 -3
- package/dist/esm/components/{detailed-page-title/detailed-page-title-copy-button.js → base/detailed-page-title/copy-button.js} +8 -8
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +6 -6
- package/dist/esm/components/base/index.js +144 -153
- package/dist/esm/components/base/info-list/info-list.js +47 -24
- package/dist/esm/components/base/leverage-input/leverage-input.js +65 -47
- package/dist/esm/components/base/manage-pane/manage-pane.js +83 -73
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +1 -1
- package/dist/esm/components/base/position-assets/position-assets.js +2 -3
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +1 -1
- package/dist/esm/components/base/tabber/tabber.js +51 -39
- package/dist/esm/components/base/token-amount/token-amount.js +1 -1
- package/dist/esm/components/base/values/index.js +17 -19
- package/dist/esm/components/base-table/base-table-line.js +1 -1
- package/dist/esm/components/base-table/base-table.js +60 -55
- package/dist/esm/components/checkbox/checkbox-labeled.js +17 -20
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +2 -3
- package/dist/esm/components/compound-apy/compound-apy.js +2 -3
- package/dist/esm/components/detailed-page-title/index.js +2 -4
- package/dist/esm/components/index.js +581 -603
- package/dist/esm/components/loading/loading.js +22 -15
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +19 -14
- package/dist/esm/components/table/index.js +16 -20
- package/dist/esm/components/with-copy/with-copy.js +19 -22
- package/dist/esm/index.js +712 -734
- package/dist/globals.css +1 -1
- package/dist/types/components/base/index.d.ts +0 -2
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +2 -2
- package/dist/types/components/base/values/index.d.ts +0 -1
- package/dist/types/components/detailed-page-title/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +0 -3
- package/dist/types/components/spinner-loader/spinner-loader.d.ts +1 -1
- package/dist/types/components/table/index.d.ts +0 -2
- package/dist/types/index.d.ts +0 -3
- package/package.json +1 -1
- package/dist/cjs/components/base/info-portal/index.cjs +0 -1
- package/dist/cjs/components/base/info-portal/info-portal.cjs +0 -1
- package/dist/cjs/components/base/sticky-bar/constants.cjs +0 -1
- package/dist/cjs/components/base/sticky-bar/index.cjs +0 -1
- package/dist/cjs/components/base/sticky-bar/sticky-bar.cjs +0 -1
- package/dist/cjs/components/base/values/points-value.cjs +0 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +0 -1
- package/dist/cjs/components/loading-bar/index.cjs +0 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +0 -1
- package/dist/cjs/components/status-dot/index.cjs +0 -1
- package/dist/cjs/components/status-dot/status-dot.cjs +0 -1
- package/dist/cjs/components/table/table-loader-guard.cjs +0 -1
- package/dist/cjs/components/table/table-loader.cjs +0 -1
- package/dist/cjs/components/with-title/index.cjs +0 -1
- package/dist/cjs/components/with-title/with-title.cjs +0 -1
- package/dist/esm/components/base/info-portal/index.js +0 -5
- package/dist/esm/components/base/info-portal/info-portal.js +0 -20
- package/dist/esm/components/base/sticky-bar/constants.js +0 -6
- package/dist/esm/components/base/sticky-bar/index.js +0 -6
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +0 -28
- package/dist/esm/components/base/values/points-value.js +0 -30
- package/dist/esm/components/loading-bar/index.js +0 -4
- package/dist/esm/components/loading-bar/loading-bar.js +0 -27
- package/dist/esm/components/status-dot/index.js +0 -5
- package/dist/esm/components/status-dot/status-dot.js +0 -49
- package/dist/esm/components/table/table-loader-guard.js +0 -31
- package/dist/esm/components/table/table-loader.js +0 -25
- package/dist/esm/components/with-title/index.js +0 -4
- package/dist/esm/components/with-title/with-title.js +0 -43
- package/dist/types/components/base/info-portal/index.d.ts +0 -1
- package/dist/types/components/base/info-portal/info-portal.d.ts +0 -8
- package/dist/types/components/base/sticky-bar/constants.d.ts +0 -3
- package/dist/types/components/base/sticky-bar/index.d.ts +0 -1
- package/dist/types/components/base/sticky-bar/sticky-bar.d.ts +0 -9
- package/dist/types/components/base/values/points-value.d.ts +0 -11
- package/dist/types/components/loading-bar/index.d.ts +0 -1
- package/dist/types/components/loading-bar/loading-bar.d.ts +0 -25
- package/dist/types/components/status-dot/index.d.ts +0 -1
- package/dist/types/components/status-dot/status-dot.d.ts +0 -47
- package/dist/types/components/table/table-loader-guard.d.ts +0 -45
- package/dist/types/components/table/table-loader.d.ts +0 -50
- package/dist/types/components/with-title/index.d.ts +0 -1
- package/dist/types/components/with-title/with-title.d.ts +0 -31
- /package/dist/types/components/{detailed-page-title/detailed-page-title-copy-button.d.ts → base/detailed-page-title/copy-button.d.ts} +0 -0
|
@@ -5,79 +5,75 @@ import { BorrowRateBlockTest as f } from "./borrow-rate-block/constants.js";
|
|
|
5
5
|
import { ChartWithSideCard as n } from "./chart-with-side-card/chart-with-side-card.js";
|
|
6
6
|
import { ChartWithSideCardTest as T } from "./chart-with-side-card/constants.js";
|
|
7
7
|
import { DetailedPageTitle as d } from "./detailed-page-title/detailed-page-title.js";
|
|
8
|
-
import { AsideAlignAnchor as c, DetailAsideScope as S, useDetailAsideAnchorGetter as
|
|
8
|
+
import { AsideAlignAnchor as c, DetailAsideScope as S, useDetailAsideAnchorGetter as g } from "./details-view/detail-aside/detail-aside-scope.js";
|
|
9
9
|
import { DetailAsideScreenLayout as A } from "./details-view/detail-aside/detail-aside-screen-layout.js";
|
|
10
10
|
import { DetailsView as k, DetailsViewLeftPane as b, DetailsViewManagePane as L } from "./details-view/details-view.js";
|
|
11
|
-
import { HealthFactorBlockTest as
|
|
12
|
-
import { HealthFactorBlock as
|
|
11
|
+
import { HealthFactorBlockTest as h } from "./health-factor-block/constants.js";
|
|
12
|
+
import { HealthFactorBlock as y } from "./health-factor-block/health-factor-block.js";
|
|
13
13
|
import { HistoryChart as w } from "./history-chart/history-chart.js";
|
|
14
|
-
import { InfoLine as D, InfoList as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import { StatBadgeTest as xt } from "./stat-badge/constants.js";
|
|
74
|
-
import { StickyBarTest as lt } from "./sticky-bar/constants.js";
|
|
75
|
-
import { TabberTest as Pt } from "./tabber/constants.js";
|
|
76
|
-
import { TokenAmountTest as St } from "./token-amount/constants.js";
|
|
14
|
+
import { InfoLine as D, InfoList as H, PointsInfoLine as v } from "./info-list/info-list.js";
|
|
15
|
+
import { LeverageInput as q } from "./leverage-input/leverage-input.js";
|
|
16
|
+
import { LeveragePresetChipsTest as _ } from "./leverage-preset-chips/constants.js";
|
|
17
|
+
import { LeveragePresetChips as R } from "./leverage-preset-chips/leverage-preset-chips.js";
|
|
18
|
+
import { LiquidationParamsTableTest as U } from "./liquidation-params-table/constants.js";
|
|
19
|
+
import { LiquidationParamsTable as z } from "./liquidation-params-table/liquidation-params-table.js";
|
|
20
|
+
import { LiquidationPriceBlockTest as X } from "./liquidation-price-block/constants.js";
|
|
21
|
+
import { LiquidationPriceBlock as J } from "./liquidation-price-block/liquidation-price-block.js";
|
|
22
|
+
import { ManagePane as Q, ManagePaneActionTab as Y, ManagePaneMessage as Z, ManagePaneTab as $, ManagePaneTabDropdown as ee } from "./manage-pane/manage-pane.js";
|
|
23
|
+
import { MoreAccordionTest as te } from "./more-accordion/constants.js";
|
|
24
|
+
import { MoreAccordion as ae } from "./more-accordion/more-accordion.js";
|
|
25
|
+
import { NestedInfoStackTest as pe } from "./nested-info-stack/constants.js";
|
|
26
|
+
import { NestedInfoStack as fe } from "./nested-info-stack/nested-info-stack.js";
|
|
27
|
+
import { PageHeadProvider as ne, PageTitle as xe } from "./page-title/page-title.js";
|
|
28
|
+
import { PoolApyBreakdownCardTest as le } from "./pool-apy-breakdown-card/constants.js";
|
|
29
|
+
import { PoolApyBreakdownCard as Pe } from "./pool-apy-breakdown-card/pool-apy-breakdown-card.js";
|
|
30
|
+
import { PositionAssetsTest as Se } from "./position-assets/constants.js";
|
|
31
|
+
import { PositionAssets as ue, visibleAssets as Ae } from "./position-assets/position-assets.js";
|
|
32
|
+
import { ReviewButton as ke } from "./review-button/review-button.js";
|
|
33
|
+
import { SectionHeading as Le } from "./section-heading/section-heading.js";
|
|
34
|
+
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as he, SegmentedTabs as Ie } from "./segmented-tabs/segmented-tabs.js";
|
|
35
|
+
import { SPACE_HEIGHT as Ve, SPACE_PX as we } from "./spacing.js";
|
|
36
|
+
import { Stack as De } from "./stack/stack.js";
|
|
37
|
+
import { StatBadge as ve, StatBadgeGrid as Ee } from "./stat-badge/stat-badge.js";
|
|
38
|
+
import { StrategyApyBreakdownCardTest as Ne } from "./strategy-apy-breakdown-card/constants.js";
|
|
39
|
+
import { StrategyApyBreakdownCard as Ge } from "./strategy-apy-breakdown-card/strategy-apy-breakdown-card.js";
|
|
40
|
+
import { Tabber as Fe, TabberSection as Ue, isTabber as We } from "./tabber/tabber.js";
|
|
41
|
+
import { useDetailScrollSpy as Oe } from "./tabber/use-detail-scroll-spy.js";
|
|
42
|
+
import { useTitleText as je } from "./text/use-title-text.js";
|
|
43
|
+
import { TimeToLiquidationBlockTest as Ke } from "./time-to-liquidation-block/constants.js";
|
|
44
|
+
import { TimeToLiquidationBlock as Ye } from "./time-to-liquidation-block/time-to-liquidation-block.js";
|
|
45
|
+
import { TitleMetaTest as $e } from "./title-meta/constants.js";
|
|
46
|
+
import { TitleMeta as oo } from "./title-meta/title-meta.js";
|
|
47
|
+
import { TokenAmount as ro } from "./token-amount/token-amount.js";
|
|
48
|
+
import { TokenPairSymbolTest as io } from "./token-pair-symbol/constants.js";
|
|
49
|
+
import { TokenPairSymbol as mo } from "./token-pair-symbol/token-pair-symbol.js";
|
|
50
|
+
import { PositionShortLabelTest as so, ValueTest as no } from "./values/constants.js";
|
|
51
|
+
import { NoValue as To } from "./values/no-value.js";
|
|
52
|
+
import { PnlValue as Po } from "./values/pnl-value.js";
|
|
53
|
+
import { PositionShortLabel as So } from "./values/position-short-label.js";
|
|
54
|
+
import { PositionStatusBadge as uo } from "./values/position-status-badge.js";
|
|
55
|
+
import { PositionTypeBadge as Bo } from "./values/position-type-badge.js";
|
|
56
|
+
import { PriceImpactValue as bo, priceImpact as Lo } from "./values/price-impact-value.js";
|
|
57
|
+
import { ApyValue as ho, HealthFactorValue as Io, LeverageValue as yo, TokenBigint as Vo, UsdValue as wo, UtilizationValue as Mo, bps as Do } from "./values/scalars.js";
|
|
58
|
+
import { AmountInputTest as vo } from "./amount-input/constants.js";
|
|
59
|
+
import { DetailedPageTitleTest as qo } from "./detailed-page-title/constants.js";
|
|
60
|
+
import { DetailsViewTest as _o } from "./details-view/constants.js";
|
|
61
|
+
import { HistoryChartTest as Ro } from "./history-chart/constants.js";
|
|
62
|
+
import { InfoListTest as Uo } from "./info-list/constants.js";
|
|
63
|
+
import { LeverageInputTest as zo } from "./leverage-input/constants.js";
|
|
64
|
+
import { ManagePaneTest as Xo } from "./manage-pane/constants.js";
|
|
65
|
+
import { PageTitleTest as Jo } from "./page-title/constants.js";
|
|
66
|
+
import { ReviewButtonTest as Qo } from "./review-button/constants.js";
|
|
67
|
+
import { SectionHeadingTest as Zo } from "./section-heading/constants.js";
|
|
68
|
+
import { SegmentedTabsTest as et } from "./segmented-tabs/constants.js";
|
|
69
|
+
import { StackTest as tt } from "./stack/constants.js";
|
|
70
|
+
import { StatBadgeTest as at } from "./stat-badge/constants.js";
|
|
71
|
+
import { TabberTest as pt } from "./tabber/constants.js";
|
|
72
|
+
import { TokenAmountTest as ft } from "./token-amount/constants.js";
|
|
77
73
|
export {
|
|
78
74
|
t as AmountInput,
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
vo as AmountInputTest,
|
|
76
|
+
ho as ApyValue,
|
|
81
77
|
c as AsideAlignAnchor,
|
|
82
78
|
p as BorrowRateBlock,
|
|
83
79
|
f as BorrowRateBlockTest,
|
|
@@ -86,95 +82,90 @@ export {
|
|
|
86
82
|
S as DetailAsideScope,
|
|
87
83
|
A as DetailAsideScreenLayout,
|
|
88
84
|
d as DetailedPageTitle,
|
|
89
|
-
|
|
85
|
+
qo as DetailedPageTitleTest,
|
|
90
86
|
k as DetailsView,
|
|
91
87
|
b as DetailsViewLeftPane,
|
|
92
88
|
L as DetailsViewManagePane,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
_o as DetailsViewTest,
|
|
90
|
+
y as HealthFactorBlock,
|
|
91
|
+
h as HealthFactorBlockTest,
|
|
92
|
+
Io as HealthFactorValue,
|
|
97
93
|
w as HistoryChart,
|
|
98
|
-
|
|
94
|
+
Ro as HistoryChartTest,
|
|
99
95
|
D as InfoLine,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
q as
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Ee as
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
fo as TokenAmount,
|
|
165
|
-
St as TokenAmountTest,
|
|
166
|
-
qo as TokenBigint,
|
|
167
|
-
To as TokenPairSymbol,
|
|
168
|
-
no as TokenPairSymbolTest,
|
|
96
|
+
H as InfoList,
|
|
97
|
+
Uo as InfoListTest,
|
|
98
|
+
q as LeverageInput,
|
|
99
|
+
zo as LeverageInputTest,
|
|
100
|
+
R as LeveragePresetChips,
|
|
101
|
+
_ as LeveragePresetChipsTest,
|
|
102
|
+
yo as LeverageValue,
|
|
103
|
+
z as LiquidationParamsTable,
|
|
104
|
+
U as LiquidationParamsTableTest,
|
|
105
|
+
J as LiquidationPriceBlock,
|
|
106
|
+
X as LiquidationPriceBlockTest,
|
|
107
|
+
Q as ManagePane,
|
|
108
|
+
Y as ManagePaneActionTab,
|
|
109
|
+
Z as ManagePaneMessage,
|
|
110
|
+
$ as ManagePaneTab,
|
|
111
|
+
ee as ManagePaneTabDropdown,
|
|
112
|
+
Xo as ManagePaneTest,
|
|
113
|
+
ae as MoreAccordion,
|
|
114
|
+
te as MoreAccordionTest,
|
|
115
|
+
fe as NestedInfoStack,
|
|
116
|
+
pe as NestedInfoStackTest,
|
|
117
|
+
To as NoValue,
|
|
118
|
+
ne as PageHeadProvider,
|
|
119
|
+
xe as PageTitle,
|
|
120
|
+
Jo as PageTitleTest,
|
|
121
|
+
Po as PnlValue,
|
|
122
|
+
v as PointsInfoLine,
|
|
123
|
+
Pe as PoolApyBreakdownCard,
|
|
124
|
+
le as PoolApyBreakdownCardTest,
|
|
125
|
+
ue as PositionAssets,
|
|
126
|
+
Se as PositionAssetsTest,
|
|
127
|
+
So as PositionShortLabel,
|
|
128
|
+
so as PositionShortLabelTest,
|
|
129
|
+
uo as PositionStatusBadge,
|
|
130
|
+
Bo as PositionTypeBadge,
|
|
131
|
+
bo as PriceImpactValue,
|
|
132
|
+
ke as ReviewButton,
|
|
133
|
+
Qo as ReviewButtonTest,
|
|
134
|
+
he as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
135
|
+
Ve as SPACE_HEIGHT,
|
|
136
|
+
we as SPACE_PX,
|
|
137
|
+
Le as SectionHeading,
|
|
138
|
+
Zo as SectionHeadingTest,
|
|
139
|
+
Ie as SegmentedTabs,
|
|
140
|
+
et as SegmentedTabsTest,
|
|
141
|
+
De as Stack,
|
|
142
|
+
tt as StackTest,
|
|
143
|
+
ve as StatBadge,
|
|
144
|
+
Ee as StatBadgeGrid,
|
|
145
|
+
at as StatBadgeTest,
|
|
146
|
+
Ge as StrategyApyBreakdownCard,
|
|
147
|
+
Ne as StrategyApyBreakdownCardTest,
|
|
148
|
+
Fe as Tabber,
|
|
149
|
+
Ue as TabberSection,
|
|
150
|
+
pt as TabberTest,
|
|
151
|
+
Ye as TimeToLiquidationBlock,
|
|
152
|
+
Ke as TimeToLiquidationBlockTest,
|
|
153
|
+
oo as TitleMeta,
|
|
154
|
+
$e as TitleMetaTest,
|
|
155
|
+
ro as TokenAmount,
|
|
156
|
+
ft as TokenAmountTest,
|
|
157
|
+
Vo as TokenBigint,
|
|
158
|
+
mo as TokenPairSymbol,
|
|
159
|
+
io as TokenPairSymbolTest,
|
|
169
160
|
a as TokenSelectPanel,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
161
|
+
wo as UsdValue,
|
|
162
|
+
Mo as UtilizationValue,
|
|
163
|
+
no as ValueTest,
|
|
164
|
+
Do as bps,
|
|
165
|
+
We as isTabber,
|
|
166
|
+
Lo as priceImpact,
|
|
167
|
+
g as useDetailAsideAnchorGetter,
|
|
168
|
+
Oe as useDetailScrollSpy,
|
|
169
|
+
je as useTitleText,
|
|
170
|
+
Ae as visibleAssets
|
|
180
171
|
};
|
|
@@ -1,58 +1,81 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Stack as
|
|
3
|
-
import { useTitleText as
|
|
1
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as a } from "../stack/stack.js";
|
|
3
|
+
import { useTitleText as l } from "../text/use-title-text.js";
|
|
4
|
+
import { ValueTest as f } from "../values/constants.js";
|
|
4
5
|
import "../../help-tip/help-tip.js";
|
|
5
6
|
import "react";
|
|
6
7
|
import "react-intl";
|
|
7
|
-
import { pointProgramsOf as
|
|
8
|
+
import { pointProgramsOf as c } from "../../../utils/apy-breakdown.js";
|
|
8
9
|
import "@gearbox-protocol/sdk/onchain";
|
|
9
10
|
import "clsx";
|
|
10
11
|
import "tailwind-merge";
|
|
11
12
|
import "luxon";
|
|
12
13
|
import "../../../utils/z-index.js";
|
|
13
|
-
import { PointsValue as l } from "../values/points-value.js";
|
|
14
14
|
import "viem";
|
|
15
|
-
import "../../points-icon/points-icon.js";
|
|
15
|
+
import { PointsIcon as d } from "../../points-icon/points-icon.js";
|
|
16
16
|
import "../../token-icon/token-icon.js";
|
|
17
17
|
import "../../tooltip/simple-tooltip.js";
|
|
18
18
|
import "../../tooltip/tooltip.js";
|
|
19
19
|
import "../../badge/badge.js";
|
|
20
20
|
import "../../badge/chip.js";
|
|
21
21
|
import { VerticalIndicator as u } from "../../vertical-indicator/vertical-indicator.js";
|
|
22
|
-
import { InfoListTest as
|
|
23
|
-
function
|
|
22
|
+
import { InfoListTest as n } from "./constants.js";
|
|
23
|
+
function E({
|
|
24
24
|
children: t
|
|
25
25
|
}) {
|
|
26
|
-
return /* @__PURE__ */ o(
|
|
26
|
+
return /* @__PURE__ */ o(a, { gap: "sm", "data-testid": n.root, children: t });
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function x({
|
|
29
29
|
title: t,
|
|
30
30
|
size: r = "sm",
|
|
31
|
-
align:
|
|
32
|
-
"data-testid":
|
|
33
|
-
...
|
|
31
|
+
align: e = "start",
|
|
32
|
+
"data-testid": i = n.line,
|
|
33
|
+
...m
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const p = l();
|
|
36
36
|
return /* @__PURE__ */ o(
|
|
37
37
|
u,
|
|
38
38
|
{
|
|
39
|
-
label:
|
|
39
|
+
label: p(t),
|
|
40
40
|
size: r,
|
|
41
|
-
align:
|
|
42
|
-
"data-testid":
|
|
43
|
-
...
|
|
41
|
+
align: e,
|
|
42
|
+
"data-testid": i,
|
|
43
|
+
...m
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function F({
|
|
48
48
|
data: t,
|
|
49
49
|
title: r = "components.yieldBreakdown.points"
|
|
50
50
|
}) {
|
|
51
|
-
|
|
51
|
+
const e = t ? c(t) : [];
|
|
52
|
+
return e.length === 0 ? null : /* @__PURE__ */ o(
|
|
53
|
+
x,
|
|
54
|
+
{
|
|
55
|
+
title: r,
|
|
56
|
+
value: /* @__PURE__ */ o(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
className: "inline-flex flex-wrap items-center gap-1.5",
|
|
60
|
+
"data-testid": f.points,
|
|
61
|
+
children: e.map((i) => /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1", children: [
|
|
62
|
+
/* @__PURE__ */ o(
|
|
63
|
+
d,
|
|
64
|
+
{
|
|
65
|
+
reward: { name: i.name, type: i.id },
|
|
66
|
+
size: 16
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ o("span", { children: i.name })
|
|
70
|
+
] }, i.id))
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
);
|
|
52
75
|
}
|
|
53
76
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
77
|
+
x as InfoLine,
|
|
78
|
+
E as InfoList,
|
|
79
|
+
n as InfoListTest,
|
|
80
|
+
F as PointsInfoLine
|
|
58
81
|
};
|
|
@@ -1,70 +1,88 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Stack as
|
|
4
|
-
import { useTitleText as
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h } from "react";
|
|
3
|
+
import { Stack as I } from "../stack/stack.js";
|
|
4
|
+
import { useTitleText as V } from "../text/use-title-text.js";
|
|
5
5
|
import { EditInput as j } from "../../edit-input/edit-input.js";
|
|
6
6
|
import { Slider as F } from "../../slider/slider.js";
|
|
7
7
|
import "../../slider/slider-context.js";
|
|
8
8
|
import { TextButton as O } from "../../text-button/text-button.js";
|
|
9
9
|
import { SimpleTooltip as R } from "../../tooltip/simple-tooltip.js";
|
|
10
10
|
import "../../tooltip/tooltip.js";
|
|
11
|
-
import { useIntlTyped as
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
import { useIntlTyped as _, FormattedMessageTyped as b } from "../../typed-intl/index.js";
|
|
12
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
13
|
+
import { cn as B } from "../../../utils/cn.js";
|
|
14
|
+
import { formatLeverage as T } from "../../../utils/format-leverage.js";
|
|
15
|
+
import "luxon";
|
|
16
|
+
import "../../../utils/z-index.js";
|
|
17
|
+
import { LeverageInputTest as l } from "./constants.js";
|
|
18
|
+
const o = 100, D = 10, P = {
|
|
19
|
+
sm: "text-[14px] mb-[14px]",
|
|
20
|
+
default: "text-body mb-[18px]",
|
|
21
|
+
md: "text-lg mb-[22px]",
|
|
22
|
+
lg: "text-[21px] mb-[22px]"
|
|
23
|
+
};
|
|
24
|
+
function z({
|
|
25
|
+
title: n,
|
|
26
|
+
children: a,
|
|
27
|
+
size: r = "default"
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ s("div", { className: "flex flex-col", children: [
|
|
30
|
+
/* @__PURE__ */ t("div", { className: B("font-medium text-foreground", P[r]), children: n }),
|
|
31
|
+
a !== void 0 && /* @__PURE__ */ t("div", { children: a })
|
|
32
|
+
] });
|
|
33
|
+
}
|
|
34
|
+
function ae({
|
|
17
35
|
value: n,
|
|
18
|
-
onChange:
|
|
36
|
+
onChange: a,
|
|
19
37
|
max: r,
|
|
20
38
|
min: m = 1,
|
|
21
|
-
title:
|
|
22
|
-
hint:
|
|
23
|
-
reset:
|
|
24
|
-
colorIntervals:
|
|
25
|
-
colorIntervalLabel:
|
|
26
|
-
size:
|
|
39
|
+
title: d,
|
|
40
|
+
hint: c,
|
|
41
|
+
reset: i,
|
|
42
|
+
colorIntervals: N,
|
|
43
|
+
colorIntervalLabel: E,
|
|
44
|
+
size: w = "sm"
|
|
27
45
|
}) {
|
|
28
|
-
const S =
|
|
46
|
+
const S = _(), L = V(), p = N ?? [], C = E ?? (p.length > 0 ? S.formatMessage({
|
|
29
47
|
messageId: "components.leverageInput.available"
|
|
30
|
-
}) : void 0), [M, u] =
|
|
31
|
-
|
|
48
|
+
}) : void 0), [M, u] = h(void 0), [f, x] = h(""), g = M ?? n, v = (e) => {
|
|
49
|
+
a(A(e, m, r)), u(void 0);
|
|
32
50
|
}, k = () => {
|
|
33
51
|
const e = Number.parseFloat(f.replace(",", "."));
|
|
34
52
|
Number.isFinite(e) && v(e);
|
|
35
|
-
},
|
|
53
|
+
}, y = p.map((e) => ({
|
|
36
54
|
...e,
|
|
37
55
|
start: e.start * o,
|
|
38
56
|
end: e.end * o
|
|
39
57
|
}));
|
|
40
|
-
return /* @__PURE__ */ t("div", { "data-testid":
|
|
41
|
-
|
|
58
|
+
return /* @__PURE__ */ t("div", { "data-testid": l.root, children: /* @__PURE__ */ t(
|
|
59
|
+
z,
|
|
42
60
|
{
|
|
43
|
-
size:
|
|
44
|
-
title: /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
|
|
61
|
+
size: w,
|
|
62
|
+
title: /* @__PURE__ */ s(I, { direction: "row", align: "center", justify: "between", gap: "sm", children: [
|
|
63
|
+
/* @__PURE__ */ s("span", { className: "font-normal", children: [
|
|
64
|
+
d !== void 0 ? L(d) : /* @__PURE__ */ t(b, { messageId: "components.leverageInput.label" }),
|
|
65
|
+
c ? /* @__PURE__ */ t("span", { className: "text-muted-foreground ml-1", children: c }) : null
|
|
48
66
|
] }),
|
|
49
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ s(I, { direction: "row", align: "center", gap: "sm", children: [
|
|
50
68
|
/* @__PURE__ */ t("div", { className: "flex w-[90px] flex-row flex-nowrap items-center", children: /* @__PURE__ */ t(
|
|
51
69
|
j,
|
|
52
70
|
{
|
|
53
71
|
value: f,
|
|
54
72
|
placeholder: "0",
|
|
55
|
-
label: `${
|
|
73
|
+
label: `${T(g)}x`,
|
|
56
74
|
textButtonProps: {
|
|
57
75
|
className: "inline-flex items-center whitespace-nowrap"
|
|
58
76
|
},
|
|
59
|
-
"data-testid":
|
|
77
|
+
"data-testid": l.value,
|
|
60
78
|
onEditModeChange: (e) => {
|
|
61
|
-
e &&
|
|
79
|
+
e && x(T(n));
|
|
62
80
|
},
|
|
63
|
-
onChange: (e) =>
|
|
81
|
+
onChange: (e) => x(e.target.value),
|
|
64
82
|
onSubmit: k
|
|
65
83
|
}
|
|
66
84
|
) }),
|
|
67
|
-
|
|
85
|
+
i ? /* @__PURE__ */ t(
|
|
68
86
|
R,
|
|
69
87
|
{
|
|
70
88
|
placement: "top",
|
|
@@ -76,12 +94,12 @@ function ee({
|
|
|
76
94
|
buttonColor: "secondaryDashed",
|
|
77
95
|
size: "sm",
|
|
78
96
|
className: "max-w-full truncate",
|
|
79
|
-
onClick:
|
|
80
|
-
"data-testid":
|
|
81
|
-
children: /* @__PURE__ */ t(
|
|
97
|
+
onClick: i.onClick,
|
|
98
|
+
"data-testid": i.testId ?? l.reset,
|
|
99
|
+
children: /* @__PURE__ */ t(b, { messageId: "components.leverageInput.reset" })
|
|
82
100
|
}
|
|
83
101
|
),
|
|
84
|
-
children:
|
|
102
|
+
children: i.tooltip
|
|
85
103
|
}
|
|
86
104
|
) : null
|
|
87
105
|
] })
|
|
@@ -92,11 +110,11 @@ function ee({
|
|
|
92
110
|
from: m * o,
|
|
93
111
|
to: r * o,
|
|
94
112
|
precision: o,
|
|
95
|
-
value:
|
|
96
|
-
colorIntervals:
|
|
97
|
-
colorIntervalLabel:
|
|
98
|
-
markerStep: r >
|
|
99
|
-
"data-testid":
|
|
113
|
+
value: g * o,
|
|
114
|
+
colorIntervals: y,
|
|
115
|
+
colorIntervalLabel: C,
|
|
116
|
+
markerStep: r > D ? 200 : 100,
|
|
117
|
+
"data-testid": l.slider,
|
|
100
118
|
onChangeValue: (e) => u(e / o),
|
|
101
119
|
onSubmitValue: (e) => v(e / o)
|
|
102
120
|
}
|
|
@@ -104,10 +122,10 @@ function ee({
|
|
|
104
122
|
}
|
|
105
123
|
) });
|
|
106
124
|
}
|
|
107
|
-
function
|
|
108
|
-
return Math.min(Math.max(n,
|
|
125
|
+
function A(n, a, r) {
|
|
126
|
+
return Math.min(Math.max(n, a), r);
|
|
109
127
|
}
|
|
110
128
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
129
|
+
ae as LeverageInput,
|
|
130
|
+
l as LeverageInputTest
|
|
113
131
|
};
|