@gearbox-protocol/ui-kit 4.0.0-next.26 → 4.0.0-next.28

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.
Files changed (34) hide show
  1. package/dist/cjs/components/base/apy-breakdown-body/apy-breakdown-body.cjs +1 -0
  2. package/dist/cjs/components/base/apy-breakdown-body/index.cjs +1 -0
  3. package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
  4. package/dist/cjs/components/base/pool-apy-breakdown-card/constants.cjs +1 -1
  5. package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
  6. package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
  7. package/dist/cjs/components/base/values/scalars.cjs +1 -1
  8. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  9. package/dist/cjs/components/index.cjs +1 -1
  10. package/dist/cjs/components/yield-breakdown-tooltip/index.cjs +1 -1
  11. package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
  12. package/dist/cjs/index.cjs +1 -1
  13. package/dist/esm/components/base/apy-breakdown-body/apy-breakdown-body.js +106 -0
  14. package/dist/esm/components/base/apy-breakdown-body/index.js +10 -0
  15. package/dist/esm/components/base/info-list/info-list.js +1 -1
  16. package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +5 -2
  17. package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +111 -57
  18. package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +140 -185
  19. package/dist/esm/components/base/values/scalars.js +11 -10
  20. package/dist/esm/components/compound-apy/compound-apy.js +20 -18
  21. package/dist/esm/components/index.js +45 -44
  22. package/dist/esm/components/yield-breakdown-tooltip/index.js +2 -1
  23. package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +136 -156
  24. package/dist/esm/index.js +191 -190
  25. package/dist/globals.css +1 -1
  26. package/dist/types/components/base/apy-breakdown-body/apy-breakdown-body.d.ts +42 -0
  27. package/dist/types/components/base/apy-breakdown-body/index.d.ts +2 -0
  28. package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +3 -0
  29. package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +9 -7
  30. package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +3 -1
  31. package/dist/types/components/base/values/scalars.d.ts +3 -1
  32. package/dist/types/components/compound-apy/compound-apy.d.ts +3 -1
  33. package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +23 -3
  34. package/package.json +1 -1
@@ -249,25 +249,25 @@ import { VerticalIndicator as cs, verticalIndicatorVariants as us } from "./vert
249
249
  import { VSpace as Ss } from "./vspace/vspace.js";
250
250
  import { WithCopy as Ds } from "./with-copy/with-copy.js";
251
251
  import { WithTitle as bs } from "./with-title/with-title.js";
