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

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 (361) 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/pnl-value.cjs +1 -1
  52. package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -1
  53. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  54. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  55. package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
  56. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
  57. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
  58. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
  59. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +1 -1
  60. package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
  61. package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -1
  62. package/dist/cjs/components/graph/graph-view.cjs +1 -1
  63. package/dist/cjs/components/graph/graph.cjs +1 -1
  64. package/dist/cjs/components/icons/index.cjs +1 -1
  65. package/dist/cjs/components/index.cjs +1 -1
  66. package/dist/cjs/components/layout/index.cjs +1 -1
  67. package/dist/cjs/components/modal/modal.cjs +1 -1
  68. package/dist/cjs/components/table/index.cjs +1 -1
  69. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  70. package/dist/cjs/hooks/index.cjs +1 -1
  71. package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
  72. package/dist/cjs/index.cjs +1 -1
  73. package/dist/cjs/locale/en.json.cjs +1 -1
  74. package/dist/esm/components/base/amount-input/amount-input.js +179 -147
  75. package/dist/esm/components/base/amount-input/constants.js +2 -0
  76. package/dist/esm/components/base/amount-input/index.js +5 -3
  77. package/dist/esm/components/base/amount-input/token-button.js +65 -35
  78. package/dist/esm/components/base/amount-input/token-select-panel.js +85 -0
  79. package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +83 -0
  80. package/dist/esm/components/base/borrow-rate-block/constants.js +8 -0
  81. package/dist/esm/components/base/borrow-rate-block/index.js +6 -0
  82. package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +36 -0
  83. package/dist/esm/components/base/chart-with-side-card/constants.js +8 -0
  84. package/dist/esm/components/base/chart-with-side-card/index.js +6 -0
  85. package/dist/esm/components/base/details-view/details-view.js +37 -32
  86. package/dist/esm/components/base/history-chart/history-chart.js +25 -21
  87. package/dist/esm/components/base/index.js +164 -116
  88. package/dist/esm/components/base/info-list/constants.js +1 -0
  89. package/dist/esm/components/base/info-list/index.js +5 -4
  90. package/dist/esm/components/base/info-list/info-list.js +44 -23
  91. package/dist/esm/components/base/leverage-input/leverage-input.js +53 -50
  92. package/dist/esm/components/base/liquidation-params-table/constants.js +6 -0
  93. package/dist/esm/components/base/liquidation-params-table/index.js +6 -0
  94. package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +62 -0
  95. package/dist/esm/components/base/manage-pane/index.js +7 -6
  96. package/dist/esm/components/base/manage-pane/manage-pane.js +88 -67
  97. package/dist/esm/components/base/more-accordion/constants.js +7 -0
  98. package/dist/esm/components/base/more-accordion/index.js +6 -0
  99. package/dist/esm/components/base/more-accordion/more-accordion.js +51 -0
  100. package/dist/esm/components/base/nested-info-stack/constants.js +6 -0
  101. package/dist/esm/components/base/nested-info-stack/index.js +6 -0
  102. package/dist/esm/components/base/nested-info-stack/nested-info-stack.js +20 -0
  103. package/dist/esm/components/base/page-title/page-title.js +28 -22
  104. package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +7 -0
  105. package/dist/esm/components/base/pool-apy-breakdown-card/index.js +6 -0
  106. package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +65 -0
  107. package/dist/esm/components/base/side-card/constants.js +8 -0
  108. package/dist/esm/components/base/side-card/index.js +6 -0
  109. package/dist/esm/components/base/side-card/side-card.js +57 -0
  110. package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +7 -0
  111. package/dist/esm/components/base/strategy-apy-breakdown-card/index.js +6 -0
  112. package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +51 -0
  113. package/dist/esm/components/base/tabber/tabber.js +83 -75
  114. package/dist/esm/components/base/title-meta/constants.js +8 -0
  115. package/dist/esm/components/base/title-meta/index.js +6 -0
  116. package/dist/esm/components/base/title-meta/title-meta.js +68 -0
  117. package/dist/esm/components/base/token-amount/token-amount.js +12 -12
  118. package/dist/esm/components/base/token-pair-symbol/constants.js +6 -0
  119. package/dist/esm/components/base/token-pair-symbol/index.js +6 -0
  120. package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +33 -0
  121. package/dist/esm/components/base/token-pair-title/constants.js +6 -0
  122. package/dist/esm/components/base/token-pair-title/index.js +6 -0
  123. package/dist/esm/components/base/token-pair-title/token-pair-title.js +20 -0
  124. package/dist/esm/components/base/values/pnl-value.js +8 -8
  125. package/dist/esm/components/block-sync-pill/block-sync-pill.js +19 -29
  126. package/dist/esm/components/checkbox/checkbox-labeled.js +16 -26
  127. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +16 -26
  128. package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
  129. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +2 -3
  130. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +1 -1
  131. package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +6 -7
  132. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +25 -35
  133. package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +1 -83
  134. package/dist/esm/components/explorer-links-dropdown/index.js +1 -4
  135. package/dist/esm/components/graph/graph-view.js +74 -74
  136. package/dist/esm/components/graph/graph.js +309 -308
  137. package/dist/esm/components/icons/index.js +29 -28
  138. package/dist/esm/components/index.js +701 -712
  139. package/dist/esm/components/layout/index.js +14 -33
  140. package/dist/esm/components/modal/modal.js +1 -1
  141. package/dist/esm/components/table/index.js +38 -52
  142. package/dist/esm/components/with-copy/with-copy.js +16 -26
  143. package/dist/esm/hooks/index.js +29 -54
  144. package/dist/esm/hooks/use-debounce-call.js +2 -3
  145. package/dist/esm/index.js +863 -900
  146. package/dist/esm/locale/en.json.js +24 -1
  147. package/dist/globals.css +1 -1
  148. package/dist/types/components/base/amount-input/amount-input.d.ts +13 -2
  149. package/dist/types/components/base/amount-input/constants.d.ts +2 -0
  150. package/dist/types/components/base/amount-input/index.d.ts +1 -0
  151. package/dist/types/components/base/amount-input/token-button.d.ts +14 -2
  152. package/dist/types/components/base/amount-input/token-select-panel.d.ts +17 -0
  153. package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +16 -0
  154. package/dist/types/components/base/borrow-rate-block/constants.d.ts +5 -0
  155. package/dist/types/components/base/borrow-rate-block/index.d.ts +2 -0
  156. package/dist/types/components/base/chart-with-side-card/chart-with-side-card.d.ts +13 -0
  157. package/dist/types/components/base/chart-with-side-card/constants.d.ts +5 -0
  158. package/dist/types/components/base/chart-with-side-card/index.d.ts +2 -0
  159. package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +2 -1
  160. package/dist/types/components/base/history-chart/history-chart.d.ts +8 -1
  161. package/dist/types/components/base/index.d.ts +11 -0
  162. package/dist/types/components/base/info-list/constants.d.ts +1 -0
  163. package/dist/types/components/base/info-list/info-list.d.ts +8 -1
  164. package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
  165. package/dist/types/components/base/liquidation-params-table/constants.d.ts +3 -0
  166. package/dist/types/components/base/liquidation-params-table/index.d.ts +2 -0
  167. package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +12 -0
  168. package/dist/types/components/base/manage-pane/manage-pane.d.ts +7 -0
  169. package/dist/types/components/base/more-accordion/constants.d.ts +4 -0
  170. package/dist/types/components/base/more-accordion/index.d.ts +2 -0
  171. package/dist/types/components/base/more-accordion/more-accordion.d.ts +11 -0
  172. package/dist/types/components/base/nested-info-stack/constants.d.ts +3 -0
  173. package/dist/types/components/base/nested-info-stack/index.d.ts +2 -0
  174. package/dist/types/components/base/nested-info-stack/nested-info-stack.d.ts +10 -0
  175. package/dist/types/components/base/page-title/page-title.d.ts +6 -2
  176. package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +4 -0
  177. package/dist/types/components/base/pool-apy-breakdown-card/index.d.ts +2 -0
  178. package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +14 -0
  179. package/dist/types/components/base/side-card/constants.d.ts +5 -0
  180. package/dist/types/components/base/side-card/index.d.ts +2 -0
  181. package/dist/types/components/base/side-card/side-card.d.ts +16 -0
  182. package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +4 -0
  183. package/dist/types/components/base/strategy-apy-breakdown-card/index.d.ts +2 -0
  184. package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +9 -0
  185. package/dist/types/components/base/tabber/tabber.d.ts +11 -2
  186. package/dist/types/components/base/title-meta/constants.d.ts +5 -0
  187. package/dist/types/components/base/title-meta/index.d.ts +2 -0
  188. package/dist/types/components/base/title-meta/title-meta.d.ts +15 -0
  189. package/dist/types/components/base/token-pair-symbol/constants.d.ts +3 -0
  190. package/dist/types/components/base/token-pair-symbol/index.d.ts +2 -0
  191. package/dist/types/components/base/token-pair-symbol/token-pair-symbol.d.ts +15 -0
  192. package/dist/types/components/base/token-pair-title/constants.d.ts +3 -0
  193. package/dist/types/components/base/token-pair-title/index.d.ts +2 -0
  194. package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +11 -0
  195. package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
  196. package/dist/types/components/base-link/base-link.d.ts +1 -1
  197. package/dist/types/components/buttons/button/button.d.ts +2 -2
  198. package/dist/types/components/checkbox/checkbox.d.ts +2 -2
  199. package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +4 -1
  200. package/dist/types/components/dialog/dialog-container.d.ts +3 -3
  201. package/dist/types/components/edit-input/edit-input.d.ts +1 -1
  202. package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +6 -75
  203. package/dist/types/components/filter/variants.d.ts +1 -1
  204. package/dist/types/components/graph/graph-view.d.ts +1 -1
  205. package/dist/types/components/health-factor/health-factor.d.ts +2 -1
  206. package/dist/types/components/icons/index.d.ts +1 -1
  207. package/dist/types/components/index.d.ts +0 -6
  208. package/dist/types/components/input/input.d.ts +1 -1
  209. package/dist/types/components/layout/index.d.ts +0 -7
  210. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  211. package/dist/types/components/status-dot/status-dot.d.ts +1 -1
  212. package/dist/types/components/table/index.d.ts +0 -5
  213. package/dist/types/components/text-button/text-button.d.ts +1 -1
  214. package/dist/types/components/tip-card/tip-card.d.ts +2 -2
  215. package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
  216. package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +2 -2
  217. package/dist/types/components/with-title/with-title.d.ts +1 -1
  218. package/dist/types/hooks/index.d.ts +0 -1
  219. package/dist/types/index.d.ts +0 -6
  220. package/dist/types/locale/en.json.d.ts +30 -1
  221. package/dist/types/types/index.d.ts +0 -2
  222. package/package.json +3 -15
  223. package/dist/cjs/components/auth/connect-required.cjs +0 -1
  224. package/dist/cjs/components/auth/index.cjs +0 -1
  225. package/dist/cjs/components/auth/signin-required.cjs +0 -1
  226. package/dist/cjs/components/auth/wallet-ui-context.cjs +0 -1
  227. package/dist/cjs/components/block-sync/block-sync.cjs +0 -1
  228. package/dist/cjs/components/block-sync/index.cjs +0 -1
  229. package/dist/cjs/components/image/image.cjs +0 -1
  230. package/dist/cjs/components/image/index.cjs +0 -1
  231. package/dist/cjs/components/layout/app-logo/app-logo.cjs +0 -1
  232. package/dist/cjs/components/layout/app-logo/index.cjs +0 -1
  233. package/dist/cjs/components/layout/block/block.cjs +0 -1
  234. package/dist/cjs/components/layout/block/index.cjs +0 -1
  235. package/dist/cjs/components/layout/footer/footer.cjs +0 -1
  236. package/dist/cjs/components/layout/footer/index.cjs +0 -1
  237. package/dist/cjs/components/layout/header/header.cjs +0 -1
  238. package/dist/cjs/components/layout/header/index.cjs +0 -1
  239. package/dist/cjs/components/layout/legal-disclaimer/index.cjs +0 -1
  240. package/dist/cjs/components/layout/legal-disclaimer/legal-disclaimer.cjs +0 -1
  241. package/dist/cjs/components/layout/page-layout/index.cjs +0 -1
  242. package/dist/cjs/components/layout/page-layout/page-layout.cjs +0 -1
  243. package/dist/cjs/components/layout/social-icons/index.cjs +0 -1
  244. package/dist/cjs/components/layout/social-icons/social-icons.cjs +0 -1
  245. package/dist/cjs/components/navbar/index.cjs +0 -1
  246. package/dist/cjs/components/navbar/navbar-indicator-context.cjs +0 -1
  247. package/dist/cjs/components/navbar/navbar-with-overflow.cjs +0 -1
  248. package/dist/cjs/components/navbar/navbar.cjs +0 -1
  249. package/dist/cjs/components/navitem/index.cjs +0 -1
  250. package/dist/cjs/components/navitem/navitem.cjs +0 -1
  251. package/dist/cjs/components/page-title/index.cjs +0 -1
  252. package/dist/cjs/components/page-title/page-title.cjs +0 -1
  253. package/dist/cjs/components/pool-apy-tooltip/apy-tooltip.cjs +0 -1
  254. package/dist/cjs/components/pool-apy-tooltip/index.cjs +0 -1
  255. package/dist/cjs/components/table/edit-button.cjs +0 -1
  256. package/dist/cjs/components/table/editable-grid-table.cjs +0 -1
  257. package/dist/cjs/components/table/editable-table.cjs +0 -1
  258. package/dist/cjs/components/table/grid-table-loader.cjs +0 -1
  259. package/dist/cjs/components/table/updated-value.cjs +0 -1
  260. package/dist/cjs/hooks/use-liquidation/index.cjs +0 -1
  261. package/dist/cjs/hooks/use-liquidation/types.cjs +0 -1
  262. package/dist/cjs/hooks/use-liquidation/utils.cjs +0 -1
  263. package/dist/cjs/test-ids/base.cjs +0 -1
  264. package/dist/cjs/test-ids/index.cjs +0 -1
  265. package/dist/cjs/types/component-props.cjs +0 -1
  266. package/dist/cjs/types/help.cjs +0 -1
  267. package/dist/cjs/utils/reactochart-compat.cjs +0 -1
  268. package/dist/esm/components/auth/connect-required.js +0 -37
  269. package/dist/esm/components/auth/index.js +0 -9
  270. package/dist/esm/components/auth/signin-required.js +0 -55
  271. package/dist/esm/components/auth/wallet-ui-context.js +0 -13
  272. package/dist/esm/components/block-sync/block-sync.js +0 -208
  273. package/dist/esm/components/block-sync/index.js +0 -4
  274. package/dist/esm/components/image/image.js +0 -32
  275. package/dist/esm/components/image/index.js +0 -4
  276. package/dist/esm/components/layout/app-logo/app-logo.js +0 -99
  277. package/dist/esm/components/layout/app-logo/index.js +0 -5
  278. package/dist/esm/components/layout/block/block.js +0 -50
  279. package/dist/esm/components/layout/block/index.js +0 -4
  280. package/dist/esm/components/layout/footer/footer.js +0 -237
  281. package/dist/esm/components/layout/footer/index.js +0 -7
  282. package/dist/esm/components/layout/header/header.js +0 -93
  283. package/dist/esm/components/layout/header/index.js +0 -5
  284. package/dist/esm/components/layout/legal-disclaimer/index.js +0 -4
  285. package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +0 -46
  286. package/dist/esm/components/layout/page-layout/index.js +0 -4
  287. package/dist/esm/components/layout/page-layout/page-layout.js +0 -39
  288. package/dist/esm/components/layout/social-icons/index.js +0 -4
  289. package/dist/esm/components/layout/social-icons/social-icons.js +0 -61
  290. package/dist/esm/components/navbar/index.js +0 -11
  291. package/dist/esm/components/navbar/navbar-indicator-context.js +0 -46
  292. package/dist/esm/components/navbar/navbar-with-overflow.js +0 -181
  293. package/dist/esm/components/navbar/navbar.js +0 -99
  294. package/dist/esm/components/navitem/index.js +0 -5
  295. package/dist/esm/components/navitem/navitem.js +0 -124
  296. package/dist/esm/components/page-title/index.js +0 -6
  297. package/dist/esm/components/page-title/page-title.js +0 -120
  298. package/dist/esm/components/pool-apy-tooltip/apy-tooltip.js +0 -154
  299. package/dist/esm/components/pool-apy-tooltip/index.js +0 -4
  300. package/dist/esm/components/table/edit-button.js +0 -48
  301. package/dist/esm/components/table/editable-grid-table.js +0 -121
  302. package/dist/esm/components/table/editable-table.js +0 -108
  303. package/dist/esm/components/table/grid-table-loader.js +0 -22
  304. package/dist/esm/components/table/updated-value.js +0 -49
  305. package/dist/esm/hooks/use-liquidation/index.js +0 -138
  306. package/dist/esm/hooks/use-liquidation/types.js +0 -1
  307. package/dist/esm/hooks/use-liquidation/utils.js +0 -144
  308. package/dist/esm/test-ids/base.js +0 -44
  309. package/dist/esm/test-ids/index.js +0 -46
  310. package/dist/esm/types/component-props.js +0 -1
  311. package/dist/esm/types/help.js +0 -1
  312. package/dist/esm/utils/reactochart-compat.js +0 -18
  313. package/dist/types/components/auth/connect-required.d.ts +0 -32
  314. package/dist/types/components/auth/index.d.ts +0 -3
  315. package/dist/types/components/auth/signin-required.d.ts +0 -37
  316. package/dist/types/components/auth/wallet-ui-context.d.ts +0 -36
  317. package/dist/types/components/block-sync/block-sync.d.ts +0 -8
  318. package/dist/types/components/block-sync/index.d.ts +0 -1
  319. package/dist/types/components/image/image.d.ts +0 -35
  320. package/dist/types/components/image/index.d.ts +0 -1
  321. package/dist/types/components/layout/app-logo/app-logo.d.ts +0 -26
  322. package/dist/types/components/layout/app-logo/index.d.ts +0 -1
  323. package/dist/types/components/layout/block/block.d.ts +0 -23
  324. package/dist/types/components/layout/block/index.d.ts +0 -1
  325. package/dist/types/components/layout/footer/footer.d.ts +0 -53
  326. package/dist/types/components/layout/footer/index.d.ts +0 -1
  327. package/dist/types/components/layout/header/header.d.ts +0 -123
  328. package/dist/types/components/layout/header/index.d.ts +0 -1
  329. package/dist/types/components/layout/legal-disclaimer/index.d.ts +0 -1
  330. package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +0 -32
  331. package/dist/types/components/layout/page-layout/index.d.ts +0 -1
  332. package/dist/types/components/layout/page-layout/page-layout.d.ts +0 -41
  333. package/dist/types/components/layout/social-icons/index.d.ts +0 -1
  334. package/dist/types/components/layout/social-icons/social-icons.d.ts +0 -7
  335. package/dist/types/components/navbar/index.d.ts +0 -3
  336. package/dist/types/components/navbar/navbar-indicator-context.d.ts +0 -13
  337. package/dist/types/components/navbar/navbar-with-overflow.d.ts +0 -20
  338. package/dist/types/components/navbar/navbar.d.ts +0 -25
  339. package/dist/types/components/navitem/index.d.ts +0 -1
  340. package/dist/types/components/navitem/navitem.d.ts +0 -67
  341. package/dist/types/components/page-title/index.d.ts +0 -1
  342. package/dist/types/components/page-title/page-title.d.ts +0 -77
  343. package/dist/types/components/pool-apy-tooltip/apy-tooltip.d.ts +0 -20
  344. package/dist/types/components/pool-apy-tooltip/index.d.ts +0 -1
  345. package/dist/types/components/table/edit-button.d.ts +0 -51
  346. package/dist/types/components/table/editable-grid-table.d.ts +0 -120
  347. package/dist/types/components/table/editable-table.d.ts +0 -101
  348. package/dist/types/components/table/grid-table-loader.d.ts +0 -25
  349. package/dist/types/components/table/updated-value.d.ts +0 -34
  350. package/dist/types/hooks/use-liquidation/index.d.ts +0 -53
  351. package/dist/types/hooks/use-liquidation/types.d.ts +0 -16
  352. package/dist/types/hooks/use-liquidation/utils.d.ts +0 -71
  353. package/dist/types/test-ids/base.d.ts +0 -20
  354. package/dist/types/test-ids/index.d.ts +0 -9
  355. package/dist/types/types/component-props.d.ts +0 -16
  356. package/dist/types/types/help.d.ts +0 -4
  357. package/dist/types/types/reactochart.d.ts +0 -145
  358. package/dist/types/utils/reactochart-compat.d.ts +0 -12
  359. /package/dist/cjs/{test-ids/notification-center.cjs → components/composites/notification-center/constants.cjs} +0 -0
  360. /package/dist/esm/{test-ids/notification-center.js → components/composites/notification-center/constants.js} +0 -0
  361. /package/dist/types/{test-ids/notification-center.d.ts → components/composites/notification-center/constants.d.ts} +0 -0
