@gearbox-protocol/ui-kit 3.11.2 → 3.12.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
  2. package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
  3. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  4. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  5. package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
  6. package/dist/cjs/components/composites/index.cjs +1 -1
  7. package/dist/cjs/components/composites/strategies-table/columns.cjs +1 -0
  8. package/dist/cjs/components/composites/strategies-table/components/apy-feature/apy-feature.cjs +1 -0
  9. package/dist/cjs/components/composites/strategies-table/components/apy-feature/index.cjs +1 -0
  10. package/dist/cjs/components/composites/strategies-table/components/cells/cells.cjs +1 -0
  11. package/dist/cjs/components/composites/strategies-table/components/cells/cells.styles.cjs +1 -0
  12. package/dist/cjs/components/composites/strategies-table/components/cells/index.cjs +1 -0
  13. package/dist/cjs/components/composites/strategies-table/components/feature/feature.cjs +1 -0
  14. package/dist/cjs/components/composites/strategies-table/components/feature/feature.styles.cjs +1 -0
  15. package/dist/cjs/components/composites/strategies-table/components/feature/index.cjs +1 -0
  16. package/dist/cjs/components/composites/strategies-table/components/index.cjs +1 -0
  17. package/dist/cjs/components/composites/strategies-table/components/not-found-line.cjs +1 -0
  18. package/dist/cjs/components/composites/strategies-table/components/points-feature/index.cjs +1 -0
  19. package/dist/cjs/components/composites/strategies-table/components/points-feature/points-feature.cjs +1 -0
  20. package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/index.cjs +1 -0
  21. package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.cjs +1 -0
  22. package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-view.cjs +1 -0
  23. package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip.cjs +1 -0
  24. package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.cjs +1 -0
  25. package/dist/cjs/components/composites/strategies-table/components/strategies-table.cjs +1 -0
  26. package/dist/cjs/components/composites/strategies-table/index.cjs +1 -0
  27. package/dist/cjs/components/composites/strategies-table/types/cells.cjs +1 -0
  28. package/dist/cjs/components/composites/strategies-table/types/index.cjs +1 -0
  29. package/dist/cjs/components/composites/strategies-table/types/points-reward.cjs +1 -0
  30. package/dist/cjs/components/composites/strategies-table/types/rewards-tooltip.cjs +1 -0
  31. package/dist/cjs/components/composites/strategies-table/types/table.cjs +1 -0
  32. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  33. package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
  34. package/dist/cjs/components/index.cjs +1 -1
  35. package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
  36. package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
  37. package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
  38. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  39. package/dist/cjs/index.cjs +1 -1
  40. package/dist/cjs/locale/en.json.cjs +1 -1
  41. package/dist/cjs/test-ids/index.cjs +1 -1
  42. package/dist/cjs/test-ids/strategies-table.cjs +1 -0
  43. package/dist/esm/components/assets-list-cell/assets-list-cell.js +8 -6
  44. package/dist/esm/components/block-sync/block-sync.js +8 -6
  45. package/dist/esm/components/checkbox/checkbox-labeled.js +6 -4
  46. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +6 -4
  47. package/dist/esm/components/complex-input/complex-input.js +8 -6
  48. package/dist/esm/components/composites/index.js +72 -34
  49. package/dist/esm/components/composites/strategies-table/columns.js +176 -0
  50. package/dist/esm/components/composites/strategies-table/components/apy-feature/apy-feature.js +39 -0
  51. package/dist/esm/components/composites/strategies-table/components/apy-feature/index.js +5 -0
  52. package/dist/esm/components/composites/strategies-table/components/cells/cells.js +168 -0
  53. package/dist/esm/components/composites/strategies-table/components/cells/cells.styles.js +46 -0
  54. package/dist/esm/components/composites/strategies-table/components/cells/index.js +11 -0
  55. package/dist/esm/components/composites/strategies-table/components/feature/feature.js +39 -0
  56. package/dist/esm/components/composites/strategies-table/components/feature/feature.styles.js +43 -0
  57. package/dist/esm/components/composites/strategies-table/components/feature/index.js +6 -0
  58. package/dist/esm/components/composites/strategies-table/components/index.js +35 -0
  59. package/dist/esm/components/composites/strategies-table/components/not-found-line.js +19 -0
  60. package/dist/esm/components/composites/strategies-table/components/points-feature/index.js +6 -0
  61. package/dist/esm/components/composites/strategies-table/components/points-feature/points-feature.js +69 -0
  62. package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/index.js +11 -0
  63. package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js +30 -0
  64. package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-view.js +78 -0
  65. package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip.js +44 -0
  66. package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.js +263 -0
  67. package/dist/esm/components/composites/strategies-table/components/strategies-table.js +249 -0
  68. package/dist/esm/components/composites/strategies-table/index.js +40 -0
  69. package/dist/esm/components/composites/strategies-table/types/cells.js +1 -0
  70. package/dist/esm/components/composites/strategies-table/types/index.js +1 -0
  71. package/dist/esm/components/composites/strategies-table/types/points-reward.js +1 -0
  72. package/dist/esm/components/composites/strategies-table/types/rewards-tooltip.js +1 -0
  73. package/dist/esm/components/composites/strategies-table/types/table.js +1 -0
  74. package/dist/esm/components/compound-apy/compound-apy.js +9 -7
  75. package/dist/esm/components/detailed-page-title/detailed-page-title.js +6 -4
  76. package/dist/esm/components/index.js +682 -644
  77. package/dist/esm/components/markdown-viewer/markdown-viewer.js +8 -6
  78. package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +6 -4
  79. package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +8 -6
  80. package/dist/esm/components/with-copy/with-copy.js +8 -6
  81. package/dist/esm/index.js +888 -848
  82. package/dist/esm/locale/en.json.js +26 -3
  83. package/dist/esm/test-ids/index.js +7 -5
  84. package/dist/esm/test-ids/strategies-table.js +8 -0
  85. package/dist/globals.css +1 -1
  86. package/dist/types/components/composites/index.d.ts +1 -0
  87. package/dist/types/components/composites/strategies-table/columns.d.ts +50 -0
  88. package/dist/types/components/composites/strategies-table/components/apy-feature/apy-feature.d.ts +13 -0
  89. package/dist/types/components/composites/strategies-table/components/apy-feature/index.d.ts +1 -0
  90. package/dist/types/components/composites/strategies-table/components/cells/cells.d.ts +38 -0
  91. package/dist/types/components/composites/strategies-table/components/cells/cells.styles.d.ts +7 -0
  92. package/dist/types/components/composites/strategies-table/components/cells/index.d.ts +2 -0
  93. package/dist/types/components/composites/strategies-table/components/feature/feature.d.ts +11 -0
  94. package/dist/types/components/composites/strategies-table/components/feature/feature.styles.d.ts +14 -0
  95. package/dist/types/components/composites/strategies-table/components/feature/index.d.ts +2 -0
  96. package/dist/types/components/composites/strategies-table/components/index.d.ts +7 -0
  97. package/dist/types/components/composites/strategies-table/components/not-found-line.d.ts +2 -0
  98. package/dist/types/components/composites/strategies-table/components/points-feature/index.d.ts +1 -0
  99. package/dist/types/components/composites/strategies-table/components/points-feature/points-feature.d.ts +24 -0
  100. package/dist/types/components/composites/strategies-table/components/rewards-tooltip/index.d.ts +4 -0
  101. package/dist/types/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.d.ts +17 -0
  102. package/dist/types/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip-view.d.ts +10 -0
  103. package/dist/types/components/composites/strategies-table/components/rewards-tooltip/rewards-tooltip.d.ts +7 -0
  104. package/dist/types/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.d.ts +14 -0
  105. package/dist/types/components/composites/strategies-table/components/strategies-table.d.ts +35 -0
  106. package/dist/types/components/composites/strategies-table/index.d.ts +3 -0
  107. package/dist/types/components/composites/strategies-table/types/cells.d.ts +10 -0
  108. package/dist/types/components/composites/strategies-table/types/index.d.ts +4 -0
  109. package/dist/types/components/composites/strategies-table/types/points-reward.d.ts +11 -0
  110. package/dist/types/components/composites/strategies-table/types/rewards-tooltip.d.ts +53 -0
  111. package/dist/types/components/composites/strategies-table/types/table.d.ts +99 -0
  112. package/dist/types/locale/en.json.d.ts +27 -1
  113. package/dist/types/test-ids/index.d.ts +1 -0
  114. package/dist/types/test-ids/strategies-table.d.ts +5 -0
  115. package/package.json +1 -1
