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

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 (539) hide show
  1. package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
  2. package/dist/cjs/components/badge/badge.cjs +1 -1
  3. package/dist/cjs/components/badge/chip.cjs +1 -0
  4. package/dist/cjs/components/badge/index.cjs +1 -1
  5. package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
  6. package/dist/cjs/components/base/amount-input/constants.cjs +1 -1
  7. package/dist/cjs/components/base/amount-input/index.cjs +1 -1
  8. package/dist/cjs/components/base/amount-input/token-button.cjs +1 -1
  9. package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -0
  10. package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -0
  11. package/dist/cjs/components/base/borrow-rate-block/constants.cjs +1 -0
  12. package/dist/cjs/components/base/borrow-rate-block/index.cjs +1 -0
  13. package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -0
  14. package/dist/cjs/components/base/chart-with-side-card/constants.cjs +1 -0
  15. package/dist/cjs/components/base/chart-with-side-card/index.cjs +1 -0
  16. package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
  17. package/dist/cjs/components/base/details-view/details-view.cjs +1 -1
  18. package/dist/cjs/components/base/health-factor-block/health-factor-block.cjs +1 -1
  19. package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
  20. package/dist/cjs/components/base/index.cjs +1 -1
  21. package/dist/cjs/components/base/info-list/constants.cjs +1 -1
  22. package/dist/cjs/components/base/info-list/index.cjs +1 -1
  23. package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
  24. package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
  25. package/dist/cjs/components/base/leverage-preset-chips/constants.cjs +1 -0
  26. package/dist/cjs/components/base/leverage-preset-chips/index.cjs +1 -0
  27. package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -0
  28. package/dist/cjs/components/base/liquidation-params-table/constants.cjs +1 -0
  29. package/dist/cjs/components/base/liquidation-params-table/index.cjs +1 -0
  30. package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -0
  31. package/dist/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
  32. package/dist/cjs/components/base/manage-pane/constants.cjs +1 -1
  33. package/dist/cjs/components/base/manage-pane/index.cjs +1 -1
  34. package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
  35. package/dist/cjs/components/base/more-accordion/constants.cjs +1 -0
  36. package/dist/cjs/components/base/more-accordion/index.cjs +1 -0
  37. package/dist/cjs/components/base/more-accordion/more-accordion.cjs +1 -0
  38. package/dist/cjs/components/base/nested-info-stack/constants.cjs +1 -0
  39. package/dist/cjs/components/base/nested-info-stack/index.cjs +1 -0
  40. package/dist/cjs/components/base/nested-info-stack/nested-info-stack.cjs +1 -0
  41. package/dist/cjs/components/base/page-title/index.cjs +1 -1
  42. package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
  43. package/dist/cjs/components/base/pool-apy-breakdown-card/constants.cjs +1 -0
  44. package/dist/cjs/components/base/pool-apy-breakdown-card/index.cjs +1 -0
  45. package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -0
  46. package/dist/cjs/components/base/side-card/constants.cjs +1 -0
  47. package/dist/cjs/components/base/side-card/index.cjs +1 -0
  48. package/dist/cjs/components/base/side-card/side-card.cjs +1 -0
  49. package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
  50. package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -0
  51. package/dist/cjs/components/base/strategy-apy-breakdown-card/index.cjs +1 -0
  52. package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -0
  53. package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
  54. package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
  55. package/dist/cjs/components/base/title-meta/constants.cjs +1 -0
  56. package/dist/cjs/components/base/title-meta/index.cjs +1 -0
  57. package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -0
  58. package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
  59. package/dist/cjs/components/base/token-pair-symbol/constants.cjs +1 -0
  60. package/dist/cjs/components/base/token-pair-symbol/index.cjs +1 -0
  61. package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -0
  62. package/dist/cjs/components/base/token-pair-title/constants.cjs +1 -0
  63. package/dist/cjs/components/base/token-pair-title/index.cjs +1 -0
  64. package/dist/cjs/components/base/token-pair-title/token-pair-title.cjs +1 -0
  65. package/dist/cjs/components/base/values/constants.cjs +1 -1
  66. package/dist/cjs/components/base/values/index.cjs +1 -1
  67. package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
  68. package/dist/cjs/components/base/values/points-value.cjs +1 -0
  69. package/dist/cjs/components/base/values/position-status-badge.cjs +1 -0
  70. package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
  71. package/dist/cjs/components/base/values/scalars.cjs +1 -1
  72. package/dist/cjs/components/base-table/base-table-line.cjs +1 -0
  73. package/dist/cjs/components/base-table/base-table.cjs +1 -0
  74. package/dist/cjs/components/base-table/constants.cjs +1 -0
  75. package/dist/cjs/components/base-table/index.cjs +1 -0
  76. package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -1
  77. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  78. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  79. package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -0
  80. package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -0
  81. package/dist/cjs/components/collateral-allocation-tooltip/constants.cjs +1 -0
  82. package/dist/cjs/components/collateral-allocation-tooltip/index.cjs +1 -0
  83. package/dist/cjs/components/composites/index.cjs +1 -1
  84. package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
  85. package/dist/cjs/components/composites/pool-assets-table/constants.cjs +1 -0
  86. package/dist/cjs/components/composites/pool-assets-table/index.cjs +1 -1
  87. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
  88. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
  89. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
  90. package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
  91. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
  92. package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -1
  93. package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
  94. package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
  95. package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
  96. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  97. package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
  98. package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
  99. package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -1
  100. package/dist/cjs/components/filter/filter-chip.cjs +1 -1
  101. package/dist/cjs/components/graph/default-config.cjs +1 -1
  102. package/dist/cjs/components/graph/formatters.cjs +1 -1
  103. package/dist/cjs/components/graph/graph-view.cjs +1 -1
  104. package/dist/cjs/components/graph/graph.cjs +1 -1
  105. package/dist/cjs/components/hf-indicator/hf-indicator.cjs +1 -0
  106. package/dist/cjs/components/hf-indicator/index.cjs +1 -0
  107. package/dist/cjs/components/icons/index.cjs +1 -1
  108. package/dist/cjs/components/index.cjs +1 -1
  109. package/dist/cjs/components/infinite-scroll/index.cjs +1 -0
  110. package/dist/cjs/components/infinite-scroll/infinite-scroll-wrapper.cjs +1 -0
  111. package/dist/cjs/components/layout/index.cjs +1 -1
  112. package/dist/cjs/components/modal/modal.cjs +1 -1
  113. package/dist/cjs/components/name-cell/index.cjs +1 -0
  114. package/dist/cjs/components/name-cell/name-cell.cjs +1 -0
  115. package/dist/cjs/components/network-icon/index.cjs +1 -1
  116. package/dist/cjs/components/network-icon/network-indicator.cjs +1 -0
  117. package/dist/cjs/components/table/index.cjs +1 -1
  118. package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
  119. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  120. package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
  121. package/dist/cjs/configs/tailwind-preset.cjs +1 -1
  122. package/dist/cjs/hooks/index.cjs +1 -1
  123. package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
  124. package/dist/cjs/hooks/use-observed-width-key.cjs +1 -0
  125. package/dist/cjs/index.cjs +1 -1
  126. package/dist/cjs/locale/en.json.cjs +1 -1
  127. package/dist/cjs/utils/format-leverage.cjs +1 -0
  128. package/dist/cjs/utils/format-money.cjs +1 -1
  129. package/dist/cjs/utils/index.cjs +1 -1
  130. package/dist/cjs/utils/leverage-presets.cjs +1 -0
  131. package/dist/esm/components/assets-list-cell/assets-list-cell.js +161 -159
  132. package/dist/esm/components/badge/badge.js +14 -8
  133. package/dist/esm/components/badge/chip.js +47 -0
  134. package/dist/esm/components/badge/index.js +8 -3
  135. package/dist/esm/components/base/amount-input/amount-input.js +179 -147
  136. package/dist/esm/components/base/amount-input/constants.js +2 -0
  137. package/dist/esm/components/base/amount-input/index.js +5 -3
  138. package/dist/esm/components/base/amount-input/token-button.js +65 -35
  139. package/dist/esm/components/base/amount-input/token-select-panel.js +85 -0
  140. package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +90 -0
  141. package/dist/esm/components/base/borrow-rate-block/constants.js +8 -0
  142. package/dist/esm/components/base/borrow-rate-block/index.js +6 -0
  143. package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +36 -0
  144. package/dist/esm/components/base/chart-with-side-card/constants.js +8 -0
  145. package/dist/esm/components/base/chart-with-side-card/index.js +6 -0
  146. package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +26 -27
  147. package/dist/esm/components/base/details-view/details-view.js +37 -32
  148. package/dist/esm/components/base/health-factor-block/health-factor-block.js +25 -25
  149. package/dist/esm/components/base/history-chart/history-chart.js +85 -41
  150. package/dist/esm/components/base/index.js +175 -116
  151. package/dist/esm/components/base/info-list/constants.js +1 -0
  152. package/dist/esm/components/base/info-list/index.js +4 -2
  153. package/dist/esm/components/base/info-list/info-list.js +66 -21
  154. package/dist/esm/components/base/leverage-input/leverage-input.js +54 -53
  155. package/dist/esm/components/base/leverage-preset-chips/constants.js +7 -0
  156. package/dist/esm/components/base/leverage-preset-chips/index.js +6 -0
  157. package/dist/esm/components/base/leverage-preset-chips/leverage-preset-chips.js +39 -0
  158. package/dist/esm/components/base/liquidation-params-table/constants.js +6 -0
  159. package/dist/esm/components/base/liquidation-params-table/index.js +6 -0
  160. package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +62 -0
  161. package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +33 -28
  162. package/dist/esm/components/base/manage-pane/constants.js +3 -2
  163. package/dist/esm/components/base/manage-pane/index.js +7 -6
  164. package/dist/esm/components/base/manage-pane/manage-pane.js +162 -100
  165. package/dist/esm/components/base/more-accordion/constants.js +7 -0
  166. package/dist/esm/components/base/more-accordion/index.js +6 -0
  167. package/dist/esm/components/base/more-accordion/more-accordion.js +51 -0
  168. package/dist/esm/components/base/nested-info-stack/constants.js +6 -0
  169. package/dist/esm/components/base/nested-info-stack/index.js +6 -0
  170. package/dist/esm/components/base/nested-info-stack/nested-info-stack.js +20 -0
  171. package/dist/esm/components/base/page-title/index.js +5 -4
  172. package/dist/esm/components/base/page-title/page-title.js +37 -23
  173. package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +7 -0
  174. package/dist/esm/components/base/pool-apy-breakdown-card/index.js +6 -0
  175. package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +58 -0
  176. package/dist/esm/components/base/side-card/constants.js +8 -0
  177. package/dist/esm/components/base/side-card/index.js +6 -0
  178. package/dist/esm/components/base/side-card/side-card.js +57 -0
  179. package/dist/esm/components/base/stat-badge/stat-badge.js +18 -9
  180. package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +8 -0
  181. package/dist/esm/components/base/strategy-apy-breakdown-card/index.js +6 -0
  182. package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +214 -0
  183. package/dist/esm/components/base/tabber/tabber.js +83 -75
  184. package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +31 -31
  185. package/dist/esm/components/base/title-meta/constants.js +9 -0
  186. package/dist/esm/components/base/title-meta/index.js +6 -0
  187. package/dist/esm/components/base/title-meta/title-meta.js +88 -0
  188. package/dist/esm/components/base/token-amount/token-amount.js +13 -12
  189. package/dist/esm/components/base/token-pair-symbol/constants.js +6 -0
  190. package/dist/esm/components/base/token-pair-symbol/index.js +6 -0
  191. package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +33 -0
  192. package/dist/esm/components/base/token-pair-title/constants.js +6 -0
  193. package/dist/esm/components/base/token-pair-title/index.js +6 -0
  194. package/dist/esm/components/base/token-pair-title/token-pair-title.js +20 -0
  195. package/dist/esm/components/base/values/constants.js +1 -0
  196. package/dist/esm/components/base/values/index.js +18 -13
  197. package/dist/esm/components/base/values/pnl-value.js +8 -8
  198. package/dist/esm/components/base/values/points-value.js +30 -0
  199. package/dist/esm/components/base/values/position-status-badge.js +26 -0
  200. package/dist/esm/components/base/values/position-type-badge.js +7 -6
  201. package/dist/esm/components/base/values/scalars.js +29 -27
  202. package/dist/esm/components/base-table/base-table-line.js +117 -0
  203. package/dist/esm/components/base-table/base-table.js +110 -0
  204. package/dist/esm/components/base-table/constants.js +12 -0
  205. package/dist/esm/components/base-table/index.js +9 -0
  206. package/dist/esm/components/block-sync-pill/block-sync-pill.js +37 -43
  207. package/dist/esm/components/checkbox/checkbox-labeled.js +34 -40
  208. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +33 -39
  209. package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +71 -0
  210. package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +102 -0
  211. package/dist/esm/components/collateral-allocation-tooltip/constants.js +12 -0
  212. package/dist/esm/components/collateral-allocation-tooltip/index.js +9 -0
  213. package/dist/esm/components/composites/index.js +31 -31
  214. package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
  215. package/dist/esm/components/composites/pool-assets-table/constants.js +9 -0
  216. package/dist/esm/components/composites/pool-assets-table/index.js +8 -6
  217. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +52 -31
  218. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +111 -77
  219. package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -27
  220. package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +50 -39
  221. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +114 -59
  222. package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +10 -7
  223. package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +8 -10
  224. package/dist/esm/components/composites/tx-preview/confirm/index.js +24 -26
  225. package/dist/esm/components/composites/tx-preview/index.js +24 -26
  226. package/dist/esm/components/compound-apy/compound-apy.js +85 -80
  227. package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +50 -41
  228. package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +1 -83
  229. package/dist/esm/components/explorer-links-dropdown/index.js +1 -4
  230. package/dist/esm/components/filter/filter-chip.js +1 -0
  231. package/dist/esm/components/graph/default-config.js +20 -18
  232. package/dist/esm/components/graph/formatters.js +62 -52
  233. package/dist/esm/components/graph/graph-view.js +85 -101
  234. package/dist/esm/components/graph/graph.js +492 -490
  235. package/dist/esm/components/hf-indicator/hf-indicator.js +33 -0
  236. package/dist/esm/components/hf-indicator/index.js +4 -0
  237. package/dist/esm/components/icons/index.js +29 -28
  238. package/dist/esm/components/index.js +737 -712
  239. package/dist/esm/components/infinite-scroll/index.js +4 -0
  240. package/dist/esm/components/infinite-scroll/infinite-scroll-wrapper.js +30 -0
  241. package/dist/esm/components/layout/index.js +14 -33
  242. package/dist/esm/components/modal/modal.js +1 -1
  243. package/dist/esm/components/name-cell/index.js +4 -0
  244. package/dist/esm/components/name-cell/name-cell.js +35 -0
  245. package/dist/esm/components/network-icon/index.js +4 -2
  246. package/dist/esm/components/network-icon/network-indicator.js +82 -0
  247. package/dist/esm/components/table/index.js +38 -52
  248. package/dist/esm/components/trading-view/trading-view.js +193 -155
  249. package/dist/esm/components/with-copy/with-copy.js +34 -40
  250. package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +112 -169
  251. package/dist/esm/configs/tailwind-preset.js +13 -1
  252. package/dist/esm/hooks/index.js +32 -55
  253. package/dist/esm/hooks/use-debounce-call.js +2 -3
  254. package/dist/esm/hooks/use-observed-width-key.js +24 -0
  255. package/dist/esm/index.js +909 -900
  256. package/dist/esm/locale/en.json.js +40 -11
  257. package/dist/esm/utils/format-leverage.js +6 -0
  258. package/dist/esm/utils/format-money.js +59 -41
  259. package/dist/esm/utils/index.js +91 -85
  260. package/dist/esm/utils/leverage-presets.js +13 -0
  261. package/dist/globals.css +1 -1
  262. package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +3 -0
  263. package/dist/types/components/badge/badge.d.ts +2 -1
  264. package/dist/types/components/badge/chip.d.ts +22 -0
  265. package/dist/types/components/badge/index.d.ts +1 -0
  266. package/dist/types/components/base/amount-input/amount-input.d.ts +13 -2
  267. package/dist/types/components/base/amount-input/constants.d.ts +2 -0
  268. package/dist/types/components/base/amount-input/index.d.ts +1 -0
  269. package/dist/types/components/base/amount-input/token-button.d.ts +14 -2
  270. package/dist/types/components/base/amount-input/token-select-panel.d.ts +17 -0
  271. package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +21 -0
  272. package/dist/types/components/base/borrow-rate-block/constants.d.ts +5 -0
  273. package/dist/types/components/base/borrow-rate-block/index.d.ts +2 -0
  274. package/dist/types/components/base/chart-with-side-card/chart-with-side-card.d.ts +13 -0
  275. package/dist/types/components/base/chart-with-side-card/constants.d.ts +5 -0
  276. package/dist/types/components/base/chart-with-side-card/index.d.ts +2 -0
  277. package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +3 -4
  278. package/dist/types/components/base/health-factor-block/health-factor-block.d.ts +6 -6
  279. package/dist/types/components/base/history-chart/history-chart.d.ts +20 -3
  280. package/dist/types/components/base/index.d.ts +12 -0
  281. package/dist/types/components/base/info-list/constants.d.ts +1 -0
  282. package/dist/types/components/base/info-list/info-list.d.ts +15 -1
  283. package/dist/types/components/base/leverage-input/leverage-input.d.ts +2 -2
  284. package/dist/types/components/base/leverage-preset-chips/constants.d.ts +4 -0
  285. package/dist/types/components/base/leverage-preset-chips/index.d.ts +2 -0
  286. package/dist/types/components/base/leverage-preset-chips/leverage-preset-chips.d.ts +13 -0
  287. package/dist/types/components/base/liquidation-params-table/constants.d.ts +3 -0
  288. package/dist/types/components/base/liquidation-params-table/index.d.ts +2 -0
  289. package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +12 -0
  290. package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +6 -4
  291. package/dist/types/components/base/manage-pane/constants.d.ts +1 -0
  292. package/dist/types/components/base/manage-pane/manage-pane.d.ts +9 -0
  293. package/dist/types/components/base/more-accordion/constants.d.ts +4 -0
  294. package/dist/types/components/base/more-accordion/index.d.ts +2 -0
  295. package/dist/types/components/base/more-accordion/more-accordion.d.ts +11 -0
  296. package/dist/types/components/base/nested-info-stack/constants.d.ts +3 -0
  297. package/dist/types/components/base/nested-info-stack/index.d.ts +2 -0
  298. package/dist/types/components/base/nested-info-stack/nested-info-stack.d.ts +10 -0
  299. package/dist/types/components/base/page-title/page-title.d.ts +17 -7
  300. package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +4 -0
  301. package/dist/types/components/base/pool-apy-breakdown-card/index.d.ts +2 -0
  302. package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +13 -0
  303. package/dist/types/components/base/side-card/constants.d.ts +5 -0
  304. package/dist/types/components/base/side-card/index.d.ts +2 -0
  305. package/dist/types/components/base/side-card/side-card.d.ts +16 -0
  306. package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +5 -0
  307. package/dist/types/components/base/strategy-apy-breakdown-card/index.d.ts +2 -0
  308. package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +17 -0
  309. package/dist/types/components/base/tabber/tabber.d.ts +11 -2
  310. package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +5 -6
  311. package/dist/types/components/base/title-meta/constants.d.ts +6 -0
  312. package/dist/types/components/base/title-meta/index.d.ts +2 -0
  313. package/dist/types/components/base/title-meta/title-meta.d.ts +23 -0
  314. package/dist/types/components/base/token-amount/token-amount.d.ts +8 -2
  315. package/dist/types/components/base/token-pair-symbol/constants.d.ts +3 -0
  316. package/dist/types/components/base/token-pair-symbol/index.d.ts +2 -0
  317. package/dist/types/components/base/token-pair-symbol/token-pair-symbol.d.ts +15 -0
  318. package/dist/types/components/base/token-pair-title/constants.d.ts +3 -0
  319. package/dist/types/components/base/token-pair-title/index.d.ts +2 -0
  320. package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +11 -0
  321. package/dist/types/components/base/values/constants.d.ts +1 -0
  322. package/dist/types/components/base/values/index.d.ts +3 -1
  323. package/dist/types/components/base/values/points-value.d.ts +11 -0
  324. package/dist/types/components/base/values/position-short-label.d.ts +1 -1
  325. package/dist/types/components/base/values/position-status-badge.d.ts +7 -0
  326. package/dist/types/components/base/values/position-type-badge.d.ts +2 -2
  327. package/dist/types/components/base/values/scalars.d.ts +9 -0
  328. package/dist/types/components/base-link/base-link.d.ts +1 -1
  329. package/dist/types/components/base-table/base-table-line.d.ts +21 -0
  330. package/dist/types/components/base-table/base-table.d.ts +19 -0
  331. package/dist/types/components/base-table/constants.d.ts +8 -0
  332. package/dist/types/components/base-table/index.d.ts +3 -0
  333. package/dist/types/components/base-table/types.d.ts +37 -0
  334. package/dist/types/components/buttons/button/button.d.ts +2 -2
  335. package/dist/types/components/checkbox/checkbox.d.ts +2 -2
  336. package/dist/types/components/collateral-allocation-tooltip/allocation-wheel.d.ts +10 -0
  337. package/dist/types/components/collateral-allocation-tooltip/collateral-allocation-tooltip.d.ts +23 -0
  338. package/dist/types/components/collateral-allocation-tooltip/constants.d.ts +8 -0
  339. package/dist/types/components/collateral-allocation-tooltip/index.d.ts +3 -0
  340. package/dist/types/components/composites/pool-assets-table/constants.d.ts +6 -0
  341. package/dist/types/components/composites/pool-assets-table/index.d.ts +1 -0
  342. package/dist/types/components/composites/pool-assets-table/pool-assets-table-head.d.ts +1 -2
  343. package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +8 -8
  344. package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +7 -17
  345. package/dist/types/components/composites/pool-assets-table/types.d.ts +4 -12
  346. package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +47 -14
  347. package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +1 -1
  348. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -19
  349. package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +2 -2
  350. package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +0 -3
  351. package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts +98 -0
  352. package/dist/types/components/dialog/dialog-container.d.ts +3 -3
  353. package/dist/types/components/edit-input/edit-input.d.ts +1 -1
  354. package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +6 -75
  355. package/dist/types/components/filter/variants.d.ts +1 -1
  356. package/dist/types/components/graph/formatters.d.ts +6 -1
  357. package/dist/types/components/graph/graph-view.d.ts +1 -1
  358. package/dist/types/components/graph/graph.d.ts +4 -0
  359. package/dist/types/components/health-factor/health-factor.d.ts +2 -1
  360. package/dist/types/components/hf-indicator/hf-indicator.d.ts +8 -0
  361. package/dist/types/components/hf-indicator/index.d.ts +1 -0
  362. package/dist/types/components/icons/index.d.ts +1 -1
  363. package/dist/types/components/index.d.ts +5 -6
  364. package/dist/types/components/infinite-scroll/index.d.ts +1 -0
  365. package/dist/types/components/infinite-scroll/infinite-scroll-wrapper.d.ts +11 -0
  366. package/dist/types/components/input/input.d.ts +1 -1
  367. package/dist/types/components/layout/index.d.ts +0 -7
  368. package/dist/types/components/name-cell/index.d.ts +1 -0
  369. package/dist/types/components/name-cell/name-cell.d.ts +13 -0
  370. package/dist/types/components/network-icon/index.d.ts +1 -0
  371. package/dist/types/components/network-icon/network-indicator.d.ts +23 -0
  372. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  373. package/dist/types/components/status-dot/status-dot.d.ts +1 -1
  374. package/dist/types/components/table/index.d.ts +0 -5
  375. package/dist/types/components/text-button/text-button.d.ts +1 -1
  376. package/dist/types/components/tip-card/tip-card.d.ts +2 -2
  377. package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
  378. package/dist/types/components/trading-view/trading-view.d.ts +10 -3
  379. package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +2 -2
  380. package/dist/types/components/with-title/with-title.d.ts +1 -1
  381. package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +6 -8
  382. package/dist/types/configs/tailwind-preset.d.ts +12 -0
  383. package/dist/types/hooks/index.d.ts +1 -1
  384. package/dist/types/hooks/use-observed-width-key.d.ts +8 -0
  385. package/dist/types/index.d.ts +6 -7
  386. package/dist/types/locale/en.json.d.ts +49 -11
  387. package/dist/types/types/index.d.ts +0 -2
  388. package/dist/types/utils/format-leverage.d.ts +5 -0
  389. package/dist/types/utils/format-money.d.ts +11 -5
  390. package/dist/types/utils/index.d.ts +3 -1
  391. package/dist/types/utils/leverage-presets.d.ts +7 -0
  392. package/package.json +3 -15
  393. package/src/styles/base.css +30 -0
  394. package/src/styles/theme.css +16 -0
  395. package/dist/cjs/components/auth/connect-required.cjs +0 -1
  396. package/dist/cjs/components/auth/index.cjs +0 -1
  397. package/dist/cjs/components/auth/signin-required.cjs +0 -1
  398. package/dist/cjs/components/auth/wallet-ui-context.cjs +0 -1
  399. package/dist/cjs/components/block-sync/block-sync.cjs +0 -1
  400. package/dist/cjs/components/block-sync/index.cjs +0 -1
  401. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +0 -1
  402. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +0 -1
  403. package/dist/cjs/components/image/image.cjs +0 -1
  404. package/dist/cjs/components/image/index.cjs +0 -1
  405. package/dist/cjs/components/layout/app-logo/app-logo.cjs +0 -1
  406. package/dist/cjs/components/layout/app-logo/index.cjs +0 -1
  407. package/dist/cjs/components/layout/block/block.cjs +0 -1
  408. package/dist/cjs/components/layout/block/index.cjs +0 -1
  409. package/dist/cjs/components/layout/footer/footer.cjs +0 -1
  410. package/dist/cjs/components/layout/footer/index.cjs +0 -1
  411. package/dist/cjs/components/layout/header/header.cjs +0 -1
  412. package/dist/cjs/components/layout/header/index.cjs +0 -1
  413. package/dist/cjs/components/layout/legal-disclaimer/index.cjs +0 -1
  414. package/dist/cjs/components/layout/legal-disclaimer/legal-disclaimer.cjs +0 -1
  415. package/dist/cjs/components/layout/page-layout/index.cjs +0 -1
  416. package/dist/cjs/components/layout/page-layout/page-layout.cjs +0 -1
  417. package/dist/cjs/components/layout/social-icons/index.cjs +0 -1
  418. package/dist/cjs/components/layout/social-icons/social-icons.cjs +0 -1
  419. package/dist/cjs/components/navbar/index.cjs +0 -1
  420. package/dist/cjs/components/navbar/navbar-indicator-context.cjs +0 -1
  421. package/dist/cjs/components/navbar/navbar-with-overflow.cjs +0 -1
  422. package/dist/cjs/components/navbar/navbar.cjs +0 -1
  423. package/dist/cjs/components/navitem/index.cjs +0 -1
  424. package/dist/cjs/components/navitem/navitem.cjs +0 -1
  425. package/dist/cjs/components/page-title/index.cjs +0 -1
  426. package/dist/cjs/components/page-title/page-title.cjs +0 -1
  427. package/dist/cjs/components/pool-apy-tooltip/apy-tooltip.cjs +0 -1
  428. package/dist/cjs/components/pool-apy-tooltip/index.cjs +0 -1
  429. package/dist/cjs/components/table/edit-button.cjs +0 -1
  430. package/dist/cjs/components/table/editable-grid-table.cjs +0 -1
  431. package/dist/cjs/components/table/editable-table.cjs +0 -1
  432. package/dist/cjs/components/table/grid-table-loader.cjs +0 -1
  433. package/dist/cjs/components/table/updated-value.cjs +0 -1
  434. package/dist/cjs/hooks/use-liquidation/index.cjs +0 -1
  435. package/dist/cjs/hooks/use-liquidation/utils.cjs +0 -1
  436. package/dist/cjs/test-ids/base.cjs +0 -1
  437. package/dist/cjs/test-ids/index.cjs +0 -1
  438. package/dist/cjs/types/help.cjs +0 -1
  439. package/dist/cjs/utils/reactochart-compat.cjs +0 -1
  440. package/dist/esm/components/auth/connect-required.js +0 -37
  441. package/dist/esm/components/auth/index.js +0 -9
  442. package/dist/esm/components/auth/signin-required.js +0 -55
  443. package/dist/esm/components/auth/wallet-ui-context.js +0 -13
  444. package/dist/esm/components/block-sync/block-sync.js +0 -208
  445. package/dist/esm/components/block-sync/index.js +0 -4
  446. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -186
  447. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
  448. package/dist/esm/components/image/image.js +0 -32
  449. package/dist/esm/components/image/index.js +0 -4
  450. package/dist/esm/components/layout/app-logo/app-logo.js +0 -99
  451. package/dist/esm/components/layout/app-logo/index.js +0 -5
  452. package/dist/esm/components/layout/block/block.js +0 -50
  453. package/dist/esm/components/layout/block/index.js +0 -4
  454. package/dist/esm/components/layout/footer/footer.js +0 -237
  455. package/dist/esm/components/layout/footer/index.js +0 -7
  456. package/dist/esm/components/layout/header/header.js +0 -93
  457. package/dist/esm/components/layout/header/index.js +0 -5
  458. package/dist/esm/components/layout/legal-disclaimer/index.js +0 -4
  459. package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +0 -46
  460. package/dist/esm/components/layout/page-layout/index.js +0 -4
  461. package/dist/esm/components/layout/page-layout/page-layout.js +0 -39
  462. package/dist/esm/components/layout/social-icons/index.js +0 -4
  463. package/dist/esm/components/layout/social-icons/social-icons.js +0 -61
  464. package/dist/esm/components/navbar/index.js +0 -11
  465. package/dist/esm/components/navbar/navbar-indicator-context.js +0 -46
  466. package/dist/esm/components/navbar/navbar-with-overflow.js +0 -181
  467. package/dist/esm/components/navbar/navbar.js +0 -99
  468. package/dist/esm/components/navitem/index.js +0 -5
  469. package/dist/esm/components/navitem/navitem.js +0 -124
  470. package/dist/esm/components/page-title/index.js +0 -6
  471. package/dist/esm/components/page-title/page-title.js +0 -120
  472. package/dist/esm/components/pool-apy-tooltip/apy-tooltip.js +0 -154
  473. package/dist/esm/components/pool-apy-tooltip/index.js +0 -4
  474. package/dist/esm/components/table/edit-button.js +0 -48
  475. package/dist/esm/components/table/editable-grid-table.js +0 -121
  476. package/dist/esm/components/table/editable-table.js +0 -108
  477. package/dist/esm/components/table/grid-table-loader.js +0 -22
  478. package/dist/esm/components/table/updated-value.js +0 -49
  479. package/dist/esm/hooks/use-liquidation/index.js +0 -138
  480. package/dist/esm/hooks/use-liquidation/utils.js +0 -144
  481. package/dist/esm/test-ids/base.js +0 -44
  482. package/dist/esm/test-ids/index.js +0 -46
  483. package/dist/esm/types/help.js +0 -1
  484. package/dist/esm/utils/reactochart-compat.js +0 -18
  485. package/dist/types/components/auth/connect-required.d.ts +0 -32
  486. package/dist/types/components/auth/index.d.ts +0 -3
  487. package/dist/types/components/auth/signin-required.d.ts +0 -37
  488. package/dist/types/components/auth/wallet-ui-context.d.ts +0 -36
  489. package/dist/types/components/block-sync/block-sync.d.ts +0 -8
  490. package/dist/types/components/block-sync/index.d.ts +0 -1
  491. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +0 -17
  492. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +0 -16
  493. package/dist/types/components/image/image.d.ts +0 -35
  494. package/dist/types/components/image/index.d.ts +0 -1
  495. package/dist/types/components/layout/app-logo/app-logo.d.ts +0 -26
  496. package/dist/types/components/layout/app-logo/index.d.ts +0 -1
  497. package/dist/types/components/layout/block/block.d.ts +0 -23
  498. package/dist/types/components/layout/block/index.d.ts +0 -1
  499. package/dist/types/components/layout/footer/footer.d.ts +0 -53
  500. package/dist/types/components/layout/footer/index.d.ts +0 -1
  501. package/dist/types/components/layout/header/header.d.ts +0 -123
  502. package/dist/types/components/layout/header/index.d.ts +0 -1
  503. package/dist/types/components/layout/legal-disclaimer/index.d.ts +0 -1
  504. package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +0 -32
  505. package/dist/types/components/layout/page-layout/index.d.ts +0 -1
  506. package/dist/types/components/layout/page-layout/page-layout.d.ts +0 -41
  507. package/dist/types/components/layout/social-icons/index.d.ts +0 -1
  508. package/dist/types/components/layout/social-icons/social-icons.d.ts +0 -7
  509. package/dist/types/components/navbar/index.d.ts +0 -3
  510. package/dist/types/components/navbar/navbar-indicator-context.d.ts +0 -13
  511. package/dist/types/components/navbar/navbar-with-overflow.d.ts +0 -20
  512. package/dist/types/components/navbar/navbar.d.ts +0 -25
  513. package/dist/types/components/navitem/index.d.ts +0 -1
  514. package/dist/types/components/navitem/navitem.d.ts +0 -67
  515. package/dist/types/components/page-title/index.d.ts +0 -1
  516. package/dist/types/components/page-title/page-title.d.ts +0 -77
  517. package/dist/types/components/pool-apy-tooltip/apy-tooltip.d.ts +0 -20
  518. package/dist/types/components/pool-apy-tooltip/index.d.ts +0 -1
  519. package/dist/types/components/table/edit-button.d.ts +0 -51
  520. package/dist/types/components/table/editable-grid-table.d.ts +0 -120
  521. package/dist/types/components/table/editable-table.d.ts +0 -101
  522. package/dist/types/components/table/grid-table-loader.d.ts +0 -25
  523. package/dist/types/components/table/updated-value.d.ts +0 -34
  524. package/dist/types/hooks/use-liquidation/index.d.ts +0 -53
  525. package/dist/types/hooks/use-liquidation/types.d.ts +0 -16
  526. package/dist/types/hooks/use-liquidation/utils.d.ts +0 -71
  527. package/dist/types/test-ids/base.d.ts +0 -20
  528. package/dist/types/test-ids/index.d.ts +0 -9
  529. package/dist/types/types/component-props.d.ts +0 -16
  530. package/dist/types/types/help.d.ts +0 -4
  531. package/dist/types/types/reactochart.d.ts +0 -145
  532. package/dist/types/utils/reactochart-compat.d.ts +0 -12
  533. /package/dist/cjs/{hooks/use-liquidation → components/base-table}/types.cjs +0 -0
  534. /package/dist/cjs/{test-ids/notification-center.cjs → components/composites/notification-center/constants.cjs} +0 -0
  535. /package/dist/cjs/{types/component-props.cjs → components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.cjs} +0 -0
  536. /package/dist/esm/{hooks/use-liquidation → components/base-table}/types.js +0 -0
  537. /package/dist/esm/{test-ids/notification-center.js → components/composites/notification-center/constants.js} +0 -0
  538. /package/dist/esm/{types/component-props.js → components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js} +0 -0
  539. /package/dist/types/{test-ids/notification-center.d.ts → components/composites/notification-center/constants.d.ts} +0 -0