@@ -1,32 +1,38 @@
1
- import { jsxs as a, Fragment as f, jsx as g } from "react/jsx-runtime";
2
- import { useIntlTyped as p } from "../../typed-intl/index.js";
3
- import { Typography as c } from "../../typography/typography.js";
4
- import { PageTitleTest as T } from "./constants.js";
5
- function o(e, t) {
6
- return typeof t == "string" ? t : e.formatMessage(t);
1
+ import { jsxs as c, Fragment as d, jsx as g } from "react/jsx-runtime";
2
+ import { useIntlTyped as T } from "../../typed-intl/index.js";
3
+ import { Typography as x } from "../../typography/typography.js";
4
+ import { PageTitleTest as a } from "./constants.js";
5
+ function r(t) {
6
+ return typeof t == "string" || !!t && typeof t == "object" && "messageId" in t;
7
7
  }
8
- function y({
9
- title: e,
10
- browserTitle: t,
11
- head: n,
12
- as: i = "h1",
13
- className: s
8
+ function i(t, o) {
9
+ return o === void 0 ? "" : typeof o == "string" ? o : t.formatMessage(o);
10
+ }
11
+ function j({
12
+ title: t,
13
+ browserTitle: o,
14
+ head: s,
15
+ as: m = "h1",
16
+ className: f
14
17
  }) {
15
- const r = p(), m = o(r, e), l = o(r, t ?? e);
16
- return /* @__PURE__ */ a(f, { children: [
17
- n?.(l),
18
+ const e = T(), p = r(t) ? i(e, t) : t, n = i(
19
+ e,
20
+ o ?? (r(t) ? t : void 0)
21
+ );
22
+ return /* @__PURE__ */ c(d, { children: [
23
+ n ? s?.(n) : null,
18
24
  /* @__PURE__ */ g(
19
- c,
25
+ x,
20
26
  {
21
- as: i,
22
- className: s ?? "m-0 text-3xl leading-none font-medium",
23
- "data-testid": T.root,
24
- children: m
27
+ as: m,
28
+ className: f ?? "m-0 text-3xl leading-none font-medium",
29
+ "data-testid": a.root,
30
+ children: p
25
31
  }
26
32
  )
27
33
  ] });
28
34
  }
29
35
  export {
30
- y as PageTitle,
31
- T as PageTitleTest
36
+ j as PageTitle,
37
+ a as PageTitleTest
32
38
  };
@@ -0,0 +1,7 @@
1
+ class a {
2
+ static root = "pool-apy-breakdown-card-root";
3
+ static value = "pool-apy-breakdown-card-value";
4
+ }
5
+ export {
6
+ a as PoolApyBreakdownCardTest
7
+ };
@@ -0,0 +1,6 @@
1
+ import { PoolApyBreakdownCardTest as e } from "./constants.js";
2
+ import { PoolApyBreakdownCard as d } from "./pool-apy-breakdown-card.js";
3
+ export {
4
+ d as PoolApyBreakdownCard,
5
+ e as PoolApyBreakdownCardTest
6
+ };
@@ -0,0 +1,65 @@
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import { FormattedMessageTyped as d } from "../../typed-intl/index.js";
3
+ import { VerticalIndicator as i } from "../../vertical-indicator/vertical-indicator.js";
4
+ import "react";
5
+ import "@gearbox-protocol/sdk";
6
+ import "clsx";
7
+ import "tailwind-merge";
8
+ import "sonner";
9
+ import { percentTemplate as m } from "../../../utils/format-money.js";
10
+ import "@gearbox-protocol/sdk/common-utils";
11
+ import "luxon";
12
+ import "../../../utils/z-index.js";
13
+ import { SideCard as n } from "../side-card/side-card.js";
14
+ import { PoolApyBreakdownCardTest as p } from "./constants.js";
15
+ function t({
16
+ title: r,
17
+ value: e
18
+ }) {
19
+ return /* @__PURE__ */ o(
20
+ i,
21
+ {
22
+ size: "sm",
23
+ label: /* @__PURE__ */ o(d, { messageId: r }),
24
+ value: /* @__PURE__ */ o("span", { "data-testid": p.value, children: e === void 0 ? "—" : m(e / 100) })
25
+ }
26
+ );
27
+ }
28
+ function T({
29
+ data: r
30
+ }) {
31
+ return /* @__PURE__ */ a(
32
+ n,
33
+ {
34
+ title: "components.poolApyBreakdownCard.title",
35
+ testId: p.root,
36
+ children: [
37
+ /* @__PURE__ */ o(
38
+ t,
39
+ {
40
+ title: "components.poolApyBreakdownCard.apy1d",
41
+ value: r?.apy1d
42
+ }
43
+ ),
44
+ /* @__PURE__ */ o(
45
+ t,
46
+ {
47
+ title: "components.poolApyBreakdownCard.apy7d",
48
+ value: r?.apy7d
49
+ }
50
+ ),
51
+ /* @__PURE__ */ o(
52
+ t,
53
+ {
54
+ title: "components.poolApyBreakdownCard.apy30d",
55
+ value: r?.apy30d
56
+ }
57
+ )
58
+ ]
59
+ }
60
+ );
61
+ }
62
+ export {
63
+ T as PoolApyBreakdownCard,
64
+ p as PoolApyBreakdownCardTest
65
+ };
@@ -0,0 +1,8 @@
1
+ class d {
2
+ static root = "side-card-root";
3
+ static title = "side-card-title";
4
+ static body = "side-card-body";
5
+ }
6
+ export {
7
+ d as SideCardTest
8
+ };
@@ -0,0 +1,6 @@
1
+ import { SideCardTest as d } from "./constants.js";
2
+ import { SideCard as t } from "./side-card.js";
3
+ export {
4
+ t as SideCard,
5
+ d as SideCardTest
6
+ };
@@ -0,0 +1,57 @@
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { useTitleText as l } from "../text/use-title-text.js";
3
+ import { Typography as p } from "../../typography/typography.js";
4
+ import "react";
5
+ import "@gearbox-protocol/sdk";
6
+ import { cn as n } 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 { SideCardTest as r } from "./constants.js";
12
+ function j({
13
+ title: o,
14
+ tip: i,
15
+ children: d,
16
+ className: a,
17
+ testId: m
18
+ }) {
19
+ const s = l();
20
+ return /* @__PURE__ */ t(
21
+ "div",
22
+ {
23
+ className: n(
24
+ "@container flex w-full flex-col gap-4 rounded-lg border border-border bg-card p-4 sm:p-6",
25
+ a
26
+ ),
27
+ "data-testid": m ?? r.root,
28
+ children: [
29
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-1.5", children: [
30
+ /* @__PURE__ */ e(
31
+ p,
32
+ {
33
+ as: "span",
34
+ variant: "body",
35
+ className: "m-0 text-base font-semibold leading-none text-card-foreground",
36
+ "data-testid": r.title,
37
+ children: s(o)
38
+ }
39
+ ),
40
+ i
41
+ ] }),
42
+ /* @__PURE__ */ e(
43
+ "div",
44
+ {
45
+ className: "grid grid-cols-1 gap-4 @[24rem]:grid-cols-2 @[40rem]:grid-cols-3",
46
+ "data-testid": r.body,
47
+ children: d
48
+ }
49
+ )
50
+ ]
51
+ }
52
+ );
53
+ }
54
+ export {
55
+ j as SideCard,
56
+ r as SideCardTest
57
+ };
@@ -0,0 +1,7 @@
1
+ class r {
2
+ static root = "strategy-apy-breakdown-card-root";
3
+ static row = "strategy-apy-breakdown-card-row";
4
+ }
5
+ export {
6
+ r as StrategyApyBreakdownCardTest
7
+ };
@@ -0,0 +1,6 @@
1
+ import { StrategyApyBreakdownCardTest as t } from "./constants.js";
2
+ import { StrategyApyBreakdownCard as o } from "./strategy-apy-breakdown-card.js";
3
+ export {
4
+ o as StrategyApyBreakdownCard,
5
+ t as StrategyApyBreakdownCardTest
6
+ };
@@ -0,0 +1,51 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { HelpTip as m } from "../../help-tip/help-tip.js";
3
+ import { FormattedMessageTyped as a } from "../../typed-intl/index.js";
4
+ import { VerticalIndicator as n } from "../../vertical-indicator/vertical-indicator.js";
5
+ import { SideCard as l } from "../side-card/side-card.js";
6
+ import "react";
7
+ import "@gearbox-protocol/sdk";
8
+ import "clsx";
9
+ import "tailwind-merge";
10
+ import "sonner";
11
+ import "@gearbox-protocol/sdk/common-utils";
12
+ import "luxon";
13
+ import "../../../utils/z-index.js";
14
+ import { ApyValue as o } from "../values/scalars.js";
15
+ import "../../badge/badge.js";
16
+ import { StrategyApyBreakdownCardTest as i } from "./constants.js";
17
+ function e({
18
+ title: t,
19
+ children: p
20
+ }) {
21
+ return /* @__PURE__ */ r(
22
+ n,
23
+ {
24
+ size: "sm",
25
+ "data-testid": i.row,
26
+ label: /* @__PURE__ */ r(a, { messageId: t }),
27
+ value: p
28
+ }
29
+ );
30
+ }
31
+ function R({
32
+ data: t
33
+ }) {
34
+ return /* @__PURE__ */ d(
35
+ l,
36
+ {
37
+ title: "components.strategyApyBreakdownCard.title",
38
+ testId: i.root,
39
+ tip: /* @__PURE__ */ r(m, { iconSize: 14, placement: "top", children: /* @__PURE__ */ r(a, { messageId: "components.strategyApyBreakdownCard.formula" }) }),
40
+ children: [
41
+ /* @__PURE__ */ r(e, { title: "components.strategyApyBreakdownCard.collateralApy", children: /* @__PURE__ */ r(o, { data: t.collateralApy }) }),
42
+ /* @__PURE__ */ r(e, { title: "components.strategyApyBreakdownCard.baseBorrowRate", children: /* @__PURE__ */ r(o, { data: t.borrowApy }) }),
43
+ /* @__PURE__ */ r(e, { title: "components.strategyApyBreakdownCard.additionalBorrowRate", children: /* @__PURE__ */ r(o, { data: t.additionalBorrowApy }) })
44
+ ]
45
+ }
46
+ );
47
+ }
48
+ export {
49
+ R as StrategyApyBreakdownCard,
50
+ i as StrategyApyBreakdownCardTest
51
+ };
@@ -1,116 +1,124 @@
1
- import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
- import { createContext as j, useContext as k, useMemo as p, Children as I, useRef as b, useEffect as O, isValidElement as w } from "react";
3
- import { SectionHeading as A } from "../section-heading/section-heading.js";
4
- import { Stack as h } from "../stack/stack.js";
5
- import { StickyBar as B } from "../sticky-bar/sticky-bar.js";
6
- import { useTitleText as v } from "../text/use-title-text.js";
7
- import { TabItem as E, TabControl as H } from "../../tab-control/tab-control.js";
8
- import { TabberTest as x } from "./constants.js";
9
- import { useDetailScrollSpy as q } from "./use-detail-scroll-spy.js";
10
- const C = j({});
11
- function N({
1
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
2
+ import { createContext as O, useContext as E, useMemo as x, Children as B, useRef as T, useEffect as q, isValidElement as N } from "react";
3
+ import { SectionHeading as D } from "../section-heading/section-heading.js";
4
+ import { Stack as f } from "../stack/stack.js";
5
+ import { StickyBar as F } from "../sticky-bar/sticky-bar.js";
6
+ import { useTitleText as R } from "../text/use-title-text.js";
7
+ import { TabItem as M, TabControl as P } from "../../tab-control/tab-control.js";
8
+ import { TabberTest as S } from "./constants.js";
9
+ import { useDetailScrollSpy as V } from "./use-detail-scroll-spy.js";
10
+ const j = O({});
11
+ function k({
12
12
  id: e,
13
- title: r,
14
- heading: s = r,
15
- actions: d,
16
- children: c
13
+ title: o,
14
+ heading: c = o,
15
+ actions: a,
16
+ children: m,
17
+ hideHeading: l = !1
17
18
  }) {
18
- const i = k(C), n = v();
19
- return /* @__PURE__ */ o(
19
+ const i = E(j), n = R(), s = !l;
20
+ return /* @__PURE__ */ r(
20
21
  "section",
21
22
  {
22
23
  ref: i[e],
23
24
  className: "scroll-mt-28",
24
25
  "data-scroll-section": e,
25
- "data-testid": x.section,
26
- children: /* @__PURE__ */ l(h, { gap: "md", children: [
27
- /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3", children: [
28
- /* @__PURE__ */ o(A, { children: n(s) }),
29
- d
30
- ] }),
31
- c
26
+ "data-testid": S.section,
27
+ children: /* @__PURE__ */ u(f, { gap: "md", children: [
28
+ s || a ? /* @__PURE__ */ u("div", { className: "flex items-center justify-between gap-3", children: [
29
+ s ? /* @__PURE__ */ r(D, { children: n(c) }) : /* @__PURE__ */ r("span", {}),
30
+ a
31
+ ] }) : null,
32
+ m
32
33
  ] })
33
34
  }
34
35
  );
35
36
  }
36
- N.displayName = "TabberSection";
37
- function D(e) {
38
- return w(e) && e.type === N;
37
+ k.displayName = "TabberSection";
38
+ function g(e) {
39
+ return N(e) && e.type === k;
39
40
  }
40
- function F({
41
+ function W({
41
42
  item: e,
42
- ...r
43
+ ...o
43
44
  }) {
44
- return /* @__PURE__ */ l("div", { className: "flex items-stretch overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:h-0 [scrollbar-width:none]", children: [
45
- /* @__PURE__ */ o("div", { className: "min-w-0 basis-0 grow pb-px", children: /* @__PURE__ */ o(H, { ...r, showBorder: !0 }) }),
46
- e && /* @__PURE__ */ o("div", { className: "w-auto shrink-0 grow-0 basis-auto", children: e })
45
+ return /* @__PURE__ */ u("div", { className: "flex items-stretch overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:h-0 [scrollbar-width:none]", children: [
46
+ /* @__PURE__ */ r("div", { className: "min-w-0 basis-0 grow pb-px", children: /* @__PURE__ */ r(P, { ...o, showBorder: !0 }) }),
47
+ e && /* @__PURE__ */ r("div", { className: "w-auto shrink-0 grow-0 basis-auto", children: e })
47
48
  ] });
48
49
  }
49
- function M({
50
+ function z({
50
51
  children: e,
51
- observeKey: r,
52
- initialSection: s,
53
- testId: d
52
+ observeKey: o,
53
+ initialSection: c,
54
+ testId: a,
55
+ mobileManagePane: m
54
56
  }) {
55
- const c = p(
56
- () => I.toArray(e).filter(D),
57
+ const l = x(
58
+ () => B.toArray(e).filter(g),
57
59
  [e]
58
- ), i = c.map((t) => t.props.id).join("|"), n = p(
60
+ ), i = l.map((t) => t.props.id).join("|"), n = x(
59
61
  () => i === "" ? [] : i.split("|"),
60
62
  [i]
61
- ), T = b({}), a = p(() => {
63
+ ), s = T({}), d = x(() => {
62
64
  const t = {
63
- ...T.current
65
+ ...s.current
64
66
  };
65
- for (const g of n)
66
- t[g] === void 0 && (t[g] = { current: null });
67
- return T.current = t, t;
68
- }, [n]), y = v(), { activeSection: f, scrollToSection: u } = q(
69
- a,
67
+ for (const y of n)
68
+ t[y] === void 0 && (t[y] = { current: null });
69
+ return s.current = t, t;
70
+ }, [n]), A = R(), { activeSection: p, scrollToSection: b } = V(
71
+ d,
70
72
  n,
71
- r
72
- ), m = b(!1), S = b(r);
73
- O(() => {
74
- if (r !== S.current && (S.current = r, m.current = !1), m.current || !r) return;
75
- const t = s ?? n[0];
76
- m.current = !0, !(t === void 0 || t === n[0]) && a[t] !== void 0 && requestAnimationFrame(() => {
77
- u(t);
73
+ o
74
+ ), h = T(!1), w = T(o);
75
+ q(() => {
76
+ if (o !== w.current && (w.current = o, h.current = !1), h.current || !o) return;
77
+ const t = c ?? n[0];
78
+ h.current = !0, !(t === void 0 || t === n[0]) && d[t] !== void 0 && requestAnimationFrame(() => {
79
+ b(t);
78
80
  });
79
- }, [r, s, u, n, a]);
80
- const R = c.map((t) => ({
81
+ }, [o, c, b, n, d]);
82
+ const I = l.map((t) => ({
81
83
  id: t.props.id,
82
- item: /* @__PURE__ */ o(
83
- E,
84
+ item: /* @__PURE__ */ r(
85
+ M,
84
86
  {
85
- selected: f === t.props.id,
86
- label: y(t.props.title)
87
+ selected: p === t.props.id,
88
+ label: A(t.props.title)
87
89
  }
88
90
  )
89
- }));
90
- return /* @__PURE__ */ l(h, { gap: "lg", "data-testid": d ?? x.root, children: [
91
- /* @__PURE__ */ o(B, { testId: x.bar, children: /* @__PURE__ */ o(
92
- F,
91
+ })), C = B.toArray(e), v = C.filter(
92
+ (t) => g(t) && t.props.beforeBar === !0
93
+ ), H = C.filter(
94
+ (t) => !(g(t) && t.props.beforeBar === !0)
95
+ );
96
+ return /* @__PURE__ */ r(f, { gap: "lg", "data-testid": a ?? S.root, children: /* @__PURE__ */ u(j.Provider, { value: d, children: [
97
+ v.length > 0 ? /* @__PURE__ */ r(f, { gap: "xl", children: v }) : null,
98
+ m,
99
+ /* @__PURE__ */ r(F, { testId: S.bar, children: /* @__PURE__ */ r(
100
+ W,
93
101
  {
94
102
  state: {
95
- id: f,
96
- index: n.indexOf(f),
103
+ id: p,
104
+ index: n.indexOf(p),
97
105
  handleTabChange: (t) => {
98
- u(t);
106
+ b(t);
99
107
  }
100
108
  },
101
- tabs: R,
109
+ tabs: I,
102
110
  item: null
103
111
  }
104
112
  ) }),
105
- /* @__PURE__ */ o(C.Provider, { value: a, children: /* @__PURE__ */ o(h, { gap: "xl", children: e }) })
106
- ] });
113
+ /* @__PURE__ */ r(f, { gap: "xl", children: H })
114
+ ] }) });
107
115
  }
108
- function X(e) {
109
- return w(e) && e.type === M;
116
+ function $(e) {
117
+ return N(e) && e.type === z;
110
118
  }
111
119
  export {
112
- M as Tabber,
113
- N as TabberSection,
114
- x as TabberTest,
115
- X as isTabber
120
+ z as Tabber,
121
+ k as TabberSection,
122
+ S as TabberTest,
123
+ $ as isTabber
116
124
  };
@@ -0,0 +1,8 @@
1
+ class e {
2
+ static root = "title-meta-root";
3
+ static network = "title-meta-network";
4
+ static curator = "title-meta-curator";
5
+ }
6
+ export {
7
+ e as TitleMetaTest
8
+ };
@@ -0,0 +1,6 @@
1
+ import { TitleMetaTest as o } from "./constants.js";
2
+ import { TitleMeta as T } from "./title-meta.js";
3
+ export {
4
+ T as TitleMeta,
5
+ o as TitleMetaTest
6
+ };
@@ -0,0 +1,68 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { Link as p } from "../../link/link.js";
3
+ import { NetworkIcon as g } from "../../network-icon/network-icon.js";
4
+ import { FormattedMessageTyped as f } from "../../typed-intl/index.js";
5
+ import { Typography as r } from "../../typography/typography.js";
6
+ import { Stack as o } from "../stack/stack.js";
7
+ import { TitleMetaTest as s } from "./constants.js";
8
+ function N({
9
+ network: a,
10
+ curatorName: e,
11
+ curatorLink: n,
12
+ onCuratorLinkClick: m,
13
+ testId: d = s.root,
14
+ networkTestId: c = s.network,
15
+ curatorTestId: l = s.curator
16
+ }) {
17
+ return /* @__PURE__ */ i(
18
+ o,
19
+ {
20
+ direction: "row",
21
+ align: "center",
22
+ gap: "md",
23
+ wrap: !0,
24
+ className: "text-sm text-foreground",
25
+ "data-testid": d,
26
+ children: [
27
+ /* @__PURE__ */ i(
28
+ o,
29
+ {
30
+ direction: "row",
31
+ align: "center",
32
+ gap: "sm",
33
+ "data-testid": c,
34
+ children: [
35
+ /* @__PURE__ */ t(g, { network: a, size: 16 }),
36
+ /* @__PURE__ */ t(r, { as: "span", className: "text-sm text-foreground", children: a })
37
+ ]
38
+ }
39
+ ),
40
+ e ? /* @__PURE__ */ t(
41
+ o,
42
+ {
43
+ direction: "row",
44
+ align: "center",
45
+ gap: "sm",
46
+ "data-testid": l,
47
+ children: n ? /* @__PURE__ */ t(
48
+ p,
49
+ {
50
+ className: "text-sm text-foreground",
51
+ href: n,
52
+ external: !0,
53
+ target: "_blank",
54
+ size: "sm",
55
+ onClick: m,
56
+ children: e
57
+ }
58
+ ) : /* @__PURE__ */ t(r, { as: "span", className: "text-sm text-foreground", children: e })
59
+ }
60
+ ) : /* @__PURE__ */ t(r, { as: "span", className: "text-sm text-foreground", children: /* @__PURE__ */ t(f, { messageId: "components.titleMeta.unknownCurator" }) })
61
+ ]
62
+ }
63
+ );
64
+ }
65
+ export {
66
+ N as TitleMeta,
67
+ s as TitleMetaTest
68
+ };
@@ -1,29 +1,29 @@
1
- import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
- import { Stack as i } from "../stack/stack.js";
3
- import { TokenTemplate as m } from "../../token-template/token-template.js";
1
+ import { jsx as n, jsxs as i } from "react/jsx-runtime";
2
+ import { Stack as m } from "../stack/stack.js";
3
+ import { TokenTemplate as a } from "../../token-template/token-template.js";
4
4
  import { Typography as s } from "../../typography/typography.js";
5
5
  import { formatMoney as l } from "../../../utils/format-money.js";
6
- import { TokenAmountTest as t } from "./constants.js";
6
+ import { TokenAmountTest as r } from "./constants.js";
7
7
  function T({
8
8
  data: o,
9
- token: n
9
+ token: e
10
10
  }) {
11
11
  if (o === null)
12
- return /* @__PURE__ */ r(
12
+ return /* @__PURE__ */ n(
13
13
  "span",
14
14
  {
15
15
  className: "text-secondary-foreground",
16
- "data-testid": t.root,
16
+ "data-testid": r.root,
17
17
  children: "—"
18
18
  }
19
19
  );
20
- const e = n ?? o.token;
21
- return /* @__PURE__ */ a(i, { gap: "xs", align: "start", "data-testid": t.root, children: [
22
- /* @__PURE__ */ r(m, { value: o.value, token: e }),
23
- /* @__PURE__ */ r(s, { as: "span", variant: "caption", color: "secondary", children: o.valueUsd === null ? "—" : l(o.valueUsd) })
20
+ const t = e ?? o.token;
21
+ return /* @__PURE__ */ i(m, { gap: "xs", align: "end", "data-testid": r.root, children: [
22
+ /* @__PURE__ */ n(a, { value: o.value, token: t }),
23
+ /* @__PURE__ */ n(s, { as: "span", variant: "caption", color: "secondary", children: o.valueUsd === null ? "—" : l(o.valueUsd) })
24
24
  ] });
25
25
  }
26
26
  export {
27
27
  T as TokenAmount,
28
- t as TokenAmountTest
28
+ r as TokenAmountTest
29
29
  };
@@ -0,0 +1,6 @@
1
+ class t {
2
+ static root = "token-pair-symbol-root";
3
+ }
4
+ export {
5
+ t as TokenPairSymbolTest
6
+ };
@@ -0,0 +1,6 @@
1
+ import { TokenPairSymbolTest as e } from "./constants.js";
2
+ import { TokenPairSymbol as t } from "./token-pair-symbol.js";
3
+ export {
4
+ t as TokenPairSymbol,
5
+ e as TokenPairSymbolTest
6
+ };