@gearbox-protocol/ui-kit 4.0.0-next.50 → 4.0.0-next.52

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