@@ -1,12 +1,15 @@
1
1
  import { Token } from '@gearbox-protocol/sdk/model';
2
2
  import { default as React } from 'react';
3
3
  import { Address } from 'viem';
4
+ import { CollateralAllocation } from '../collateral-allocation-tooltip';
4
5
  type Mode = "default" | "cascade";
5
6
  interface CommonOptions {
6
7
  mode?: Mode;
7
8
  showIconTooltip?: boolean;
8
9
  otherTooltip?: React.ReactNode;
9
10
  onOtherClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
11
+ /** When set, hover on the cascade shows the allocation mix instead of per-icon symbols. */
12
+ allocation?: CollateralAllocation;
10
13
  }
11
14
  /**
12
15
  * Single asset cell props (new API)
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import type * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
4
+ variant?: "default" | "success" | "warning" | "destructive" | "secondary" | "info" | "outline" | "neutral" | "danger" | "accent" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  /**
7
7
  * Badge — component for displaying labels, tags, or status indicators.
@@ -15,6 +15,7 @@ declare const badgeVariants: (props?: ({
15
15
  * - `secondary` — secondary badge with muted background.
16
16
  * - `destructive` — destructive badge with red background for errors/warnings.
17
17
  * - `outline` — outlined badge with border only.
18
+ * - `success` / `info` / `warning` / `danger` / `accent` / `neutral` — tinted chips.
18
19
  *
19
20
  * Note: Prefer using this component instead of native HTML div element for badges.
20
21
  *
@@ -0,0 +1,22 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ export declare class ChipTest {
3
+ static root: string;
4
+ }
5
+ export declare class ChipsTest {
6
+ static root: string;
7
+ static chip: string;
8
+ }
9
+ export type ChipTone = "success" | "info" | "neutral" | "warning" | "danger" | "accent";
10
+ export interface ChipProps {
11
+ readonly children?: ReactNode;
12
+ readonly tone?: ChipTone;
13
+ readonly className?: string;
14
+ }
15
+ /** Tinted {@link Badge} for table/status chips. */
16
+ export declare function Chip({ children, tone, className, }: ChipProps): React.ReactElement;
17
+ export interface ChipsProps {
18
+ readonly children: ReactNode;
19
+ readonly className?: string;
20
+ }
21
+ /** Horizontal row of {@link Chip} (or other badge nodes). */
22
+ export declare function Chips({ children, className }: ChipsProps): React.ReactElement;
@@ -1 +1,2 @@
1
1
  export * from './badge';
