@gearbox-protocol/ui-kit 4.0.0-next.1 → 4.0.0-next.3

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 (368) hide show
  1. package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
  2. package/dist/cjs/components/base/amount-input/constants.cjs +1 -1
  3. package/dist/cjs/components/base/amount-input/index.cjs +1 -1
  4. package/dist/cjs/components/base/amount-input/token-button.cjs +1 -1
  5. package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -0
  6. package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -0
  7. package/dist/cjs/components/base/borrow-rate-block/constants.cjs +1 -0
  8. package/dist/cjs/components/base/borrow-rate-block/index.cjs +1 -0
  9. package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -0
  10. package/dist/cjs/components/base/chart-with-side-card/constants.cjs +1 -0
  11. package/dist/cjs/components/base/chart-with-side-card/index.cjs +1 -0
  12. package/dist/cjs/components/base/details-view/details-view.cjs +1 -1
  13. package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
  14. package/dist/cjs/components/base/index.cjs +1 -1
  15. package/dist/cjs/components/base/info-list/constants.cjs +1 -1
  16. package/dist/cjs/components/base/info-list/index.cjs +1 -1
  17. package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
  18. package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
  19. package/dist/cjs/components/base/liquidation-params-table/constants.cjs +1 -0
  20. package/dist/cjs/components/base/liquidation-params-table/index.cjs +1 -0
  21. package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -0
  22. package/dist/cjs/components/base/manage-pane/index.cjs +1 -1
  23. package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
  24. package/dist/cjs/components/base/more-accordion/constants.cjs +1 -0
  25. package/dist/cjs/components/base/more-accordion/index.cjs +1 -0
  26. package/dist/cjs/components/base/more-accordion/more-accordion.cjs +1 -0
  27. package/dist/cjs/components/base/nested-info-stack/constants.cjs +1 -0
  28. package/dist/cjs/components/base/nested-info-stack/index.cjs +1 -0
  29. package/dist/cjs/components/base/nested-info-stack/nested-info-stack.cjs +1 -0
  30. package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
  31. package/dist/cjs/components/base/pool-apy-breakdown-card/constants.cjs +1 -0
  32. package/dist/cjs/components/base/pool-apy-breakdown-card/index.cjs +1 -0
  33. package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -0
  34. package/dist/cjs/components/base/side-card/constants.cjs +1 -0
  35. package/dist/cjs/components/base/side-card/index.cjs +1 -0
  36. package/dist/cjs/components/base/side-card/side-card.cjs +1 -0
  37. package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -0
  38. package/dist/cjs/components/base/strategy-apy-breakdown-card/index.cjs +1 -0
  39. package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -0
  40. package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
  41. package/dist/cjs/components/base/title-meta/constants.cjs +1 -0
  42. package/dist/cjs/components/base/title-meta/index.cjs +1 -0
  43. package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -0
  44. package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
  45. package/dist/cjs/components/base/token-pair-symbol/constants.cjs +1 -0
  46. package/dist/cjs/components/base/token-pair-symbol/index.cjs +1 -0
  47. package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -0
  48. package/dist/cjs/components/base/token-pair-title/constants.cjs +1 -0
  49. package/dist/cjs/components/base/token-pair-title/index.cjs +1 -0
  50. package/dist/cjs/components/base/token-pair-title/token-pair-title.cjs +1 -0
  51. package/dist/cjs/components/base/values/index.cjs +1 -1
  52. package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
  53. package/dist/cjs/components/base/values/scalars.cjs +1 -1
  54. package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -1
  55. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  56. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  57. package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
  58. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
  59. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
  60. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
  61. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +1 -1
  62. package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
  63. package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -1
  64. package/dist/cjs/components/graph/graph-view.cjs +1 -1
  65. package/dist/cjs/components/graph/graph.cjs +1 -1
  66. package/dist/cjs/components/icons/index.cjs +1 -1
  67. package/dist/cjs/components/index.cjs +1 -1
  68. package/dist/cjs/components/layout/index.cjs +1 -1
  69. package/dist/cjs/components/modal/modal.cjs +1 -1
  70. package/dist/cjs/components/table/index.cjs +1 -1
  71. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  72. package/dist/cjs/hooks/index.cjs +1 -1
  73. package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
  74. package/dist/cjs/index.cjs +1 -1
  75. package/dist/cjs/locale/en.json.cjs +1 -1
  76. package/dist/esm/components/base/amount-input/amount-input.js +179 -147
  77. package/dist/esm/components/base/amount-input/constants.js +2 -0
  78. package/dist/esm/components/base/amount-input/index.js +5 -3
  79. package/dist/esm/components/base/amount-input/token-button.js +65 -35
  80. package/dist/esm/components/base/amount-input/token-select-panel.js +85 -0
  81. package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +88 -0
  82. package/dist/esm/components/base/borrow-rate-block/constants.js +8 -0
  83. package/dist/esm/components/base/borrow-rate-block/index.js +6 -0
  84. package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +36 -0
  85. package/dist/esm/components/base/chart-with-side-card/constants.js +8 -0
  86. package/dist/esm/components/base/chart-with-side-card/index.js +6 -0
  87. package/dist/esm/components/base/details-view/details-view.js +37 -32
  88. package/dist/esm/components/base/history-chart/history-chart.js +25 -21
  89. package/dist/esm/components/base/index.js +165 -116
  90. package/dist/esm/components/base/info-list/constants.js +1 -0
  91. package/dist/esm/components/base/info-list/index.js +5 -4
  92. package/dist/esm/components/base/info-list/info-list.js +44 -23
  93. package/dist/esm/components/base/leverage-input/leverage-input.js +53 -50
  94. package/dist/esm/components/base/liquidation-params-table/constants.js +6 -0
  95. package/dist/esm/components/base/liquidation-params-table/index.js +6 -0
  96. package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +62 -0
  97. package/dist/esm/components/base/manage-pane/index.js +7 -6
  98. package/dist/esm/components/base/manage-pane/manage-pane.js +88 -67
  99. package/dist/esm/components/base/more-accordion/constants.js +7 -0
  100. package/dist/esm/components/base/more-accordion/index.js +6 -0
  101. package/dist/esm/components/base/more-accordion/more-accordion.js +51 -0
  102. package/dist/esm/components/base/nested-info-stack/constants.js +6 -0
  103. package/dist/esm/components/base/nested-info-stack/index.js +6 -0
  104. package/dist/esm/components/base/nested-info-stack/nested-info-stack.js +20 -0
  105. package/dist/esm/components/base/page-title/page-title.js +28 -22
  106. package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +7 -0
  107. package/dist/esm/components/base/pool-apy-breakdown-card/index.js +6 -0
  108. package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +65 -0
  109. package/dist/esm/components/base/side-card/constants.js +8 -0
  110. package/dist/esm/components/base/side-card/index.js +6 -0
  111. package/dist/esm/components/base/side-card/side-card.js +57 -0
  112. package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +7 -0
  113. package/dist/esm/components/base/strategy-apy-breakdown-card/index.js +6 -0
  114. package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +51 -0
  115. package/dist/esm/components/base/tabber/tabber.js +83 -75
  116. package/dist/esm/components/base/title-meta/constants.js +8 -0
  117. package/dist/esm/components/base/title-meta/index.js +6 -0
  118. package/dist/esm/components/base/title-meta/title-meta.js +68 -0
  119. package/dist/esm/components/base/token-amount/token-amount.js +12 -12
  120. package/dist/esm/components/base/token-pair-symbol/constants.js +6 -0
  121. package/dist/esm/components/base/token-pair-symbol/index.js +6 -0
  122. package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +33 -0
  123. package/dist/esm/components/base/token-pair-title/constants.js +6 -0
  124. package/dist/esm/components/base/token-pair-title/index.js +6 -0
  125. package/dist/esm/components/base/token-pair-title/token-pair-title.js +20 -0
  126. package/dist/esm/components/base/values/index.js +8 -7
  127. package/dist/esm/components/base/values/pnl-value.js +8 -8
  128. package/dist/esm/components/base/values/scalars.js +27 -26
  129. package/dist/esm/components/block-sync-pill/block-sync-pill.js +19 -29
  130. package/dist/esm/components/checkbox/checkbox-labeled.js +16 -26
  131. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +16 -26
  132. package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
  133. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +2 -3
  134. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +14 -13
  135. package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +6 -7
  136. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +25 -35
  137. package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +1 -83
  138. package/dist/esm/components/explorer-links-dropdown/index.js +1 -4
  139. package/dist/esm/components/graph/graph-view.js +74 -74
  140. package/dist/esm/components/graph/graph.js +309 -308
  141. package/dist/esm/components/icons/index.js +29 -28
  142. package/dist/esm/components/index.js +699 -709
  143. package/dist/esm/components/layout/index.js +14 -33
  144. package/dist/esm/components/modal/modal.js +1 -1
  145. package/dist/esm/components/table/index.js +38 -52
  146. package/dist/esm/components/with-copy/with-copy.js +16 -26
  147. package/dist/esm/hooks/index.js +29 -54
  148. package/dist/esm/hooks/use-debounce-call.js +2 -3
  149. package/dist/esm/index.js +864 -900
  150. package/dist/esm/locale/en.json.js +24 -1
  151. package/dist/globals.css +1 -1
  152. package/dist/types/components/base/amount-input/amount-input.d.ts +13 -2
  153. package/dist/types/components/base/amount-input/constants.d.ts +2 -0
  154. package/dist/types/components/base/amount-input/index.d.ts +1 -0
  155. package/dist/types/components/base/amount-input/token-button.d.ts +14 -2
  156. package/dist/types/components/base/amount-input/token-select-panel.d.ts +17 -0
  157. package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +21 -0
  158. package/dist/types/components/base/borrow-rate-block/constants.d.ts +5 -0
  159. package/dist/types/components/base/borrow-rate-block/index.d.ts +2 -0
  160. package/dist/types/components/base/chart-with-side-card/chart-with-side-card.d.ts +13 -0
  161. package/dist/types/components/base/chart-with-side-card/constants.d.ts +5 -0
  162. package/dist/types/components/base/chart-with-side-card/index.d.ts +2 -0
  163. package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +2 -1
  164. package/dist/types/components/base/history-chart/history-chart.d.ts +8 -1
  165. package/dist/types/components/base/index.d.ts +11 -0
  166. package/dist/types/components/base/info-list/constants.d.ts +1 -0
  167. package/dist/types/components/base/info-list/info-list.d.ts +8 -1
  168. package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
  169. package/dist/types/components/base/liquidation-params-table/constants.d.ts +3 -0
  170. package/dist/types/components/base/liquidation-params-table/index.d.ts +2 -0
  171. package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +12 -0
  172. package/dist/types/components/base/manage-pane/manage-pane.d.ts +7 -0
  173. package/dist/types/components/base/more-accordion/constants.d.ts +4 -0
  174. package/dist/types/components/base/more-accordion/index.d.ts +2 -0
  175. package/dist/types/components/base/more-accordion/more-accordion.d.ts +11 -0
  176. package/dist/types/components/base/nested-info-stack/constants.d.ts +3 -0
  177. package/dist/types/components/base/nested-info-stack/index.d.ts +2 -0
  178. package/dist/types/components/base/nested-info-stack/nested-info-stack.d.ts +10 -0
  179. package/dist/types/components/base/page-title/page-title.d.ts +6 -2
  180. package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +4 -0
  181. package/dist/types/components/base/pool-apy-breakdown-card/index.d.ts +2 -0
  182. package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +14 -0
  183. package/dist/types/components/base/side-card/constants.d.ts +5 -0
  184. package/dist/types/components/base/side-card/index.d.ts +2 -0
  185. package/dist/types/components/base/side-card/side-card.d.ts +16 -0
  186. package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +4 -0
  187. package/dist/types/components/base/strategy-apy-breakdown-card/index.d.ts +2 -0
  188. package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +9 -0
  189. package/dist/types/components/base/tabber/tabber.d.ts +11 -2
  190. package/dist/types/components/base/title-meta/constants.d.ts +5 -0
  191. package/dist/types/components/base/title-meta/index.d.ts +2 -0
  192. package/dist/types/components/base/title-meta/title-meta.d.ts +15 -0
  193. package/dist/types/components/base/token-pair-symbol/constants.d.ts +3 -0
  194. package/dist/types/components/base/token-pair-symbol/index.d.ts +2 -0
  195. package/dist/types/components/base/token-pair-symbol/token-pair-symbol.d.ts +15 -0
  196. package/dist/types/components/base/token-pair-title/constants.d.ts +3 -0
  197. package/dist/types/components/base/token-pair-title/index.d.ts +2 -0
  198. package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +11 -0
  199. package/dist/types/components/base/values/index.d.ts +1 -1
  200. package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
  201. package/dist/types/components/base/values/scalars.d.ts +9 -0
  202. package/dist/types/components/base-link/base-link.d.ts +1 -1
  203. package/dist/types/components/buttons/button/button.d.ts +2 -2
  204. package/dist/types/components/checkbox/checkbox.d.ts +2 -2
  205. package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +1 -1
  206. package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +4 -1
  207. package/dist/types/components/dialog/dialog-container.d.ts +3 -3
  208. package/dist/types/components/edit-input/edit-input.d.ts +1 -1
  209. package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +6 -75
  210. package/dist/types/components/filter/variants.d.ts +1 -1
  211. package/dist/types/components/graph/graph-view.d.ts +1 -1
  212. package/dist/types/components/health-factor/health-factor.d.ts +2 -1
  213. package/dist/types/components/icons/index.d.ts +1 -1
  214. package/dist/types/components/index.d.ts +0 -6
  215. package/dist/types/components/input/input.d.ts +1 -1
  216. package/dist/types/components/layout/index.d.ts +0 -7
  217. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  218. package/dist/types/components/status-dot/status-dot.d.ts +1 -1
  219. package/dist/types/components/table/index.d.ts +0 -5
  220. package/dist/types/components/text-button/text-button.d.ts +1 -1
  221. package/dist/types/components/tip-card/tip-card.d.ts +2 -2
  222. package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
  223. package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +2 -2
  224. package/dist/types/components/with-title/with-title.d.ts +1 -1
  225. package/dist/types/hooks/index.d.ts +0 -1
  226. package/dist/types/index.d.ts +0 -6
  227. package/dist/types/locale/en.json.d.ts +30 -1
  228. package/dist/types/types/index.d.ts +0 -2
  229. package/package.json +3 -15
  230. package/dist/cjs/components/auth/connect-required.cjs +0 -1
  231. package/dist/cjs/components/auth/index.cjs +0 -1
  232. package/dist/cjs/components/auth/signin-required.cjs +0 -1
  233. package/dist/cjs/components/auth/wallet-ui-context.cjs +0 -1
  234. package/dist/cjs/components/block-sync/block-sync.cjs +0 -1
  235. package/dist/cjs/components/block-sync/index.cjs +0 -1
  236. package/dist/cjs/components/image/image.cjs +0 -1
  237. package/dist/cjs/components/image/index.cjs +0 -1
  238. package/dist/cjs/components/layout/app-logo/app-logo.cjs +0 -1
  239. package/dist/cjs/components/layout/app-logo/index.cjs +0 -1
  240. package/dist/cjs/components/layout/block/block.cjs +0 -1
  241. package/dist/cjs/components/layout/block/index.cjs +0 -1
  242. package/dist/cjs/components/layout/footer/footer.cjs +0 -1
  243. package/dist/cjs/components/layout/footer/index.cjs +0 -1
  244. package/dist/cjs/components/layout/header/header.cjs +0 -1
  245. package/dist/cjs/components/layout/header/index.cjs +0 -1
  246. package/dist/cjs/components/layout/legal-disclaimer/index.cjs +0 -1
  247. package/dist/cjs/components/layout/legal-disclaimer/legal-disclaimer.cjs +0 -1
  248. package/dist/cjs/components/layout/page-layout/index.cjs +0 -1
  249. package/dist/cjs/components/layout/page-layout/page-layout.cjs +0 -1
  250. package/dist/cjs/components/layout/social-icons/index.cjs +0 -1
  251. package/dist/cjs/components/layout/social-icons/social-icons.cjs +0 -1
  252. package/dist/cjs/components/navbar/index.cjs +0 -1
  253. package/dist/cjs/components/navbar/navbar-indicator-context.cjs +0 -1
  254. package/dist/cjs/components/navbar/navbar-with-overflow.cjs +0 -1
  255. package/dist/cjs/components/navbar/navbar.cjs +0 -1
  256. package/dist/cjs/components/navitem/index.cjs +0 -1
  257. package/dist/cjs/components/navitem/navitem.cjs +0 -1
  258. package/dist/cjs/components/page-title/index.cjs +0 -1
  259. package/dist/cjs/components/page-title/page-title.cjs +0 -1
  260. package/dist/cjs/components/pool-apy-tooltip/apy-tooltip.cjs +0 -1
  261. package/dist/cjs/components/pool-apy-tooltip/index.cjs +0 -1
  262. package/dist/cjs/components/table/edit-button.cjs +0 -1
  263. package/dist/cjs/components/table/editable-grid-table.cjs +0 -1
  264. package/dist/cjs/components/table/editable-table.cjs +0 -1
  265. package/dist/cjs/components/table/grid-table-loader.cjs +0 -1
  266. package/dist/cjs/components/table/updated-value.cjs +0 -1
  267. package/dist/cjs/hooks/use-liquidation/index.cjs +0 -1
  268. package/dist/cjs/hooks/use-liquidation/types.cjs +0 -1
  269. package/dist/cjs/hooks/use-liquidation/utils.cjs +0 -1
  270. package/dist/cjs/test-ids/base.cjs +0 -1
  271. package/dist/cjs/test-ids/index.cjs +0 -1
  272. package/dist/cjs/types/component-props.cjs +0 -1
  273. package/dist/cjs/types/help.cjs +0 -1
  274. package/dist/cjs/utils/reactochart-compat.cjs +0 -1
  275. package/dist/esm/components/auth/connect-required.js +0 -37
  276. package/dist/esm/components/auth/index.js +0 -9
  277. package/dist/esm/components/auth/signin-required.js +0 -55
  278. package/dist/esm/components/auth/wallet-ui-context.js +0 -13
  279. package/dist/esm/components/block-sync/block-sync.js +0 -208
  280. package/dist/esm/components/block-sync/index.js +0 -4
  281. package/dist/esm/components/image/image.js +0 -32
  282. package/dist/esm/components/image/index.js +0 -4
  283. package/dist/esm/components/layout/app-logo/app-logo.js +0 -99
  284. package/dist/esm/components/layout/app-logo/index.js +0 -5
  285. package/dist/esm/components/layout/block/block.js +0 -50
  286. package/dist/esm/components/layout/block/index.js +0 -4
  287. package/dist/esm/components/layout/footer/footer.js +0 -237
  288. package/dist/esm/components/layout/footer/index.js +0 -7
  289. package/dist/esm/components/layout/header/header.js +0 -93
  290. package/dist/esm/components/layout/header/index.js +0 -5
  291. package/dist/esm/components/layout/legal-disclaimer/index.js +0 -4
  292. package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +0 -46
  293. package/dist/esm/components/layout/page-layout/index.js +0 -4
  294. package/dist/esm/components/layout/page-layout/page-layout.js +0 -39
  295. package/dist/esm/components/layout/social-icons/index.js +0 -4
  296. package/dist/esm/components/layout/social-icons/social-icons.js +0 -61
  297. package/dist/esm/components/navbar/index.js +0 -11
  298. package/dist/esm/components/navbar/navbar-indicator-context.js +0 -46
  299. package/dist/esm/components/navbar/navbar-with-overflow.js +0 -181
  300. package/dist/esm/components/navbar/navbar.js +0 -99
  301. package/dist/esm/components/navitem/index.js +0 -5
  302. package/dist/esm/components/navitem/navitem.js +0 -124
  303. package/dist/esm/components/page-title/index.js +0 -6
  304. package/dist/esm/components/page-title/page-title.js +0 -120
  305. package/dist/esm/components/pool-apy-tooltip/apy-tooltip.js +0 -154
  306. package/dist/esm/components/pool-apy-tooltip/index.js +0 -4
  307. package/dist/esm/components/table/edit-button.js +0 -48
  308. package/dist/esm/components/table/editable-grid-table.js +0 -121
  309. package/dist/esm/components/table/editable-table.js +0 -108
  310. package/dist/esm/components/table/grid-table-loader.js +0 -22
  311. package/dist/esm/components/table/updated-value.js +0 -49
  312. package/dist/esm/hooks/use-liquidation/index.js +0 -138
  313. package/dist/esm/hooks/use-liquidation/types.js +0 -1
  314. package/dist/esm/hooks/use-liquidation/utils.js +0 -144
  315. package/dist/esm/test-ids/base.js +0 -44
  316. package/dist/esm/test-ids/index.js +0 -46
  317. package/dist/esm/types/component-props.js +0 -1
  318. package/dist/esm/types/help.js +0 -1
  319. package/dist/esm/utils/reactochart-compat.js +0 -18
  320. package/dist/types/components/auth/connect-required.d.ts +0 -32
  321. package/dist/types/components/auth/index.d.ts +0 -3
  322. package/dist/types/components/auth/signin-required.d.ts +0 -37
  323. package/dist/types/components/auth/wallet-ui-context.d.ts +0 -36
  324. package/dist/types/components/block-sync/block-sync.d.ts +0 -8
  325. package/dist/types/components/block-sync/index.d.ts +0 -1
  326. package/dist/types/components/image/image.d.ts +0 -35
  327. package/dist/types/components/image/index.d.ts +0 -1
  328. package/dist/types/components/layout/app-logo/app-logo.d.ts +0 -26
  329. package/dist/types/components/layout/app-logo/index.d.ts +0 -1
  330. package/dist/types/components/layout/block/block.d.ts +0 -23
  331. package/dist/types/components/layout/block/index.d.ts +0 -1
  332. package/dist/types/components/layout/footer/footer.d.ts +0 -53
  333. package/dist/types/components/layout/footer/index.d.ts +0 -1
  334. package/dist/types/components/layout/header/header.d.ts +0 -123
  335. package/dist/types/components/layout/header/index.d.ts +0 -1
  336. package/dist/types/components/layout/legal-disclaimer/index.d.ts +0 -1
  337. package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +0 -32
  338. package/dist/types/components/layout/page-layout/index.d.ts +0 -1
  339. package/dist/types/components/layout/page-layout/page-layout.d.ts +0 -41
  340. package/dist/types/components/layout/social-icons/index.d.ts +0 -1
  341. package/dist/types/components/layout/social-icons/social-icons.d.ts +0 -7
  342. package/dist/types/components/navbar/index.d.ts +0 -3
  343. package/dist/types/components/navbar/navbar-indicator-context.d.ts +0 -13
  344. package/dist/types/components/navbar/navbar-with-overflow.d.ts +0 -20
  345. package/dist/types/components/navbar/navbar.d.ts +0 -25
  346. package/dist/types/components/navitem/index.d.ts +0 -1
  347. package/dist/types/components/navitem/navitem.d.ts +0 -67
  348. package/dist/types/components/page-title/index.d.ts +0 -1
  349. package/dist/types/components/page-title/page-title.d.ts +0 -77
  350. package/dist/types/components/pool-apy-tooltip/apy-tooltip.d.ts +0 -20
  351. package/dist/types/components/pool-apy-tooltip/index.d.ts +0 -1
  352. package/dist/types/components/table/edit-button.d.ts +0 -51
  353. package/dist/types/components/table/editable-grid-table.d.ts +0 -120
  354. package/dist/types/components/table/editable-table.d.ts +0 -101
  355. package/dist/types/components/table/grid-table-loader.d.ts +0 -25
  356. package/dist/types/components/table/updated-value.d.ts +0 -34
  357. package/dist/types/hooks/use-liquidation/index.d.ts +0 -53
  358. package/dist/types/hooks/use-liquidation/types.d.ts +0 -16
  359. package/dist/types/hooks/use-liquidation/utils.d.ts +0 -71
  360. package/dist/types/test-ids/base.d.ts +0 -20
  361. package/dist/types/test-ids/index.d.ts +0 -9
  362. package/dist/types/types/component-props.d.ts +0 -16
  363. package/dist/types/types/help.d.ts +0 -4
  364. package/dist/types/types/reactochart.d.ts +0 -145
  365. package/dist/types/utils/reactochart-compat.d.ts +0 -12
  366. /package/dist/cjs/{test-ids/notification-center.cjs → components/composites/notification-center/constants.cjs} +0 -0
  367. /package/dist/esm/{test-ids/notification-center.js → components/composites/notification-center/constants.js} +0 -0
  368. /package/dist/types/{test-ids/notification-center.d.ts → components/composites/notification-center/constants.d.ts} +0 -0
