@gearbox-protocol/ui-kit 4.7.0 → 4.8.0-next.1
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/README.md +5 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/user-agreements/agreement-cache.cjs +1 -0
- package/dist/cjs/user-agreements/agreement-error.cjs +1 -0
- package/dist/cjs/user-agreements/agreement-service.cjs +1 -0
- package/dist/cjs/user-agreements/index.cjs +1 -0
- package/dist/cjs/user-agreements/legal-messages.cjs +18 -0
- package/dist/cjs/user-agreements/types.cjs +1 -0
- package/dist/cjs/user-agreements/use-agreement.cjs +1 -0
- package/dist/cjs/user-agreements/use-blocked-region.cjs +1 -0
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/wallet.cjs +1 -0
- package/dist/esm/index.js +181 -176
- package/dist/esm/user-agreements/agreement-cache.js +15 -0
- package/dist/esm/user-agreements/agreement-error.js +44 -0
- package/dist/esm/user-agreements/agreement-service.js +122 -0
- package/dist/esm/user-agreements/index.js +25 -0
- package/dist/esm/user-agreements/legal-messages.js +61 -0
- package/dist/esm/user-agreements/types.js +1 -0
- package/dist/esm/user-agreements/use-agreement.js +130 -0
- package/dist/esm/user-agreements/use-blocked-region.js +24 -0
- package/dist/esm/utils/index.js +30 -25
- package/dist/esm/utils/wallet.js +37 -0
- package/dist/types/user-agreements/agreement-cache.d.ts +11 -0
- package/dist/types/user-agreements/agreement-error.d.ts +19 -0
- package/dist/types/user-agreements/agreement-service.d.ts +25 -0
- package/dist/types/user-agreements/index.d.ts +6 -0
- package/dist/types/user-agreements/legal-messages.d.ts +49 -0
- package/dist/types/user-agreements/types.d.ts +28 -0
- package/dist/types/user-agreements/use-agreement.d.ts +76 -0
- package/dist/types/user-agreements/use-blocked-region.d.ts +15 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/wallet.d.ts +25 -0
- package/package.json +20 -5
package/dist/esm/index.js
CHANGED
|
@@ -6,19 +6,19 @@ import { ChartWithSideCardTest as x } from "./components/base/chart-with-side-ca
|
|
|
6
6
|
import { DetailedPageTitle as s } from "./components/base/detailed-page-title/detailed-page-title.js";
|
|
7
7
|
import { AsideAlignAnchor as d } from "./components/base/details-view/detail-aside/detail-aside-scope.js";
|
|
8
8
|
import { DetailsView as u, DetailsViewLeftPane as c, DetailsViewManagePane as S, DetailsViewManagePaneSlot as C } from "./components/base/details-view/details-view.js";
|
|
9
|
-
import { HealthFactorBlockTest as
|
|
10
|
-
import { HealthFactorBlock as
|
|
9
|
+
import { HealthFactorBlockTest as P } from "./components/base/health-factor-block/constants.js";
|
|
10
|
+
import { HealthFactorBlock as B } from "./components/base/health-factor-block/health-factor-block.js";
|
|
11
11
|
import { HistoryChart as L } from "./components/base/history-chart/history-chart.js";
|
|
12
|
-
import { InfoLine as I, InfoList as
|
|
12
|
+
import { InfoLine as I, InfoList as M, PointsInfoLine as w } from "./components/base/info-list/info-list.js";
|
|
13
13
|
import { LeverageInput as y } from "./components/base/leverage-input/leverage-input.js";
|
|
14
14
|
import { LeveragePresetChipsTest as H } from "./components/base/leverage-preset-chips/constants.js";
|
|
15
15
|
import { LeveragePresetChips as V } from "./components/base/leverage-preset-chips/leverage-preset-chips.js";
|
|
16
16
|
import { LiquidationParamsTableTest as E } from "./components/base/liquidation-params-table/constants.js";
|
|
17
17
|
import { LiquidationParamsTable as W } from "./components/base/liquidation-params-table/liquidation-params-table.js";
|
|
18
|
-
import { LiquidationPriceBlockTest as
|
|
18
|
+
import { LiquidationPriceBlockTest as O } from "./components/base/liquidation-price-block/constants.js";
|
|
19
19
|
import { LiquidationPriceBlock as _ } from "./components/base/liquidation-price-block/liquidation-price-block.js";
|
|
20
|
-
import { ManagePane as
|
|
21
|
-
import { MoreAccordionTest as
|
|
20
|
+
import { ManagePane as K, ManagePaneActionTab as X, ManagePaneMessage as Y, ManagePaneTab as Z, ManagePaneTabDropdown as z } from "./components/base/manage-pane/manage-pane.js";
|
|
21
|
+
import { MoreAccordionTest as j } from "./components/base/more-accordion/constants.js";
|
|
22
22
|
import { MoreAccordion as $ } from "./components/base/more-accordion/more-accordion.js";
|
|
23
23
|
import { NestedInfoStackTest as eo } from "./components/base/nested-info-stack/constants.js";
|
|
24
24
|
import { NestedInfoStack as to } from "./components/base/nested-info-stack/nested-info-stack.js";
|
|
@@ -29,21 +29,21 @@ import { PositionAssetsTest as so } from "./components/base/position-assets/cons
|
|
|
29
29
|
import { PositionAssets as go } from "./components/base/position-assets/position-assets.js";
|
|
30
30
|
import { ReviewButton as co } from "./components/base/review-button/review-button.js";
|
|
31
31
|
import { ReviewSolution as Co } from "./components/base/review-button/review-solution.js";
|
|
32
|
-
import { SectionHeading as
|
|
33
|
-
import { SegmentedTabs as
|
|
32
|
+
import { SectionHeading as Po } from "./components/base/section-heading/section-heading.js";
|
|
33
|
+
import { SegmentedTabs as Bo } from "./components/base/segmented-tabs/segmented-tabs.js";
|
|
34
34
|
import { Stack as Lo } from "./components/base/stack/stack.js";
|
|
35
|
-
import { StatBadge as Io, StatBadgeGrid as
|
|
35
|
+
import { StatBadge as Io, StatBadgeGrid as Mo } from "./components/base/stat-badge/stat-badge.js";
|
|
36
36
|
import { StrategyApyBreakdownCardTest as ho } from "./components/base/strategy-apy-breakdown-card/constants.js";
|
|
37
37
|
import { StrategyApyBreakdownCard as Fo } from "./components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js";
|
|
38
38
|
import { Tabber as vo, TabberSection as Vo } from "./components/base/tabber/tabber.js";
|
|
39
39
|
import { useTitleText as Eo } from "./components/base/text/use-title-text.js";
|
|
40
40
|
import { TimeToLiquidationBlockTest as Wo } from "./components/base/time-to-liquidation-block/constants.js";
|
|
41
|
-
import { TimeToLiquidationBlock as
|
|
41
|
+
import { TimeToLiquidationBlock as Oo } from "./components/base/time-to-liquidation-block/time-to-liquidation-block.js";
|
|
42
42
|
import { TitleMetaTest as _o } from "./components/base/title-meta/constants.js";
|
|
43
|
-
import { TitleMeta as
|
|
44
|
-
import { TokenAmount as
|
|
45
|
-
import { TokenPairSymbolTest as
|
|
46
|
-
import { TokenPairSymbol as
|
|
43
|
+
import { TitleMeta as Ko } from "./components/base/title-meta/title-meta.js";
|
|
44
|
+
import { TokenAmount as Yo } from "./components/base/token-amount/token-amount.js";
|
|
45
|
+
import { TokenPairSymbolTest as zo } from "./components/base/token-pair-symbol/constants.js";
|
|
46
|
+
import { TokenPairSymbol as jo } from "./components/base/token-pair-symbol/token-pair-symbol.js";
|
|
47
47
|
import { NoValue as $o } from "./components/no-value/no-value.js";
|
|
48
48
|
import { PositionShortLabelTest as ee, ValueTest as re } from "./components/base/values/constants.js";
|
|
49
49
|
import { PnlValue as ae } from "./components/base/values/pnl-value.js";
|
|
@@ -52,15 +52,15 @@ import { PositionStatusBadge as ne } from "./components/base/values/position-sta
|
|
|
52
52
|
import { PositionTypeBadge as xe } from "./components/base/values/position-type-badge.js";
|
|
53
53
|
import { PriceImpactValue as se } from "./components/base/values/price-impact-value.js";
|
|
54
54
|
import { ApyValue as de, HealthFactorValue as ge, LeverageValue as ue, TokenBigint as ce, UsdValue as Se, UtilizationValue as Ce } from "./components/base/values/scalars.js";
|
|
55
|
-
import { AlertBadge as
|
|
56
|
-
import { AlertDialog as
|
|
55
|
+
import { AlertBadge as Pe } from "./components/alert-badge/alert-badge.js";
|
|
56
|
+
import { AlertDialog as Be, AlertDialogAction as be, AlertDialogCancel as Le, AlertDialogContent as ke, AlertDialogDescription as Ie, AlertDialogFooter as Me, AlertDialogHeader as we, AlertDialogTitle as he, AlertDialogTrigger as ye } from "./components/alert-dialog/alert-dialog.js";
|
|
57
57
|
import { AlertModal as He } from "./components/alert-modal/alert-modal.js";
|
|
58
58
|
import { AppBarDotsButton as Ve, AppBarDropdownMenu as Re, AppBarHamburgerButton as Ee, AppBarMenuItem as Ne, AppBarNavItem as We } from "./components/app-bar/app-bar.js";
|
|
59
|
-
import { AssetsListCell as
|
|
59
|
+
import { AssetsListCell as Oe } from "./components/assets-list-cell/assets-list-cell.js";
|
|
60
60
|
import { Badge as _e } from "./components/badge/badge.js";
|
|
61
|
-
import { Chip as
|
|
62
|
-
import { BaseLink as
|
|
63
|
-
import { BaseTable as
|
|
61
|
+
import { Chip as Ke, ChipTest as Xe, Chips as Ye, ChipsTest as Ze } from "./components/badge/chip.js";
|
|
62
|
+
import { BaseLink as Qe } from "./components/base-link/base-link.js";
|
|
63
|
+
import { BaseTable as Je } from "./components/base-table/base-table.js";
|
|
64
64
|
import { BaseTableLine as or } from "./components/base-table/base-table-line.js";
|
|
65
65
|
import { BreadCrumbs as rr } from "./components/breadcrumbs/breadcrumbs.js";
|
|
66
66
|
import { BreakpointProvider as ar } from "./components/breakpoints/breakpoint-provider.js";
|
|
@@ -69,22 +69,22 @@ import { Button as nr } from "./components/buttons/button/button.js";
|
|
|
69
69
|
import { CopyButton as xr } from "./components/buttons/copy-button/copy-button.js";
|
|
70
70
|
import { ExternalButton as sr } from "./components/buttons/external-button/external-button.js";
|
|
71
71
|
import { TabButton as dr } from "./components/buttons/tab-button/tab-button.js";
|
|
72
|
-
import { Card as ur, CardContent as cr, CardDescription as Sr, CardHeader as Cr, CardTitle as
|
|
73
|
-
import { DangerZone as
|
|
72
|
+
import { Card as ur, CardContent as cr, CardDescription as Sr, CardHeader as Cr, CardTitle as Dr } from "./components/cards/card/card.js";
|
|
73
|
+
import { DangerZone as Ar } from "./components/cards/danger-zone/danger-zone.js";
|
|
74
74
|
import { ExpandableCard as br } from "./components/cards/expandable-card/expandable-card.js";
|
|
75
75
|
import { Checkbox as kr } from "./components/checkbox/checkbox.js";
|
|
76
|
-
import { CheckboxLabeled as
|
|
76
|
+
import { CheckboxLabeled as Mr } from "./components/checkbox/checkbox-labeled.js";
|
|
77
77
|
import { StyledDialogContainer as hr } from "./components/client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
78
78
|
import { AllocationWheelTest as Fr, CollateralAllocationTooltipTest as Hr } from "./components/collateral-allocation-tooltip/constants.js";
|
|
79
79
|
import { NotificationCenter as Vr } from "./components/composites/notification-center/notification-center.js";
|
|
80
80
|
import { PoolAssetsTableTest as Er } from "./components/composites/pool-assets-table/constants.js";
|
|
81
81
|
import { PoolAssetsTable as Wr } from "./components/composites/pool-assets-table/pool-assets-table.js";
|
|
82
|
-
import { TransactionConfirmAmountFieldTest as
|
|
82
|
+
import { TransactionConfirmAmountFieldTest as Or } from "./components/composites/tx-preview/confirm/amounts/constants.js";
|
|
83
83
|
import { TransactionConfirmAmountField as _r } from "./components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js";
|
|
84
|
-
import { TransactionConfirmDialogTest as
|
|
85
|
-
import { TransactionConfirmShell as
|
|
86
|
-
import { TransactionConfirmExecuteButton as
|
|
87
|
-
import { TransactionConfirmExecuteButtonTest as
|
|
84
|
+
import { TransactionConfirmDialogTest as Kr } from "./components/composites/tx-preview/confirm/dialog/constants.js";
|
|
85
|
+
import { TransactionConfirmShell as Yr } from "./components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js";
|
|
86
|
+
import { TransactionConfirmExecuteButton as zr } from "./components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.js";
|
|
87
|
+
import { TransactionConfirmExecuteButtonTest as jr, TransactionConfirmFailureResultTest as Jr, TransactionConfirmSuccessResultTest as $r, TransactionConfirmTxHashRowTest as ot } from "./components/composites/tx-preview/confirm/result/constants.js";
|
|
88
88
|
import { TransactionConfirmFailureResult as rt } from "./components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.js";
|
|
89
89
|
import { TransactionConfirmSuccessResult as at } from "./components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.js";
|
|
90
90
|
import { TransactionConfirmTxHashRow as mt } from "./components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.js";
|
|
@@ -94,21 +94,21 @@ import { CompoundAPY as st } from "./components/compound-apy/compound-apy.js";
|
|
|
94
94
|
import { ConfirmMenu as dt } from "./components/confirm-menu/confirm-menu.js";
|
|
95
95
|
import { DetailedPageTitleExplorerDropdown as ut } from "./components/detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
96
96
|
import { Modal as St } from "./components/modal/modal.js";
|
|
97
|
-
import { Dialog as
|
|
98
|
-
import { DialogContainer as
|
|
97
|
+
import { Dialog as Dt, DialogTrigger as Pt } from "./components/dialog/dialog.js";
|
|
98
|
+
import { DialogContainer as Bt } from "./components/dialog/dialog-container.js";
|
|
99
99
|
import { DialogContent as Lt } from "./components/dialog/dialog-content.js";
|
|
100
100
|
import { DialogDescription as It } from "./components/dialog/dialog-description.js";
|
|
101
|
-
import { DialogFooter as
|
|
101
|
+
import { DialogFooter as wt } from "./components/dialog/dialog-footer.js";
|
|
102
102
|
import { DialogForm as yt } from "./components/dialog/dialog-form.js";
|
|
103
103
|
import { DialogHeader as Ht } from "./components/dialog/dialog-header.js";
|
|
104
104
|
import { DialogModalContainer as Vt } from "./components/dialog/dialog-modal-container.js";
|
|
105
105
|
import { DialogTitle as Et } from "./components/dialog/dialog-title.js";
|
|
106
106
|
import { OneFieldDialog as Wt } from "./components/dialog/one-field-dialog.js";
|
|
107
|
-
import { DisabledWrap as
|
|
108
|
-
import { DropdownMenu as _t, DropdownMenuPortal as Ut, DropdownMenuTrigger as
|
|
109
|
-
import { DropdownMenuContent as
|
|
110
|
-
import { DropdownMenuItem as
|
|
111
|
-
import { DropdownMenuLabel as
|
|
107
|
+
import { DisabledWrap as Ot } from "./components/disabled-wrap/disabled-wrap.js";
|
|
108
|
+
import { DropdownMenu as _t, DropdownMenuPortal as Ut, DropdownMenuTrigger as Kt } from "./components/dropdown-menu/dropdown-menu.js";
|
|
109
|
+
import { DropdownMenuContent as Yt } from "./components/dropdown-menu/dropdown-menu-content.js";
|
|
110
|
+
import { DropdownMenuItem as zt } from "./components/dropdown-menu/dropdown-menu-item.js";
|
|
111
|
+
import { DropdownMenuLabel as jt } from "./components/dropdown-menu/dropdown-menu-label.js";
|
|
112
112
|
import { EditInput as $t } from "./components/edit-input/edit-input.js";
|
|
113
113
|
import { ErrorLineMessage as ea } from "./components/error-message/error-line-message.js";
|
|
114
114
|
import { FadeoutLoading as ta } from "./components/fadeout-loading/fadeout-loading.js";
|
|
@@ -120,22 +120,22 @@ import { HealthFactor as Ta } from "./components/health-factor/health-factor.js"
|
|
|
120
120
|
import { HelpTip as ga } from "./components/help-tip/help-tip.js";
|
|
121
121
|
import { HFIndicator as ca } from "./components/hf-indicator/hf-indicator.js";
|
|
122
122
|
import { IconButton as Ca } from "./components/icon-button/icon-button.js";
|
|
123
|
-
import { FaIcon as
|
|
124
|
-
import { InfiniteScrollWrapper as
|
|
123
|
+
import { FaIcon as Pa } from "./components/icons/fa-icon.js";
|
|
124
|
+
import { InfiniteScrollWrapper as Ba } from "./components/infinite-scroll/infinite-scroll-wrapper.js";
|
|
125
125
|
import { Input as La } from "./components/input/input.js";
|
|
126
126
|
import { Label as Ia } from "./components/label/label.js";
|
|
127
|
-
import { AppFooter as
|
|
127
|
+
import { AppFooter as wa } from "./components/layout/app-footer/app-footer.js";
|
|
128
128
|
import { AppHeader as ya } from "./components/layout/app-header/app-header.js";
|
|
129
129
|
import { Col as Ha } from "./components/layout/col/col.js";
|
|
130
130
|
import { Container as Va } from "./components/layout/container/container.js";
|
|
131
131
|
import { Grid as Ea } from "./components/layout/grid/grid.js";
|
|
132
132
|
import { Layout as Wa } from "./components/layout/layout/layout.js";
|
|
133
|
-
import { BlockedRegionDialog as
|
|
133
|
+
import { BlockedRegionDialog as Oa, LegalAgreementDialog as Ga } from "./components/legal-agreement/legal-agreement-dialog.js";
|
|
134
134
|
import { LegalAgreementLink as Ua } from "./components/legal-agreement/legal-agreement-link.js";
|
|
135
|
-
import { Link as
|
|
136
|
-
import { Loader as
|
|
137
|
-
import { Loading as
|
|
138
|
-
import { MarkdownText as
|
|
135
|
+
import { Link as Xa } from "./components/link/link.js";
|
|
136
|
+
import { Loader as Za } from "./components/loader/loader.js";
|
|
137
|
+
import { Loading as Qa } from "./components/loading/loading.js";
|
|
138
|
+
import { MarkdownText as Ja } from "./components/markdown-text/markdown-text.js";
|
|
139
139
|
import { NameCell as op } from "./components/name-cell/name-cell.js";
|
|
140
140
|
import { NavBarLogo as rp } from "./components/navbar-logo/navbar-logo.js";
|
|
141
141
|
import { NavigationProvider as ap } from "./components/navigation-context/navigation-provider.js";
|
|
@@ -146,20 +146,20 @@ import { RadioGroup as sp, RadioGroupItem as Tp } from "./components/radio-group
|
|
|
146
146
|
import { RWAFeature as gp } from "./components/rwa-feature/rwa-feature.js";
|
|
147
147
|
import { SdkStatusPillTest as cp } from "./components/sdk-status-pill/constants.js";
|
|
148
148
|
import { SdkStatusPill as Cp } from "./components/sdk-status-pill/sdk-status-pill.js";
|
|
149
|
-
import { SearchLine as
|
|
150
|
-
import { SegmentedControl as
|
|
151
|
-
import { Select as Lp, SelectContent as kp, SelectItem as Ip, SelectTrigger as
|
|
149
|
+
import { SearchLine as Pp } from "./components/search-line/search-line.js";
|
|
150
|
+
import { SegmentedControl as Bp } from "./components/segmented-control/segmented-control.js";
|
|
151
|
+
import { Select as Lp, SelectContent as kp, SelectItem as Ip, SelectTrigger as Mp, SelectValue as wp } from "./components/select/select.js";
|
|
152
152
|
import { SeparateLine as yp } from "./components/separate-line/separate-line.js";
|
|
153
153
|
import { ShortString as Hp } from "./components/short-string/short-string.js";
|
|
154
154
|
import { SimpleDropdown as Vp } from "./components/simple-dropdown/simple-dropdown.js";
|
|
155
155
|
import { SimpleDropdownMenuItem as Ep } from "./components/simple-dropdown/simple-dropdown-menu-item.js";
|
|
156
156
|
import { Skeleton as Wp } from "./components/skeleton/skeleton.js";
|
|
157
|
-
import { SkeletonStack as
|
|
157
|
+
import { SkeletonStack as Op } from "./components/skeleton/skeleton-stack.js";
|
|
158
158
|
import { SliderTest as _p } from "./components/slider/constants.js";
|
|
159
|
-
import { Spinner as
|
|
160
|
-
import { SpinnerLoader as
|
|
161
|
-
import { SplitList as
|
|
162
|
-
import { TabControl as
|
|
159
|
+
import { Spinner as Kp } from "./components/spinner/spinner.js";
|
|
160
|
+
import { SpinnerLoader as Yp } from "./components/spinner-loader/spinner-loader.js";
|
|
161
|
+
import { SplitList as zp } from "./components/split-list/split-list.js";
|
|
162
|
+
import { TabControl as jp } from "./components/tab-control/tab-control.js";
|
|
163
163
|
import { GridErrorLine as $p } from "./components/table/grid-error-line.js";
|
|
164
164
|
import { Table as em, TableBody as rm, TableCell as tm, TableHead as am, TableHeader as pm, TableRow as mm } from "./components/table/table.js";
|
|
165
165
|
import { Tabs as nm, TabsContent as fm, TabsList as xm, TabsTrigger as lm } from "./components/tabs/tabs.js";
|
|
@@ -167,20 +167,20 @@ import { TextButton as Tm } from "./components/text-button/text-button.js";
|
|
|
167
167
|
import { Textarea as gm } from "./components/textarea/textarea.js";
|
|
168
168
|
import { ThemeProvider as cm } from "./components/theme-provider.js";
|
|
169
169
|
import { TipCard as Cm } from "./components/tip-card/tip-card.js";
|
|
170
|
-
import { TokenIcon as
|
|
171
|
-
import { TokenSymbol as
|
|
170
|
+
import { TokenIcon as Pm } from "./components/token-icon/token-icon.js";
|
|
171
|
+
import { TokenSymbol as Bm } from "./components/token-symbol/token-symbol.js";
|
|
172
172
|
import { TokenTemplate as Lm } from "./components/token-template/token-template.js";
|
|
173
173
|
import { SimpleTooltip as Im } from "./components/tooltip/simple-tooltip.js";
|
|
174
|
-
import { Tooltip as
|
|
174
|
+
import { Tooltip as wm, TooltipContent as hm, TooltipProvider as ym, TooltipTrigger as Fm } from "./components/tooltip/tooltip.js";
|
|
175
175
|
import { TradingViewTest as vm } from "./components/trading-view/constants.js";
|
|
176
176
|
import { TradingView as Rm } from "./components/trading-view/trading-view.js";
|
|
177
177
|
import { TruncatedText as Nm } from "./components/truncated-text/truncated-text.js";
|
|
178
|
-
import { FormattedMessageTyped as qm, useIntlTyped as
|
|
178
|
+
import { FormattedMessageTyped as qm, useIntlTyped as Om } from "./components/typed-intl/index.js";
|
|
179
179
|
import { Typography as _m } from "./components/typography/typography.js";
|
|
180
|
-
import { VerticalIndicator as
|
|
181
|
-
import { VSpace as
|
|
182
|
-
import { WithCopy as
|
|
183
|
-
import { ApyBreakdownTooltip as
|
|
180
|
+
import { VerticalIndicator as Km } from "./components/vertical-indicator/vertical-indicator.js";
|
|
181
|
+
import { VSpace as Ym } from "./components/vspace/vspace.js";
|
|
182
|
+
import { WithCopy as zm } from "./components/with-copy/with-copy.js";
|
|
183
|
+
import { ApyBreakdownTooltip as jm } from "./components/yield-breakdown-tooltip/yield-breakdown-tooltip.js";
|
|
184
184
|
import { useDebounceCall as $m } from "./hooks/use-debounce-call.js";
|
|
185
185
|
import { getSortForFields as ei, nextMultiSortState as ri, useSort as ti } from "./hooks/use-filter.js";
|
|
186
186
|
import { useIsDesktop as pi, useIsMedium as mi, useIsMobile as ii, useMediaQuery as ni } from "./hooks/use-media-query.js";
|
|
@@ -188,68 +188,69 @@ import { usePrevious as xi } from "./hooks/use-previous.js";
|
|
|
188
188
|
import { default as si } from "./locale/en.json.js";
|
|
189
189
|
import { cn as di, cn as gi } from "./utils/cn.js";
|
|
190
190
|
import { APPROXIMATE_SYMBOL as ci, formatTimestamp as Si, shortenHash as Ci } from "./utils/format.js";
|
|
191
|
-
import { formatLeverage as
|
|
191
|
+
import { formatLeverage as Pi, formatLeverageExact as Ai } from "./utils/format-leverage.js";
|
|
192
192
|
import { formatMoney as bi, percentageTemplate as Li } from "./utils/format-money.js";
|
|
193
193
|
import { formatPnl as Ii } from "./utils/format-pnl.js";
|
|
194
|
-
import { formatOraclePrice as
|
|
194
|
+
import { formatOraclePrice as wi } from "./utils/format-price.js";
|
|
195
195
|
import { slippageTemplate as yi } from "./utils/format-slippage.js";
|
|
196
196
|
import { leveragePresets as Hi } from "./utils/leverage-presets.js";
|
|
197
197
|
import { bnToLiquidationPriceView as Vi, parseInputToBN as Ri } from "./utils/parse-input-to-bn.js";
|
|
198
198
|
import { shortenString as Ni } from "./utils/shorten-string.js";
|
|
199
199
|
import { tokenTemplateString as qi } from "./utils/templates.js";
|
|
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 {
|
|
215
|
-
import {
|
|
216
|
-
import {
|
|
217
|
-
import {
|
|
200
|
+
import { DEFAULT_SAFE_DOMAINS as Gi, isBinanceSDK as _i, isSafeAppsSDK as Ui, isSafeDomain as Ki } from "./utils/wallet.js";
|
|
201
|
+
import { openInNewWindow as Yi } from "./utils/window.js";
|
|
202
|
+
import { Z_INDEX as zi } from "./utils/z-index.js";
|
|
203
|
+
import { AmountInputTest as ji } from "./components/base/amount-input/constants.js";
|
|
204
|
+
import { DetailedPageTitleTest as $i } from "./components/base/detailed-page-title/constants.js";
|
|
205
|
+
import { DetailsViewTest as en } from "./components/base/details-view/constants.js";
|
|
206
|
+
import { HistoryChartTest as tn } from "./components/base/history-chart/constants.js";
|
|
207
|
+
import { InfoListTest as pn } from "./components/base/info-list/constants.js";
|
|
208
|
+
import { LeverageInputTest as nn } from "./components/base/leverage-input/constants.js";
|
|
209
|
+
import { ManagePaneTest as xn } from "./components/base/manage-pane/constants.js";
|
|
210
|
+
import { PageTitleTest as sn } from "./components/base/page-title/constants.js";
|
|
211
|
+
import { ReviewButtonTest as dn } from "./components/base/review-button/constants.js";
|
|
212
|
+
import { SectionHeadingTest as un } from "./components/base/section-heading/constants.js";
|
|
213
|
+
import { SegmentedTabsTest as Sn } from "./components/base/segmented-tabs/constants.js";
|
|
214
|
+
import { StackTest as Dn } from "./components/base/stack/constants.js";
|
|
215
|
+
import { StatBadgeTest as An } from "./components/base/stat-badge/constants.js";
|
|
216
|
+
import { TabberTest as bn } from "./components/base/tabber/constants.js";
|
|
217
|
+
import { TokenAmountTest as kn } from "./components/base/token-amount/constants.js";
|
|
218
|
+
import { BaseTableLineTest as Mn, BaseTableTest as wn } from "./components/base-table/constants.js";
|
|
218
219
|
export {
|
|
219
220
|
ci as APPROXIMATE_SYMBOL,
|
|
220
|
-
|
|
221
|
-
|
|
221
|
+
Pe as AlertBadge,
|
|
222
|
+
Be as AlertDialog,
|
|
222
223
|
be as AlertDialogAction,
|
|
223
224
|
Le as AlertDialogCancel,
|
|
224
225
|
ke as AlertDialogContent,
|
|
225
226
|
Ie as AlertDialogDescription,
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
Me as AlertDialogFooter,
|
|
228
|
+
we as AlertDialogHeader,
|
|
228
229
|
he as AlertDialogTitle,
|
|
229
230
|
ye as AlertDialogTrigger,
|
|
230
231
|
He as AlertModal,
|
|
231
232
|
Fr as AllocationWheelTest,
|
|
232
233
|
r as AmountInput,
|
|
233
|
-
|
|
234
|
+
ji as AmountInputTest,
|
|
234
235
|
Ve as AppBarDotsButton,
|
|
235
236
|
Re as AppBarDropdownMenu,
|
|
236
237
|
Ee as AppBarHamburgerButton,
|
|
237
238
|
Ne as AppBarMenuItem,
|
|
238
239
|
We as AppBarNavItem,
|
|
239
|
-
|
|
240
|
+
wa as AppFooter,
|
|
240
241
|
ya as AppHeader,
|
|
241
|
-
|
|
242
|
+
jm as ApyBreakdownTooltip,
|
|
242
243
|
de as ApyValue,
|
|
243
244
|
d as AsideAlignAnchor,
|
|
244
|
-
|
|
245
|
+
Oe as AssetsListCell,
|
|
245
246
|
mr as BackButton,
|
|
246
247
|
_e as Badge,
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
Qe as BaseLink,
|
|
249
|
+
Je as BaseTable,
|
|
249
250
|
or as BaseTableLine,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
Mn as BaseTableLineTest,
|
|
252
|
+
wn as BaseTableTest,
|
|
253
|
+
Oa as BlockedRegionDialog,
|
|
253
254
|
a as BorrowRateBlock,
|
|
254
255
|
m as BorrowRateBlockTest,
|
|
255
256
|
rr as BreadCrumbs,
|
|
@@ -259,54 +260,55 @@ export {
|
|
|
259
260
|
cr as CardContent,
|
|
260
261
|
Sr as CardDescription,
|
|
261
262
|
Cr as CardHeader,
|
|
262
|
-
|
|
263
|
+
Dr as CardTitle,
|
|
263
264
|
n as ChartWithSideCard,
|
|
264
265
|
x as ChartWithSideCardTest,
|
|
265
266
|
kr as Checkbox,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
267
|
+
Mr as CheckboxLabeled,
|
|
268
|
+
Ke as Chip,
|
|
269
|
+
Xe as ChipTest,
|
|
270
|
+
Ye as Chips,
|
|
271
|
+
Ze as ChipsTest,
|
|
271
272
|
Ha as Col,
|
|
272
273
|
Hr as CollateralAllocationTooltipTest,
|
|
273
274
|
st as CompoundAPY,
|
|
274
275
|
dt as ConfirmMenu,
|
|
275
276
|
Va as Container,
|
|
276
277
|
xr as CopyButton,
|
|
278
|
+
Gi as DEFAULT_SAFE_DOMAINS,
|
|
277
279
|
ia as DEFAULT_SERIES_COLORS,
|
|
278
|
-
|
|
280
|
+
Ar as DangerZone,
|
|
279
281
|
s as DetailedPageTitle,
|
|
280
282
|
ut as DetailedPageTitleExplorerDropdown,
|
|
281
|
-
|
|
283
|
+
$i as DetailedPageTitleTest,
|
|
282
284
|
u as DetailsView,
|
|
283
285
|
c as DetailsViewLeftPane,
|
|
284
286
|
S as DetailsViewManagePane,
|
|
285
287
|
C as DetailsViewManagePaneSlot,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
en as DetailsViewTest,
|
|
289
|
+
Dt as Dialog,
|
|
290
|
+
Bt as DialogContainer,
|
|
289
291
|
Lt as DialogContent,
|
|
290
292
|
It as DialogDescription,
|
|
291
|
-
|
|
293
|
+
wt as DialogFooter,
|
|
292
294
|
yt as DialogForm,
|
|
293
295
|
Ht as DialogHeader,
|
|
294
296
|
Vt as DialogModalContainer,
|
|
295
297
|
Et as DialogTitle,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
Pt as DialogTrigger,
|
|
299
|
+
Ot as DisabledWrap,
|
|
298
300
|
_t as DropdownMenu,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
Yt as DropdownMenuContent,
|
|
302
|
+
zt as DropdownMenuItem,
|
|
303
|
+
jt as DropdownMenuLabel,
|
|
302
304
|
Ut as DropdownMenuPortal,
|
|
303
|
-
|
|
305
|
+
Kt as DropdownMenuTrigger,
|
|
304
306
|
$t as EditInput,
|
|
305
307
|
si as EnglishLocale,
|
|
306
308
|
ea as ErrorLineMessage,
|
|
307
309
|
br as ExpandableCard,
|
|
308
310
|
sr as ExternalButton,
|
|
309
|
-
|
|
311
|
+
Pa as FaIcon,
|
|
310
312
|
ta as FadeoutLoading,
|
|
311
313
|
qm as FormattedMessageTyped,
|
|
312
314
|
pa as FormattedNumberString,
|
|
@@ -316,44 +318,44 @@ export {
|
|
|
316
318
|
ca as HFIndicator,
|
|
317
319
|
la as HeadCell,
|
|
318
320
|
Ta as HealthFactor,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
+
B as HealthFactorBlock,
|
|
322
|
+
P as HealthFactorBlockTest,
|
|
321
323
|
ge as HealthFactorValue,
|
|
322
324
|
ga as HelpTip,
|
|
323
325
|
L as HistoryChart,
|
|
324
|
-
|
|
326
|
+
tn as HistoryChartTest,
|
|
325
327
|
Ca as IconButton,
|
|
326
|
-
|
|
328
|
+
Ba as InfiniteScrollWrapper,
|
|
327
329
|
I as InfoLine,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
+
M as InfoList,
|
|
331
|
+
pn as InfoListTest,
|
|
330
332
|
La as Input,
|
|
331
333
|
Ia as Label,
|
|
332
334
|
Wa as Layout,
|
|
333
|
-
|
|
335
|
+
Ga as LegalAgreementDialog,
|
|
334
336
|
Ua as LegalAgreementLink,
|
|
335
337
|
y as LeverageInput,
|
|
336
|
-
|
|
338
|
+
nn as LeverageInputTest,
|
|
337
339
|
V as LeveragePresetChips,
|
|
338
340
|
H as LeveragePresetChipsTest,
|
|
339
341
|
ue as LeverageValue,
|
|
340
|
-
|
|
342
|
+
Xa as Link,
|
|
341
343
|
W as LiquidationParamsTable,
|
|
342
344
|
E as LiquidationParamsTableTest,
|
|
343
345
|
_ as LiquidationPriceBlock,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
346
|
+
O as LiquidationPriceBlockTest,
|
|
347
|
+
Za as Loader,
|
|
348
|
+
Qa as Loading,
|
|
349
|
+
K as ManagePane,
|
|
350
|
+
X as ManagePaneActionTab,
|
|
351
|
+
Y as ManagePaneMessage,
|
|
352
|
+
Z as ManagePaneTab,
|
|
353
|
+
z as ManagePaneTabDropdown,
|
|
354
|
+
xn as ManagePaneTest,
|
|
355
|
+
Ja as MarkdownText,
|
|
354
356
|
St as Modal,
|
|
355
357
|
$ as MoreAccordion,
|
|
356
|
-
|
|
358
|
+
j as MoreAccordionTest,
|
|
357
359
|
op as NameCell,
|
|
358
360
|
rp as NavBarLogo,
|
|
359
361
|
ap as NavigationProvider,
|
|
@@ -365,10 +367,10 @@ export {
|
|
|
365
367
|
Wt as OneFieldDialog,
|
|
366
368
|
po as PageHeadProvider,
|
|
367
369
|
mo as PageTitle,
|
|
368
|
-
|
|
370
|
+
sn as PageTitleTest,
|
|
369
371
|
ae as PnlValue,
|
|
370
372
|
np as PointsIcon,
|
|
371
|
-
|
|
373
|
+
w as PointsInfoLine,
|
|
372
374
|
xo as PoolApyBreakdownCard,
|
|
373
375
|
no as PoolApyBreakdownCardTest,
|
|
374
376
|
Wr as PoolAssetsTable,
|
|
@@ -387,45 +389,45 @@ export {
|
|
|
387
389
|
sp as RadioGroup,
|
|
388
390
|
Tp as RadioGroupItem,
|
|
389
391
|
co as ReviewButton,
|
|
390
|
-
|
|
392
|
+
dn as ReviewButtonTest,
|
|
391
393
|
Co as ReviewSolution,
|
|
392
394
|
Cp as SdkStatusPill,
|
|
393
395
|
cp as SdkStatusPillTest,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
396
|
+
Pp as SearchLine,
|
|
397
|
+
Po as SectionHeading,
|
|
398
|
+
un as SectionHeadingTest,
|
|
399
|
+
Bp as SegmentedControl,
|
|
400
|
+
Bo as SegmentedTabs,
|
|
401
|
+
Sn as SegmentedTabsTest,
|
|
400
402
|
Lp as Select,
|
|
401
403
|
kp as SelectContent,
|
|
402
404
|
Ip as SelectItem,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
+
Mp as SelectTrigger,
|
|
406
|
+
wp as SelectValue,
|
|
405
407
|
yp as SeparateLine,
|
|
406
408
|
Hp as ShortString,
|
|
407
409
|
Vp as SimpleDropdown,
|
|
408
410
|
Ep as SimpleDropdownMenuItem,
|
|
409
411
|
Im as SimpleTooltip,
|
|
410
412
|
Wp as Skeleton,
|
|
411
|
-
|
|
413
|
+
Op as SkeletonStack,
|
|
412
414
|
_p as SliderTest,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
415
|
+
Kp as Spinner,
|
|
416
|
+
Yp as SpinnerLoader,
|
|
417
|
+
zp as SplitList,
|
|
416
418
|
Lo as Stack,
|
|
417
|
-
|
|
419
|
+
Dn as StackTest,
|
|
418
420
|
Io as StatBadge,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
+
Mo as StatBadgeGrid,
|
|
422
|
+
An as StatBadgeTest,
|
|
421
423
|
Fo as StrategyApyBreakdownCard,
|
|
422
424
|
ho as StrategyApyBreakdownCardTest,
|
|
423
425
|
hr as StyledDialogContainer,
|
|
424
426
|
dr as TabButton,
|
|
425
|
-
|
|
427
|
+
jp as TabControl,
|
|
426
428
|
vo as Tabber,
|
|
427
429
|
Vo as TabberSection,
|
|
428
|
-
|
|
430
|
+
bn as TabberTest,
|
|
429
431
|
em as Table,
|
|
430
432
|
rm as TableBody,
|
|
431
433
|
tm as TableCell,
|
|
@@ -439,33 +441,33 @@ export {
|
|
|
439
441
|
Tm as TextButton,
|
|
440
442
|
gm as Textarea,
|
|
441
443
|
cm as ThemeProvider,
|
|
442
|
-
|
|
444
|
+
Oo as TimeToLiquidationBlock,
|
|
443
445
|
Wo as TimeToLiquidationBlockTest,
|
|
444
446
|
Cm as TipCard,
|
|
445
|
-
|
|
447
|
+
Ko as TitleMeta,
|
|
446
448
|
_o as TitleMetaTest,
|
|
447
|
-
|
|
448
|
-
|
|
449
|
+
Yo as TokenAmount,
|
|
450
|
+
kn as TokenAmountTest,
|
|
449
451
|
ce as TokenBigint,
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
Pm as TokenIcon,
|
|
453
|
+
jo as TokenPairSymbol,
|
|
454
|
+
zo as TokenPairSymbolTest,
|
|
455
|
+
Bm as TokenSymbol,
|
|
454
456
|
Lm as TokenTemplate,
|
|
455
|
-
|
|
457
|
+
wm as Tooltip,
|
|
456
458
|
hm as TooltipContent,
|
|
457
459
|
ym as TooltipProvider,
|
|
458
460
|
Fm as TooltipTrigger,
|
|
459
461
|
Rm as TradingView,
|
|
460
462
|
vm as TradingViewTest,
|
|
461
463
|
_r as TransactionConfirmAmountField,
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
Or as TransactionConfirmAmountFieldTest,
|
|
465
|
+
Kr as TransactionConfirmDialogTest,
|
|
466
|
+
zr as TransactionConfirmExecuteButton,
|
|
467
|
+
jr as TransactionConfirmExecuteButtonTest,
|
|
466
468
|
rt as TransactionConfirmFailureResult,
|
|
467
|
-
|
|
468
|
-
|
|
469
|
+
Jr as TransactionConfirmFailureResultTest,
|
|
470
|
+
Yr as TransactionConfirmShell,
|
|
469
471
|
at as TransactionConfirmSuccessResult,
|
|
470
472
|
$r as TransactionConfirmSuccessResultTest,
|
|
471
473
|
mt as TransactionConfirmTxHashRow,
|
|
@@ -474,24 +476,27 @@ export {
|
|
|
474
476
|
_m as Typography,
|
|
475
477
|
Se as UsdValue,
|
|
476
478
|
Ce as UtilizationValue,
|
|
477
|
-
|
|
479
|
+
Ym as VSpace,
|
|
478
480
|
re as ValueTest,
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
481
|
+
Km as VerticalIndicator,
|
|
482
|
+
zm as WithCopy,
|
|
483
|
+
zi as Z_INDEX,
|
|
482
484
|
Vi as bnToLiquidationPriceView,
|
|
483
485
|
di as cn,
|
|
484
486
|
gi as default,
|
|
485
|
-
|
|
486
|
-
|
|
487
|
+
Pi as formatLeverage,
|
|
488
|
+
Ai as formatLeverageExact,
|
|
487
489
|
bi as formatMoney,
|
|
488
|
-
|
|
490
|
+
wi as formatOraclePrice,
|
|
489
491
|
Ii as formatPnl,
|
|
490
492
|
Si as formatTimestamp,
|
|
491
493
|
ei as getSortForFields,
|
|
494
|
+
_i as isBinanceSDK,
|
|
495
|
+
Ui as isSafeAppsSDK,
|
|
496
|
+
Ki as isSafeDomain,
|
|
492
497
|
Hi as leveragePresets,
|
|
493
498
|
ri as nextMultiSortState,
|
|
494
|
-
|
|
499
|
+
Yi as openInNewWindow,
|
|
495
500
|
Ri as parseInputToBN,
|
|
496
501
|
Li as percentageTemplate,
|
|
497
502
|
Ci as shortenHash,
|
|
@@ -499,7 +504,7 @@ export {
|
|
|
499
504
|
yi as slippageTemplate,
|
|
500
505
|
qi as tokenTemplateString,
|
|
501
506
|
$m as useDebounceCall,
|
|
502
|
-
|
|
507
|
+
Om as useIntlTyped,
|
|
503
508
|
pi as useIsDesktop,
|
|
504
509
|
mi as useIsMedium,
|
|
505
510
|
ii as useIsMobile,
|