@gearbox-protocol/ui-kit 4.0.0-next.20 → 4.0.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/esm/components/base/position-assets/position-assets.js +62 -39
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +7 -3
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +140 -166
- package/dist/esm/components/base/values/scalars.js +40 -35
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +60 -61
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +22 -24
- package/dist/esm/components/compound-apy/compound-apy.js +24 -23
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +15 -15
- package/dist/esm/index.js +88 -91
- package/dist/esm/locale/en.json.js +3 -7
- package/dist/esm/utils/index.js +48 -51
- package/dist/globals.css +1 -1
- package/dist/types/components/base/position-assets/position-assets.d.ts +19 -13
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +5 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +39 -14
- package/dist/types/components/base/values/scalars.d.ts +17 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +1 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +1 -2
- package/dist/types/components/compound-apy/compound-apy.d.ts +11 -1
- package/dist/types/locale/en.json.d.ts +1 -6
- package/dist/types/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/utils/strategy-apy.cjs +0 -1
- package/dist/esm/utils/strategy-apy.js +0 -51
- package/dist/types/utils/strategy-apy.d.ts +0 -40
package/dist/esm/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { DetailsView as A, DetailsViewLeftPane as b, DetailsViewManagePane as P
|
|
|
11
11
|
import { HealthFactorBlockTest as L } from "./components/base/health-factor-block/constants.js";
|
|
12
12
|
import { HealthFactorBlock as h } from "./components/base/health-factor-block/health-factor-block.js";
|
|
13
13
|
import { HistoryChart as I } from "./components/base/history-chart/history-chart.js";
|
|
14
|
-
import { InfoLine as w, InfoList as F, InfoSectionTitle as M, PointsInfoLine as
|
|
14
|
+
import { InfoLine as w, InfoList as F, InfoSectionTitle as M, PointsInfoLine as R } from "./components/base/info-list/info-list.js";
|
|
15
15
|
import { InfoPortalOut as E, InfoPortalProvider as v } from "./components/base/info-portal/info-portal.js";
|
|
16
16
|
import { LeverageInput as _ } from "./components/base/leverage-input/leverage-input.js";
|
|
17
17
|
import { LeveragePresetChipsTest as O } from "./components/base/leverage-preset-chips/constants.js";
|
|
@@ -35,7 +35,7 @@ import { SectionHeading as Be } from "./components/base/section-heading/section-
|
|
|
35
35
|
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as ke, SegmentedTabs as Ie } from "./components/base/segmented-tabs/segmented-tabs.js";
|
|
36
36
|
import { SideCardTest as we } from "./components/base/side-card/constants.js";
|
|
37
37
|
import { SideCard as Me } from "./components/base/side-card/side-card.js";
|
|
38
|
-
import { SPACE_HEIGHT as
|
|
38
|
+
import { SPACE_HEIGHT as ye, SPACE_PX as Ee } from "./components/base/spacing.js";
|
|
39
39
|
import { Stack as He } from "./components/base/stack/stack.js";
|
|
40
40
|
import { StatBadge as Ne, StatBadgeGrid as Oe } from "./components/base/stat-badge/stat-badge.js";
|
|
41
41
|
import { StickyBar as We } from "./components/base/sticky-bar/sticky-bar.js";
|
|
@@ -59,7 +59,7 @@ import { PointsValue as ho } from "./components/base/values/points-value.js";
|
|
|
59
59
|
import { PositionShortLabel as Io } from "./components/base/values/position-short-label.js";
|
|
60
60
|
import { PositionStatusBadge as wo } from "./components/base/values/position-status-badge.js";
|
|
61
61
|
import { PositionTypeBadge as Mo } from "./components/base/values/position-type-badge.js";
|
|
62
|
-
import { ApyValue as
|
|
62
|
+
import { ApyValue as yo, HealthFactorValue as Eo, LeverageValue as vo, TokenBigint as Ho, UsdValue as _o, UtilizationValue as No, bps as Oo } from "./components/base/values/scalars.js";
|
|
63
63
|
import { Accordion as Wo, AccordionContent as Uo, AccordionItem as qo, AccordionTrigger as Zo } from "./components/accordion/accordion.js";
|
|
64
64
|
import { AlertBadge as zo, alertBadgeVariants as Ko } from "./components/alert-badge/alert-badge.js";
|
|
65
65
|
import { AlertDialog as Yo, AlertDialogAction as jo, AlertDialogCancel as Jo, AlertDialogContent as $o, AlertDialogDescription as er, AlertDialogFooter as or, AlertDialogHeader as rr, AlertDialogOverlay as tr, AlertDialogPortal as ar, AlertDialogTitle as ir, AlertDialogTrigger as nr } from "./components/alert-dialog/alert-dialog.js";
|
|
@@ -70,7 +70,7 @@ import { Badge as Pr, badgeVariants as Dr } from "./components/badge/badge.js";
|
|
|
70
70
|
import { Chip as Br, ChipTest as hr, Chips as kr, ChipsTest as Ir } from "./components/badge/chip.js";
|
|
71
71
|
import { BaseLink as wr } from "./components/base-link/base-link.js";
|
|
72
72
|
import { BaseTable as Mr } from "./components/base-table/base-table.js";
|
|
73
|
-
import { BaseTableLine as
|
|
73
|
+
import { BaseTableLine as yr } from "./components/base-table/base-table-line.js";
|
|
74
74
|
import { BreadCrumbs as vr } from "./components/breadcrumbs/breadcrumbs.js";
|
|
75
75
|
import { BREAKPOINT_QUERIES as _r, BreakpointContext as Nr, BreakpointProvider as Or, DEFAULT_BREAKPOINT_STATE as Gr, getBreakpointState as Wr, subscribeBreakpoints as Ur, useBreakpointContext as qr } from "./components/breakpoint-provider.js";
|
|
76
76
|
import { BackButton as Xr, backButtonVariants as zr } from "./components/buttons/back-button/back-button.js";
|
|
@@ -90,7 +90,7 @@ import { CheckboxLabeled as Bt } from "./components/checkbox/checkbox-labeled.js
|
|
|
90
90
|
import { StyledButton as kt } from "./components/client-adapters/styled-button/styled-button.js";
|
|
91
91
|
import { StyledDialogContainer as Vt } from "./components/client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
92
92
|
import { StyledRoundedImage as Ft } from "./components/client-adapters/styled-rounded-image/styled-rounded-image.js";
|
|
93
|
-
import { AllocationWheel as
|
|
93
|
+
import { AllocationWheel as Rt } from "./components/collateral-allocation-tooltip/allocation-wheel.js";
|
|
94
94
|
import { CollateralAllocationTooltip as Et } from "./components/collateral-allocation-tooltip/collateral-allocation-tooltip.js";
|
|
95
95
|
import { AllocationWheelTest as Ht, CollateralAllocationTooltipTest as _t } from "./components/collateral-allocation-tooltip/constants.js";
|
|
96
96
|
import { NotificationCenter as Ot } from "./components/composites/notification-center/notification-center.js";
|
|
@@ -113,7 +113,7 @@ import { ProgressStepperTest as ha } from "./components/composites/tx-preview/co
|
|
|
113
113
|
import { ProgressStepper as Ia } from "./components/composites/tx-preview/confirm/stepper/ProgressStepper.js";
|
|
114
114
|
import { shouldShowTransactionProgressStepper as wa } from "./components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.js";
|
|
115
115
|
import { CompoundAPY as Ma } from "./components/compound-apy/compound-apy.js";
|
|
116
|
-
import { ConfirmMenu as
|
|
116
|
+
import { ConfirmMenu as ya } from "./components/confirm-menu/confirm-menu.js";
|
|
117
117
|
import { DetailedApy as va, PoolRewardsIcon as Ha } from "./components/detailed-apy/detailed-apy.js";
|
|
118
118
|
import { DetailedPageTitleCopyButton as Na } from "./components/detailed-page-title/detailed-page-title-copy-button.js";
|
|
119
119
|
import { DetailedPageTitleExplorerDropdown as Ga } from "./components/detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
@@ -136,7 +136,7 @@ import { DropdownMenuContent as hi } from "./components/dropdown-menu/dropdown-m
|
|
|
136
136
|
import { DropdownMenuItem as Ii } from "./components/dropdown-menu/dropdown-menu-item.js";
|
|
137
137
|
import { DropdownMenuLabel as wi } from "./components/dropdown-menu/dropdown-menu-label.js";
|
|
138
138
|
import { DropdownMenuRadioItem as Mi } from "./components/dropdown-menu/dropdown-menu-radio-item.js";
|
|
139
|
-
import { DropdownMenuSeparator as
|
|
139
|
+
import { DropdownMenuSeparator as yi } from "./components/dropdown-menu/dropdown-menu-separator.js";
|
|
140
140
|
import { DropdownMenuShortcut as vi } from "./components/dropdown-menu/dropdown-menu-shortcut.js";
|
|
141
141
|
import { DropdownMenuSubContent as _i } from "./components/dropdown-menu/dropdown-menu-sub-content.js";
|
|
142
142
|
import { DropdownMenuSubTrigger as Oi } from "./components/dropdown-menu/dropdown-menu-sub-trigger.js";
|
|
@@ -159,7 +159,7 @@ import { filterBlockVariants as Cn } from "./components/filter/variants.js";
|
|
|
159
159
|
import { FormattedNumberString as bn } from "./components/formatted-number/formatted-number.js";
|
|
160
160
|
import { DEFAULT_AREA_SERIES as Dn, DEFAULT_OPTIONS as Ln, DEFAULT_VERTICAL_LINE as Bn, getDefaultOptions as hn, getDefaultSeries as kn, getDefaultVerticalLine as In } from "./components/graph/default-config.js";
|
|
161
161
|
import { getXFormatter as wn, getXFormatters as Fn, getYFormatter as Mn } from "./components/graph/formatters.js";
|
|
162
|
-
import { DEFAULT_SERIES_COLORS as
|
|
162
|
+
import { DEFAULT_SERIES_COLORS as yn, Graph as En, GraphLegend as vn, getSeriesColorPalette as Hn, getVerticalLineLabelStyle as _n, getVerticalLineTooltipContent as Nn } from "./components/graph/graph.js";
|
|
163
163
|
import { GraphCurrentValue as Gn } from "./components/graph/graph-current-value.js";
|
|
164
164
|
import { GraphTooltip as Un } from "./components/graph/graph-tooltip.js";
|
|
165
165
|
import { GraphView as Zn, GraphViewWithData as Xn, graphViewVariants as zn, useGraphAside as Kn } from "./components/graph/graph-view.js";
|
|
@@ -170,7 +170,7 @@ import { BAD_HF as tp, GOOD_HF as ap, HealthFactor as ip, getHFZones as np } fro
|
|
|
170
170
|
import { HelpTip as mp, HelpTipIcon as lp, TipWrap as fp } from "./components/help-tip/help-tip.js";
|
|
171
171
|
import { HFIndicator as xp } from "./components/hf-indicator/hf-indicator.js";
|
|
172
172
|
import { IconButton as dp, iconButtonVariants as gp } from "./components/icon-button/icon-button.js";
|
|
173
|
-
import { faArrowDown as up, faArrowLeft as Sp, faArrowRight as Cp, faArrowUp as Ap, faArrowsUpDown as bp, faBars as Pp, faBolt as Dp, faCaretDown as Lp, faCaretLeft as Bp, faCaretRight as hp, faCaretUp as kp, faCheck as Ip, faChevronDown as Vp, faChevronLeft as wp, faChevronRight as Fp, faCircle as Mp, faCircleCheck as
|
|
173
|
+
import { faArrowDown as up, faArrowLeft as Sp, faArrowRight as Cp, faArrowUp as Ap, faArrowsUpDown as bp, faBars as Pp, faBolt as Dp, faCaretDown as Lp, faCaretLeft as Bp, faCaretRight as hp, faCaretUp as kp, faCheck as Ip, faChevronDown as Vp, faChevronLeft as wp, faChevronRight as Fp, faCircle as Mp, faCircleCheck as Rp, faCircleExclamation as yp, faCirclePlus as Ep, faCircleQuestion as vp, faCloud as Hp, faCog as _p, faCreditCard as Np, faEllipsisVertical as Op, faEnvelope as Gp, faKeyboard as Wp, faLifeRing as Up, faMagnifyingGlass as qp, faMessage as Zp, faPlus as Xp, faRightFromBracket as zp, faTrash as Kp, faTriangleExclamation as Qp, faUser as Yp, faUserPlus as jp, faUsers as Jp, faWallet as $p, faXmark as em } from "@fortawesome/free-solid-svg-icons";
|
|
174
174
|
import { FaIcon as rm } from "./components/icons/fa-icon.js";
|
|
175
175
|
import { InfiniteScrollWrapper as am } from "./components/infinite-scroll/infinite-scroll-wrapper.js";
|
|
176
176
|
import { Input as nm, inputVariants as pm } from "./components/input/input.js";
|
|
@@ -184,7 +184,7 @@ import { Layout as Dm } from "./components/layout/layout/layout.js";
|
|
|
184
184
|
import { MainAsideLayout as Bm } from "./components/layout/main-aside-layout/main-aside-layout.js";
|
|
185
185
|
import { LegalAgreementAwaitingPanel as km, LegalAgreementAwaitingPanelTest as Im } from "./components/legal-agreement/legal-agreement-awaiting-panel.js";
|
|
186
186
|
import { BlockedRegionDialog as wm, LegalAgreementDialog as Fm } from "./components/legal-agreement/legal-agreement-dialog.js";
|
|
187
|
-
import { LegalAgreementLink as
|
|
187
|
+
import { LegalAgreementLink as Rm } from "./components/legal-agreement/legal-agreement-link.js";
|
|
188
188
|
import { LegalAgreementPanel as Em, LegalAgreementPanelTest as vm } from "./components/legal-agreement/legal-agreement-panel.js";
|
|
189
189
|
import { legalAgreementAwaitingDescriptionVariants as _m, legalAgreementAwaitingRootVariants as Nm, legalAgreementAwaitingTitleVariants as Om, legalAgreementLinkVariants as Gm, legalAgreementPanelCheckboxLabelVariants as Wm, legalAgreementPanelCheckboxListTitleVariants as Um, legalAgreementPanelCheckboxListVariants as qm, legalAgreementPanelCheckboxRowVariants as Zm, legalAgreementPanelNotificationVariants as Xm, legalAgreementPanelRootVariants as zm, legalAgreementPanelV2BannerVariants as Km } from "./components/legal-agreement/legal-agreement-theme.js";
|
|
190
190
|
import { Link as Ym } from "./components/link/link.js";
|
|
@@ -204,7 +204,7 @@ import { RWA_GRADIENT_BORDER_CLASS as Dl, RWA_POOL_ROW_HOVER_WRAPPER_CLASS as Ll
|
|
|
204
204
|
import { SdkStatusPillTest as hl } from "./components/sdk-status-pill/constants.js";
|
|
205
205
|
import { sdkStatusDotVariant as Il } from "./components/sdk-status-pill/sdk-status.js";
|
|
206
206
|
import { SdkStatusPill as wl } from "./components/sdk-status-pill/sdk-status-pill.js";
|
|
207
|
-
import { SearchLine as Ml, WithSearchLine as
|
|
207
|
+
import { SearchLine as Ml, WithSearchLine as Rl, searchLineInputVariants as yl, searchLineVariants as El } from "./components/search-line/search-line.js";
|
|
208
208
|
import { SegmentedControl as Hl, segmentedControlVariants as _l } from "./components/segmented-control/segmented-control.js";
|
|
209
209
|
import { Select as Ol, SelectContent as Gl, SelectGroup as Wl, SelectItem as Ul, SelectLabel as ql, SelectScrollDownButton as Zl, SelectScrollUpButton as Xl, SelectSeparator as zl, SelectTrigger as Kl, SelectValue as Ql, selectTriggerVariants as Yl } from "./components/select/select.js";
|
|
210
210
|
import { SeparateLine as Jl } from "./components/separate-line/separate-line.js";
|
|
@@ -220,7 +220,7 @@ import { SliderMark as Af } from "./components/slider/slider-mark.js";
|
|
|
220
220
|
import { SliderTrack as Pf } from "./components/slider/slider-track.js";
|
|
221
221
|
import { makeMarkerPoints as Lf, validateMarkerPoints as Bf } from "./components/slider/slider-utils.js";
|
|
222
222
|
import { THEME_COLOR_MAP as kf, THUMB_HALF as If, THUMB_SIZE as Vf, getIntervalBounds as wf, getThumbInBoundsOffset as Ff, resolveColor as Mf } from "./components/slider/types.js";
|
|
223
|
-
import { Spinner as
|
|
223
|
+
import { Spinner as yf, SpinnerOverlay as Ef } from "./components/spinner/spinner.js";
|
|
224
224
|
import { SpinnerLoader as Hf } from "./components/spinner-loader/spinner-loader.js";
|
|
225
225
|
import { SplitList as Nf } from "./components/split-list/split-list.js";
|
|
226
226
|
import { StatusDot as Gf, statusDotVariants as Wf } from "./components/status-dot/status-dot.js";
|
|
@@ -232,7 +232,7 @@ import { GridTable as ts, GridTableBody as as, GridTableCaption as is, GridTable
|
|
|
232
232
|
import { SortingTableHead as us, Table as Ss, TableBody as Cs, TableCaption as As, TableCell as bs, TableFooter as Ps, TableHead as Ds, TableHeader as Ls, TableRow as Bs, tableCellVariants as hs, tableHeadVariants as ks, tableVariants as Is } from "./components/table/table.js";
|
|
233
233
|
import { TableLoader as ws } from "./components/table/table-loader.js";
|
|
234
234
|
import { TableLoaderGuard as Ms } from "./components/table/table-loader-guard.js";
|
|
235
|
-
import { TableCellSm as
|
|
235
|
+
import { TableCellSm as ys, TableLineSm as Es } from "./components/table/table-sm.js";
|
|
236
236
|
import { Tabs as Hs, TabsContent as _s, TabsList as Ns, TabsTrigger as Os } from "./components/tabs/tabs.js";
|
|
237
237
|
import { TextButton as Ws } from "./components/text-button/text-button.js";
|
|
238
238
|
import { Textarea as qs, textareaVariants as Zs } from "./components/textarea/textarea.js";
|
|
@@ -252,7 +252,7 @@ import { VSpace as hx } from "./components/vspace/vspace.js";
|
|
|
252
252
|
import { WithCopy as Ix } from "./components/with-copy/with-copy.js";
|
|
253
253
|
import { WithTitle as wx } from "./components/with-title/with-title.js";
|
|
254
254
|
import { YieldBreakdownTooltip as Mx } from "./components/yield-breakdown-tooltip/yield-breakdown-tooltip.js";
|
|
255
|
-
import { designTokens as
|
|
255
|
+
import { designTokens as yx } from "./configs/design-tokens.js";
|
|
256
256
|
import { interactiveVariants as vx, paddingVariants as Hx, sizeVariants as _x, stateVariants as Nx } from "./configs/variants.js";
|
|
257
257
|
import { useCheckboxSelect as Gx } from "./hooks/use-checkbox-select.js";
|
|
258
258
|
import { useControllableState as Ux } from "./hooks/use-controllable-state.js";
|
|
@@ -269,7 +269,7 @@ import { default as bT } from "./locale/en.json.js";
|
|
|
269
269
|
import { generateId as DT, useFormFieldIds as LT } from "./utils/a11y.js";
|
|
270
270
|
import { pointProgramsOf as hT, positiveTokenRewardsOf as kT, tokenRewardsOf as IT, totalApyOf as VT } from "./utils/apy-breakdown.js";
|
|
271
271
|
import { bnToInputView as FT } from "./utils/bn-to-input-view.js";
|
|
272
|
-
import { bnToPrettyView as
|
|
272
|
+
import { bnToPrettyView as RT } from "./utils/bn-to-pretty-view.js";
|
|
273
273
|
import { bpsToPercent as ET } from "./utils/bps.js";
|
|
274
274
|
import { cn as HT } from "./utils/cn.js";
|
|
275
275
|
import { generateColorsFromBase as NT, getCSSVariable as OT, hexToRgba as GT, hslToHex as WT, resolveCSSColor as UT } from "./utils/colors.js";
|
|
@@ -282,7 +282,7 @@ import { FORMAT_CONSTANTS as sd, formatNumberWithSuffix as xd, formatPrice as Td
|
|
|
282
282
|
import { slippageTemplate as Cd } from "./utils/format-slippage.js";
|
|
283
283
|
import { formatChipLeverage as bd, leveragePresets as Pd } from "./utils/leverage-presets.js";
|
|
284
284
|
import { allLoaded as Ld, loadingProgress as Bd, round5 as hd } from "./utils/loading.js";
|
|
285
|
-
import { decimalsToStep as Id, findClosestPoint as Vd, formatWithDecimals as wd, formatWithoutDecimals as Fd, splitInterval as Md, validateMinMax as
|
|
285
|
+
import { decimalsToStep as Id, findClosestPoint as Vd, formatWithDecimals as wd, formatWithoutDecimals as Fd, splitInterval as Md, validateMinMax as Rd } from "./utils/math.js";
|
|
286
286
|
import { getNetworkIcon as Ed } from "./utils/network-icons.js";
|
|
287
287
|
import { bnToLiquidationPriceView as Hd, isPositiveFloat as _d, parseInputToBN as Nd, parseSmallNumber as Od } from "./utils/parse-input-to-bn.js";
|
|
288
288
|
import { pluralize as Wd, selectPluralString as Ud } from "./utils/plural.js";
|
|
@@ -292,29 +292,28 @@ import { searchInString as Yd } from "./utils/search.js";
|
|
|
292
292
|
import { createTokenSearchFilter as Jd, searchInToken as $d } from "./utils/search-in-token.js";
|
|
293
293
|
import { shortSHA as og } from "./utils/short-sha.js";
|
|
294
294
|
import { isLongString as tg, shortenString as ag } from "./utils/shorten-string.js";
|
|
295
|
-
import {
|
|
296
|
-
import {
|
|
297
|
-
import {
|
|
298
|
-
import {
|
|
299
|
-
import {
|
|
300
|
-
import {
|
|
301
|
-
import {
|
|
302
|
-
import {
|
|
303
|
-
import {
|
|
304
|
-
import {
|
|
305
|
-
import {
|
|
306
|
-
import {
|
|
307
|
-
import {
|
|
308
|
-
import {
|
|
309
|
-
import {
|
|
310
|
-
import {
|
|
311
|
-
import {
|
|
312
|
-
import {
|
|
313
|
-
import {
|
|
314
|
-
import {
|
|
315
|
-
import {
|
|
316
|
-
import {
|
|
317
|
-
import { BaseTableLineTest as nc, BaseTableTest as pc } from "./components/base-table/constants.js";
|
|
295
|
+
import { negativeTokenTemplate as ng, tokenTemplate as pg, tokenTemplateNumber as mg, tokenTemplateString as lg } from "./utils/templates.js";
|
|
296
|
+
import { getTokenIcon as sg, parseShareTokenUnderlying as xg } from "./utils/token-icon-source.js";
|
|
297
|
+
import { TTL_CONSTANTS as dg, getTTLZones as gg, ttlFromTimestamp as cg, ttlLeft as ug, ttlLeftHuman as Sg } from "./utils/ttl.js";
|
|
298
|
+
import { openInNewWindow as Ag } from "./utils/window.js";
|
|
299
|
+
import { Z_INDEX as Pg, Z_INDEX_VALUES as Dg } from "./utils/z-index.js";
|
|
300
|
+
import { AmountInputTest as Bg } from "./components/base/amount-input/constants.js";
|
|
301
|
+
import { DetailedPageTitleTest as kg } from "./components/base/detailed-page-title/constants.js";
|
|
302
|
+
import { DetailsViewTest as Vg } from "./components/base/details-view/constants.js";
|
|
303
|
+
import { HistoryChartTest as Fg } from "./components/base/history-chart/constants.js";
|
|
304
|
+
import { InfoListTest as Rg } from "./components/base/info-list/constants.js";
|
|
305
|
+
import { LeverageInputTest as Eg } from "./components/base/leverage-input/constants.js";
|
|
306
|
+
import { ManagePaneTest as Hg } from "./components/base/manage-pane/constants.js";
|
|
307
|
+
import { PageTitleTest as Ng } from "./components/base/page-title/constants.js";
|
|
308
|
+
import { ReviewButtonTest as Gg } from "./components/base/review-button/constants.js";
|
|
309
|
+
import { SectionHeadingTest as Ug } from "./components/base/section-heading/constants.js";
|
|
310
|
+
import { SegmentedTabsTest as Zg } from "./components/base/segmented-tabs/constants.js";
|
|
311
|
+
import { StackTest as zg } from "./components/base/stack/constants.js";
|
|
312
|
+
import { StatBadgeTest as Qg } from "./components/base/stat-badge/constants.js";
|
|
313
|
+
import { StickyBarTest as jg } from "./components/base/sticky-bar/constants.js";
|
|
314
|
+
import { TabberTest as $g } from "./components/base/tabber/constants.js";
|
|
315
|
+
import { TokenAmountTest as oc } from "./components/base/token-amount/constants.js";
|
|
316
|
+
import { BaseTableLineTest as tc, BaseTableTest as ac } from "./components/base-table/constants.js";
|
|
318
317
|
export {
|
|
319
318
|
Wo as Accordion,
|
|
320
319
|
Uo as AccordionContent,
|
|
@@ -333,10 +332,10 @@ export {
|
|
|
333
332
|
ir as AlertDialogTitle,
|
|
334
333
|
nr as AlertDialogTrigger,
|
|
335
334
|
mr as AlertModal,
|
|
336
|
-
|
|
335
|
+
Rt as AllocationWheel,
|
|
337
336
|
Ht as AllocationWheelTest,
|
|
338
337
|
r as AmountInput,
|
|
339
|
-
|
|
338
|
+
Bg as AmountInputTest,
|
|
340
339
|
fr as AppBar,
|
|
341
340
|
sr as AppBarCenter,
|
|
342
341
|
xr as AppBarCenterContent,
|
|
@@ -348,7 +347,7 @@ export {
|
|
|
348
347
|
Sr as AppBarSidePanel,
|
|
349
348
|
xm as AppFooter,
|
|
350
349
|
gm as AppHeader,
|
|
351
|
-
|
|
350
|
+
yo as ApyValue,
|
|
352
351
|
c as AsideAlignAnchor,
|
|
353
352
|
Ar as AssetsListCell,
|
|
354
353
|
tp as BAD_HF,
|
|
@@ -357,9 +356,9 @@ export {
|
|
|
357
356
|
Pr as Badge,
|
|
358
357
|
wr as BaseLink,
|
|
359
358
|
Mr as BaseTable,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
359
|
+
yr as BaseTableLine,
|
|
360
|
+
tc as BaseTableLineTest,
|
|
361
|
+
ac as BaseTableTest,
|
|
363
362
|
wm as BlockedRegionDialog,
|
|
364
363
|
n as BorrowRateBlock,
|
|
365
364
|
m as BorrowRateBlockTest,
|
|
@@ -385,14 +384,14 @@ export {
|
|
|
385
384
|
Et as CollateralAllocationTooltip,
|
|
386
385
|
_t as CollateralAllocationTooltipTest,
|
|
387
386
|
Ma as CompoundAPY,
|
|
388
|
-
|
|
387
|
+
ya as ConfirmMenu,
|
|
389
388
|
Cm as Container,
|
|
390
389
|
Jr as CopyButton,
|
|
391
390
|
Tm as DEFAULT_APP_FOOTER_LINKS,
|
|
392
391
|
Dn as DEFAULT_AREA_SERIES,
|
|
393
392
|
Gr as DEFAULT_BREAKPOINT_STATE,
|
|
394
393
|
Ln as DEFAULT_OPTIONS,
|
|
395
|
-
|
|
394
|
+
yn as DEFAULT_SERIES_COLORS,
|
|
396
395
|
Bn as DEFAULT_VERTICAL_LINE,
|
|
397
396
|
ut as DangerZone,
|
|
398
397
|
S as DetailAsideScreenLayout,
|
|
@@ -400,11 +399,11 @@ export {
|
|
|
400
399
|
d as DetailedPageTitle,
|
|
401
400
|
Na as DetailedPageTitleCopyButton,
|
|
402
401
|
Ga as DetailedPageTitleExplorerDropdown,
|
|
403
|
-
|
|
402
|
+
kg as DetailedPageTitleTest,
|
|
404
403
|
A as DetailsView,
|
|
405
404
|
b as DetailsViewLeftPane,
|
|
406
405
|
P as DetailsViewManagePane,
|
|
407
|
-
|
|
406
|
+
Vg as DetailsViewTest,
|
|
408
407
|
Za as Dialog,
|
|
409
408
|
Qa as DialogContainer,
|
|
410
409
|
ja as DialogContent,
|
|
@@ -427,7 +426,7 @@ export {
|
|
|
427
426
|
Ci as DropdownMenuPortal,
|
|
428
427
|
Ai as DropdownMenuRadioGroup,
|
|
429
428
|
Mi as DropdownMenuRadioItem,
|
|
430
|
-
|
|
429
|
+
yi as DropdownMenuSeparator,
|
|
431
430
|
vi as DropdownMenuShortcut,
|
|
432
431
|
bi as DropdownMenuSub,
|
|
433
432
|
_i as DropdownMenuSubContent,
|
|
@@ -487,12 +486,12 @@ export {
|
|
|
487
486
|
mp as HelpTip,
|
|
488
487
|
lp as HelpTipIcon,
|
|
489
488
|
I as HistoryChart,
|
|
490
|
-
|
|
489
|
+
Fg as HistoryChartTest,
|
|
491
490
|
dp as IconButton,
|
|
492
491
|
am as InfiniteScrollWrapper,
|
|
493
492
|
w as InfoLine,
|
|
494
493
|
F as InfoList,
|
|
495
|
-
|
|
494
|
+
Rg as InfoListTest,
|
|
496
495
|
E as InfoPortalOut,
|
|
497
496
|
v as InfoPortalProvider,
|
|
498
497
|
M as InfoSectionTitle,
|
|
@@ -502,11 +501,11 @@ export {
|
|
|
502
501
|
km as LegalAgreementAwaitingPanel,
|
|
503
502
|
Im as LegalAgreementAwaitingPanelTest,
|
|
504
503
|
Fm as LegalAgreementDialog,
|
|
505
|
-
|
|
504
|
+
Rm as LegalAgreementLink,
|
|
506
505
|
Em as LegalAgreementPanel,
|
|
507
506
|
vm as LegalAgreementPanelTest,
|
|
508
507
|
_ as LeverageInput,
|
|
509
|
-
|
|
508
|
+
Eg as LeverageInputTest,
|
|
510
509
|
W as LeveragePresetChips,
|
|
511
510
|
O as LeveragePresetChipsTest,
|
|
512
511
|
vo as LeverageValue,
|
|
@@ -524,7 +523,7 @@ export {
|
|
|
524
523
|
ee as ManagePaneMessage,
|
|
525
524
|
oe as ManagePaneTab,
|
|
526
525
|
re as ManagePaneTabDropdown,
|
|
527
|
-
|
|
526
|
+
Hg as ManagePaneTest,
|
|
528
527
|
Ua as Modal,
|
|
529
528
|
ne as MoreAccordion,
|
|
530
529
|
ae as MoreAccordionTest,
|
|
@@ -540,10 +539,10 @@ export {
|
|
|
540
539
|
Ti as OneFieldDialog,
|
|
541
540
|
xe as PageHeadProvider,
|
|
542
541
|
Te as PageTitle,
|
|
543
|
-
|
|
542
|
+
Ng as PageTitleTest,
|
|
544
543
|
Lo as PnlValue,
|
|
545
544
|
gl as PointsIcon,
|
|
546
|
-
|
|
545
|
+
R as PointsInfoLine,
|
|
547
546
|
ho as PointsValue,
|
|
548
547
|
ue as PoolApyBreakdownCard,
|
|
549
548
|
ge as PoolApyBreakdownCardTest,
|
|
@@ -566,19 +565,19 @@ export {
|
|
|
566
565
|
Ll as RWA_POOL_ROW_HOVER_WRAPPER_CLASS,
|
|
567
566
|
nt as RangeButtons,
|
|
568
567
|
De as ReviewButton,
|
|
569
|
-
|
|
568
|
+
Gg as ReviewButtonTest,
|
|
570
569
|
Cl as RoundedImage,
|
|
571
570
|
ke as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
572
|
-
|
|
571
|
+
ye as SPACE_HEIGHT,
|
|
573
572
|
Ee as SPACE_PX,
|
|
574
573
|
wl as SdkStatusPill,
|
|
575
574
|
hl as SdkStatusPillTest,
|
|
576
575
|
Ml as SearchLine,
|
|
577
576
|
Be as SectionHeading,
|
|
578
|
-
|
|
577
|
+
Ug as SectionHeadingTest,
|
|
579
578
|
Hl as SegmentedControl,
|
|
580
579
|
Ie as SegmentedTabs,
|
|
581
|
-
|
|
580
|
+
Zg as SegmentedTabsTest,
|
|
582
581
|
Ol as Select,
|
|
583
582
|
Gl as SelectContent,
|
|
584
583
|
Wl as SelectGroup,
|
|
@@ -606,19 +605,19 @@ export {
|
|
|
606
605
|
uf as SliderProvider,
|
|
607
606
|
Pf as SliderTrack,
|
|
608
607
|
us as SortingTableHead,
|
|
609
|
-
|
|
608
|
+
yf as Spinner,
|
|
610
609
|
Hf as SpinnerLoader,
|
|
611
610
|
Ef as SpinnerOverlay,
|
|
612
611
|
Nf as SplitList,
|
|
613
612
|
He as Stack,
|
|
614
|
-
|
|
613
|
+
zg as StackTest,
|
|
615
614
|
Ne as StatBadge,
|
|
616
615
|
Oe as StatBadgeGrid,
|
|
617
|
-
|
|
616
|
+
Qg as StatBadgeTest,
|
|
618
617
|
Zf as StatusBars,
|
|
619
618
|
Gf as StatusDot,
|
|
620
619
|
We as StickyBar,
|
|
621
|
-
|
|
620
|
+
jg as StickyBarTest,
|
|
622
621
|
Xe as StrategyApyBreakdownCard,
|
|
623
622
|
qe as StrategyApyBreakdownCardTest,
|
|
624
623
|
kt as StyledButton,
|
|
@@ -627,18 +626,18 @@ export {
|
|
|
627
626
|
kf as THEME_COLOR_MAP,
|
|
628
627
|
If as THUMB_HALF,
|
|
629
628
|
Vf as THUMB_SIZE,
|
|
630
|
-
|
|
629
|
+
dg as TTL_CONSTANTS,
|
|
631
630
|
mt as TabButton,
|
|
632
631
|
zf as TabControl,
|
|
633
632
|
Kf as TabItem,
|
|
634
633
|
Ke as Tabber,
|
|
635
634
|
Qe as TabberSection,
|
|
636
|
-
|
|
635
|
+
$g as TabberTest,
|
|
637
636
|
Ss as Table,
|
|
638
637
|
Cs as TableBody,
|
|
639
638
|
As as TableCaption,
|
|
640
639
|
bs as TableCell,
|
|
641
|
-
|
|
640
|
+
ys as TableCellSm,
|
|
642
641
|
Ps as TableFooter,
|
|
643
642
|
Ds as TableHead,
|
|
644
643
|
Ls as TableHeader,
|
|
@@ -662,7 +661,7 @@ export {
|
|
|
662
661
|
mo as TitleMeta,
|
|
663
662
|
no as TitleMetaTest,
|
|
664
663
|
fo as TokenAmount,
|
|
665
|
-
|
|
664
|
+
oc as TokenAmountTest,
|
|
666
665
|
Ho as TokenBigint,
|
|
667
666
|
$s as TokenIcon,
|
|
668
667
|
go as TokenPairSymbol,
|
|
@@ -699,18 +698,18 @@ export {
|
|
|
699
698
|
Yn as VertLine,
|
|
700
699
|
Dx as VerticalIndicator,
|
|
701
700
|
Ix as WithCopy,
|
|
702
|
-
|
|
701
|
+
Rl as WithSearchLine,
|
|
703
702
|
wx as WithTitle,
|
|
704
703
|
Mx as YieldBreakdownTooltip,
|
|
705
|
-
|
|
706
|
-
|
|
704
|
+
Pg as Z_INDEX,
|
|
705
|
+
Dg as Z_INDEX_VALUES,
|
|
707
706
|
Ko as alertBadgeVariants,
|
|
708
707
|
Ld as allLoaded,
|
|
709
708
|
zr as backButtonVariants,
|
|
710
709
|
Dr as badgeVariants,
|
|
711
710
|
FT as bnToInputView,
|
|
712
711
|
Hd as bnToLiquidationPriceView,
|
|
713
|
-
|
|
712
|
+
RT as bnToPrettyView,
|
|
714
713
|
Oo as bps,
|
|
715
714
|
ET as bpsToPercent,
|
|
716
715
|
Yr as buttonVariants,
|
|
@@ -720,7 +719,7 @@ export {
|
|
|
720
719
|
ZT as copyToClipboard,
|
|
721
720
|
Jd as createTokenSearchFilter,
|
|
722
721
|
Id as decimalsToStep,
|
|
723
|
-
|
|
722
|
+
yx as designTokens,
|
|
724
723
|
zd as extractTextFromLabel,
|
|
725
724
|
up as faArrowDown,
|
|
726
725
|
Sp as faArrowLeft,
|
|
@@ -738,8 +737,8 @@ export {
|
|
|
738
737
|
wp as faChevronLeft,
|
|
739
738
|
Fp as faChevronRight,
|
|
740
739
|
Mp as faCircle,
|
|
741
|
-
|
|
742
|
-
|
|
740
|
+
Rp as faCircleCheck,
|
|
741
|
+
yp as faCircleExclamation,
|
|
743
742
|
Ep as faCirclePlus,
|
|
744
743
|
vp as faCircleQuestion,
|
|
745
744
|
Hp as faCloud,
|
|
@@ -791,9 +790,9 @@ export {
|
|
|
791
790
|
Hn as getSeriesColorPalette,
|
|
792
791
|
Qx as getSortForField,
|
|
793
792
|
Yx as getSortForFields,
|
|
794
|
-
|
|
793
|
+
gg as getTTLZones,
|
|
795
794
|
Ff as getThumbInBoundsOffset,
|
|
796
|
-
|
|
795
|
+
sg as getTokenIcon,
|
|
797
796
|
_n as getVerticalLineLabelStyle,
|
|
798
797
|
Nn as getVerticalLineTooltipContent,
|
|
799
798
|
wn as getXFormatter,
|
|
@@ -828,12 +827,12 @@ export {
|
|
|
828
827
|
Pd as leveragePresets,
|
|
829
828
|
Bd as loadingProgress,
|
|
830
829
|
Lf as makeMarkerPoints,
|
|
831
|
-
|
|
830
|
+
ng as negativeTokenTemplate,
|
|
832
831
|
jx as nextMultiSortState,
|
|
833
|
-
|
|
832
|
+
Ag as openInNewWindow,
|
|
834
833
|
Hx as paddingVariants,
|
|
835
834
|
Nd as parseInputToBN,
|
|
836
|
-
|
|
835
|
+
xg as parseShareTokenUnderlying,
|
|
837
836
|
Od as parseSmallNumber,
|
|
838
837
|
md as percentTemplate,
|
|
839
838
|
ld as percentageTemplate,
|
|
@@ -847,7 +846,7 @@ export {
|
|
|
847
846
|
Il as sdkStatusDotVariant,
|
|
848
847
|
Yd as searchInString,
|
|
849
848
|
$d as searchInToken,
|
|
850
|
-
|
|
849
|
+
yl as searchLineInputVariants,
|
|
851
850
|
El as searchLineVariants,
|
|
852
851
|
_l as segmentedControlVariants,
|
|
853
852
|
Ud as selectPluralString,
|
|
@@ -864,8 +863,6 @@ export {
|
|
|
864
863
|
Md as splitInterval,
|
|
865
864
|
Nx as stateVariants,
|
|
866
865
|
Wf as statusDotVariants,
|
|
867
|
-
ng as strategyApyPartsAtLeverage,
|
|
868
|
-
pg as strategyNetApyAtLeverage,
|
|
869
866
|
Ur as subscribeBreakpoints,
|
|
870
867
|
hs as tableCellVariants,
|
|
871
868
|
ks as tableHeadVariants,
|
|
@@ -874,17 +871,17 @@ export {
|
|
|
874
871
|
js as tipCardVariants,
|
|
875
872
|
ud as toSignificantDigits,
|
|
876
873
|
IT as tokenRewardsOf,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
874
|
+
pg as tokenTemplate,
|
|
875
|
+
mg as tokenTemplateNumber,
|
|
876
|
+
lg as tokenTemplateString,
|
|
880
877
|
VT as totalApyOf,
|
|
881
878
|
aa as transactionConfirmDialogShellVariants,
|
|
882
879
|
ia as transactionConfirmModalContainerVariants,
|
|
883
880
|
na as transactionConfirmPreviewScrollVariants,
|
|
884
881
|
pa as transactionConfirmShellContentVariants,
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
882
|
+
cg as ttlFromTimestamp,
|
|
883
|
+
ug as ttlLeft,
|
|
884
|
+
Sg as ttlLeftHuman,
|
|
888
885
|
bx as typographyVariants,
|
|
889
886
|
qr as useBreakpointContext,
|
|
890
887
|
Gx as useCheckboxSelect,
|
|
@@ -919,6 +916,6 @@ export {
|
|
|
919
916
|
Ks as useTheme,
|
|
920
917
|
eo as useTitleText,
|
|
921
918
|
Bf as validateMarkerPoints,
|
|
922
|
-
|
|
919
|
+
Rd as validateMinMax,
|
|
923
920
|
Lx as verticalIndicatorVariants
|
|
924
921
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
"errors.networkError": "Network error. Can't fetch data",
|
|
3
3
|
"errors.incorrectAddressError": "Incorrect address. Please, check url",
|
|
4
4
|
"errors.noOpenedAccountsError": "You have no opened Credit Accounts. Perhaps, you have recently been liquidated? Check notification centre to see more.",
|
|
@@ -175,12 +175,8 @@ const e = {
|
|
|
175
175
|
"components.poolApyBreakdownCard.title": "APY Breakdown",
|
|
176
176
|
"components.poolApyBreakdownCard.organicApy": "Pool organic APY",
|
|
177
177
|
"components.poolApyBreakdownCard.incentiveApy": "Incentive APY",
|
|
178
|
-
"components.strategyApyBreakdownCard.titleAtLeverage": "APY at {leverage}× Leverage",
|
|
179
|
-
"components.strategyApyBreakdownCard.collateralApy": "Collateral APY",
|
|
180
|
-
"components.strategyApyBreakdownCard.incentiveApy": "Incentive APY",
|
|
181
|
-
"components.strategyApyBreakdownCard.borrowRate": "Borrow Rate",
|
|
182
|
-
"components.strategyApyBreakdownCard.quotaRate": "Quota Rate",
|
|
183
178
|
"components.strategyApyBreakdownCard.formula": "{leverage} × {base}",
|
|
179
|
+
"components.strategyApyBreakdownCard.borrowFormula": "{debtMultiplier} × {borrowBase} + {quotaMultiplier} × {quotaBase}",
|
|
184
180
|
"components.leveragePresetChips.label": "Leverage:",
|
|
185
181
|
"components.liquidationParamsTable.lt": "Liquidation threshold",
|
|
186
182
|
"components.liquidationParamsTable.penalty": "Liquidation discount",
|
|
@@ -196,5 +192,5 @@ const e = {
|
|
|
196
192
|
"components.transactionConfirm.previewErrorTitle": "Preview error"
|
|
197
193
|
};
|
|
198
194
|
export {
|
|
199
|
-
|
|
195
|
+
o as default
|
|
200
196
|
};
|