252
- import { YieldBreakdownTooltip as Bs } from "./yield-breakdown-tooltip/yield-breakdown-tooltip.js";
253
- import { AmountInputTest as Is } from "./base/amount-input/constants.js";
254
- import { DetailedPageTitleTest as Vs } from "./base/detailed-page-title/constants.js";
255
- import { DetailsViewTest as Es } from "./base/details-view/constants.js";
256
- import { HistoryChartTest as Fs } from "./base/history-chart/constants.js";
257
- import { InfoListTest as _s } from "./base/info-list/constants.js";
258
- import { LeverageInputTest as Hs } from "./base/leverage-input/constants.js";
259
- import { ManagePaneTest as vs } from "./base/manage-pane/constants.js";
260
- import { PageTitleTest as Ns } from "./base/page-title/constants.js";
261
- import { ReviewButtonTest as Ws } from "./base/review-button/constants.js";
262
- import { SectionHeadingTest as qs } from "./base/section-heading/constants.js";
263
- import { SegmentedTabsTest as Ys } from "./base/segmented-tabs/constants.js";
264
- import { StackTest as Qs } from "./base/stack/constants.js";
265
- import { StatBadgeTest as js } from "./base/stat-badge/constants.js";
266
- import { StickyBarTest as $s } from "./base/sticky-bar/constants.js";
267
- import { TabberTest as oT } from "./base/tabber/constants.js";
268
- import { TokenAmountTest as tT } from "./base/token-amount/constants.js";
269
- import { BaseTableLineTest as iT, BaseTableTest as nT } from "./base-table/constants.js";
270
- import { decimalsToStep as lT, findClosestPoint as mT, formatWithDecimals as fT, formatWithoutDecimals as xT, splitInterval as sT, validateMinMax as TT } from "../utils/math.js";
252
+ import { ApyBreakdownTooltip as Bs, YieldBreakdownTooltip as hs } from "./yield-breakdown-tooltip/yield-breakdown-tooltip.js";
253
+ import { AmountInputTest as ks } from "./base/amount-input/constants.js";
254
+ import { DetailedPageTitleTest as ws } from "./base/detailed-page-title/constants.js";
255
+ import { DetailsViewTest as Ms } from "./base/details-view/constants.js";
256
+ import { HistoryChartTest as Rs } from "./base/history-chart/constants.js";
257
+ import { InfoListTest as ys } from "./base/info-list/constants.js";
258
+ import { LeverageInputTest as Gs } from "./base/leverage-input/constants.js";
259
+ import { ManagePaneTest as Os } from "./base/manage-pane/constants.js";
260
+ import { PageTitleTest as Us } from "./base/page-title/constants.js";
261
+ import { ReviewButtonTest as Xs } from "./base/review-button/constants.js";
262
+ import { SectionHeadingTest as Ks } from "./base/section-heading/constants.js";
263
+ import { SegmentedTabsTest as Zs } from "./base/segmented-tabs/constants.js";
264
+ import { StackTest as zs } from "./base/stack/constants.js";
265
+ import { StatBadgeTest as Js } from "./base/stat-badge/constants.js";
266
+ import { StickyBarTest as eT } from "./base/sticky-bar/constants.js";
267
+ import { TabberTest as rT } from "./base/tabber/constants.js";
268
+ import { TokenAmountTest as aT } from "./base/token-amount/constants.js";
269
+ import { BaseTableLineTest as nT, BaseTableTest as pT } from "./base-table/constants.js";
270
+ import { decimalsToStep as mT, findClosestPoint as fT, formatWithDecimals as xT, formatWithoutDecimals as sT, splitInterval as TT, validateMinMax as dT } from "../utils/math.js";
271
271
  export {
272
272
  gn as AXIS_EDGE_LABEL_PADDING_PX,
273
273
  cn as AXIS_FONT_SIZE,
@@ -294,9 +294,10 @@ export {
294
294
  Bt as AllocationWheel,
295
295
  Vt as AllocationWheelTest,
296
296
  R as AmountInput,
297
- Is as AmountInputTest,
297
+ ks as AmountInputTest,
298
298
  ml as AppFooter,
299
299
  sl as AppHeader,
300
+ Bs as ApyBreakdownTooltip,
300
301
  sr as ApyValue,
301
302
  Z as AsideAlignAnchor,
302
303
  L as AssetsListCell,
@@ -307,8 +308,8 @@ export {
307
308
  Ar as BaseLink,
308
309
  Pr as BaseTable,
309
310
  Lr as BaseTableLine,
310
- iT as BaseTableLineTest,
311
- nT as BaseTableTest,
311
+ nT as BaseTableLineTest,
312
+ pT as BaseTableTest,
312
313
  Il as BlockedRegionDialog,
313
314
  G as BorrowRateBlock,
314
315
  O as BorrowRateBlockTest,
@@ -350,11 +351,11 @@ export {
350
351
  K as DetailedPageTitle,
351
352
  Ea as DetailedPageTitleCopyButton,
352
353
  Fa as DetailedPageTitleExplorerDropdown,
353
- Vs as DetailedPageTitleTest,
354
+ ws as DetailedPageTitleTest,
354
355
  J as DetailsView,
355
356
  $ as DetailsViewLeftPane,
356
357
  ee as DetailsViewManagePane,
357
- Es as DetailsViewTest,
358
+ Ms as DetailsViewTest,
358
359
  Ha as Dialog,
359
360
  Na as DialogContainer,
360
361
  Wa as DialogContent,
@@ -435,12 +436,12 @@ export {
435
436
  ip as HelpTip,
436
437
  np as HelpTipIcon,
437
438
  ne as HistoryChart,
438
- Fs as HistoryChartTest,
439
+ Rs as HistoryChartTest,
439
440
  xp as IconButton,
440
441
  ol as InfiniteScrollWrapper,
441
442
  le as InfoLine,
442
443
  me as InfoList,
443
- _s as InfoListTest,
444
+ ys as InfoListTest,
444
445
  Te as InfoPortalOut,
445
446
  de as InfoPortalProvider,
446
447
  fe as InfoSectionTitle,
@@ -454,7 +455,7 @@ export {
454
455
  Ml as LegalAgreementPanel,
455
456
  Fl as LegalAgreementPanelTest,
456
457
  ce as LeverageInput,
457
- Hs as LeverageInputTest,
458
+ Gs as LeverageInputTest,
458
459
  Ae as LeveragePresetChips,
459
460
  Ce as LeveragePresetChipsTest,
460
461
  dr as LeverageValue,
@@ -472,7 +473,7 @@ export {
472
473
  Me as ManagePaneMessage,
473
474
  Fe as ManagePaneTab,
474
475
  Re as ManagePaneTabDropdown,
475
- vs as ManagePaneTest,
476
+ Os as ManagePaneTest,
476
477
  _a as Modal,
477
478
  Ge as MoreAccordion,
478
479
  ye as MoreAccordionTest,
@@ -486,7 +487,7 @@ export {
486
487
  ii as OneFieldDialog,
487
488
  Xe as PageHeadProvider,
488
489
  qe as PageTitle,
489
- Ns as PageTitleTest,
490
+ Us as PageTitleTest,
490
491
  rr as PnlValue,
491
492
  lm as PointsIcon,
492
493
  xe as PointsInfoLine,
@@ -512,7 +513,7 @@ export {
512
513
  um as RWA_POOL_ROW_HOVER_WRAPPER_CLASS,
513
514
  zr as RangeButtons,
514
515
  oo as ReviewButton,
515
- Ws as ReviewButtonTest,
516
+ Xs as ReviewButtonTest,
516
517
  sm as RoundedImage,
517
518
  io as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
518
519
  so as SPACE_HEIGHT,
@@ -521,10 +522,10 @@ export {
521
522
  Sm as SdkStatusPillTest,
522
523
  Bm as SearchLine,
523
524
  to as SectionHeading,
524
- qs as SectionHeadingTest,
525
+ Ks as SectionHeadingTest,
525
526
  wm as SegmentedControl,
526
527
  no as SegmentedTabs,
527
- Ys as SegmentedTabsTest,
528
+ Zs as SegmentedTabsTest,
528
529
  Fm as Select,
529
530
  Rm as SelectContent,
530
531
  _m as SelectGroup,
@@ -557,14 +558,14 @@ export {
557
558
  kf as SpinnerOverlay,
558
559
  Mf as SplitList,
559
560
  co as Stack,
560
- Qs as StackTest,
561
+ zs as StackTest,
561
562
  Co as StatBadge,
562
563
  So as StatBadgeGrid,
563
- js as StatBadgeTest,
564
+ Js as StatBadgeTest,
564
565
  Gf as StatusBars,
565
566
  Rf as StatusDot,
566
567
  Do as StickyBar,
567
- $s as StickyBarTest,
568
+ eT as StickyBarTest,
568
569
  Bo as StrategyApyBreakdownCard,
569
570
  bo as StrategyApyBreakdownCardTest,
570
571
  St as StyledButton,
@@ -578,7 +579,7 @@ export {
578
579
  Nf as TabItem,
579
580
  Io as Tabber,
580
581
  ko as TabberSection,
581
- oT as TabberTest,
582
+ rT as TabberTest,
582
583
  xx as Table,
583
584
  sx as TableBody,
584
585
  Tx as TableCaption,
@@ -607,7 +608,7 @@ export {
607
608
  No as TitleMeta,
608
609
  vo as TitleMetaTest,
609
610
  Wo as TokenAmount,
610
- tT as TokenAmountTest,
611
+ aT as TokenAmountTest,
611
612
  gr as TokenBigint,
612
613
  Kx as TokenIcon,
613
614
  Yo as TokenPairSymbol,
@@ -646,14 +647,14 @@ export {
646
647
  Ds as WithCopy,
647
648
  hm as WithSearchLine,
648
649
  bs as WithTitle,
649
- Bs as YieldBreakdownTooltip,
650
+ hs as YieldBreakdownTooltip,
650
651
  l as alertBadgeVariants,
651
652
  Hr as backButtonVariants,
652
653
  I as badgeVariants,
653
654
  Cr as bps,
654
655
  Or as buttonVariants,
655
656
  Yt as computeTransactionConfirmDialogLayout,
656
- lT as decimalsToStep,
657
+ mT as decimalsToStep,
657
658
  dp as faArrowDown,
658
659
  gp as faArrowLeft,
659
660
  cp as faArrowRight,
@@ -693,9 +694,9 @@ export {
693
694
  zp as faWallet,
694
695
  jp as faXmark,
695
696
  xn as filterBlockVariants,
696
- mT as findClosestPoint,
697
- fT as formatWithDecimals,
698
- xT as formatWithoutDecimals,
697
+ fT as findClosestPoint,
698
+ xT as formatWithDecimals,
699
+ sT as formatWithoutDecimals,
699
700
  Mr as getBreakpointState,
700
701
  bn as getDefaultOptions,
701
702
  Ln as getDefaultSeries,
@@ -738,7 +739,7 @@ export {
738
739
  Wm as selectTriggerVariants,
739
740
  Pa as shouldShowTransactionProgressStepper,
740
741
  tf as skeletonVariants,
741
- sT as splitInterval,
742
+ TT as splitInterval,
742
743
  _f as statusDotVariants,
743
744
  Fr as subscribeBreakpoints,
744
745
  Sx as tableCellVariants,
@@ -763,6 +764,6 @@ export {
763
764
  Nx as useTheme,
764
765
  Fo as useTitleText,
765
766
  Cf as validateMarkerPoints,
766
- TT as validateMinMax,
767
+ dT as validateMinMax,
767
768
  us as verticalIndicatorVariants
768
769
  };
@@ -1,4 +1,5 @@
1
- import { YieldBreakdownTooltip as r } from "./yield-breakdown-tooltip.js";
1
+ import { ApyBreakdownTooltip as p, YieldBreakdownTooltip as r } from "./yield-breakdown-tooltip.js";
2
2
  export {
3
+ p as ApyBreakdownTooltip,
3
4
  r as YieldBreakdownTooltip
4
5
  };
@@ -1,204 +1,184 @@
1
- import { jsxs as a, jsx as e, Fragment as N } from "react/jsx-runtime";
2
- import { PointsIcon as A } from "../points-icon/points-icon.js";
3
- import { TokenIcon as I } from "../token-icon/token-icon.js";
4
- import { SimpleTooltip as P } from "../tooltip/simple-tooltip.js";
1
+ import { jsx as e, jsxs as c, Fragment as A } from "react/jsx-runtime";
2
+ import { APY_BREAKDOWN_TOOLTIP_WIDTH as B, ApyBreakdownBody as v, formatBreakdownRate as u, ApyBreakdownRow as y, periodMessageId as w, ApyBreakdownDivider as h } from "../base/apy-breakdown-body/apy-breakdown-body.js";
3
+ import { PoolApyBreakdownCard as b } from "../base/pool-apy-breakdown-card/pool-apy-breakdown-card.js";
4
+ import { PointsIcon as I } from "../points-icon/points-icon.js";
5
+ import { TokenIcon as P } from "../token-icon/token-icon.js";
6
+ import { SimpleTooltip as T } from "../tooltip/simple-tooltip.js";
5
7
  import "../tooltip/tooltip.js";
6
- import { FormattedMessageTyped as s } from "../typed-intl/index.js";
7
- import "react";
8
- import { tokenRewardsOf as T, pointProgramsOf as $, totalApyOf as j } from "../../utils/apy-breakdown.js";
9
- import "@gearbox-protocol/sdk/onchain";
10
- import { bpsToPercent as R } from "../../utils/bps.js";
11
- import { cn as f } from "../../utils/cn.js";
12
- import "sonner";
13
- import { formatLeverage as S } from "../../utils/format-leverage.js";
14
- import { formatCompactPercent as C } from "../../utils/format-money.js";
15
- import "@gearbox-protocol/sdk/common-utils";
16
- import "luxon";
17
- import "../../utils/z-index.js";
18
- function p(o) {
19
- const n = R(o), r = C(Math.abs(n));
20
- return n < 0 ? `-${r}` : r;
8
+ import { FormattedMessageTyped as d } from "../typed-intl/index.js";
9
+ import { tokenRewardsOf as O, pointProgramsOf as R, totalApyOf as x } from "../../utils/apy-breakdown.js";
10
+ import { formatLeverage as N } from "../../utils/format-leverage.js";
11
+ function S({
12
+ title: t,
13
+ children: l,
14
+ placement: s = "left",
15
+ open: a,
16
+ className: i,
17
+ triggerClassName: n
18
+ }) {
19
+ return /* @__PURE__ */ e(
20
+ T,
21
+ {
22
+ placement: s,
23
+ triangle: !1,
24
+ type: "modal-tooltip",
25
+ minWidth: B,
26
+ maxWidth: B,
27
+ title: t,
28
+ open: a,
29
+ className: i,
30
+ triggerClassName: n,
31
+ children: l
32
+ }
33
+ );
21
34
  }
22
- function m(o, n, r) {
23
- return o === "7d" ? r : n;
35
+ function H({
36
+ supplyApy: t,
37
+ maxLeverage: l,
38
+ collateralApy: s,
39
+ borrowApy: a,
40
+ quotaRate: i,
41
+ period: n,
42
+ children: r,
43
+ className: m,
44
+ open: g
45
+ }) {
46
+ const p = l !== void 0 && l > 0;
47
+ return /* @__PURE__ */ e(
48
+ S,
49
+ {
50
+ placement: "bottom",
51
+ title: /* @__PURE__ */ e("span", { className: m, children: r }),
52
+ triggerClassName: m,
53
+ open: g,
54
+ children: p ? /* @__PURE__ */ e(
55
+ W,
56
+ {
57
+ supplyApy: t,
58
+ maxLeverage: l,
59
+ collateralApy: s,
60
+ borrowApy: a,
61
+ quotaRate: i,
62
+ period: n
63
+ }
64
+ ) : /* @__PURE__ */ e(b, { data: t, period: n })
65
+ }
66
+ );
24
67
  }
25
- function Z({
26
- supplyApy: o,
27
- maxLeverage: n,
28
- collateralApy: r,
29
- borrowApy: g,
30
- quotaRate: b,
31
- period: l,
32
- children: h,
33
- className: w
68
+ function W({
69
+ supplyApy: t,
70
+ maxLeverage: l,
71
+ collateralApy: s,
72
+ borrowApy: a,
73
+ quotaRate: i,
74
+ period: n
34
75
  }) {
35
- const d = n !== void 0 && n > 0, i = d ? r : r ?? o, k = i ? T(i) : [], v = $(o), x = j(o), u = g != null || b != null ? -((g ?? 0) + (b ?? 0)) : void 0, y = v.filter((t) => t.multiplier != null), B = /* @__PURE__ */ a(
36
- "div",
76
+ const r = s, m = r ? O(r) : [], g = R(t), p = x(t), f = a != null || i != null ? -((a ?? 0) + (i ?? 0)) : void 0, k = g.filter((o) => o.multiplier != null);
77
+ return /* @__PURE__ */ c(
78
+ v,
37
79
  {
38
- className: f(
39
- "flex w-[400px] max-w-[calc(100vw-32px)] flex-col gap-4 p-4",
40
- "rounded-xl",
41
- "bg-card text-card-foreground",
42
- "border border-border",
43
- "shadow-[0_4px_14px_rgba(0,0,0,0.15)]",
44
- "text-left font-normal"
80
+ title: /* @__PURE__ */ e(
81
+ d,
82
+ {
83
+ messageId: w(
84
+ n,
85
+ "components.yieldBreakdown.titleNetAtLeverage",
86
+ "components.yieldBreakdown.titleNetAtLeverage7d"
87
+ ),
88
+ values: { leverage: N(l) }
89
+ }
45
90
  ),
91
+ chip: u(p),
92
+ chipPositive: p > 0,
46
93
  children: [
47
- /* @__PURE__ */ a("div", { className: "flex h-6 items-center justify-between gap-3", children: [
48
- /* @__PURE__ */ e("span", { className: "text-base font-semibold leading-4 text-foreground", children: d ? /* @__PURE__ */ e(
49
- s,
50
- {
51
- messageId: m(
52
- l,
53
- "components.yieldBreakdown.titleNetAtLeverage",
54
- "components.yieldBreakdown.titleNetAtLeverage7d"
55
- ),
56
- values: {
57
- leverage: S(n)
58
- }
59
- }
60
- ) : /* @__PURE__ */ e(
61
- s,
62
- {
63
- messageId: m(
64
- l,
65
- "components.yieldBreakdown.titleNet",
66
- "components.yieldBreakdown.titleNet7d"
67
- )
68
- }
69
- ) }),
70
- /* @__PURE__ */ e(
71
- "span",
72
- {
73
- className: f(
74
- "rounded-md px-2 py-0.5 text-sm font-semibold tabular-nums",
75
- x > 0 ? "bg-success/20 text-success" : "bg-muted text-muted-foreground"
76
- ),
77
- children: p(x)
78
- }
79
- )
80
- ] }),
81
- i?.organicApy != null && /* @__PURE__ */ e(
82
- c,
94
+ r?.organicApy != null ? /* @__PURE__ */ e(
95
+ y,
83
96
  {
84
- muted: i.organicApy < 0,
97
+ muted: r.organicApy < 0,
85
98
  label: /* @__PURE__ */ e(
86
- s,
99
+ d,
87
100
  {
88
- messageId: d ? m(
89
- l,
101
+ messageId: w(
102
+ n,
90
103
  "components.yieldBreakdown.collateralApy",
91
104
  "components.yieldBreakdown.collateralApy7d"
92
- ) : m(
93
- l,
94
- "components.yieldBreakdown.baseApy",
95
- "components.yieldBreakdown.baseApy7d"
96
105
  )
97
106
  }
98
107
  ),
99
- value: p(i.organicApy)
108
+ value: u(r.organicApy)
100
109
  }
110
+ ) : null,
111
+ m.map(
112
+ (o) => o.supplyApr == null ? null : /* @__PURE__ */ e(
113
+ y,
114
+ {
115
+ muted: o.supplyApr < 0,
116
+ label: /* @__PURE__ */ c("span", { className: "inline-flex items-center gap-1.5", children: [
117
+ /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
118
+ d,
119
+ {
120
+ messageId: "components.apyParts.extraAPY",
121
+ values: { symbol: o.token.symbol }
122
+ }
123
+ ) }),
124
+ /* @__PURE__ */ e(P, { token: o.token, size: 20 })
125
+ ] }),
126
+ value: u(o.supplyApr)
127
+ },
128
+ `incentive-${o.token.address}-${o.supplyApr}`
129
+ )
101
130
  ),
102
- k.map((t) => t.supplyApr == null ? null : /* @__PURE__ */ e(
103
- c,
104
- {
105
- muted: t.supplyApr < 0,
106
- label: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5", children: [
107
- /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
108
- s,
109
- {
110
- messageId: "components.apyParts.extraAPY",
111
- values: { symbol: t.token.symbol }
112
- }
113
- ) }),
114
- /* @__PURE__ */ e(I, { token: t.token, size: 20 })
115
- ] }),
116
- value: p(t.supplyApr)
117
- },
118
- `incentive-${t.token.address}-${t.supplyApr}`
119
- )),
120
- d && u != null && /* @__PURE__ */ e(
121
- c,
131
+ f != null ? /* @__PURE__ */ e(
132
+ y,
122
133
  {
123
- muted: u < 0,
134
+ muted: f < 0,
124
135
  label: /* @__PURE__ */ e(
125
- s,
136
+ d,
126
137
  {
127
- messageId: m(
128
- l,
138
+ messageId: w(
139
+ n,
129
140
  "components.yieldBreakdown.borrowRate",
130
141
  "components.yieldBreakdown.borrowRate7d"
131
142
  )
132
143
  }
133
144
  ),
134
- value: p(u)
145
+ value: u(f)
135
146
  }
136
- ),
137
- y.length > 0 && /* @__PURE__ */ a(N, { children: [
138
- /* @__PURE__ */ e("div", { className: "h-px w-full bg-divider" }),
139
- y.map((t) => /* @__PURE__ */ e(
140
- c,
147
+ ) : null,
148
+ k.length > 0 ? /* @__PURE__ */ c(A, { children: [
149
+ /* @__PURE__ */ e(h, {}),
150
+ k.map((o) => /* @__PURE__ */ e(
151
+ y,
141
152
  {
142
- label: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5", children: [
153
+ label: /* @__PURE__ */ c("span", { className: "inline-flex items-center gap-1.5", children: [
143
154
  /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
144
- s,
155
+ d,
145
156
  {
146
157
  messageId: "components.yieldBreakdown.programPoints",
147
- values: { name: t.name }
158
+ values: { name: o.name }
148
159
  }
149
160
  ) }),
150
161
  /* @__PURE__ */ e(
151
- A,
162
+ I,
152
163
  {
153
164
  reward: {
154
- name: t.name,
155
- type: t.id
165
+ name: o.name,
166
+ type: o.id
156
167
  },
157
168
  size: 20
158
169
  }
159
170
  )
160
171
  ] }),
161
- value: `${t.multiplier}×`
172
+ value: `${o.multiplier}×`
162
173
  },
163
- `points-${t.id}`
174
+ `points-${o.id}`
164
175
  ))
165
- ] })
176
+ ] }) : null
166
177
  ]
167
178
  }
168
179
  );
169
- return /* @__PURE__ */ e(
170
- P,
171
- {
172
- placement: "bottom",
173
- triangle: !1,
174
- type: "modal-tooltip",
175
- minWidth: "100%",
176
- maxWidth: "100%",
177
- title: /* @__PURE__ */ e("span", { className: w, children: h }),
178
- triggerClassName: w,
179
- children: B
180
- }
181
- );
182
- }
183
- function c({
184
- label: o,
185
- value: n,
186
- muted: r = !1
187
- }) {
188
- return /* @__PURE__ */ a("div", { className: "flex h-6 items-center justify-between gap-3 text-sm leading-5", children: [
189
- /* @__PURE__ */ e("span", { className: "min-w-0 font-normal text-muted-foreground", children: o }),
190
- /* @__PURE__ */ e(
191
- "span",
192
- {
193
- className: f(
194
- "shrink-0 font-semibold tabular-nums",
195
- r ? "text-muted-foreground" : "text-foreground"
196
- ),
197
- children: n
198
- }
199
- )
200
- ] });
201
180
  }
202
181
  export {
203
- Z as YieldBreakdownTooltip
182
+ S as ApyBreakdownTooltip,
183
+ H as YieldBreakdownTooltip
204
184
  };