@gearbox-protocol/permissionless-ui 1.22.0-next.24 → 1.22.0-next.26
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/status-dot/status-dot.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/status-dot/status-dot.js +11 -11
- package/dist/esm/hooks/index.js +34 -36
- package/dist/esm/index.js +103 -105
- package/dist/globals.css +1 -1
- package/dist/types/hooks/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/hooks/use-pool-points-tips.cjs +0 -1
- package/dist/esm/hooks/use-pool-points-tips.js +0 -17
- package/dist/types/hooks/use-pool-points-tips.d.ts +0 -40
package/dist/esm/index.js
CHANGED
|
@@ -212,33 +212,32 @@ import { useHF as Pl } from "./hooks/use-hf.js";
|
|
|
212
212
|
import { useEditPriceManually as Ml, useLiquidationGraphParams as vl, useLiquidationHeatmap as yl } from "./hooks/use-liquidation/index.js";
|
|
213
213
|
import { useIsDesktop as Hl, useIsMobile as Nl, useIsTablet as Ol, useMediaQuery as _l } from "./hooks/use-media-query.js";
|
|
214
214
|
import { useOpenedState as ql } from "./hooks/use-opened-state.js";
|
|
215
|
-
import {
|
|
216
|
-
import {
|
|
217
|
-
import {
|
|
218
|
-
import {
|
|
219
|
-
import {
|
|
220
|
-
import {
|
|
221
|
-
import {
|
|
222
|
-
import {
|
|
223
|
-
import {
|
|
224
|
-
import {
|
|
225
|
-
import {
|
|
226
|
-
import {
|
|
227
|
-
import {
|
|
228
|
-
import {
|
|
229
|
-
import {
|
|
230
|
-
import {
|
|
231
|
-
import {
|
|
232
|
-
import {
|
|
233
|
-
import {
|
|
234
|
-
import {
|
|
235
|
-
import {
|
|
236
|
-
import {
|
|
237
|
-
import {
|
|
238
|
-
import {
|
|
239
|
-
import {
|
|
240
|
-
import {
|
|
241
|
-
import { CELL_BAD as Lx, CELL_CURRENT as Ax, CELL_GOOD as Ix, CELL_HOVERED as Vx, CELL_LIQUIDATION as Fx, CELL_OK as hx, DEFAULT_AXIS_MAX as Gx, DEFAULT_AXIS_MIN as Bx, formatAxisLabel as wx, formatAxisTipLabel as Ex, formatAxisTipPrice as Px, getCellClass as kx, isPointInCell as Mx, useAxis as vx, useFixedAssets as yx, useIsAxisInRelativeUnits as Rx, useLiquidationGraphActivePrice as Hx, useLiquidationGraphCurrentActiveValue as Nx, usePriceInNumber as Ox, useWithLiquidationGraphActivePrices as _x } from "./hooks/use-liquidation/utils.js";
|
|
215
|
+
import { usePrevious as zl } from "./hooks/use-previous.js";
|
|
216
|
+
import { generateId as Zl, useFormFieldIds as Yl } from "./utils/a11y.js";
|
|
217
|
+
import { bnToInputView as Kl } from "./utils/bn-to-input-view.js";
|
|
218
|
+
import { bnToPrettyView as Jl } from "./utils/bn-to-pretty-view.js";
|
|
219
|
+
import { cn as rf } from "./utils/cn.js";
|
|
220
|
+
import { generateColorsFromBase as of, getCSSVariable as tf, hexToRgba as af, resolveCSSColor as pf } from "./utils/colors.js";
|
|
221
|
+
import { copyToClipboard as mf } from "./utils/copy.js";
|
|
222
|
+
import { convertPercent as ff, formatBytecodeSize as xf, formatBytecodeVersion as sf, formatTimestamp as df, shortenHash as uf, significantTrunc as Tf } from "./utils/format.js";
|
|
223
|
+
import { formatAssetAmount as cf } from "./utils/format-asset-amount.js";
|
|
224
|
+
import { PERCENTAGE_FACTOR as bf, SLIPPAGE_DECIMALS as Sf, formatMoney as Df, formatMoney as Lf, formatPercentAmount as Af, percentTemplate as If, percentageTemplate as Vf } from "./utils/format-money.js";
|
|
225
|
+
import { FORMAT_CONSTANTS as hf, formatNumberWithSuffix as Gf, formatPrice as Bf, getAdaptiveDecimals as wf, isBelowDisplayThreshold as Ef, isEffectivelyZero as Pf, toSignificantDigits as kf } from "./utils/format-number.js";
|
|
226
|
+
import { slippageTemplate as vf } from "./utils/format-slippage.js";
|
|
227
|
+
import { getNetworkIcon as Rf } from "./utils/network-icons.js";
|
|
228
|
+
import { parseInputToBN as Nf } from "./utils/parse-input-to-bn.js";
|
|
229
|
+
import { pluralize as _f, selectPluralString as Uf } from "./utils/plural.js";
|
|
230
|
+
import { getAvailableRanges as Wf } from "./utils/ranges.js";
|
|
231
|
+
import { extractTextFromLabel as Xf, serializeValue as Zf } from "./utils/react.js";
|
|
232
|
+
import { searchInString as Qf } from "./utils/search.js";
|
|
233
|
+
import { createTokenSearchFilter as jf, searchInToken as Jf } from "./utils/search-in-token.js";
|
|
234
|
+
import { shortSHA as rx } from "./utils/short-sha.js";
|
|
235
|
+
import { isLongString as ox, shortenString as tx } from "./utils/shorten-string.js";
|
|
236
|
+
import { negativeTokenTemplate as px, tokenTemplate as ix, tokenTemplateNumber as nx, tokenTemplateString as mx } from "./utils/templates.js";
|
|
237
|
+
import { TTL_CONSTANTS as fx, getTTLZone as xx, ttlFromTimestamp as sx, ttlLeft as dx, ttlLeftParsed as ux } from "./utils/ttl.js";
|
|
238
|
+
import { openInNewWindow as gx } from "./utils/window.js";
|
|
239
|
+
import { Z_INDEX as Cx } from "./utils/z-index.js";
|
|
240
|
+
import { CELL_BAD as Sx, CELL_CURRENT as Dx, CELL_GOOD as Lx, CELL_HOVERED as Ax, CELL_LIQUIDATION as Ix, CELL_OK as Vx, DEFAULT_AXIS_MAX as Fx, DEFAULT_AXIS_MIN as hx, formatAxisLabel as Gx, formatAxisTipLabel as Bx, formatAxisTipPrice as wx, getCellClass as Ex, isPointInCell as Px, useAxis as kx, useFixedAssets as Mx, useIsAxisInRelativeUnits as vx, useLiquidationGraphActivePrice as yx, useLiquidationGraphCurrentActiveValue as Rx, usePriceInNumber as Hx, useWithLiquidationGraphActivePrices as Nx } from "./hooks/use-liquidation/utils.js";
|
|
242
241
|
export {
|
|
243
242
|
o as Accordion,
|
|
244
243
|
t as AccordionContent,
|
|
@@ -276,12 +275,12 @@ export {
|
|
|
276
275
|
j as BreadCrumbs,
|
|
277
276
|
ar as Button,
|
|
278
277
|
$ as ButtonCheckbox,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
278
|
+
Sx as CELL_BAD,
|
|
279
|
+
Dx as CELL_CURRENT,
|
|
280
|
+
Lx as CELL_GOOD,
|
|
281
|
+
Ax as CELL_HOVERED,
|
|
282
|
+
Ix as CELL_LIQUIDATION,
|
|
283
|
+
Vx as CELL_OK,
|
|
285
284
|
Lr as Card,
|
|
286
285
|
Ar as CardContent,
|
|
287
286
|
Ir as CardDescription,
|
|
@@ -304,8 +303,8 @@ export {
|
|
|
304
303
|
oe as CreditSessionStatus,
|
|
305
304
|
ae as CurrencyButton,
|
|
306
305
|
ot as DEFAULT_AREA_SERIES,
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
Fx as DEFAULT_AXIS_MAX,
|
|
307
|
+
hx as DEFAULT_AXIS_MIN,
|
|
309
308
|
tt as DEFAULT_OPTIONS,
|
|
310
309
|
st as DEFAULT_SERIES_COLORS,
|
|
311
310
|
at as DEFAULT_VERTICAL_LINE,
|
|
@@ -350,7 +349,7 @@ export {
|
|
|
350
349
|
kr as ExpandableCard,
|
|
351
350
|
So as ExplorerLinksDropdown,
|
|
352
351
|
lr as ExternalButton,
|
|
353
|
-
|
|
352
|
+
hf as FORMAT_CONSTANTS,
|
|
354
353
|
Lo as FadeoutLoading,
|
|
355
354
|
Io as FilterBlock,
|
|
356
355
|
xr as FilterButton,
|
|
@@ -435,7 +434,7 @@ export {
|
|
|
435
434
|
Tp as Overflow,
|
|
436
435
|
Cp as OverflowContainer,
|
|
437
436
|
gp as OverflowWrap,
|
|
438
|
-
|
|
437
|
+
bf as PERCENTAGE_FACTOR,
|
|
439
438
|
Ba as PageLayout,
|
|
440
439
|
Sp as PageTitle,
|
|
441
440
|
Ip as PercentIndicator,
|
|
@@ -452,7 +451,7 @@ export {
|
|
|
452
451
|
Up as RoundedImage,
|
|
453
452
|
Wp as Row,
|
|
454
453
|
H as SIWEClientProvider,
|
|
455
|
-
|
|
454
|
+
Sf as SLIPPAGE_DECIMALS,
|
|
456
455
|
Xp as SearchBar,
|
|
457
456
|
Yp as SearchLine,
|
|
458
457
|
$p as SegmentedControl,
|
|
@@ -491,7 +490,7 @@ export {
|
|
|
491
490
|
rn as StyledDropdown,
|
|
492
491
|
zr as StyledRoundedImage,
|
|
493
492
|
on as Switch,
|
|
494
|
-
|
|
493
|
+
fx as TTL_CONSTANTS,
|
|
495
494
|
cr as TabButton,
|
|
496
495
|
an as TabControl,
|
|
497
496
|
pn as TabItem,
|
|
@@ -541,94 +540,94 @@ export {
|
|
|
541
540
|
nl as WithFilterButton,
|
|
542
541
|
Qp as WithSearchLine,
|
|
543
542
|
ll as WithTitle,
|
|
544
|
-
|
|
543
|
+
Cx as Z_INDEX,
|
|
545
544
|
m as alertBadgeVariants,
|
|
546
545
|
or as backButtonVariants,
|
|
547
546
|
z as badgeVariants,
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
Kl as bnToInputView,
|
|
548
|
+
Jl as bnToPrettyView,
|
|
550
549
|
pr as buttonVariants,
|
|
551
550
|
Sr as cardGridVariants,
|
|
552
|
-
|
|
551
|
+
rf as cn,
|
|
553
552
|
Yr as coloredTextVariants,
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
ff as convertPercent,
|
|
554
|
+
mf as copyToClipboard,
|
|
556
555
|
ka as createGearboxAppConfig,
|
|
557
556
|
Ma as createLegalAgreementConfig,
|
|
558
557
|
va as createPermissionlessInterfaceConfig,
|
|
559
558
|
ya as createPermissionlessSafeConfig,
|
|
560
|
-
|
|
559
|
+
jf as createTokenSearchFilter,
|
|
561
560
|
xl as designTokens,
|
|
562
|
-
|
|
561
|
+
Xf as extractTextFromLabel,
|
|
563
562
|
Xo as filterBlockVariants,
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
563
|
+
cf as formatAssetAmount,
|
|
564
|
+
Gx as formatAxisLabel,
|
|
565
|
+
Bx as formatAxisTipLabel,
|
|
566
|
+
wx as formatAxisTipPrice,
|
|
567
|
+
xf as formatBytecodeSize,
|
|
568
|
+
sf as formatBytecodeVersion,
|
|
569
|
+
Df as formatMoney,
|
|
570
|
+
Lf as formatMoneyAmount,
|
|
571
|
+
Gf as formatNumberWithSuffix,
|
|
572
|
+
Af as formatPercentAmount,
|
|
573
|
+
Bf as formatPrice,
|
|
574
|
+
df as formatTimestamp,
|
|
575
|
+
of as generateColorsFromBase,
|
|
576
|
+
Zl as generateId,
|
|
577
|
+
wf as getAdaptiveDecimals,
|
|
578
|
+
Wf as getAvailableRanges,
|
|
579
|
+
tf as getCSSVariable,
|
|
580
|
+
Ex as getCellClass,
|
|
582
581
|
pt as getDefaultOptions,
|
|
583
582
|
it as getDefaultSeries,
|
|
584
583
|
nt as getDefaultVerticalLine,
|
|
585
584
|
yt as getHFZones,
|
|
586
|
-
|
|
585
|
+
Rf as getNetworkIcon,
|
|
587
586
|
Fl as getSortForField,
|
|
588
|
-
|
|
587
|
+
xx as getTTLZone,
|
|
589
588
|
lt as getXFormatter,
|
|
590
589
|
ft as getYFormatter,
|
|
591
590
|
Dt as graphViewVariants,
|
|
592
591
|
vn as gridTableCellVariants,
|
|
593
592
|
yn as gridTableHeadVariants,
|
|
594
593
|
Rn as gridTableVariants,
|
|
595
|
-
|
|
594
|
+
af as hexToRgba,
|
|
596
595
|
$t as iconButtonVariants,
|
|
597
596
|
oa as inputVariants,
|
|
598
597
|
dl as interactiveVariants,
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
598
|
+
Ef as isBelowDisplayThreshold,
|
|
599
|
+
Pf as isEffectivelyZero,
|
|
600
|
+
ox as isLongString,
|
|
601
|
+
Px as isPointInCell,
|
|
603
602
|
pa as labelVariants,
|
|
604
603
|
Ja as navbarVariants,
|
|
605
604
|
ip as navitemVariants,
|
|
606
|
-
|
|
607
|
-
|
|
605
|
+
px as negativeTokenTemplate,
|
|
606
|
+
gx as openInNewWindow,
|
|
608
607
|
ul as paddingVariants,
|
|
609
608
|
Dp as pageTitleRootVariants,
|
|
610
609
|
Lp as pageTitleVariants,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
610
|
+
Nf as parseInputToBN,
|
|
611
|
+
If as percentTemplate,
|
|
612
|
+
Vf as percentageTemplate,
|
|
613
|
+
_f as pluralize,
|
|
615
614
|
wm as preloadTokenIcons,
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
615
|
+
pf as resolveCSSColor,
|
|
616
|
+
Qf as searchInString,
|
|
617
|
+
Jf as searchInToken,
|
|
619
618
|
Kp as searchLineInputVariants,
|
|
620
619
|
jp as searchLineVariants,
|
|
621
620
|
ri as segmentedControlVariants,
|
|
622
|
-
|
|
621
|
+
Uf as selectPluralString,
|
|
623
622
|
si as selectTriggerVariants,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
623
|
+
Zf as serializeValue,
|
|
624
|
+
rx as shortSHA,
|
|
625
|
+
uf as shortenHash,
|
|
626
|
+
tx as shortenString,
|
|
627
|
+
Tf as significantTrunc,
|
|
629
628
|
Tl as sizeVariants,
|
|
630
629
|
Vi as skeletonVariants,
|
|
631
|
-
|
|
630
|
+
vf as slippageTemplate,
|
|
632
631
|
Ui as statBadgeContentVariants,
|
|
633
632
|
qi as statBadgeGridVariants,
|
|
634
633
|
Wi as statBadgeTitleVariants,
|
|
@@ -640,49 +639,48 @@ export {
|
|
|
640
639
|
rm as tableVariants,
|
|
641
640
|
bm as textareaVariants,
|
|
642
641
|
hm as tipCardVariants,
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
642
|
+
kf as toSignificantDigits,
|
|
643
|
+
ix as tokenTemplate,
|
|
644
|
+
nx as tokenTemplateNumber,
|
|
645
|
+
mx as tokenTemplateString,
|
|
646
|
+
sx as ttlFromTimestamp,
|
|
647
|
+
dx as ttlLeft,
|
|
648
|
+
ux as ttlLeftParsed,
|
|
650
649
|
Qm as typographyVariants,
|
|
651
|
-
|
|
650
|
+
kx as useAxis,
|
|
652
651
|
Cl as useCheckboxSelect,
|
|
653
652
|
Sl as useControllableState,
|
|
654
653
|
Ll as useDebounce,
|
|
655
654
|
Il as useDebounceCall,
|
|
656
655
|
Ml as useEditPriceManually,
|
|
657
656
|
hl as useFilterAllSelected,
|
|
658
|
-
|
|
659
|
-
|
|
657
|
+
Mx as useFixedAssets,
|
|
658
|
+
Yl as useFormFieldIds,
|
|
660
659
|
Lt as useGraphAside,
|
|
661
660
|
Pl as useHF,
|
|
662
661
|
nn as useHashTabs,
|
|
663
662
|
Xm as useIntlTyped,
|
|
664
|
-
|
|
663
|
+
vx as useIsAxisInRelativeUnits,
|
|
665
664
|
Hl as useIsDesktop,
|
|
666
665
|
Nl as useIsMobile,
|
|
667
666
|
Ol as useIsTablet,
|
|
668
|
-
|
|
669
|
-
|
|
667
|
+
yx as useLiquidationGraphActivePrice,
|
|
668
|
+
Rx as useLiquidationGraphCurrentActiveValue,
|
|
670
669
|
vl as useLiquidationGraphParams,
|
|
671
670
|
yl as useLiquidationHeatmap,
|
|
672
671
|
_l as useMediaQuery,
|
|
673
672
|
Aa as useMobileMenu,
|
|
674
673
|
ep as useNavbarIndicator,
|
|
675
674
|
ql as useOpenedState,
|
|
676
|
-
zl as
|
|
677
|
-
|
|
678
|
-
Ox as usePriceInNumber,
|
|
675
|
+
zl as usePrevious,
|
|
676
|
+
Hx as usePriceInNumber,
|
|
679
677
|
Gl as useRangeFilter,
|
|
680
678
|
mn as useSectionTab,
|
|
681
679
|
Bl as useSelectFilter,
|
|
682
680
|
wl as useSort,
|
|
683
681
|
ln as useTabControl,
|
|
684
682
|
Lm as useTheme,
|
|
685
|
-
|
|
683
|
+
Nx as useWithLiquidationGraphActivePrices,
|
|
686
684
|
Jm as verticalIndicatorVariants,
|
|
687
685
|
el as verticalListVariants
|
|
688
686
|
};
|