2
+ export * from './chip';
@@ -2,7 +2,9 @@ import { Token } from '@gearbox-protocol/sdk/model';
2
2
  import { default as React } from 'react';
3
3
  import { TitleText } from '../text';
4
4
  import { AmountInputTest } from './constants';
5
+ import { TokenButtonSize } from './token-button';
5
6
  export { AmountInputTest };
7
+ export type AmountInputSize = TokenButtonSize;
6
8
  export interface AmountInputProps {
7
9
  readonly amount: bigint;
8
10
  readonly onAmount: (amount: bigint) => void;
@@ -11,19 +13,28 @@ export interface AmountInputProps {
11
13
  readonly tokens?: ReadonlyArray<Token>;
12
14
  readonly onToken?: (token: Token) => void;
13
15
  readonly balance?: bigint;
16
+ /** Wallet balances by token address — the picker's balance column. */
17
+ readonly balances?: Readonly<Record<string, bigint>>;
18
+ /** USD price per whole token by address — the picker's USD line. */
19
+ readonly usdPrices?: Readonly<Record<string, number>>;
14
20
  /** Label above the field; defaults to the "Amount" locale string. */
15
21
  readonly label?: TitleText;
16
22
  /** Label of the balance row; defaults to the "Balance" locale string. */
17
23
  readonly maxLabel?: TitleText;
18
24
  /** USD price per one whole token; shows a USD equivalent when set. */
19
25
  readonly usdPrice?: number;
26
+ /**
27
+ * Field density. Defaults to `sm` on mobile and `md` otherwise — the
28
+ * reference `SmartNumberInput` sizes from agentic-rwa.
29
+ */
30
+ readonly size?: AmountInputSize;
20
31
  readonly disabled?: boolean;
21
32
  readonly testId?: string;
22
33
  }
23
34
  /**
24
35
  * The one amount field of a dialog: label row with balance and MAX, a large
25
- * value input beside the token (icon + optional dropdown picker), and a USD
36
+ * value input beside the token (icon + optional modal picker), and a USD
26
37
  * equivalent. The reference `SmartNumberInput` markup on SDK-typed props —
27
38
  * design only, `bigint` in / `bigint` out.
28
39
  */
29
- export declare function AmountInput({ amount, onAmount, token, tokens, onToken, balance, label, maxLabel, usdPrice, disabled, testId, }: AmountInputProps): React.ReactElement;
40
+ export declare function AmountInput({ amount, onAmount, token, tokens, onToken, balance, balances, usdPrices, label, maxLabel, usdPrice, size, disabled, testId, }: AmountInputProps): React.ReactElement;
@@ -6,4 +6,6 @@ export declare class AmountInputTest {
6
6
  static label: string;
7
7
  static balance: string;
8
8
  static usd: string;
9
+ static selectPanel: string;
10
+ static selectOption: string;
9
11
  }
@@ -1 +1,2 @@
1
1
  export * from './amount-input';
2
+ export * from './token-select-panel';
@@ -1,16 +1,28 @@
1
1
  import { Token } from '@gearbox-protocol/sdk/model';
2
+ import { VariantProps } from 'class-variance-authority';
2
3
  import { default as React } from 'react';
4
+ declare const blockVariants: (props?: ({
5
+ size?: "sm" | "md" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export type TokenButtonSize = NonNullable<VariantProps<typeof blockVariants>["size"]>;
3
8
  export interface TokenButtonProps {
4
9
  readonly token: Token | undefined;
5
10
  /** When set and not disabled, the block is clickable and shows a chevron. */
6
11
  readonly onClick?: () => void;
7
- /** Rotates the chevron (dropdown open). */
12
+ /**
13
+ * Marks the block as a picker trigger (cursor + chevron) without a local
14
+ * click handler — for use inside a dropdown trigger that owns the toggle.
15
+ */
16
+ readonly interactive?: boolean;
17
+ /** Rotates the chevron (picker open). */
8
18
  readonly active?: boolean;
9
19
  readonly disabled?: boolean;
20
+ readonly size?: TokenButtonSize;
10
21
  }
11
22
  /**
12
23
  * Token display with icon and optional chevron — the trigger of the token
13
24
  * picker. Internal to `AmountInput` (the reference `CurrencyButton`, retyped
14
25
  * on the SDK `Token`).
15
26
  */
16
- export declare function TokenButton({ token, onClick, active, disabled, }: TokenButtonProps): React.ReactElement;
27
+ export declare function TokenButton({ token, onClick, interactive, active, disabled, size, }: TokenButtonProps): React.ReactElement;
28
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Token } from '@gearbox-protocol/sdk/model';
2
+ import { default as React } from 'react';
3
+ export interface TokenSelectPanelProps {
4
+ readonly tokens: ReadonlyArray<Token>;
5
+ /** Wallet balances by token address (either casing); shows a balance column. */
6
+ readonly balances?: Readonly<Record<string, bigint>>;
7
+ /** USD price per one whole token by address; shows a USD line under the balance. */
8
+ readonly usdPrices?: Readonly<Record<string, number>>;
9
+ readonly onSelect: (token: Token) => void;
10
+ readonly onClose: () => void;
11
+ }
12
+ /**
13
+ * Token picker body of `AmountInput` — the reference `TokenSelectModal`
14
+ * (`ConfirmMenu` + name/balance rows) on SDK-typed props. Always rendered
15
+ * inside a `Modal`.
16
+ */
17
+ export declare function TokenSelectPanel({ tokens, balances, usdPrices, onSelect, onClose, }: TokenSelectPanelProps): React.ReactElement;
@@ -0,0 +1,21 @@
1
+ import { BorrowRateBreakdown, Bps } from '@gearbox-protocol/sdk/model';
2
+ import { default as React } from 'react';
3
+ import { BorrowRateBlockTest } from './constants';
4
+ export { BorrowRateBlockTest };
5
+ /**
6
+ * The SDK's `borrowRate` breakdown, or a bare `Bps` when only the position's
7
+ * plain `borrowApy` is available (offchain mode: no breakdown to split into
8
+ * total / base). A caller never picks a field itself, so `total` and `base`
9
+ * can't drift out of sync the way threading two separately-extracted `Bps`
10
+ * numbers through two props invited.
11
+ */
12
+ export type BorrowRateValue = BorrowRateBreakdown | Bps;
13
+ export interface BorrowRateBlockProps {
14
+ readonly data: BorrowRateValue | undefined;
15
+ readonly dataTo?: BorrowRateValue;
16
+ }
17
+ /**
18
+ * Borrow-rate row: total on the trigger, Base Rate from the SDK, Rates
19
+ * normalization as a dash until the SDK reports it.
20
+ */
21
+ export declare function BorrowRateBlock({ data, dataTo, }: BorrowRateBlockProps): React.ReactElement;
@@ -0,0 +1,5 @@
1
+ export declare class BorrowRateBlockTest {
2
+ static root: string;
3
+ static trigger: string;
4
+ static details: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './borrow-rate-block';
2
+ export * from './constants';
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { ChartWithSideCardTest } from './constants';
3
+ export { ChartWithSideCardTest };
4
+ export interface ChartWithSideCardProps {
5
+ readonly chart: React.ReactNode;
6
+ readonly side: React.ReactNode;
7
+ }
8
+ /**
9
+ * Detail-page yield layout: chart on the left, a side card on the right.
10
+ * The card is one StatBadge column wide; if that would squeeze the chart
11
+ * below 40rem, the card wraps underneath at full width instead.
12
+ */
13
+ export declare function ChartWithSideCard({ chart, side, }: ChartWithSideCardProps): React.ReactElement;
@@ -0,0 +1,5 @@
1
+ export declare class ChartWithSideCardTest {
2
+ static root: string;
3
+ static chart: string;
4
+ static side: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './chart-with-side-card';
2
+ export * from './constants';
@@ -6,10 +6,9 @@ import { DetailedPageTitleTest } from './constants';
6
6
  export type DetailedPageTitleExplorerLink = ExplorerLink;
7
7
  export { DetailedPageTitleTest };
8
8
  export interface DetailedPageTitleProps {
9
- readonly title: PageTitleText;
9
+ /** Visible heading; a node (e.g. a token-pair title) renders as given. */
10
+ readonly title: PageTitleText | React.ReactNode;
10
11
  readonly browserTitle?: PageTitleText;
11
- /** Document-head hook forwarded to {@link PageTitle}. */
12
- readonly head?: (browserTitle: string) => React.ReactNode;
13
12
  /**
14
13
  * Token whose icon heads the title. The model `Token` is enough — the icon
15
14
  * is resolved from the symbol inside ui-kit.
@@ -28,4 +27,4 @@ export interface DetailedPageTitleProps {
28
27
  readonly className?: string;
29
28
  }
30
29
  /** Detail screen heading: token icon + title + badges + copy/explorer actions. */
31
- export declare function DetailedPageTitle({ title, browserTitle, head, token, icon, tokenIconSize, disabled, toCopy, explorerLinks, badges, actions, buttonsSlot, meta, actionsPosition, className, }: DetailedPageTitleProps): React.ReactElement;
30
+ export declare function DetailedPageTitle({ title, browserTitle, token, icon, tokenIconSize, disabled, toCopy, explorerLinks, badges, actions, buttonsSlot, meta, actionsPosition, className, }: DetailedPageTitleProps): React.ReactElement;
@@ -1,13 +1,14 @@
1
+ import { Bps } from '@gearbox-protocol/sdk/model';
1
2
  import { default as React } from 'react';
2
3
  import { TitleText } from '../text';
3
4
  import { HFZones } from '../../health-factor';
4
5
  import { HealthFactorBlockTest } from './constants';
5
6
  export { HealthFactorBlockTest };
6
7
  export interface HealthFactorBlockProps {
7
- /** Health factor in basis points (e.g. 15000 = 1.5); omit to render "—". */
8
- readonly hf?: number;
8
+ /** SDK `healthFactor` in basis points (e.g. 15000 = 1.5); omit to render "—". */
9
+ readonly healthFactor?: Bps;
9
10
  /** Target HF after the operation; renders a from → to transition. */
10
- readonly hfTo?: number;
11
+ readonly healthFactorTo?: Bps;
11
12
  /** Debt in base units; a 0n debt renders "N/A". */
12
13
  readonly debt: bigint;
13
14
  /** Debt after the operation (defaults to `debt`). */
@@ -23,7 +24,6 @@ export interface HealthFactorBlockProps {
23
24
  }
24
25
  /**
25
26
  * "Health factor" row of a preview: label + help tip on the left, the zone-
26
- * colored HF (with optional from → to transition) on the right. Design only —
27
- * the reference `HFBlock` markup on bare value props.
27
+ * colored HF (with optional from → to transition) on the right.
28
28
  */
29
- export declare function HealthFactorBlock({ hf, hfTo, debt, debtTo, zone, isLoading, title, tip, testId, }: HealthFactorBlockProps): React.ReactElement;
29
+ export declare function HealthFactorBlock({ healthFactor, healthFactorTo, debt, debtTo, zone, isLoading, title, tip, testId, }: HealthFactorBlockProps): React.ReactElement;
@@ -1,5 +1,6 @@
1
1
  import { HistoryRange, HistorySeries } from '@gearbox-protocol/sdk/model';
2
2
  import { default as React } from 'react';
3
+ import { TitleText } from '../text';
3
4
  import { PriceLineConfig, PriceZoneConfig } from '../../graph';
4
5
  import { YMeasureUnits } from '../../graph/formatters';
5
6
  import { HistoryChartTest } from './constants';
@@ -21,10 +22,26 @@ export interface HistoryChartProps {
21
22
  readonly priceLines?: ReadonlyArray<PriceLineConfig>;
22
23
  /** Shaded horizontal bands, e.g. a liquidation danger zone. */
23
24
  readonly zones?: ReadonlyArray<PriceZoneConfig>;
25
+ /**
26
+ * Current-value overlay in the chart corner. Detail screens keep this off;
27
+ * defaults to `false`.
28
+ */
29
+ readonly showCurrentValue?: boolean;
30
+ /** Y-axis floor when the series has data. */
31
+ readonly yScaleMin?: number;
32
+ /** Heading to the left of the range dropdown, above the chart frame. */
33
+ readonly title?: TitleText;
34
+ /** Controls to the left of the range dropdown (e.g. leverage chips). */
35
+ readonly trailing?: React.ReactNode;
36
+ /**
37
+ * Force a second Y-axis. When omitted, the chart splits axes only if
38
+ * `yMeasureUnit` lists more than one distinct unit.
39
+ */
40
+ readonly dualYAxis?: boolean;
24
41
  }
25
42
  /**
26
- * Design-only history chart on the TradingView engine: range buttons, legend,
27
- * tooltips, optional reference lines and zones. Takes the SDK's
43
+ * Design-only history chart on the TradingView engine: range dropdown, legend
44
+ * below the frame, tooltips, optional reference lines and zones. Takes the SDK's
28
45
  * `HistorySeries` as it comes — points are mapped 1:1, no fetching.
29
46
  */
30
- export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, }: HistoryChartProps): React.ReactElement;
47
+ export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, showCurrentValue, yScaleMin, title, trailing, dualYAxis: dualYAxisProp, }: HistoryChartProps): React.ReactElement;
@@ -1,4 +1,6 @@
1
1
  export * from './amount-input';
2
+ export * from './borrow-rate-block';
3
+ export * from './chart-with-side-card';
2
4
  export * from './detailed-page-title';
3
5
  export * from './details-view';
4
6
  export * from './health-factor-block';
@@ -6,18 +8,28 @@ export * from './history-chart';
6
8
  export * from './info-list';
7
9
  export * from './info-portal';
8
10
  export * from './leverage-input';
11
+ export * from './leverage-preset-chips';
12
+ export * from './liquidation-params-table';
9
13
  export * from './liquidation-price-block';
10
14
  export * from './manage-pane';
15
+ export * from './more-accordion';
16
+ export * from './nested-info-stack';
11
17
  export * from './page-title';
18
+ export * from './pool-apy-breakdown-card';
12
19
  export * from './review-button';
13
20
  export * from './section-heading';
14
21
  export * from './segmented-tabs';
22
+ export * from './side-card';
15
23
  export * from './spacing';
16
24
  export * from './stack';
17
25
  export * from './stat-badge';
18
26
  export * from './sticky-bar';
27
+ export * from './strategy-apy-breakdown-card';
19
28
  export * from './tabber';
20
29
  export * from './text';
21
30
  export * from './time-to-liquidation-block';
31
+ export * from './title-meta';
22
32
  export * from './token-amount';
33
+ export * from './token-pair-symbol';
34
+ export * from './token-pair-title';
23
35
  export * from './values';
@@ -1,4 +1,5 @@
1
1
  export declare class InfoListTest {
2
2
  static root: string;
3
3
  static line: string;
4
+ static sectionTitle: string;
4
5
  }
@@ -1,3 +1,4 @@
1
+ import { ApyBreakdown } from '@gearbox-protocol/sdk/model';
1
2
  import { default as React } from 'react';
2
3
  import { TitleText } from '../text';
3
4
  import { InfoListTest } from './constants';
@@ -11,9 +12,22 @@ export interface InfoLineProps {
11
12
  readonly value: React.ReactNode;
12
13
  /** Tooltip content behind the help icon next to the label. */
13
14
  readonly tip?: React.ReactNode;
15
+ /** Caption under the value (right-aligned), e.g. "for 0.00 USDC". */
16
+ readonly valueDescription?: React.ReactNode;
14
17
  /** New value after an arrow (value → valueTo); the old one is dimmed. */
15
18
  readonly valueTo?: React.ReactNode;
16
19
  readonly testId?: string;
17
20
  }
18
21
  /** One row of the list — the reference `VerticalIndicator` markup. */
19
- export declare function InfoLine({ title, value, tip, valueTo, testId, }: InfoLineProps): React.ReactElement;
22
+ export declare function InfoLine({ title, value, tip, valueDescription, valueTo, testId, }: InfoLineProps): React.ReactElement;
23
+ export interface InfoSectionTitleProps {
24
+ readonly title: TitleText;
25
+ }
26
+ /** Uppercase section label inside an `InfoList` (e.g. debt limits). */
27
+ export declare function InfoSectionTitle({ title, }: InfoSectionTitleProps): React.ReactElement;
28
+ export interface PointsInfoLineProps {
29
+ readonly data: ApyBreakdown | undefined;
30
+ readonly title?: TitleText;
31
+ }
32
+ /** Points row that omits itself when the SDK breakdown has no programs. */
33
+ export declare function PointsInfoLine({ data, title, }: PointsInfoLineProps): React.ReactElement | null;
@@ -35,7 +35,7 @@ export interface LeverageInputProps {
35
35
  }
36
36
  /**
37
37
  * Target leverage of a position, bounded by what the strategy allows.
38
- * Title row carries an inline-editable value (N.NN`) and an optional reset;
38
+ * Title row carries an inline-editable value (`N.NNx`) and an optional reset;
39
39
  * the slider below can show risk bands via `colorIntervals`.
40
40
  */
41
- export declare function LeverageInput({ value, onChange, max, min, step, title, hint, reset, colorIntervals, colorIntervalLabel, size, }: LeverageInputProps): React.ReactElement;
41
+ export declare function LeverageInput({ value, onChange, max, min, title, hint, reset, colorIntervals, colorIntervalLabel, size, }: LeverageInputProps): React.ReactElement;
@@ -0,0 +1,4 @@
1
+ export declare const LeveragePresetChipsTest: {
2
+ readonly root: "leverage-preset-chips-root";
3
+ readonly chip: "leverage-preset-chips-chip";
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './leverage-preset-chips';
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { LeveragePresetChipsTest } from './constants';
3
+ export { LeveragePresetChipsTest };
4
+ export interface LeveragePresetChipsProps {
5
+ readonly options: readonly number[];
6
+ readonly value?: number;
7
+ readonly onChange: (value: number) => void;
8
+ }
9
+ /**
10
+ * Leverage step pills for the yield-chart toolbar. Selected leverage only
11
+ * drives the APY breakdown card, not the chart series.
12
+ */
13
+ export declare function LeveragePresetChips({ options, value, onChange, }: LeveragePresetChipsProps): React.ReactElement | null;
@@ -0,0 +1,3 @@
1
+ export declare class LiquidationParamsTableTest {
2
+ static root: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './liquidation-params-table';
@@ -0,0 +1,12 @@
1
+ import { StrategyOpportunity } from '@gearbox-protocol/sdk/model';
2
+ import { default as React } from 'react';
3
+ import { LiquidationParamsTableTest } from './constants';
4
+ export { LiquidationParamsTableTest };
5
+ export interface LiquidationParamsTableProps {
6
+ readonly data: Pick<StrategyOpportunity, "liquidationThreshold" | "liquidationPremium" | "liquidationFee">;
7
+ }
8
+ /**
9
+ * Single-row liquidation parameters. Discount is premium + fee, a
10
+ * presentation of two SDK values.
11
+ */
12
+ export declare function LiquidationParamsTable({ data, }: LiquidationParamsTableProps): React.ReactElement;
@@ -1,3 +1,4 @@
1
+ import { Token } from '@gearbox-protocol/sdk/model';
1
2
  import { default as React } from 'react';
2
3
  import { TitleText } from '../text';
3
4
  import { HFZones } from '../../health-factor';
@@ -11,8 +12,10 @@ export interface LiquidationPriceBlockProps {
11
12
  readonly price?: bigint | null;
12
13
  /** Price after the operation; renders a from → to transition. */
13
14
  readonly priceTo?: bigint | null;
14
- /** The pair the price is quoted in, e.g. "WETH / USDC". */
15
- readonly pricePair?: React.ReactNode;
15
+ /** Collateral token of the quoted pair. */
16
+ readonly collateral?: Token | null;
17
+ /** Underlying token of the quoted pair. */
18
+ readonly underlying?: Token;
16
19
  /** Zone dot next to the price. */
17
20
  readonly zone?: HFZones;
18
21
  readonly isLoading?: boolean;
@@ -25,6 +28,5 @@ export interface LiquidationPriceBlockProps {
25
28
  /**
26
29
  * "Liquidation price" row of a preview: label + help tip, the formatted price
27
30
  * (with optional from → to and zone dot), and the price pair underneath.
28
- * Design only — the reference `LiquidationPriceBlock` markup on value props.
29
31
  */
30
- export declare function LiquidationPriceBlock({ price, priceTo, pricePair, zone, isLoading, title, tip, testId, }: LiquidationPriceBlockProps): React.ReactElement;
32
+ export declare function LiquidationPriceBlock({ price, priceTo, collateral, underlying, zone, isLoading, title, tip, testId, }: LiquidationPriceBlockProps): React.ReactElement;
@@ -4,5 +4,6 @@ export declare class ManagePaneTest {
4
4
  static dropdown: string;
5
5
  static body: string;
6
6
  static message: string;
7
+ static actionDialog: string;
7
8
  static tab: (id: string) => string;
8
9
  }
@@ -20,6 +20,15 @@ export interface ManagePaneTabDropdownProps {
20
20
  readonly items: ReadonlyArray<ManagePaneTabDropdownItem>;
21
21
  }
22
22
  export declare function ManagePaneTabDropdown(_props: ManagePaneTabDropdownProps): null;
23
+ export interface ManagePaneActionTabProps {
24
+ readonly id: string;
25
+ readonly title: TitleText;
26
+ /** Fires without changing the active tab (e.g. "My positions"). */
27
+ readonly onClick?: () => void;
28
+ /** When set, a click opens this content in a dialog instead of switching tabs. */
29
+ readonly children?: React.ReactNode;
30
+ }
31
+ export declare function ManagePaneActionTab(_props: ManagePaneActionTabProps): null;
23
32
  export interface ManagePaneProps {
24
33
  readonly children: React.ReactNode;
25
34
  /** Controlled active tab — the screen owns it (usually `?operation=`). */
@@ -0,0 +1,4 @@
1
+ export declare class MoreAccordionTest {
2
+ static root: string;
3
+ static trigger: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './more-accordion';
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { TitleText } from '../text';
3
+ import { MoreAccordionTest } from './constants';
4
+ export { MoreAccordionTest };
5
+ export interface MoreAccordionProps {
6
+ readonly children: React.ReactNode;
7
+ readonly moreMessage?: TitleText;
8
+ readonly lessMessage?: TitleText;
9
+ }
10
+ /** Centered more/less disclosure over a `SimpleAccordion`. */
11
+ export declare function MoreAccordion({ children, moreMessage, lessMessage, }: MoreAccordionProps): React.ReactElement;
@@ -0,0 +1,3 @@
1
+ export declare class NestedInfoStackTest {
2
+ static root: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './nested-info-stack';
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { NestedInfoStackTest } from './constants';
3
+ export { NestedInfoStackTest };
4
+ export interface NestedInfoStackProps {
5
+ readonly children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Nested compact-info rows: indent plus a 2px left rail.
9
+ */
10
+ export declare function NestedInfoStack({ children, }: NestedInfoStackProps): React.ReactElement;
@@ -3,17 +3,27 @@ import { FormatMessageTypedProps } from '../../typed-intl';
3
3
  import { PageTitleTest } from './constants';
4
4
  export { PageTitleTest };
5
5
  export type PageTitleText = FormatMessageTypedProps | string;
6
+ export interface PageHeadProviderProps {
7
+ readonly children: React.ReactNode;
8
+ /** Renders the document head for a resolved browser title (e.g. a Helmet node). */
9
+ readonly render: (browserTitle: string) => React.ReactNode;
10
+ }
11
+ /**
12
+ * Optional document-head hook for {@link PageTitle}. Without a provider the
13
+ * visible heading still renders and `<head>` is left alone — ui-kit does not
14
+ * import a head library.
15
+ */
16
+ export declare function PageHeadProvider({ children, render, }: PageHeadProviderProps): React.ReactElement;
6
17
  export interface PageTitleProps {
7
- readonly title: PageTitleText;
8
- /** Browser tab title when it should differ from the visible heading. */
9
- readonly browserTitle?: PageTitleText;
18
+ /** Visible heading; a node (e.g. a token-pair title) renders as given. */
19
+ readonly title: PageTitleText | React.ReactNode;
10
20
  /**
11
- * Renders the document head for the resolved browser title (e.g. a Helmet
12
- * element). The app owns the head library; ui-kit only hands over the string.
21
+ * Browser tab title when it should differ from the visible heading.
22
+ * Required when {@link title} is a node a node cannot become a string.
13
23
  */
14
- readonly head?: (browserTitle: string) => React.ReactNode;
24
+ readonly browserTitle?: PageTitleText;
15
25
  readonly as?: "h1" | "h2" | "h3" | "span";
16
26
  readonly className?: string;
17
27
  }
18
28
  /** The one visible page heading, plus an optional document-head hook. */
19
- export declare function PageTitle({ title, browserTitle, head, as, className, }: PageTitleProps): React.ReactElement;
29
+ export declare function PageTitle({ title, browserTitle, as, className, }: PageTitleProps): React.ReactElement;
@@ -0,0 +1,4 @@
1
+ export declare class PoolApyBreakdownCardTest {
2
+ static root: string;
3
+ static value: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './pool-apy-breakdown-card';
@@ -0,0 +1,13 @@
1
+ import { Bps } from '@gearbox-protocol/sdk/model';
2
+ import { default as React } from 'react';
3
+ import { PoolApyBreakdownCardTest } from './constants';
4
+ export { PoolApyBreakdownCardTest };
5
+ export interface PoolApyBreakdownCardProps {
6
+ /** Organic and incentive APYs in basis points; a missing value renders a dash. */
7
+ readonly data?: {
8
+ readonly organicApy?: Bps;
9
+ readonly incentiveApy?: Bps;
10
+ };
11
+ }
12
+ /** Organic vs incentive APY next to the pool APY chart. Missing values render as dashes. */
13
+ export declare function PoolApyBreakdownCard({ data, }: PoolApyBreakdownCardProps): React.ReactElement;
@@ -0,0 +1,5 @@
1
+ export declare class SideCardTest {
2
+ static root: string;
3
+ static title: string;
4
+ static body: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './side-card';
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { TitleText } from '../text';
3
+ import { SideCardTest } from './constants';
4
+ export { SideCardTest };
5
+ export interface SideCardProps {
6
+ readonly title: TitleText;
7
+ readonly tip?: React.ReactNode;
8
+ readonly children: React.ReactNode;
9
+ readonly className?: string;
10
+ readonly testId?: string;
11
+ }
12
+ /**
13
+ * Card beside a chart: title row, optional tip. Body columns follow the
14
+ * card's own width — 3, then 2, then 1 as it gets narrower.
15
+ */
16
+ export declare function SideCard({ title, tip, children, className, testId, }: SideCardProps): React.ReactElement;