@@ -1,43 +1,81 @@
1
1
  import { OracleComponent as r } from "./oracles-and-lt-table/oracle-component.js";
2
2
  import { OraclesAndLTLineView as a } from "./oracles-and-lt-table/oracles-and-lt-line-view.js";
3
3
  import { OraclesAndLTTableView as m } from "./oracles-and-lt-table/oracles-and-lt-table.js";
4
- import { OraclesAndLTTableHead as p } from "./oracles-and-lt-table/oracles-and-lt-table-head.js";
5
- import { OraclesList as f, getPriceFeedInfo as C } from "./oracles-and-lt-table/oracles-list.js";
6
- import { PoolAssetsTable as u } from "./pool-assets-table/pool-assets-table.js";
7
- import { PoolAssetsTableHead as i } from "./pool-assets-table/pool-assets-table-head.js";
8
- import { PoolAssetsTableRow as T } from "./pool-assets-table/pool-assets-table-row.js";
9
- import { overflowContainerClassName as c, overflowWrapClassName as w } from "./pool-credit-manager-info/overflow-layout.js";
10
- import { PoolCreditManagerInfo as g } from "./pool-credit-manager-info/pool-credit-manager-info.js";
11
- import { PoolCreditManagersTable as O } from "./pool-credit-managers-table/pool-credit-managers-table.js";
12
- import { PoolCreditManagersTableHead as M } from "./pool-credit-managers-table/pool-credit-managers-table-head.js";
13
- import { PoolCreditManagersTableRow as N } from "./pool-credit-managers-table/pool-credit-managers-table-row.js";
14
- import { balanceColumn as I, borrowApyColumn as R, borrowedColumn as V, collateralColumn as z, customColumn as F, defaultPoolName as W, poolColumn as h, supplyApyColumn as j, supplyColumn as k, utilizationColumn as q } from "./pool-table/columns.js";
15
- import { PoolTable as D } from "./pool-table/pool-table.js";
4
+ import { OraclesAndLTTableHead as s } from "./oracles-and-lt-table/oracles-and-lt-table-head.js";
5
+ import { OraclesList as f, getPriceFeedInfo as i } from "./oracles-and-lt-table/oracles-list.js";
6
+ import { PoolAssetsTable as x } from "./pool-assets-table/pool-assets-table.js";
7
+ import { PoolAssetsTableHead as C } from "./pool-assets-table/pool-assets-table-head.js";
8
+ import { PoolAssetsTableRow as P } from "./pool-assets-table/pool-assets-table-row.js";
9
+ import { overflowContainerClassName as w, overflowWrapClassName as g } from "./pool-credit-manager-info/overflow-layout.js";
10
+ import { PoolCreditManagerInfo as A } from "./pool-credit-manager-info/pool-credit-manager-info.js";
11
+ import { PoolCreditManagersTable as F } from "./pool-credit-managers-table/pool-credit-managers-table.js";
12
+ import { PoolCreditManagersTableHead as L } from "./pool-credit-managers-table/pool-credit-managers-table-head.js";
13
+ import { PoolCreditManagersTableRow as O } from "./pool-credit-managers-table/pool-credit-managers-table-row.js";
14
+ import { balanceColumn as H, borrowApyColumn as M, borrowedColumn as N, collateralColumn as V, customColumn as W, defaultPoolName as I, poolColumn as Y, supplyApyColumn as z, supplyColumn as D, utilizationColumn as G } from "./pool-table/columns.js";
15
+ import { PoolTable as h } from "./pool-table/pool-table.js";
16
+ import { customStrategyColumn as k, strategyColumn as q, strategyLeverageColumn as B, strategyRewardsColumn as E } from "./strategies-table/columns.js";
17
+ import { APYFeature as K, APYFeatureTooltip as Q } from "./strategies-table/components/apy-feature/apy-feature.js";
18
+ import { RWAFeature as X, StrategiesRewardsCell as _, StrategyPoints as $, ZeroSlippageFeature as oo } from "./strategies-table/components/cells/cells.js";
19
+ import { DisabledWrap as ro, Plus as to, TitleGrid as ao } from "./strategies-table/components/cells/cells.styles.js";
20
+ import { Feature as mo } from "./strategies-table/components/feature/feature.js";
21
+ import { FeatureRoot as so } from "./strategies-table/components/feature/feature.styles.js";
22
+ import { StrategiesTableNotFoundLine as fo } from "./strategies-table/components/not-found-line.js";
23
+ import { PointsFeature as uo, PointsFeatureTooltip as xo, PointsLabel as Co } from "./strategies-table/components/points-feature/points-feature.js";
24
+ import { RewardsTooltip as Po, RewardsTooltipHover as bo } from "./strategies-table/components/rewards-tooltip/rewards-tooltip.js";
25
+ import { RewardsTooltipRoot as go } from "./strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
26
+ import { RewardsTooltipView as Ao } from "./strategies-table/components/rewards-tooltip/rewards-tooltip-view.js";
27
+ import { RewardsTooltipContent as Fo } from "./strategies-table/components/rewards-tooltip/tooltip-content.js";
28
+ import { StrategiesTable as Lo } from "./strategies-table/components/strategies-table.js";
16
29
  export {
30
+ K as APYFeature,
31
+ Q as APYFeatureTooltip,
32
+ ro as DisabledWrap,
33
+ mo as Feature,
34
+ so as FeatureRoot,
17
35
  r as OracleComponent,
18
36
  a as OraclesAndLTLineView,
19
- p as OraclesAndLTTableHead,
37
+ s as OraclesAndLTTableHead,
20
38
  m as OraclesAndLTTableView,
21
39
  f as OraclesList,
22
- u as PoolAssetsTable,
23
- i as PoolAssetsTableHead,
24
- T as PoolAssetsTableRow,
25
- g as PoolCreditManagerInfo,
26
- O as PoolCreditManagersTable,
27
- M as PoolCreditManagersTableHead,
28
- N as PoolCreditManagersTableRow,
29
- D as PoolTable,
30
- I as balanceColumn,
31
- R as borrowApyColumn,
32
- V as borrowedColumn,
33
- z as collateralColumn,
34
- F as customColumn,
35
- W as defaultPoolName,
36
- C as getPriceFeedInfo,
37
- c as overflowContainerClassName,
38
- w as overflowWrapClassName,
39
- h as poolColumn,
40
- j as supplyApyColumn,
41
- k as supplyColumn,
42
- q as utilizationColumn
40
+ to as Plus,
41
+ uo as PointsFeature,
42
+ xo as PointsFeatureTooltip,
43
+ Co as PointsLabel,
44
+ x as PoolAssetsTable,
45
+ C as PoolAssetsTableHead,
46
+ P as PoolAssetsTableRow,
47
+ A as PoolCreditManagerInfo,
48
+ F as PoolCreditManagersTable,
49
+ L as PoolCreditManagersTableHead,
50
+ O as PoolCreditManagersTableRow,
51
+ h as PoolTable,
52
+ X as RWAFeature,
53
+ Po as RewardsTooltip,
54
+ Fo as RewardsTooltipContent,
55
+ bo as RewardsTooltipHover,
56
+ go as RewardsTooltipRoot,
57
+ Ao as RewardsTooltipView,
58
+ _ as StrategiesRewardsCell,
59
+ Lo as StrategiesTable,
60
+ fo as StrategiesTableNotFoundLine,
61
+ $ as StrategyPoints,
62
+ ao as TitleGrid,
63
+ oo as ZeroSlippageFeature,
64
+ H as balanceColumn,
65
+ M as borrowApyColumn,
66
+ N as borrowedColumn,
67
+ V as collateralColumn,
68
+ W as customColumn,
69
+ k as customStrategyColumn,
70
+ I as defaultPoolName,
71
+ i as getPriceFeedInfo,
72
+ w as overflowContainerClassName,
73
+ g as overflowWrapClassName,
74
+ Y as poolColumn,
75
+ q as strategyColumn,
76
+ B as strategyLeverageColumn,
77
+ E as strategyRewardsColumn,
78
+ z as supplyApyColumn,
79
+ D as supplyColumn,
80
+ G as utilizationColumn
43
81
  };