@@ -10,6 +10,6 @@ export interface PoolAssetsTableRowProps {
10
10
  readonly last: boolean;
11
11
  }
12
12
  /**
13
- * Single data row: token + pool name, `percentageTemplate` rate, and formatted usage vs limit.
13
+ * Single data row: token + pool name, `bps`-formatted rate, and formatted usage vs limit.
14
14
  */
15
15
  export declare function PoolAssetsTableRow({ poolName, token, currentQuota, underlyingToken, last, }: PoolAssetsTableRowProps): React.ReactElement;
@@ -17,7 +17,10 @@ export interface PoolAssetsTableProps {
17
17
  readonly underlyingToken: TokenData;
18
18
  }
19
19
  /**
20
- * Grid table of pool asset quotas: asset / effective rate / limits usage.
20
+ * Legacy GridTable of pool asset quotas (`TokenData` field props).
21
+ * Canonical consumer table is client-v3 `PoolsAssetsTable` (`data: PoolOpportunityDetail`).
22
+ * Do not add a third table in this pass — next-stage `table/` absorbs this.
23
+ *
21
24
  * On viewports below the mobile breakpoint the header is hidden and each row
22
25
  * uses the compact `TableLineSm` layout.
23
26
  */
@@ -1,9 +1,9 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const dialogContainerVariants: (props?: ({
4
- padding?: boolean | "xl" | "md" | null | undefined;
5
- colorTheme?: "default" | "modal" | "box" | "transparent" | null | undefined;
6
- maxWidth?: "full" | "sm" | "lg" | "xl" | "2xl" | "md" | null | undefined;
4
+ padding?: boolean | "md" | "xl" | null | undefined;
5
+ colorTheme?: "default" | "modal" | "transparent" | "box" | null | undefined;
6
+ maxWidth?: "full" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
7
7
  sticky?: boolean | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  export interface DialogContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dialogContainerVariants> {
@@ -3,7 +3,7 @@ import { Input } from '../input';
3
3
  import { TextButton } from '../text-button';
4
4
  import * as React from "react";
5
5
  declare const editLabelHeightVariants: (props?: ({
6
- labelHeight?: "xs" | "sm" | "lg" | "md" | null | undefined;
6
+ labelHeight?: "sm" | "md" | "lg" | "xs" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  type Variants = VariantProps<typeof editLabelHeightVariants>;
9
9
  export interface EditInputProps extends Omit<React.ComponentProps<typeof Input>, "onChange" | "label" | "size"> {
@@ -1,82 +1,13 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  /**
3
- * Explorer link definition
3
+ * One explorer destination. The consumer builds the URL — kit does not map
4
+ * chain IDs to explorers.
4
5
  */
5
6
  export interface ExplorerLink {
6
- /**
7
- * Display name for the explorer
8
- */
7
+ /** Display name for the explorer. */
9
8
  name: string;
10
- /**
11
- * URL to the explorer
12
- */
9
+ /** Full URL to open. */
13
10
  url: string;
14
- /**
15
- * Optional icon
16
- */
11
+ /** Optional icon. */
17
12
  icon?: React.ReactNode;
18
13
  }
19
- export interface ExplorerLinksDropdownProps {
20
- /**
21
- * Custom explorer links (overrides chain-based detection)
22
- */
23
- explorerLinks?: ExplorerLink[];
24
- /**
25
- * Whether the dropdown is open (controlled)
26
- */
27
- opened?: boolean;
28
- /**
29
- * Alignment of the dropdown
30
- */
31
- opens?: "left" | "right";
32
- /**
33
- * Callback when dropdown closes
34
- */
35
- onClose?: () => void;
36
- /**
37
- * Trigger element
38
- */
39
- title?: React.ReactNode;
40
- /**
41
- * Address to link to
42
- */
43
- address?: `0x${string}`;
44
- /**
45
- * Transaction hash to link to
46
- */
47
- txHash?: string;
48
- /**
49
- * Chain ID for explorer detection
50
- * @default 1
51
- */
52
- chainId?: number;
53
- /**
54
- * Additional CSS class
55
- */
56
- className?: string;
57
- /**
58
- * Children (alternative trigger)
59
- */
60
- children?: React.ReactNode;
61
- }
62
- /**
63
- * ExplorerLinksDropdown — dropdown with links to various block explorers
64
- *
65
- * @example
66
- * ```tsx
67
- * // For an address
68
- * <ExplorerLinksDropdown
69
- * address="0x..."
70
- * chainId={1}
71
- * title={<Button variant="ghost">View on Explorer</Button>}
72
- * />
73
- *
74
- * // For a transaction
75
- * <ExplorerLinksDropdown
76
- * txHash="0x..."
77
- * chainId={42161}
78
- * title="View Transaction"
79
- * />
80
- * ```
81
- */
82
- export declare function ExplorerLinksDropdown({ explorerLinks, opened, opens, onClose, title, address, txHash, chainId, className, children, }: ExplorerLinksDropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare const filterBlockVariants: (props?: ({
2
- variant?: "default" | "ghost" | "outlined" | "elevated" | null | undefined;
2
+ variant?: "default" | "outlined" | "ghost" | "elevated" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import { GraphProps } from './graph';
3
3
  import * as React from "react";
4
4
  declare const graphViewVariants: (props?: ({
5
- variant?: "default" | "ghost" | "outlined" | "elevated" | null | undefined;
5
+ variant?: "default" | "outlined" | "ghost" | "elevated" | null | undefined;
6
6
  size?: "full" | "default" | "sm" | "lg" | "xl" | null | undefined;
7
7
  padding?: "none" | "default" | "sm" | "lg" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -25,7 +25,8 @@ export interface HealthFactorProps extends React.HTMLAttributes<HTMLSpanElement>
25
25
  zoneType?: "color" | "bars" | "dot";
26
26
  }
27
27
  /**
28
- * HealthFactor — displays health factor value with optional zone color or StatusBars.
28
+ * HealthFactor — primitive under {@link HealthFactorBlock} (zones / bars / dot).
29
+ * Screens and tables use {@link HealthFactorValue} (`data: Bps`).
29
30
  *
30
31
  * @usage
31
32
  * Use for account/collateral health: value in basis points, zero debt shows "N/A".
@@ -1,2 +1,2 @@
1
- export { faArrowDown, faArrowLeft, faArrowRight, faArrowsUpDown, faArrowUp, faBars, faBolt, faCaretDown, faCaretLeft, faCaretRight, faCaretUp, faCheck, faChevronLeft, faChevronRight, faCircle, faCircleCheck, faCircleExclamation, faCirclePlus, faCircleQuestion, faCloud, faCog, faCreditCard, faEllipsisVertical, faEnvelope, faKeyboard, faLifeRing, faMagnifyingGlass, faMessage, faPlus, faRightFromBracket, faTrash, faTriangleExclamation, faUser, faUserPlus, faUsers, faWallet, faXmark, } from '@fortawesome/free-solid-svg-icons';
1
+ export { faArrowDown, faArrowLeft, faArrowRight, faArrowsUpDown, faArrowUp, faBars, faBolt, faCaretDown, faCaretLeft, faCaretRight, faCaretUp, faCheck, faChevronDown, faChevronLeft, faChevronRight, faCircle, faCircleCheck, faCircleExclamation, faCirclePlus, faCircleQuestion, faCloud, faCog, faCreditCard, faEllipsisVertical, faEnvelope, faKeyboard, faLifeRing, faMagnifyingGlass, faMessage, faPlus, faRightFromBracket, faTrash, faTriangleExclamation, faUser, faUserPlus, faUsers, faWallet, faXmark, } from '@fortawesome/free-solid-svg-icons';
2
2
  export { FaIcon } from './fa-icon';
@@ -3,11 +3,9 @@ export * from './alert-badge';
3
3
  export * from './alert-dialog';
4
4
  export * from './alert-modal';
5
5
  export * from './assets-list-cell';
6
- export * from './auth';
7
6
  export * from './badge';
8
7
  export * from './base';
9
8
  export * from './base-link';
10
- export * from './block-sync';
11
9
  export * from './block-sync-pill';
12
10
  export * from './breadcrumbs';
13
11
  export * from './breakpoint-provider';
@@ -37,7 +35,6 @@ export * from './health-factor';
37
35
  export * from './help-tip';
38
36
  export * from './icon-button';
39
37
  export * from './icons';
40
- export * from './image';
41
38
  export * from './input';
42
39
  export * from './label';
43
40
  export * from './layout';
@@ -47,12 +44,9 @@ export * from './loader';
47
44
  export * from './loading';
48
45
  export * from './loading-bar';
49
46
  export * from './modal';
50
- export * from './navbar';
51
47
  export * from './navbar-logo';
52
48
  export * from './navigation-context';
53
- export * from './navitem';
54
49
  export * from './points-icon';
55
- export * from './pool-apy-tooltip';
56
50
  export * from './pool-points-indicator';
57
51
  export * from './rounded-image';
58
52
  export * from './rwa-feature';
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const inputVariants: (props?: ({
4
- size?: "default" | "xs" | "sm" | "lg" | null | undefined;
4
+ size?: "default" | "sm" | "lg" | "xs" | null | undefined;
5
5
  colorTheme?: "outlined" | "filledDark" | "filledLight" | null | undefined;
6
6
  variant?: "default" | "success" | "error" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,14 +1,7 @@
1
1
  export * from './app-footer';
2
2
  export * from './app-header';
3
- export * from './app-logo';
4
- export * from './block';
5
3
  export * from './col';
6
4
  export * from './container';
7
- export * from './footer';
8
5
  export * from './grid';
9
- export * from './header';
10
6
  export * from './layout';
11
- export * from './legal-disclaimer';
12
7
  export * from './main-aside-layout';
13
- export * from './page-layout';
14
- export * from './social-icons';
@@ -3,8 +3,8 @@ import type * as React from "react";
3
3
  declare const skeletonVariants: (props?: ({
4
4
  variant?: "default" | "lighter" | "darker" | null | undefined;
5
5
  speed?: "default" | "fast" | "slow" | null | undefined;
6
- width?: "full" | "xs" | "sm" | "lg" | "xl" | "2xl" | "md" | "3/4" | "1/2" | "1/3" | "1/4" | null | undefined;
7
- height?: "xs" | "sm" | "lg" | "xl" | "2xl" | "md" | "3xl" | "4xl" | "5xl" | null | undefined;
6
+ width?: "full" | "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3/4" | "1/2" | "1/3" | "1/4" | null | undefined;
7
+ height?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  type WidthPreset = NonNullable<VariantProps<typeof skeletonVariants>["width"]>;
10
10
  type HeightPreset = NonNullable<VariantProps<typeof skeletonVariants>["height"]>;
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const statusDotVariants: (props?: ({
4
4
  variant?: "default" | "muted" | "success" | "warning" | "primary" | "alert" | "secondary" | null | undefined;
5
- size?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface StatusDotProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statusDotVariants> {
8
8
  /**
@@ -1,12 +1,7 @@
1
- export * from './edit-button';
2
- export * from './editable-grid-table';
3
- export * from './editable-table';
4
1
  export * from './grid-error-line';
5
2
  export * from './grid-loading-line';
6
3
  export * from './grid-table';
7
- export * from './grid-table-loader';
8
4
  export * from './table';
9
5
  export * from './table-loader';
10
6
  export * from './table-loader-guard';
11
7
  export * from './table-sm';
12
- export * from './updated-value';
@@ -4,7 +4,7 @@ declare const textColorVariants: (props?: ({
4
4
  buttonColor?: "empty" | "primaryDashed" | "secondaryDashed" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  declare const layoutVariants: (props?: ({
7
- size?: "default" | "sm" | "lg" | "md" | null | undefined;
7
+ size?: "default" | "sm" | "md" | "lg" | null | undefined;
8
8
  width?: "compact" | "wide" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
10
  export interface TextButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof textColorVariants> {
@@ -1,8 +1,8 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const tipCardVariants: (props?: ({
4
- backgroundColor?: "transparent" | "dark" | "light" | "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | null | undefined;
5
- textColor?: "unset" | "dark" | "light" | null | undefined;
4
+ backgroundColor?: "dark" | "transparent" | "light" | "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | null | undefined;
5
+ textColor?: "dark" | "unset" | "light" | null | undefined;
6
6
  borderColor?: "none" | "dark" | "light" | "gradient" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  declare const indicatorVariants: (props?: ({
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  import { default as React } from 'react';
5
5
  import { TokenMetaInfo } from '../../types/common';
6
6
  declare const tokenSymbolVariants: (props?: ({
7
- marginSize?: "sm" | "lg" | "md" | null | undefined;
7
+ marginSize?: "sm" | "md" | "lg" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  export interface TokenSymbolProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof tokenSymbolVariants> {
10
10
  /**
@@ -4,10 +4,10 @@ declare const rootVariants: (props?: ({
4
4
  align?: "center" | "start" | "end" | "baseline" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  declare const labelVariants: (props?: ({
7
- size?: "default" | "unset" | "xs" | "sm" | null | undefined;
7
+ size?: "default" | "unset" | "sm" | "xs" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  declare const valueVariants: (props?: ({
10
- size?: "default" | "unset" | "xs" | "sm" | null | undefined;
10
+ size?: "default" | "unset" | "sm" | "xs" | null | undefined;
11
11
  weight?: "medium" | "normal" | "unset" | null | undefined;
12
12
  color?: "default" | "muted" | "success" | "warning" | "primary" | "alert" | "secondary" | null | undefined;
13
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import type * as React from "react";
3
3
  declare const withTitleVariants: (props?: ({
4
- size?: "default" | "sm" | "lg" | "md" | null | undefined;
4
+ size?: "default" | "sm" | "md" | "lg" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface WithTitleProps extends VariantProps<typeof withTitleVariants> {
7
7
  /**
@@ -4,7 +4,6 @@ export * from './use-debounce';
4
4
  export * from './use-debounce-call';
5
5
  export * from './use-filter';
6
6
  export * from './use-hf';
7
- export * from './use-liquidation';
8
7
  export * from './use-media-query';
9
8
  export * from './use-opened-state';
10
9
  export * from './use-previous';
@@ -6,10 +6,8 @@ export * from './components/alert-dialog';
6
6
  export * from './components/alert-modal';
7
7
  export * from './components/app-bar';
8
8
  export * from './components/assets-list-cell';
9
- export * from './components/auth';
10
9
  export * from './components/badge';
11
10
  export * from './components/base-link';
12
- export * from './components/block-sync';
13
11
  export * from './components/block-sync-pill';
14
12
  export * from './components/breadcrumbs';
15
13
  export * from './components/breakpoint-provider';
@@ -47,13 +45,10 @@ export * from './components/loader';
47
45
  export * from './components/loading';
48
46
  export * from './components/loading-bar';
49
47
  export * from './components/modal';
50
- export * from './components/navbar';
51
48
  export * from './components/navbar-logo';
52
49
  export * from './components/navigation-context';
53
- export * from './components/navitem';
54
50
  export * from './components/network-icon';
55
51
  export * from './components/points-icon';
56
- export * from './components/pool-apy-tooltip';
57
52
  export * from './components/pool-points-indicator';
58
53
  export * from './components/rounded-image';
59
54
  export * from './components/rwa-feature';
@@ -98,7 +93,6 @@ export type { LocaleKeys } from './locale';
98
93
  export * from './locale';
99
94
  export type { BlockSyncProps } from './types/footer';
100
95
  export { EnglishLocale };
101
- export * from './test-ids';
102
96
  export * from './utils';
103
97
  export * from './utils/a11y';
104
98
  export { cn } from './utils/cn';
@@ -184,6 +184,7 @@ declare const _default: {
184
184
 
185
185
  "components.leverageInput.label": "Leverage",
186
186
  "components.leverageInput.reset": "Reset",
187
+ "components.leverageInput.available": "Available leverage",
187
188
 
188
189
  "components.healthFactorBlock.label": "Health factor",
189
190
  "components.healthFactorBlock.tip": "Health Factor is a numeric representation of your account 'health'. If your health factor drops below 1 or close to it, you might be liquidated.",
@@ -199,7 +200,35 @@ declare const _default: {
199
200
 
200
201
  "components.positionTypeBadge.pool": "Lender",
201
202
  "components.positionTypeBadge.strategy": "Strategy",
202
- "components.positionTypeBadge.liquidation": "Liquidation"
203
+ "components.positionTypeBadge.liquidation": "Liquidation",
204
+
205
+ "components.titleMeta.unknownCurator": "Curator",
206
+
207
+ "components.moreAccordion.more": "More details",
208
+ "components.moreAccordion.less": "Less details",
209
+
210
+ "components.poolApyBreakdownCard.title": "APY Breakdown",
211
+ "components.poolApyBreakdownCard.apy1d": "APY 24H",
212
+ "components.poolApyBreakdownCard.apy7d": "APY 7d",
213
+ "components.poolApyBreakdownCard.apy30d": "APY 30d",
214
+
215
+ "components.strategyApyBreakdownCard.title": "APY Breakdown",
216
+ "components.strategyApyBreakdownCard.formula": "How strategy APY is calculated: Collateral APY x Leverage - Base borrow rate x (Leverage - 1) - Additional borrow rate x Leverage x 1.05",
217
+ "components.strategyApyBreakdownCard.collateralApy": "Collateral APY",
218
+ "components.strategyApyBreakdownCard.baseBorrowRate": "Base borrow rate",
219
+ "components.strategyApyBreakdownCard.additionalBorrowRate": "Additional borrow rate",
220
+
221
+ "components.liquidationParamsTable.lt": "Liquidation threshold",
222
+ "components.liquidationParamsTable.penalty": "Liquidation penalty",
223
+ "components.liquidationParamsTable.premium": "Liquidation premium",
224
+ "components.liquidationParamsTable.fee": "Liquidation fee",
225
+
226
+ "components.borrowRateBlock.label": "Borrow rate",
227
+ "components.borrowRateBlock.tip": "Borrow rate is displayed for your entire position size in total. You can reduce it in quota management.",
228
+ "components.borrowRateBlock.description": "Your borrow rate consists of the Base Rate plus the Quota Rates for every asset separately.",
229
+ "components.borrowRateBlock.baseRate": "Base Rate for Debt",
230
+ "components.borrowRateBlock.normalization": "Rates normalization",
231
+ "components.borrowRateBlock.normalization.tip": "Borrowers pay {quota} and {utilization}, which have a different base. Therefore, the total borrow rate value is normalized by Account value or Debt amount."
203
232
  }
204
233
  ;
205
234
 
@@ -1,6 +1,4 @@
1
- export type * from './component-props';
2
1
  export type * from './filter';
3
2
  export type * from './footer';
4
3
  export type * from './graph';
5
- export type * from './help';
6
4
  export type * from './range-item';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "4.0.0-next.1",
3
+ "version": "4.0.0-next.3",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,11 +19,6 @@
19
19
  "import": "./dist/esm/index.js",
20
20
  "default": "./dist/cjs/index.cjs"
21
21
  },
22
- "./test-ids": {
23
- "types": "./dist/types/test-ids/index.d.ts",
24
- "import": "./dist/esm/test-ids/index.js",
25
- "default": "./dist/cjs/test-ids/index.cjs"
26
- },
27
22
  "./tailwind": {
28
23
  "types": "./dist/types/configs/tailwind.config.d.ts",
29
24
  "import": "./dist/esm/configs/tailwind.config.js",
@@ -37,12 +32,7 @@
37
32
  "./globals.css": "./dist/globals.css",
38
33
  "./grid-safelist.css": "./dist/grid-safelist.css",
39
34
  "./theme.css": "./src/styles/theme.css",
40
- "./base.css": "./src/styles/base.css",
41
- "./sdk-legacy": {
42
- "types": "./dist/types/sdk-legacy/index.d.ts",
43
- "import": "./dist/esm/sdk-legacy/index.js",
44
- "default": "./dist/cjs/sdk-legacy/index.cjs"
45
- }
35
+ "./base.css": "./src/styles/base.css"
46
36
  },
47
37
  "files": [
48
38
  "dist",
@@ -104,7 +94,6 @@
104
94
  "react-dom": "^18 || ^19",
105
95
  "react-intl": "^6.0.0 || ^7.0.0",
106
96
  "react-router-dom": "^6.0.0 || ^7.0.0",
107
- "reactochart": "^6.1.1",
108
97
  "sonner": "^2.0.0",
109
98
  "viem": "^2.0.0",
110
99
  "wagmi": "^2.0.0"
@@ -127,7 +116,7 @@
127
116
  "@commitlint/cli": "^20.1.0",
128
117
  "@commitlint/config-conventional": "^20.0.0",
129
118
  "@gearbox-protocol/biome-config": "^1.0.2",
130
- "@gearbox-protocol/sdk": "v14.12.0-next.83",
119
+ "@gearbox-protocol/sdk": "15.1.0-next.8",
131
120
  "@rollup/plugin-typescript": "^12.3.0",
132
121
  "@storybook/addon-a11y": "^10.0.8",
133
122
  "@storybook/addon-docs": "^10.0.8",
@@ -160,7 +149,6 @@
160
149
  "react-dom": "^19.1.1",
161
150
  "react-intl": "^6.7.4",
162
151
  "react-router-dom": "^7.9.6",
163
- "reactochart": "^6.1.1",
164
152
  "storybook": "^10.0.8",
165
153
  "tailwind-scrollbar": "^4.0.2",
166
154
  "tailwindcss": "^4.1.14",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),c=require("wagmi"),l=require("./wallet-ui-context.cjs");require("../buttons/back-button/back-button.cjs");const q=require("../buttons/button/button.cjs");require("../buttons/copy-button/copy-button.cjs");require("../buttons/external-button/external-button.cjs");require("../buttons/filter-button/filter-button.cjs");require("../buttons/navigation-button/navigation-button.cjs");require("react");require("@gearbox-protocol/sdk");require("clsx");require("tailwind-merge");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../utils/z-index.cjs");const d=require("../buttons/tab-button/tab-button.cjs");function b({children:o,owner:e,hideConnectButton:a,...t}){const i=l.useWalletUI(),{isConnected:s,address:r}=c.useAccount(),n=Object.keys(t).length>0?q.Button:d.TabButton;return i?s&&r?e&&r?.toLowerCase()!==e.toLowerCase()?u.jsx(n,{...t,disabled:!0,children:"You are not the author"}):o:a?null:u.jsx(n,{...t,onClick:()=>i.openConnectModal(),children:"Connect Wallet"}):s&&r&&e&&r.toLowerCase()!==e.toLowerCase()?u.jsx(n,{...t,disabled:!0,children:"You are not the author"}):o}exports.ConnectRequired=b;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./connect-required.cjs"),n=require("./signin-required.cjs"),e=require("./wallet-ui-context.cjs");exports.ConnectRequired=t.ConnectRequired;exports.SignInRequired=n.SignInRequired;exports.WalletUIProvider=e.WalletUIProvider;exports.useWalletUI=e.useWalletUI;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),b=require("wagmi"),h=require("./wallet-ui-context.cjs");require("../buttons/back-button/back-button.cjs");const g=require("../buttons/button/button.cjs");require("../buttons/copy-button/copy-button.cjs");require("../buttons/external-button/external-button.cjs");require("../buttons/filter-button/filter-button.cjs");require("../buttons/navigation-button/navigation-button.cjs");require("react");require("@gearbox-protocol/sdk");require("clsx");require("tailwind-merge");require("sonner");const j=require("../../utils/format.cjs");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../utils/z-index.cjs");const L=require("../buttons/tab-button/tab-button.cjs");function x({children:u,owner:e,skipSignIn:l,hideConnectButton:c,...t}){const o=h.useWalletUI(),{isConnected:a,address:r}=b.useAccount(),n=Object.keys(t).length>0?g.Button:L.TabButton,s=o?.siwe,q=s?.isSignedIn??!1,f=s?.isRejected??!1,d=s?.isLoading??!1,C=s?.data??null;return o?q||l?e&&C?.address?.toLowerCase()!==e.toLowerCase()?i.jsx(n,{...t,disabled:!0,children:"You are not the author"}):u:a&&r?o.openSIWE?f?i.jsx(n,{...t,onClick:()=>o.openConnectModal(),disabled:d,children:"Try Again"}):i.jsx(n,{...t,onClick:()=>o.openSIWE?.(),disabled:d,children:d?"Awaiting request...":`Sign In as ${j.shortenHash(r)}`}):e&&r.toLowerCase()!==e.toLowerCase()?i.jsx(n,{...t,disabled:!0,children:"You are not the author"}):u:c?null:i.jsx(n,{...t,onClick:()=>o.openConnectModal(),children:"Connect Wallet"}):l?a&&r&&e&&r.toLowerCase()!==e.toLowerCase()?i.jsx(n,{...t,disabled:!0,children:"You are not the author"}):u:a&&r&&e&&r.toLowerCase()!==e.toLowerCase()?i.jsx(n,{...t,disabled:!0,children:"You are not the author"}):u}exports.SignInRequired=x;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),e=require("react"),t=e.createContext(null);function o({value:r,children:n}){return l.jsx(t.Provider,{value:r,children:n})}function u(){return e.useContext(t)}exports.WalletUIProvider=o;exports.useWalletUI=u;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),T=require("../tooltip/simple-tooltip.cjs");require("../tooltip/tooltip.cjs");const m=require("../../utils/cn.cjs");require("../accordion/accordion.cjs");require("../alert-badge/alert-badge.cjs");require("../alert-dialog/alert-dialog.cjs");require("../alert-modal/alert-modal.cjs");require("@gearbox-protocol/static");require("../buttons/back-button/back-button.cjs");require("../buttons/button/button.cjs");require("../buttons/copy-button/copy-button.cjs");require("../buttons/external-button/external-button.cjs");require("../buttons/filter-button/filter-button.cjs");require("../buttons/navigation-button/navigation-button.cjs");require("@gearbox-protocol/sdk");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../utils/z-index.cjs");require("../buttons/tab-button/tab-button.cjs");require("../token-icon/token-icon.cjs");require("wagmi");require("../auth/wallet-ui-context.cjs");require("../badge/badge.cjs");require("react-intl");require("../simple-dropdown/simple-dropdown.cjs");require("../simple-dropdown/simple-dropdown-menu-item.cjs");require("../token-symbol/token-symbol.cjs");require("../typography/typography.cjs");require("../detailed-page-title/detailed-page-title-copy-button.cjs");require("../detailed-page-title/detailed-page-title-explorer-dropdown.cjs");require("../base/details-view/detail-aside/detail-aside-scope.cjs");require("../layout/main-aside-layout/main-aside-layout.cjs");require("../base/details-view/details-view.cjs");require("../fadeout-loading/fadeout-loading.cjs");require("../health-factor/health-factor.cjs");require("../vertical-indicator/vertical-indicator.cjs");require("../checkbox/checkbox.cjs");require("../checkbox/checkbox-labeled.cjs");require("../select/select.cjs");require("../breakpoint-provider.cjs");require("lightweight-charts");require("../graph/formatters.cjs");require("../graph/graph-view.cjs");require("../base/info-portal/info-portal.cjs");require("../edit-input/edit-input.cjs");require("../slider/slider.cjs");require("../slider/slider-context.cjs");require("../text-button/text-button.cjs");require("../with-title/with-title.cjs");require("../status-elements/status-elements.cjs");require("@fortawesome/free-solid-svg-icons");require("react-router-dom");require("../client-adapters/styled-dialog-container/styled-dialog-container.cjs");require("../icons/fa-icon.cjs");require("../skeleton/skeleton.cjs");require("../base/tabber/tabber.cjs");require("../points-icon/points-icon.cjs");require("../base-link/base-link.cjs");require("../navigation-context/navigation-context.cjs");require("../cards/card/card.cjs");require("../checkbox-item/checkbox-item.cjs");require("../client-adapters/styled-button/styled-button.cjs");require("../client-adapters/styled-rounded-image/styled-rounded-image.cjs");require("../table/grid-table.cjs");require("../help-tip/help-tip.cjs");require("../composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs");require("../composites/tx-preview/confirm/dialog/constants.cjs");require("../modal/modal.cjs");require("../dialog/dialog-container.cjs");require("../confirm-menu/confirm-menu.cjs");require("../spinner-loader/spinner-loader.cjs");require("../detailed-apy/detailed-apy.cjs");require("@radix-ui/react-dialog");require("../dialog/dialog-content.cjs");require("../dialog/dialog-description.cjs");require("../dialog/dialog-footer.cjs");require("../dialog/dialog-header.cjs");require("../dialog/dialog-title.cjs");require("../dialog/dialog-modal-container.cjs");require("../dialog/dialog-overlay.cjs");require("viem");require("../input/input.cjs");require("../label/label.cjs");require("../dropdown-menu/dropdown-menu.cjs");require("../dropdown-menu/dropdown-menu-checkbox-item.cjs");require("../dropdown-menu/dropdown-menu-content.cjs");require("../dropdown-menu/dropdown-menu-item.cjs");require("../dropdown-menu/dropdown-menu-label.cjs");require("../dropdown-menu/dropdown-menu-radio-item.cjs");require("../dropdown-menu/dropdown-menu-separator.cjs");require("../dropdown-menu/dropdown-menu-shortcut.cjs");require("../dropdown-menu/dropdown-menu-sub-content.cjs");require("../dropdown-menu/dropdown-menu-sub-trigger.cjs");require("../filter/filter-block.cjs");require("../filter/filter-checkbox-item.cjs");require("../filter/filter-chip.cjs");require("../filter/filter-chips.cjs");require("../filter/filter-dropdown-item.cjs");require("../filter/filter-group.cjs");require("../filter/filter-label.cjs");require("../search-line/search-line.cjs");require("../tabs/tabs.cjs");require("../filter/filter-modal-item.cjs");require("../filter/filter-radio-item.cjs");require("../filter/filter-separator.cjs");require("../filter/variants.cjs");require("../icon-button/icon-button.cjs");require("../layout/app-footer/app-footer.cjs");require("../layout/app-header/app-header.cjs");require("../layout/col/col.cjs");require("../layout/container/container.cjs");require("../layout/footer/footer.cjs");require("../layout/grid/grid.cjs");require("../layout/header/header.cjs");require("../layout/layout/layout.cjs");require("../page-title/page-title.cjs");require("../layout/social-icons/social-icons.cjs");require("../legal-agreement/legal-agreement-theme.cjs");require("../link/link.cjs");require("../loader/loader.cjs");require("../loading/loading.cjs");require("../loading-bar/loading-bar.cjs");require("../navbar/navbar.cjs");require("../navbar/navbar-indicator-context.cjs");require("../app-bar/app-bar.cjs");require("../navitem/navitem.cjs");require("../rounded-image/rounded-image.cjs");require("../segmented-control/segmented-control.cjs");require("../separate-line/separate-line.cjs");require("../simple-accordion/simple-accordion.cjs");require("../spinner/spinner.cjs");require("../split-list/split-list.cjs");const b=require("../status-dot/status-dot.cjs");require("../table/table.cjs");require("../table/grid-table-loader.cjs");require("../textarea/textarea.cjs");require("../theme-provider.cjs");require("../tip-card/tip-card.cjs");const h=1e3*60*10;function _({blockByChain:u,explorerAddresses:f,networkById:S}){const[n,j]=l.useState(Date.now());l.useEffect(()=>{const i=()=>{j(Date.now())},r=window.setInterval(i,1e3);return()=>{clearInterval(r)}},[]);const a=l.useMemo(()=>{if(!u)return 0;const i=Object.values(u).reduce((r,c)=>{const t=c.lastSyncBlock.localTimestamp;return r===0||r!==0&&t<r?t:r},0);return i?n-i:0},[u,n])>h,d=()=>e.jsxs("div",{className:"flex h-[30px] items-center gap-1.5",children:[e.jsx("span",{className:m.cn("text-sm leading-[17px]",a?"text-destructive":"text-success"),children:"Status"}),e.jsx(b.StatusDot,{variant:a?"alert":"success"})]}),v=()=>{if(!u)return null;const i=Object.entries(u);return e.jsx("div",{className:"flex flex-col text-left text-xs",children:i.map(([r,c],t)=>{const o=c.lastSyncBlock,s=o?.block||0n,g=o?.localTimestamp?n-o.localTimestamp:0,q=f[Number(r)],p=typeof q=="string"?q:q&&typeof q=="object"&&"url"in q?q.url:void 0,k=S[Number(r)]||"Unknown",x=`[${s.toString()}]`,N=t===i.length-1;return e.jsxs("div",{className:m.cn(!N&&"mb-2"),children:[e.jsxs("span",{children:[k," "]}),p&&s>0?e.jsx("a",{href:`${p}/block/${s}`,target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:x}):e.jsx("span",{children:x}),s>0&&e.jsxs("span",{children:[", updated ",(g/1e3).toFixed(0)," seconds ago"]})]},r)})})};return u?e.jsx(T.SimpleTooltip,{title:d(),children:v()}):e.jsx("div",{className:"select-none",children:d()})}exports.BlockSync=_;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./block-sync.cjs");exports.BlockSync=c.BlockSync;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime");function g({src:e,alt:t,width:n,height:i,onError:r,onLoad:o,className:u,loading:a="lazy"}){return c.jsx("img",{src:e,alt:t,width:n,height:i,className:u,onError:r,onLoad:o,loading:a,decoding:"async"})}exports.Image=g;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./image.cjs");exports.Image=e.Image;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../base-link/base-link.cjs"),r=require("../../image/image.cjs"),a=require("../../navbar-logo/navbar-logo.cjs"),s=require("../../../utils/cn.cjs"),o=require("../../../utils/static.cjs");function c({appName:n,size:t="default"}){return e.jsxs("div",{className:s.cn("text-foreground flex items-center gap-1 sm:gap-2",t==="default"?"text-base sm:text-lg md:text-xl":"text-sm sm:text-base md:text-md"),children:[e.jsx(r.Image,{src:o.getStatic("/logo/logo_monochrome_white@2x.png"),alt:"Gearbox Protocol",width:t==="default"?113:100,height:t==="default"?36:24,loading:"eager",className:s.cn("h-auto shrink-0",t==="default"?"w-auto h-[36px]":"w-auto h-[24px]")}),n&&e.jsx("span",{className:"text-muted-foreground whitespace-nowrap",children:n})]})}function g({appName:n,className:t}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:s.cn("hidden lg:block",t),children:e.jsxs(i.BaseLink,{size:"unset",variant:"unset",color:"main",href:"/",className:"inline-flex items-center gap-2",children:[e.jsx(a.NavBarLogo,{src:o.getStatic("/logo/logo_monochrome_white.png"),srcSet:`${o.getStatic("/logo/logo_monochrome_white.png")} 1x, ${o.getStatic("/logo/logo_monochrome_white@2x.png")} 2x, ${o.getStatic("/logo/logo_monochrome_white@2x.png")} 3x`,alt:"Logo",style:{height:"40px"},className:"w-auto cursor-pointer"}),n&&e.jsx("span",{className:"text-muted-foreground whitespace-nowrap",children:n})]})}),e.jsx("div",{className:s.cn("block lg:hidden",t),children:e.jsx(i.BaseLink,{size:"unset",variant:"unset",color:"main",href:"/",className:"inline-flex",children:e.jsx(a.NavBarLogo,{src:o.getStatic("/logo/sign_monochrome_white.png"),srcSet:`${o.getStatic("/logo/sign_monochrome_white.png")} 1x, ${o.getStatic("/logo/sign_monochrome_white@2x.png")} 2x, ${o.getStatic("/logo/sign_monochrome_white@2x.png")} 3x`,alt:"Logo",style:{height:"34px",marginLeft:"4px",marginTop:"4px"},className:"w-auto cursor-pointer"})})})]})}exports.AppLogo=c;exports.AppLogoLink=g;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./app-logo.cjs");exports.AppLogo=o.AppLogo;exports.AppLogoLink=o.AppLogoLink;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime");require("react");require("@gearbox-protocol/sdk");const u=require("../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");const c={none:"mb-0",sm:"mb-4",md:"mb-6",lg:"mb-8"},a={"flex-start":"justify-start",center:"justify-center","flex-end":"justify-end",between:"justify-between"},f={"flex-start":"items-start",center:"items-center","flex-end":"items-end",stretch:"items-stretch"};function m({children:e,margin:t="md",justify:s="flex-start",align:r="flex-start",className:n,...i}){return l.jsx("div",{className:u.cn("flex flex-row flex-nowrap",c[t],a[s],f[r],n),...i,children:e})}exports.Block=m;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./block.cjs");exports.Block=o.Block;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("react"),w=require("../../base-link/base-link.cjs"),_=require("../../block-sync/block-sync.cjs"),u=require("../../../utils/cn.cjs"),k=require("../app-logo/app-logo.cjs"),F=require("../legal-disclaimer/legal-disclaimer.cjs"),L=require("../social-icons/social-icons.cjs");function S(s){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>s[t]})}}return r.default=s,Object.freeze(r)}const p=S(v),g=p.forwardRef(({logo:s,copyright:r,social:t,version:a,secondaryInfo:o,legalLinks:n,containerClassName:i,className:l,children:x,mobileExtraContent:d,...c},m)=>e.jsx("footer",{ref:m,className:u.cn("relative w-full border-t bg-card border-border flex items-center justify-center",l),...c,children:e.jsxs("div",{className:u.cn("flex flex-col sm:flex-row sm:flex-nowrap justify-between items-center sm:items-start gap-4 sm:gap-0 py-6 w-full px-4",i),children:[e.jsxs("div",{className:"text-center sm:text-left text-sm text-muted-foreground w-full sm:w-auto",children:[s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex justify-center sm:justify-start",children:s}),e.jsx("div",{className:"h-2"})]}),r&&e.jsx("div",{children:r}),e.jsx("div",{className:"mt-4 flex flex-col items-center justify-center gap-2 sm:hidden",children:d})]}),e.jsxs("div",{className:"w-full sm:w-auto",children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex items-center justify-center sm:justify-end gap-2.5",children:t}),e.jsx("div",{className:"h-3"})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center sm:justify-end gap-2 text-sm text-muted-foreground",children:[a&&e.jsx("span",{children:a}),o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-1 w-1 rounded-full bg-muted-foreground/30"}),o]}),n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-1 w-1 rounded-full bg-muted-foreground/30"}),n]})]})]}),x]})}));g.displayName="Footer";function j({href:s,text:r,external:t=!1}){return e.jsx(w.BaseLink,{href:s,external:t,variant:"underlined",color:"secondary",size:"sm",children:r})}function f({title:s,links:r}){return e.jsxs("div",{className:"flex flex-col gap-1 md:items-end",children:[e.jsx("h3",{className:"text-foreground",children:s}),e.jsx("div",{className:"flex flex-wrap gap-4 justify-end",children:r.map((t,a)=>e.jsxs(p.Fragment,{children:[e.jsx(j,{...t}),a<r.length-1&&e.jsx("span",{className:"text-muted-foreground text-sm",children:"•"})]},t.href))})]})}function D({appName:s,legalAppName:r,legalReferences:t,legalContent:a,className:o,version:n,discordAddr:i,landingAddr:l,twitterAddr:x,telegramAddr:d,blockSyncProps:c,onPress:m,showLegalLinks:b,showDeveloperLinks:N}){const y=!!(x||i||d);return e.jsx("footer",{className:u.cn("relative w-full border-t bg-card border-border","text-sm font-normal leading-[120%] tracking-[-0.14px] text-secondary-foreground",o),children:e.jsxs("div",{className:"flex flex-col md:flex-row md:flex-nowrap justify-between py-6 px-8",children:[e.jsxs("div",{className:"w-full md:w-auto text-center md:text-left flex flex-col items-center md:items-start",children:[e.jsx(k.AppLogo,{appName:s}),e.jsx("div",{className:"h-2"}),(()=>{const h=a??(t?e.jsx(F.LegalDisclaimer,{appName:r,hrefs:t}):e.jsxs("div",{className:"text-muted-foreground text-center md:text-left",children:[e.jsxs("div",{children:["Copyright © Gearbox Foundation 2023-",new Date().getFullYear(),"."]}),e.jsx("div",{children:"Built at ETHGlobal MarketMake hackathon."})]}));return m?e.jsx("button",{type:"button",onClick:m,className:"cursor-pointer text-left bg-transparent border-none p-0 m-0",children:h}):h})(),(n||c)&&e.jsxs("div",{className:"flex flex-col items-center gap-2 mt-4 md:hidden",children:[n&&e.jsxs("span",{children:["Version ",n]}),c&&e.jsx(_.BlockSync,{...c})]})]}),e.jsxs("div",{className:"hidden md:flex flex-col gap-4",children:[y&&e.jsx("div",{className:"flex items-center justify-end gap-2.5",children:e.jsx(L.SocialIcons,{twitterAddr:x,discordAddr:i,telegramAddr:d})}),b&&t&&e.jsx(f,{title:"Legal",links:[{href:t.termsOfService,text:"Terms of Service"},{href:t.privacyNotice,text:"Privacy Notice"},{href:t.riskDisclosure,text:"Risk Disclosure"}]}),N&&e.jsx(f,{title:"Developers",links:[{href:"https://docs.gearbox.fi/gearbox-permissionless-doc",text:"Documentation",external:!0},{href:"https://docs.gearbox.finance/risk-and-security/audits-bug-bounty",text:"Audits",external:!0},{href:"https://github.com/Gearbox-protocol",text:"GitHub",external:!0}]}),(n||l)&&e.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2 text-muted-foreground",children:[n&&e.jsxs("span",{children:["Version ",n]}),n&&l&&e.jsx("span",{className:"h-1 w-1 rounded-full bg-muted-foreground/30"}),l&&e.jsx(j,{href:`${l}/terms`,text:"Legal Info",external:!0})]})]})]})})}exports.Footer=g;exports.FooterLink=j;exports.FooterLinkSection=f;exports.GearboxFooter=D;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./footer.cjs");exports.Footer=o.Footer;exports.FooterLink=o.FooterLink;exports.FooterLinkSection=o.FooterLinkSection;exports.GearboxFooter=o.GearboxFooter;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),O=require("react"),p=require("../../app-bar/app-bar.cjs"),y=require("../../simple-dropdown/simple-dropdown.cjs");require("../../simple-dropdown/simple-dropdown-menu-item.cjs");const m=require("../../../utils/cn.cjs");function _(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const l=_(O),f=l.createContext(null);function k(){const t=l.useContext(f);if(!t)throw new Error("useMobileMenu must be used within Header component");return t}const x=l.forwardRef(({navigation:t,logo:s,actions:n,fixed:r=!1,sticky:h=!1,containerClassName:b,className:g,children:q,mobileMenuContent:a,mobileMenuOpen:c,onMobileMenuOpenChange:o,...j},w)=>{const[v,M]=l.useState(!1),i=c!==void 0,N=i?c:v,d=l.useCallback(u=>{i||M(u),o?.(u)},[i,o]);return e.jsx("header",{ref:w,className:m.cn("relative w-full bg-background h-18 flex flex-nowrap items-center",r&&"fixed top-0 left-0 right-0 z-50",h&&"sticky top-0 z-50",g),"data-fixed":r?"true":void 0,...j,children:e.jsxs("div",{className:m.cn("w-full h-full flex items-stretch justify-between mx-auto px-4 md:px-4 lg:px-10",b),children:[e.jsxs("div",{className:"h-full flex items-center",children:[e.jsx("div",{className:"flex items-center gap-1 sm:gap-2 shrink-0 lg:hidden",children:a&&e.jsx(y.SimpleDropdown,{open:N,onOpenChange:d,title:e.jsx(p.AppBarHamburgerButton,{size:"md"}),asChild:!0,align:"start",className:"p-0 border-0 bg-transparent shadow-none",children:e.jsx(p.AppBarDropdownMenu,{children:e.jsx(f.Provider,{value:{closeMobileMenu:()=>d(!1)},children:a})})})}),s&&e.jsx("div",{className:"flex items-center shrink-0",children:s})]}),t&&e.jsx("div",{className:"hidden lg:flex items-stretch flex-1 min-w-0 h-full",children:t}),e.jsx("div",{className:"flex items-center gap-1 sm:gap-2 shrink-0",children:n&&e.jsx("div",{className:"flex items-center gap-2",children:n})})]})})});x.displayName="Header";exports.Header=x;exports.useMobileMenu=k;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./header.cjs");exports.Header=e.Header;exports.useMobileMenu=e.useMobileMenu;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./legal-disclaimer.cjs");exports.LegalDisclaimer=e.LegalDisclaimer;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../base-link/base-link.cjs");function i({hrefs:r,appName:t="Permissionless Interface"}){return e.jsxs("p",{className:"text-muted-foreground max-w-md text-sm",children:["Any use of and/or interaction with the ",t," is subject to the"," ",e.jsx(s.BaseLink,{href:r.termsOfService,className:"underline hover:text-foreground transition-colors text-sm",children:"Terms of Service"})," ","and"," ",e.jsx(s.BaseLink,{href:r.privacyNotice,className:"underline hover:text-foreground transition-colors text-sm",children:"Privacy Notice"}),", and acceptance of risks described in the"," ",e.jsx(s.BaseLink,{href:r.riskDisclosure,className:"underline hover:text-foreground transition-colors text-sm",children:"Risk Disclosure Statement"}),"."]})}exports.LegalDisclaimer=i;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./page-layout.cjs");exports.PageLayout=e.PageLayout;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("../../buttons/back-button/back-button.cjs"),l=require("../../page-title/page-title.cjs"),m=require("../container/container.cjs");function x({children:n,title:o,description:i,icon:r,backButton:e,actionButton:s,maxContainerWidth:a="xl",containerClassName:c}){return t.jsxs(m.Container,{maxWidth:a,className:c,children:[t.jsx(l.PageTitle,{backButton:e?t.jsx(u.BackButton,{href:e.href,text:e.text,onClick:e.onClick}):void 0,icon:r,actions:s,subtitle:i,className:"mb-6",children:o}),n]})}exports.PageLayout=x;