@@ -0,0 +1,176 @@
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { formatLeverage as w } from "@gearbox-protocol/sdk";
3
+ import { NetworkIcon as b } from "../../network-icon/network-icon.js";
4
+ import { ShortString as T } from "../../short-string/short-string.js";
5
+ import { TokenSymbol as y } from "../../token-symbol/token-symbol.js";
6
+ import { FormattedMessageTyped as c } from "../../typed-intl/index.js";
7
+ import { Typography as k } from "../../typography/typography.js";
8
+ import { RWAFeature as R, ZeroSlippageFeature as v, StrategiesRewardsCell as x } from "./components/cells/cells.js";
9
+ import { TitleGrid as S, DisabledWrap as h } from "./components/cells/cells.styles.js";
10
+ import { RewardsTooltip as C } from "./components/rewards-tooltip/rewards-tooltip.js";
11
+ import "./components/rewards-tooltip/rewards-tooltip-root.js";
12
+ import "../../tooltip/simple-tooltip.js";
13
+ import "../../tooltip/tooltip.js";
14
+ import "@fortawesome/free-solid-svg-icons";
15
+ import "viem";
16
+ import "../../icon-button/icon-button.js";
17
+ import "../../icons/fa-icon.js";
18
+ import "../../separate-line/separate-line.js";
19
+ import "../../skeleton/skeleton.js";
20
+ import "react";
21
+ import "clsx";
22
+ import "tailwind-merge";
23
+ import "sonner";
24
+ import "@gearbox-protocol/sdk/common-utils";
25
+ import "luxon";
26
+ import "../../../utils/z-index.js";
27
+ import "../../tip-card/tip-card.js";
28
+ import "../../vertical-indicator/vertical-indicator.js";
29
+ import "../../vertical-list/vertical-list.js";
30
+ import "../../help-tip/help-tip.js";
31
+ import "./components/feature/feature.styles.js";
32
+ import "../../points-icon/points-icon.js";
33
+ function p(e, i, r) {
34
+ const a = e?.header ?? /* @__PURE__ */ t(
35
+ c,
36
+ {
37
+ messageId: e?.headerMessageId ?? i
38
+ }
39
+ );
40
+ let o;
41
+ if (e?.headerTip !== null) {
42
+ const d = e?.headerTipMessageId ?? r;
43
+ o = e?.headerTip ?? (d && /* @__PURE__ */ t(c, { messageId: d }));
44
+ }
45
+ return { header: a, headerTip: o, mobileTitle: e?.mobileTitle ?? a };
46
+ }
47
+ function L({ ctx: e }) {
48
+ const { strategy: i, targetToken: r, targetTokenAddress: a, tokensList: o, row: d } = e, s = !!d.disabledStyle, l = !!d.zeroSlippageTokens?.[a], n = !!i.strategyMarketType?.includes("rwa"), g = d.delayedConfigs?.[0]?.withdrawalPhantomToken, u = e.isMobile || e.isDesktop ? 38 : 26;
49
+ return /* @__PURE__ */ t("div", { className: "flex flex-col-auto", children: /* @__PURE__ */ m(S, { children: [
50
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-1.5 pr-2 leading-none", children: [
51
+ /* @__PURE__ */ t(h, { disabled: s, children: /* @__PURE__ */ t(
52
+ b,
53
+ {
54
+ network: i.network,
55
+ isTest: !1,
56
+ size: 14,
57
+ showTooltip: !0
58
+ }
59
+ ) }),
60
+ /* @__PURE__ */ t(h, { disabled: s, children: /* @__PURE__ */ t(y, { token: r, size: 24 }) })
61
+ ] }),
62
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-x-3", children: [
63
+ /* @__PURE__ */ t(T, { maxLength: u, children: i.name }),
64
+ n && /* @__PURE__ */ t(R, { disabledStyle: s }),
65
+ l && /* @__PURE__ */ t(
66
+ v,
67
+ {
68
+ token: g ? o?.[g] : void 0,
69
+ disabledStyle: s
70
+ }
71
+ )
72
+ ] }),
73
+ s && /* @__PURE__ */ t("div", {}),
74
+ s && /* @__PURE__ */ t(
75
+ k,
76
+ {
77
+ as: "span",
78
+ variant: "caption",
79
+ style: { lineHeight: "100%" },
80
+ children: /* @__PURE__ */ t(c, { messageId: "components.strategiesTable.line.name.disabled" })
81
+ }
82
+ )
83
+ ] }) });
84
+ }
85
+ function f({
86
+ ctx: e,
87
+ mobile: i = !1
88
+ }) {
89
+ const { rewardsCellInfo: r, row: a, targetTokenAddress: o, tokensList: d } = e, s = !!a.disabledStyle, l = /* @__PURE__ */ t(
90
+ x,
91
+ {
92
+ maxAPY: r.maxAPY,
93
+ bonusAPY: r.bonusAPY,
94
+ rewards: r.rewards,
95
+ rewardRates: r.rewardRates,
96
+ debtRewards: r.debtRewards,
97
+ debtRewardRates: r.debtRewardRates,
98
+ hasAPY: r.hasAPY ?? !1,
99
+ hasRewards: r.hasRewards ?? !1,
100
+ hasDebtRewards: r.hasDebtRewards ?? !1,
101
+ apyLoading: r.apyLoading,
102
+ disabledStyle: s
103
+ }
104
+ ), n = i ? /* @__PURE__ */ t("div", { className: "pt-1", children: l }) : l;
105
+ return s ? n : /* @__PURE__ */ t(
106
+ C,
107
+ {
108
+ cellInfo: r,
109
+ targetToken: o,
110
+ apyList: a.apyList,
111
+ tokensList: d,
112
+ strategyCreditManagers: a.strategyCreditManagers,
113
+ children: /* @__PURE__ */ t("div", { children: n })
114
+ }
115
+ );
116
+ }
117
+ function de(e) {
118
+ const { header: i, mobileTitle: r } = p(
119
+ e,
120
+ "components.strategiesTable.head.name"
121
+ );
122
+ return {
123
+ id: "strategy",
124
+ header: i,
125
+ width: e?.width ?? "1fr",
126
+ mediumWidth: e?.mediumWidth,
127
+ align: "left",
128
+ className: "pl-4",
129
+ sort: e?.sortField !== void 0 ? { field: e.sortField, defaultDirection: "desc" } : { field: "strategyName", defaultDirection: "desc" },
130
+ cell: (a) => /* @__PURE__ */ t(L, { ctx: a }),
131
+ mobileTitle: r
132
+ };
133
+ }
134
+ function oe(e) {
135
+ const { header: i, mobileTitle: r } = p(
136
+ e,
137
+ "components.strategiesTable.head.rewards"
138
+ );
139
+ return {
140
+ id: "rewards",
141
+ header: i,
142
+ width: e?.width ?? "310px",
143
+ mediumWidth: e?.mediumWidth ?? "270px",
144
+ align: "left",
145
+ sort: e?.sortField !== void 0 ? { field: e.sortField, defaultDirection: "desc" } : { field: "apy", defaultDirection: "desc" },
146
+ cell: (a) => /* @__PURE__ */ t(f, { ctx: a }),
147
+ mobileCell: (a) => /* @__PURE__ */ t(f, { ctx: a, mobile: !0 }),
148
+ mobileTitle: r
149
+ };
150
+ }
151
+ function le(e) {
152
+ const { header: i, mobileTitle: r } = p(
153
+ e,
154
+ "components.strategiesTable.head.leverage"
155
+ );
156
+ return {
157
+ id: "leverage",
158
+ header: i,
159
+ width: e?.width ?? "150px",
160
+ mediumWidth: e?.mediumWidth ?? "76px",
161
+ align: "right",
162
+ className: "pr-4",
163
+ headerClassName: "pr-4",
164
+ cell: (a) => `×${w(Number(a.row.maxLeverage), 0)}`,
165
+ mobileTitle: r
166
+ };
167
+ }
168
+ function ne(e) {
169
+ return e;
170
+ }
171
+ export {
172
+ ne as customStrategyColumn,
173
+ de as strategyColumn,
174
+ le as strategyLeverageColumn,
175
+ oe as strategyRewardsColumn
176
+ };
@@ -0,0 +1,39 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { Typography as i } from "../../../../typography/typography.js";
3
+ import { Feature as p } from "../feature/feature.js";
4
+ import "../feature/feature.styles.js";
5
+ function s({
6
+ theme: r = "light",
7
+ children: t
8
+ }) {
9
+ return /* @__PURE__ */ a(
10
+ p,
11
+ {
12
+ theme: r,
13
+ padding: "4px 10px",
14
+ title: /* @__PURE__ */ a(i, { as: "span", variant: "bodySmall", children: t })
15
+ }
16
+ );
17
+ }
18
+ function u({
19
+ theme: r = "dark",
20
+ title: t = "APR",
21
+ value: n,
22
+ tip: o
23
+ }) {
24
+ return /* @__PURE__ */ a(
25
+ p,
26
+ {
27
+ theme: r,
28
+ size: "md",
29
+ padding: "4px 10px",
30
+ title: /* @__PURE__ */ a(i, { as: "span", variant: "bodySmall", children: t }),
31
+ value: /* @__PURE__ */ a(i, { as: "span", variant: "bodySmall", children: n }),
32
+ tip: o
33
+ }
34
+ );
35
+ }
36
+ export {
37
+ s as APYFeature,
38
+ u as APYFeatureTooltip
39
+ };
@@ -0,0 +1,5 @@
1
+ import { APYFeature as r, APYFeatureTooltip as t } from "./apy-feature.js";
2
+ export {
3
+ r as APYFeature,
4
+ t as APYFeatureTooltip
5
+ };
@@ -0,0 +1,168 @@
1
+ import { jsx as e, Fragment as N, jsxs as x } from "react/jsx-runtime";
2
+ import { formatPercentage as c } from "@gearbox-protocol/sdk";
3
+ import { RWA_GRADIENT_BORDER_CLASS as S } from "../../../../rwa-styles/index.js";
4
+ import { Skeleton as P } from "../../../../skeleton/skeleton.js";
5
+ import "react";
6
+ import { cn as R } from "../../../../../utils/cn.js";
7
+ import "sonner";
8
+ import "@gearbox-protocol/sdk/common-utils";
9
+ import "luxon";
10
+ import "../../../../../utils/z-index.js";
11
+ import { SimpleTooltip as F } from "../../../../tooltip/simple-tooltip.js";
12
+ import "../../../../tooltip/tooltip.js";
13
+ import { FormattedMessageTyped as m } from "../../../../typed-intl/index.js";
14
+ import { APYFeature as b } from "../apy-feature/apy-feature.js";
15
+ import { PointsFeature as T } from "../points-feature/points-feature.js";
16
+ import { Plus as v, DisabledWrap as L } from "./cells.styles.js";
17
+ function K({
18
+ token: n,
19
+ disabledStyle: r
20
+ }) {
21
+ const s = () => /* @__PURE__ */ e("span", { className: R(r && "opacity-60 pointer-events-none"), children: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.0slippage" }) }) });
22
+ return /* @__PURE__ */ e(N, { children: r ? s() : /* @__PURE__ */ e(
23
+ F,
24
+ {
25
+ placement: "top",
26
+ triangle: !1,
27
+ title: s(),
28
+ children: /* @__PURE__ */ e(
29
+ m,
30
+ {
31
+ messageId: "components.strategiesTable.line.0slippage.tip",
32
+ values: {
33
+ symbol: n?.title || "this token"
34
+ }
35
+ }
36
+ )
37
+ }
38
+ ) });
39
+ }
40
+ function Q({ disabledStyle: n }) {
41
+ const r = /* @__PURE__ */ e(
42
+ "span",
43
+ {
44
+ className: R(
45
+ "rounded-xl px-[10px] py-1 text-xs leading-none",
46
+ S,
47
+ n && "opacity-60 pointer-events-none"
48
+ ),
49
+ children: /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.rwa" })
50
+ }
51
+ );
52
+ return /* @__PURE__ */ e(N, { children: n ? r : /* @__PURE__ */ e(F, { placement: "top", triangle: !1, title: r, children: /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.rwa.tip" }) }) });
53
+ }
54
+ function U({
55
+ maxAPY: n,
56
+ bonusAPY: r,
57
+ rewards: s,
58
+ rewardRates: d,
59
+ debtRewards: u,
60
+ debtRewardRates: f,
61
+ hasAPY: a,
62
+ hasRewards: l,
63
+ hasDebtRewards: g,
64
+ disabledStyle: p,
65
+ apyLoading: h,
66
+ apyFormat: t = "feature"
67
+ }) {
68
+ const i = (o) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
69
+ c(o),
70
+ "% APR"
71
+ ] }) : `${c(o)}%`, I = (o) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
72
+ "exp. ",
73
+ c(o),
74
+ "% APR"
75
+ ] }) : `exp. ${c(o)}%`;
76
+ return /* @__PURE__ */ x("div", { className: "flex-row-row items-center gap-2", children: [
77
+ (() => {
78
+ const o = [
79
+ a ? /* @__PURE__ */ e(
80
+ P,
81
+ {
82
+ className: "inline-block align-text-bottom",
83
+ width: 50,
84
+ loading: h,
85
+ children: i(n)
86
+ },
87
+ "apy"
88
+ ) : void 0,
89
+ l || g ? /* @__PURE__ */ e(
90
+ j,
91
+ {
92
+ rewards: s,
93
+ rewardRates: d,
94
+ debtRewards: u,
95
+ debtRewardRates: f,
96
+ hasRewards: l,
97
+ hasDebtRewards: g,
98
+ disabledStyle: p
99
+ },
100
+ "points"
101
+ ) : void 0
102
+ ].filter(Boolean);
103
+ return o.flatMap((w, A) => A === o.length - 1 ? [w] : [w, /* @__PURE__ */ e(v, { children: "+" }, `plus-${A}`)]);
104
+ })(),
105
+ r && /* @__PURE__ */ e(v, { children: ":" }),
106
+ r && /* @__PURE__ */ e(
107
+ P,
108
+ {
109
+ className: "inline-block align-text-bottom",
110
+ loading: h,
111
+ width: 50,
112
+ children: I(r.value)
113
+ }
114
+ )
115
+ ] });
116
+ }
117
+ function j({
118
+ rewards: n,
119
+ rewardRates: r,
120
+ debtRewards: s,
121
+ debtRewardRates: d,
122
+ hasRewards: u,
123
+ hasDebtRewards: f,
124
+ disabledStyle: a,
125
+ theme: l
126
+ }) {
127
+ return (() => {
128
+ const p = [
129
+ u ? n.map((t, i) => /* @__PURE__ */ e(
130
+ "span",
131
+ {
132
+ children: /* @__PURE__ */ e(L, { disabled: a, children: /* @__PURE__ */ e(
133
+ T,
134
+ {
135
+ reward: t,
136
+ points: r?.[i] || 0n,
137
+ theme: l
138
+ }
139
+ ) })
140
+ },
141
+ ["base", t.multiplier, t.name, t.type, t.units].join("-")
142
+ )) : void 0,
143
+ f ? s.map((t, i) => /* @__PURE__ */ e(
144
+ "span",
145
+ {
146
+ children: /* @__PURE__ */ e(L, { disabled: a, children: /* @__PURE__ */ e(
147
+ T,
148
+ {
149
+ reward: t,
150
+ points: d?.[i] || 0n,
151
+ theme: l
152
+ }
153
+ ) })
154
+ },
155
+ ["debt", t.multiplier, t.name, t.type, t.units, t.cm].join(
156
+ "-"
157
+ )
158
+ )) : void 0
159
+ ].filter(Boolean);
160
+ return p.flatMap((t, i) => i === p.length - 1 ? [t] : [t, /* @__PURE__ */ e(v, { children: "+" }, `plus-points-${i}`)]);
161
+ })();
162
+ }
163
+ export {
164
+ Q as RWAFeature,
165
+ U as StrategiesRewardsCell,
166
+ j as StrategyPoints,
167
+ K as ZeroSlippageFeature
168
+ };
@@ -0,0 +1,46 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { cn as o } from "../../../../../utils/cn.js";
3
+ const r = ({
4
+ disabled: a,
5
+ className: e,
6
+ ...s
7
+ }) => /* @__PURE__ */ t(
8
+ "div",
9
+ {
10
+ className: o(
11
+ "leading-none",
12
+ a && "opacity-40 pointer-events-none",
13
+ e
14
+ ),
15
+ ...s
16
+ }
17
+ ), c = ({
18
+ className: a,
19
+ ...e
20
+ }) => /* @__PURE__ */ t(
21
+ "span",
22
+ {
23
+ className: o(
24
+ "text-gray-90 text-base leading-[100%] font-normal",
25
+ a
26
+ ),
27
+ ...e
28
+ }
29
+ ), l = ({
30
+ className: a,
31
+ ...e
32
+ }) => /* @__PURE__ */ t(
33
+ "div",
34
+ {
35
+ className: o(
36
+ "grid grid-cols-[auto_auto] items-center gap-x-0 gap-y-0.5",
37
+ a
38
+ ),
39
+ ...e
40
+ }
41
+ );
42
+ export {
43
+ r as DisabledWrap,
44
+ c as Plus,
45
+ l as TitleGrid
46
+ };
@@ -0,0 +1,11 @@
1
+ import { RWAFeature as t, StrategiesRewardsCell as a, StrategyPoints as i, ZeroSlippageFeature as l } from "./cells.js";
2
+ import { DisabledWrap as p, Plus as s, TitleGrid as d } from "./cells.styles.js";
3
+ export {
4
+ p as DisabledWrap,
5
+ s as Plus,
6
+ t as RWAFeature,
7
+ a as StrategiesRewardsCell,
8
+ i as StrategyPoints,
9
+ d as TitleGrid,
10
+ l as ZeroSlippageFeature
11
+ };
@@ -0,0 +1,39 @@
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { HelpTip as l } from "../../../../help-tip/help-tip.js";
3
+ import { FeatureRoot as t } from "./feature.styles.js";
4
+ function g({
5
+ title: n,
6
+ value: r,
7
+ tip: i,
8
+ theme: a = "dark",
9
+ size: c = "sm",
10
+ padding: d
11
+ }) {
12
+ return /* @__PURE__ */ e(t, { theme: a, size: c, padding: d, children: [
13
+ /* @__PURE__ */ o("div", { children: n }),
14
+ r && /* @__PURE__ */ o("div", { className: "font-semibold", children: i ? /* @__PURE__ */ o(m, { value: r, theme: a, tip: i }) : r })
15
+ ] });
16
+ }
17
+ function m({
18
+ value: n,
19
+ tip: r,
20
+ theme: i = "dark"
21
+ }) {
22
+ return /* @__PURE__ */ e("div", { className: "inline-flex gap-2", children: [
23
+ n,
24
+ /* @__PURE__ */ o(
25
+ l,
26
+ {
27
+ placement: "top",
28
+ iconColor: i === "dark" ? "gray-40" : "gray-80",
29
+ iconHoverColor: i === "dark" ? "gray-70" : "gray-100",
30
+ iconVariant: "info",
31
+ iconSize: 16,
32
+ children: r
33
+ }
34
+ )
35
+ ] });
36
+ }
37
+ export {
38
+ g as Feature
39
+ };
@@ -0,0 +1,43 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { cva as p } from "class-variance-authority";
3
+ import * as n from "react";
4
+ import "@gearbox-protocol/sdk";
5
+ import { cn as d } from "../../../../../utils/cn.js";
6
+ import "sonner";
7
+ import "@gearbox-protocol/sdk/common-utils";
8
+ import "luxon";
9
+ import "../../../../../utils/z-index.js";
10
+ const f = p(
11
+ "relative inline-flex items-center gap-2 text-foreground",
12
+ {
13
+ variants: {
14
+ theme: {
15
+ empty: "border border-gray-40 bg-transparent",
16
+ light: "bg-gray-40",
17
+ dark: "bg-gray-10"
18
+ },
19
+ size: {
20
+ sm: "h-6 rounded-xl",
21
+ md: "h-[30px] rounded-2xl"
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ theme: "dark",
26
+ size: "sm"
27
+ }
28
+ }
29
+ ), l = n.forwardRef(
30
+ ({ theme: e, size: o, padding: r, className: a, style: t, ...m }, i) => /* @__PURE__ */ s(
31
+ "div",
32
+ {
33
+ ref: i,
34
+ className: d(f({ theme: e, size: o }), a),
35
+ style: r ? { ...t, padding: r } : t,
36
+ ...m
37
+ }
38
+ )
39
+ );
40
+ l.displayName = "FeatureRoot";
41
+ export {
42
+ l as FeatureRoot
43
+ };
@@ -0,0 +1,6 @@
1
+ import { Feature as r } from "./feature.js";
2
+ import { FeatureRoot as a } from "./feature.styles.js";
3
+ export {
4
+ r as Feature,
5
+ a as FeatureRoot
6
+ };