@gearbox-protocol/permissionless-ui 1.26.11-next.7 → 1.27.0

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 (388) hide show
  1. package/dist/cjs/components/accordion/accordion.cjs +1 -1
  2. package/dist/cjs/components/address/address.cjs +1 -1
  3. package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
  4. package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
  5. package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -1
  6. package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
  7. package/dist/cjs/components/apy/apy.cjs +1 -1
  8. package/dist/cjs/components/arc-loader/arc-loader.cjs +1 -1
  9. package/dist/cjs/components/asset-line/asset-line.cjs +1 -1
  10. package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
  11. package/dist/cjs/components/assets-ratio/assets-ratio.cjs +1 -1
  12. package/dist/cjs/components/auth/connect-required.cjs +1 -1
  13. package/dist/cjs/components/auth/signin-required.cjs +1 -1
  14. package/dist/cjs/components/avatar/avatar.cjs +1 -1
  15. package/dist/cjs/components/badge/badge.cjs +1 -1
  16. package/dist/cjs/components/base-link/base-link.cjs +1 -1
  17. package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
  18. package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
  19. package/dist/cjs/components/button-checkbox/button-checkbox.cjs +1 -1
  20. package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
  21. package/dist/cjs/components/buttons/button/button.cjs +1 -1
  22. package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
  23. package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
  24. package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +1 -1
  25. package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -1
  26. package/dist/cjs/components/card-grid/card-grid.cjs +1 -1
  27. package/dist/cjs/components/cards/card/card.cjs +1 -1
  28. package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +1 -1
  29. package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
  30. package/dist/cjs/components/carousel/carousel.cjs +1 -1
  31. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  32. package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
  33. package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
  34. package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
  35. package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
  36. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  37. package/dist/cjs/components/colored-text/colored-text.cjs +1 -1
  38. package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
  39. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  40. package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
  41. package/dist/cjs/components/credit-session-status/credit-session-status.cjs +1 -1
  42. package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
  43. package/dist/cjs/components/description/description.cjs +1 -1
  44. package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -1
  45. package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +1 -1
  46. package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
  47. package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
  48. package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
  49. package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
  50. package/dist/cjs/components/dialog/dialog-description.cjs +1 -1
  51. package/dist/cjs/components/dialog/dialog-footer.cjs +1 -1
  52. package/dist/cjs/components/dialog/dialog-form.cjs +1 -1
  53. package/dist/cjs/components/dialog/dialog-header.cjs +1 -1
  54. package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -1
  55. package/dist/cjs/components/dialog/dialog-overlay.cjs +1 -1
  56. package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
  57. package/dist/cjs/components/dropdown-label/dropdown-label.cjs +1 -1
  58. package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
  59. package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
  60. package/dist/cjs/components/dropdown-menu/dropdown-menu-item.cjs +1 -1
  61. package/dist/cjs/components/dropdown-menu/dropdown-menu-label.cjs +1 -1
  62. package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
  63. package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +1 -1
  64. package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +1 -1
  65. package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
  66. package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +1 -1
  67. package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
  68. package/dist/cjs/components/error-message/error-line-message.cjs +1 -1
  69. package/dist/cjs/components/error-message/error-message.cjs +1 -1
  70. package/dist/cjs/components/error-view/error-view.cjs +1 -1
  71. package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
  72. package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
  73. package/dist/cjs/components/filter/filter-block.cjs +1 -1
  74. package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
  75. package/dist/cjs/components/filter/filter-chip.cjs +1 -1
  76. package/dist/cjs/components/filter/filter-chips.cjs +1 -1
  77. package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
  78. package/dist/cjs/components/filter/filter-group.cjs +1 -1
  79. package/dist/cjs/components/filter/filter-label.cjs +1 -1
  80. package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
  81. package/dist/cjs/components/filter/filter-modal.cjs +1 -1
  82. package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
  83. package/dist/cjs/components/filter/filter-separator.cjs +1 -1
  84. package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
  85. package/dist/cjs/components/grid-td-cell/grid-td-cell.cjs +1 -1
  86. package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
  87. package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
  88. package/dist/cjs/components/help-sections/help-sections.cjs +1 -1
  89. package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
  90. package/dist/cjs/components/horizontal-indicator/horizontal-indicator.cjs +1 -1
  91. package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
  92. package/dist/cjs/components/icons/fa-icon.cjs +1 -1
  93. package/dist/cjs/components/input/input.cjs +1 -1
  94. package/dist/cjs/components/label/label.cjs +1 -1
  95. package/dist/cjs/components/layout/block/block.cjs +1 -1
  96. package/dist/cjs/components/link/link.cjs +1 -1
  97. package/dist/cjs/components/liquidation/liquidation-assets-table/liquidation-assets-table.cjs +1 -1
  98. package/dist/cjs/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.cjs +1 -1
  99. package/dist/cjs/components/liquidation-price/liquidation-price.cjs +1 -1
  100. package/dist/cjs/components/loader/loader.cjs +1 -1
  101. package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
  102. package/dist/cjs/components/loading-bar/loading-bar.cjs +1 -1
  103. package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
  104. package/dist/cjs/components/modal/modal.cjs +1 -1
  105. package/dist/cjs/components/navbar/navbar-with-overflow.cjs +1 -1
  106. package/dist/cjs/components/navbar/navbar.cjs +1 -1
  107. package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
  108. package/dist/cjs/components/navitem/navitem.cjs +1 -1
  109. package/dist/cjs/components/not-found/not-found.cjs +1 -1
  110. package/dist/cjs/components/options-list/options-list.cjs +1 -1
  111. package/dist/cjs/components/overflow/overflow.cjs +1 -1
  112. package/dist/cjs/components/overflow-container/overflow-container.cjs +1 -1
  113. package/dist/cjs/components/page-title/page-title.cjs +1 -1
  114. package/dist/cjs/components/percent-indicator/percent-indicator.cjs +1 -1
  115. package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
  116. package/dist/cjs/components/pool-indicator-icon/pool-indicator-icon.cjs +1 -1
  117. package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
  118. package/dist/cjs/components/progress/progress.cjs +1 -1
  119. package/dist/cjs/components/progress-bar/progress-bar.cjs +1 -1
  120. package/dist/cjs/components/progress-circle/progress-circle.cjs +1 -1
  121. package/dist/cjs/components/radio-group/radio-group.cjs +1 -1
  122. package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
  123. package/dist/cjs/components/row/row.cjs +1 -1
  124. package/dist/cjs/components/search-bar/search-bar.cjs +1 -1
  125. package/dist/cjs/components/search-line/search-line.cjs +1 -1
  126. package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
  127. package/dist/cjs/components/select/select.cjs +1 -1
  128. package/dist/cjs/components/separate-line/separate-line.cjs +1 -1
  129. package/dist/cjs/components/separator/separator.cjs +1 -1
  130. package/dist/cjs/components/short-string/short-string.cjs +1 -1
  131. package/dist/cjs/components/signatures/confirmation-item.cjs +1 -1
  132. package/dist/cjs/components/simple-accordion/simple-accordion.cjs +1 -1
  133. package/dist/cjs/components/simple-dropdown/simple-dropdown-menu-item.cjs +1 -1
  134. package/dist/cjs/components/simple-dropdown/simple-dropdown.cjs +1 -1
  135. package/dist/cjs/components/skeleton/skeleton-stack.cjs +1 -1
  136. package/dist/cjs/components/skeleton/skeleton.cjs +1 -1
  137. package/dist/cjs/components/slider/slider.cjs +1 -1
  138. package/dist/cjs/components/slider-token/slider-token.cjs +1 -1
  139. package/dist/cjs/components/smart-number-input/balance-indicator.cjs +1 -1
  140. package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
  141. package/dist/cjs/components/spinner/spinner.cjs +1 -1
  142. package/dist/cjs/components/spinner-loader/spinner-loader.cjs +1 -1
  143. package/dist/cjs/components/split-list/split-list.cjs +1 -1
  144. package/dist/cjs/components/stat-badge/stat-badge.cjs +1 -1
  145. package/dist/cjs/components/status-dot/status-dot.cjs +1 -1
  146. package/dist/cjs/components/status-elements/status-elements.cjs +1 -1
  147. package/dist/cjs/components/status-triangle/status-triangle.cjs +1 -1
  148. package/dist/cjs/components/stepper/stepper.cjs +1 -1
  149. package/dist/cjs/components/styled-dropdown/styled-dropdown.cjs +1 -1
  150. package/dist/cjs/components/switch/switch.cjs +1 -1
  151. package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
  152. package/dist/cjs/components/table/edit-button.cjs +1 -1
  153. package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
  154. package/dist/cjs/components/table/editable-table.cjs +1 -1
  155. package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
  156. package/dist/cjs/components/table/table-sm.cjs +1 -1
  157. package/dist/cjs/components/table/table.cjs +1 -1
  158. package/dist/cjs/components/tabs/tabs.cjs +1 -1
  159. package/dist/cjs/components/text-button/text-button.cjs +1 -1
  160. package/dist/cjs/components/textarea/textarea.cjs +1 -1
  161. package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
  162. package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
  163. package/dist/cjs/components/toggle/toggle.cjs +1 -1
  164. package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
  165. package/dist/cjs/components/token-template/token-template.cjs +1 -1
  166. package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
  167. package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -1
  168. package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
  169. package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
  170. package/dist/cjs/components/typography/typography.cjs +1 -1
  171. package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
  172. package/dist/cjs/components/vertical-list/vertical-list.cjs +1 -1
  173. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  174. package/dist/cjs/components/with-filter-button/with-filter-button.cjs +1 -1
  175. package/dist/cjs/components/with-title/with-title.cjs +1 -1
  176. package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
  177. package/dist/cjs/hooks/use-hf.cjs +1 -1
  178. package/dist/cjs/hooks/use-liquidation/index.cjs +1 -1
  179. package/dist/cjs/utils/format-money.cjs +1 -1
  180. package/dist/cjs/utils/templates.cjs +1 -1
  181. package/dist/esm/components/accordion/accordion.js +7 -8
  182. package/dist/esm/components/address/address.js +2 -3
  183. package/dist/esm/components/alert-badge/alert-badge.js +0 -1
  184. package/dist/esm/components/alert-dialog/alert-dialog.js +7 -8
  185. package/dist/esm/components/alert-modal/alert-modal.js +0 -1
  186. package/dist/esm/components/app-bar/app-bar.js +0 -1
  187. package/dist/esm/components/apy/apy.js +9 -10
  188. package/dist/esm/components/arc-loader/arc-loader.js +0 -1
  189. package/dist/esm/components/asset-line/asset-line.js +9 -10
  190. package/dist/esm/components/assets-list-cell/assets-list-cell.js +2 -3
  191. package/dist/esm/components/assets-ratio/assets-ratio.js +11 -12
  192. package/dist/esm/components/auth/connect-required.js +2 -3
  193. package/dist/esm/components/auth/signin-required.js +11 -12
  194. package/dist/esm/components/avatar/avatar.js +9 -10
  195. package/dist/esm/components/badge/badge.js +6 -7
  196. package/dist/esm/components/base-link/base-link.js +7 -8
  197. package/dist/esm/components/block-sync/block-sync.js +2 -3
  198. package/dist/esm/components/breadcrumbs/breadcrumbs.js +2 -3
  199. package/dist/esm/components/button-checkbox/button-checkbox.js +13 -16
  200. package/dist/esm/components/buttons/back-button/back-button.js +6 -7
  201. package/dist/esm/components/buttons/button/button.js +4 -5
  202. package/dist/esm/components/buttons/copy-button/copy-button.js +7 -8
  203. package/dist/esm/components/buttons/external-button/external-button.js +7 -8
  204. package/dist/esm/components/buttons/navigation-button/navigation-button.js +3 -4
  205. package/dist/esm/components/buttons/range-buttons/range-buttons.js +2 -3
  206. package/dist/esm/components/card-grid/card-grid.js +4 -5
  207. package/dist/esm/components/cards/card/card.js +0 -1
  208. package/dist/esm/components/cards/expandable-call/expandable-call.js +19 -20
  209. package/dist/esm/components/cards/expandable-card/expandable-card.js +11 -12
  210. package/dist/esm/components/carousel/carousel.js +14 -15
  211. package/dist/esm/components/checkbox/checkbox-labeled.js +0 -1
  212. package/dist/esm/components/checkbox/checkbox.js +0 -1
  213. package/dist/esm/components/checkbox-item/checkbox-item.js +9 -10
  214. package/dist/esm/components/client-adapters/styled-button/styled-button.js +4 -5
  215. package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +0 -1
  216. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +0 -1
  217. package/dist/esm/components/colored-text/colored-text.js +0 -1
  218. package/dist/esm/components/complex-input/complex-input.js +2 -3
  219. package/dist/esm/components/compound-apy/compound-apy.js +2 -3
  220. package/dist/esm/components/confirm-menu/confirm-menu.js +3 -4
  221. package/dist/esm/components/credit-session-status/credit-session-status.js +2 -3
  222. package/dist/esm/components/currency-button/currency-button.js +9 -10
  223. package/dist/esm/components/description/description.js +0 -1
  224. package/dist/esm/components/detailed-apy/detailed-apy.js +8 -9
  225. package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +0 -1
  226. package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +0 -1
  227. package/dist/esm/components/detailed-page-title/detailed-page-title.js +0 -1
  228. package/dist/esm/components/dialog/dialog-container.js +6 -7
  229. package/dist/esm/components/dialog/dialog-content.js +0 -1
  230. package/dist/esm/components/dialog/dialog-description.js +4 -5
  231. package/dist/esm/components/dialog/dialog-footer.js +0 -1
  232. package/dist/esm/components/dialog/dialog-form.js +11 -12
  233. package/dist/esm/components/dialog/dialog-header.js +4 -5
  234. package/dist/esm/components/dialog/dialog-modal-container.js +0 -1
  235. package/dist/esm/components/dialog/dialog-overlay.js +3 -4
  236. package/dist/esm/components/dialog/dialog-title.js +0 -1
  237. package/dist/esm/components/dropdown-label/dropdown-label.js +6 -7
  238. package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +0 -1
  239. package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -5
  240. package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +3 -4
  241. package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +3 -4
  242. package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +3 -4
  243. package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +7 -8
  244. package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +0 -1
  245. package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +0 -1
  246. package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +7 -8
  247. package/dist/esm/components/edit-input/edit-input.js +6 -7
  248. package/dist/esm/components/error-message/error-line-message.js +5 -6
  249. package/dist/esm/components/error-message/error-message.js +2 -3
  250. package/dist/esm/components/error-view/error-view.js +2 -3
  251. package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +2 -3
  252. package/dist/esm/components/fadeout-loading/fadeout-loading.js +0 -1
  253. package/dist/esm/components/filter/filter-block.js +0 -1
  254. package/dist/esm/components/filter/filter-checkbox-item.js +3 -4
  255. package/dist/esm/components/filter/filter-chip.js +8 -9
  256. package/dist/esm/components/filter/filter-chips.js +5 -6
  257. package/dist/esm/components/filter/filter-dropdown-item.js +11 -12
  258. package/dist/esm/components/filter/filter-group.js +0 -1
  259. package/dist/esm/components/filter/filter-label.js +0 -1
  260. package/dist/esm/components/filter/filter-modal-item.js +4 -5
  261. package/dist/esm/components/filter/filter-modal.js +2 -3
  262. package/dist/esm/components/filter/filter-radio-item.js +4 -5
  263. package/dist/esm/components/filter/filter-separator.js +3 -4
  264. package/dist/esm/components/formatted-number/formatted-number.js +2 -3
  265. package/dist/esm/components/grid-td-cell/grid-td-cell.js +2 -3
  266. package/dist/esm/components/head-cell/head-cell.js +12 -13
  267. package/dist/esm/components/health-factor/health-factor.js +6 -7
  268. package/dist/esm/components/help-sections/help-sections.js +7 -8
  269. package/dist/esm/components/help-tip/help-tip.js +4 -5
  270. package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +2 -3
  271. package/dist/esm/components/icon-button/icon-button.js +6 -7
  272. package/dist/esm/components/icons/fa-icon.js +2 -3
  273. package/dist/esm/components/input/input.js +62 -56
  274. package/dist/esm/components/label/label.js +0 -1
  275. package/dist/esm/components/layout/block/block.js +2 -3
  276. package/dist/esm/components/link/link.js +13 -14
  277. package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js +5 -6
  278. package/dist/esm/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.js +17 -18
  279. package/dist/esm/components/liquidation-price/liquidation-price.js +2 -3
  280. package/dist/esm/components/loader/loader.js +0 -1
  281. package/dist/esm/components/loader-guard/loader-guard.js +2 -3
  282. package/dist/esm/components/loading-bar/loading-bar.js +0 -1
  283. package/dist/esm/components/markdown-viewer/markdown-viewer.js +2 -3
  284. package/dist/esm/components/modal/modal.js +7 -8
  285. package/dist/esm/components/navbar/navbar-with-overflow.js +2 -3
  286. package/dist/esm/components/navbar/navbar.js +21 -22
  287. package/dist/esm/components/navbar-logo/navbar-logo.js +2 -3
  288. package/dist/esm/components/navitem/navitem.js +0 -1
  289. package/dist/esm/components/not-found/not-found.js +2 -3
  290. package/dist/esm/components/options-list/options-list.js +4 -5
  291. package/dist/esm/components/overflow/overflow.js +8 -9
  292. package/dist/esm/components/overflow-container/overflow-container.js +2 -3
  293. package/dist/esm/components/page-title/page-title.js +5 -6
  294. package/dist/esm/components/percent-indicator/percent-indicator.js +2 -3
  295. package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +2 -3
  296. package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +5 -6
  297. package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +2 -3
  298. package/dist/esm/components/progress/progress.js +5 -6
  299. package/dist/esm/components/progress-bar/progress-bar.js +16 -17
  300. package/dist/esm/components/progress-circle/progress-circle.js +10 -11
  301. package/dist/esm/components/radio-group/radio-group.js +0 -1
  302. package/dist/esm/components/rounded-image/rounded-image.js +0 -1
  303. package/dist/esm/components/row/row.js +2 -3
  304. package/dist/esm/components/search-bar/search-bar.js +4 -5
  305. package/dist/esm/components/search-line/search-line.js +0 -1
  306. package/dist/esm/components/segmented-control/segmented-control.js +8 -9
  307. package/dist/esm/components/select/select.js +3 -4
  308. package/dist/esm/components/separate-line/separate-line.js +0 -1
  309. package/dist/esm/components/separator/separator.js +3 -4
  310. package/dist/esm/components/short-string/short-string.js +3 -4
  311. package/dist/esm/components/signatures/confirmation-item.js +2 -3
  312. package/dist/esm/components/simple-accordion/simple-accordion.js +0 -1
  313. package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +0 -1
  314. package/dist/esm/components/simple-dropdown/simple-dropdown.js +4 -5
  315. package/dist/esm/components/skeleton/skeleton-stack.js +6 -7
  316. package/dist/esm/components/skeleton/skeleton.js +2 -3
  317. package/dist/esm/components/slider/slider.js +0 -1
  318. package/dist/esm/components/slider-token/slider-token.js +12 -13
  319. package/dist/esm/components/smart-number-input/balance-indicator.js +13 -14
  320. package/dist/esm/components/smart-number-input/smart-number-input.js +0 -1
  321. package/dist/esm/components/spinner/spinner.js +0 -1
  322. package/dist/esm/components/spinner-loader/spinner-loader.js +7 -8
  323. package/dist/esm/components/split-list/split-list.js +4 -5
  324. package/dist/esm/components/stat-badge/stat-badge.js +9 -10
  325. package/dist/esm/components/status-dot/status-dot.js +3 -4
  326. package/dist/esm/components/status-elements/status-elements.js +6 -7
  327. package/dist/esm/components/status-triangle/status-triangle.js +5 -6
  328. package/dist/esm/components/stepper/stepper.js +20 -21
  329. package/dist/esm/components/styled-dropdown/styled-dropdown.js +2 -3
  330. package/dist/esm/components/switch/switch.js +7 -8
  331. package/dist/esm/components/tab-control/tab-control.js +36 -37
  332. package/dist/esm/components/table/edit-button.js +2 -3
  333. package/dist/esm/components/table/editable-grid-table.js +35 -36
  334. package/dist/esm/components/table/editable-table.js +16 -17
  335. package/dist/esm/components/table/grid-loading-line.js +13 -14
  336. package/dist/esm/components/table/table-sm.js +20 -21
  337. package/dist/esm/components/table/table.js +0 -1
  338. package/dist/esm/components/tabs/tabs.js +6 -7
  339. package/dist/esm/components/text-button/text-button.js +9 -10
  340. package/dist/esm/components/textarea/textarea.js +0 -1
  341. package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +0 -1
  342. package/dist/esm/components/tip-card/tip-card.js +4 -5
  343. package/dist/esm/components/toggle/toggle.js +0 -1
  344. package/dist/esm/components/token-symbol/token-symbol.js +4 -5
  345. package/dist/esm/components/token-template/token-template.js +5 -6
  346. package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +2 -3
  347. package/dist/esm/components/tooltip/simple-tooltip.js +0 -1
  348. package/dist/esm/components/tooltip/tooltip.js +6 -7
  349. package/dist/esm/components/trading-view/trading-view.js +2 -3
  350. package/dist/esm/components/typography/typography.js +4 -5
  351. package/dist/esm/components/vertical-indicator/vertical-indicator.js +0 -1
  352. package/dist/esm/components/vertical-list/vertical-list.js +8 -9
  353. package/dist/esm/components/with-copy/with-copy.js +2 -3
  354. package/dist/esm/components/with-filter-button/with-filter-button.js +0 -1
  355. package/dist/esm/components/with-title/with-title.js +7 -8
  356. package/dist/esm/hooks/use-debounce-call.js +5 -6
  357. package/dist/esm/hooks/use-hf.js +22 -22
  358. package/dist/esm/hooks/use-liquidation/index.js +65 -66
  359. package/dist/esm/utils/format-money.js +17 -18
  360. package/dist/esm/utils/templates.js +20 -21
  361. package/dist/globals.css +1 -1
  362. package/dist/types/components/asset-line/asset-line.d.ts +3 -4
  363. package/dist/types/components/compound-apy/compound-apy.d.ts +4 -3
  364. package/dist/types/components/credit-session-status/credit-session-status.d.ts +1 -1
  365. package/dist/types/components/currency-button/currency-button.d.ts +2 -2
  366. package/dist/types/components/detailed-apy/detailed-apy.d.ts +5 -5
  367. package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +2 -2
  368. package/dist/types/components/liquidation/liquidation-assets-table/liquidation-assets-table.d.ts +2 -2
  369. package/dist/types/components/liquidation/liquidation-graph/liquidation-graph.d.ts +4 -5
  370. package/dist/types/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.d.ts +2 -2
  371. package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +3 -3
  372. package/dist/types/components/slider-token/slider-token.d.ts +2 -2
  373. package/dist/types/components/smart-number-input/balance-indicator.d.ts +2 -2
  374. package/dist/types/components/smart-number-input/smart-number-input.d.ts +10 -2
  375. package/dist/types/components/token-symbol/token-symbol.d.ts +6 -2
  376. package/dist/types/components/token-template/token-template.d.ts +2 -2
  377. package/dist/types/components/tokens-list-cell/tokens-list-cell.d.ts +2 -2
  378. package/dist/types/hooks/use-hf.d.ts +3 -4
  379. package/dist/types/hooks/use-liquidation/index.d.ts +8 -9
  380. package/dist/types/hooks/use-liquidation/types.d.ts +2 -2
  381. package/dist/types/hooks/use-liquidation/utils.d.ts +10 -11
  382. package/dist/types/utils/interface.d.ts +9 -0
  383. package/dist/types/utils/search-in-token.d.ts +4 -4
  384. package/dist/types/utils/templates.d.ts +8 -8
  385. package/package.json +7 -7
  386. package/dist/cjs/types/common.cjs +0 -1
  387. package/dist/esm/types/common.js +0 -1
  388. package/dist/types/types/common.d.ts +0 -23
@@ -4,7 +4,6 @@ import { toast as ie } from "sonner";
4
4
  import { useIsMobile as le } from "../../hooks/use-media-query.js";
5
5
  import "@gearbox-protocol/sdk";
6
6
  import { cn as se } from "../../utils/cn.js";
7
- import "@gearbox-protocol/sdk/common-utils";
8
7
  import "luxon";
9
8
  import "../../utils/z-index.js";
10
9
  import { RangeButtons as ce } from "../buttons/range-buttons/range-buttons.js";
@@ -79,7 +78,7 @@ function z(e, t) {
79
78
  c.set(o, p);
80
79
  we(e, c);
81
80
  }
82
- function Re({
81
+ function Ne({
83
82
  data: e,
84
83
  yMeasureUnit: t,
85
84
  height: c = 306,
@@ -242,5 +241,5 @@ function Re({
242
241
  );
243
242
  }
244
243
  export {
245
- Re as TradingView
244
+ Ne as TradingView
246
245
  };
@@ -1,10 +1,9 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { cva as x } from "class-variance-authority";
3
- import * as p from "react";
3
+ import * as c from "react";
4
4
  import "@gearbox-protocol/sdk";
5
- import { cn as c } from "../../utils/cn.js";
5
+ import { cn as p } from "../../utils/cn.js";
6
6
  import "sonner";
7
- import "@gearbox-protocol/sdk/common-utils";
8
7
  import "luxon";
9
8
  import "../../utils/z-index.js";
10
9
  const g = x("", {
@@ -76,7 +75,7 @@ const g = x("", {
76
75
  caption: "span",
77
76
  overline: "span",
78
77
  inherit: "span"
79
- }, u = p.forwardRef(
78
+ }, u = c.forwardRef(
80
79
  ({
81
80
  className: e,
82
81
  variant: t = "inherit",
@@ -93,7 +92,7 @@ const g = x("", {
93
92
  d,
94
93
  {
95
94
  ref: m,
96
- className: c(
95
+ className: p(
97
96
  g({
98
97
  variant: t,
99
98
  color: i,
@@ -4,7 +4,6 @@ import * as V from "react";
4
4
  import "@gearbox-protocol/sdk";
5
5
  import { cn as a } from "../../utils/cn.js";
6
6
  import "sonner";
7
- import "@gearbox-protocol/sdk/common-utils";
8
7
  import "luxon";
9
8
  import "../../utils/z-index.js";
10
9
  import { Description as f } from "../description/description.js";
@@ -4,7 +4,6 @@ import * as r from "react";
4
4
  import "@gearbox-protocol/sdk";
5
5
  import { cn as t } from "../../utils/cn.js";
6
6
  import "sonner";
7
- import "@gearbox-protocol/sdk/common-utils";
8
7
  import "luxon";
9
8
  import "../../utils/z-index.js";
10
9
  const u = c("flex flex-col [&>li:empty]:hidden", {
@@ -36,12 +35,12 @@ const u = c("flex flex-col [&>li:empty]:hidden", {
36
35
  ({
37
36
  className: s,
38
37
  rowGap: f = "default",
39
- divided: o = !1,
38
+ divided: a = !1,
40
39
  nested: p = !1,
41
- children: m,
42
- ...n
40
+ children: n,
41
+ ...m
43
42
  }, d) => {
44
- const a = r.Children.toArray(m).filter(
43
+ const o = r.Children.toArray(n).filter(
45
44
  (e) => e != null
46
45
  );
47
46
  return /* @__PURE__ */ i(
@@ -49,18 +48,18 @@ const u = c("flex flex-col [&>li:empty]:hidden", {
49
48
  {
50
49
  ref: d,
51
50
  className: t(
52
- u({ rowGap: f, divided: o, nested: p }),
51
+ u({ rowGap: f, divided: a, nested: p }),
53
52
  "list-none",
54
53
  s
55
54
  ),
56
- ...n,
57
- children: a.map((e, l) => {
55
+ ...m,
56
+ children: o.map((e, l) => {
58
57
  const b = r.isValidElement(e) && e.key ? e.key : `vertical-list-item-${l}`;
59
58
  return /* @__PURE__ */ i(
60
59
  "li",
61
60
  {
62
61
  className: t(
63
- o && l !== a.length - 1 && "pb-3 border-b border-border"
62
+ a && l !== o.length - 1 && "pb-3 border-b border-border"
64
63
  ),
65
64
  children: e
66
65
  },
@@ -6,7 +6,6 @@ import { FaIcon as j } from "../icons/fa-icon.js";
6
6
  import "@gearbox-protocol/sdk";
7
7
  import { cn as i } from "../../utils/cn.js";
8
8
  import "sonner";
9
- import "@gearbox-protocol/sdk/common-utils";
10
9
  import "luxon";
11
10
  import "../../utils/z-index.js";
12
11
  import "../accordion/accordion.js";
@@ -158,7 +157,7 @@ import "../tip-card/tip-card.js";
158
157
  import "../toggle/toggle.js";
159
158
  import "../typography/typography.js";
160
159
  import "../with-filter-button/with-filter-button.js";
161
- function Tr({
160
+ function jr({
162
161
  toCopy: u,
163
162
  children: d,
164
163
  onCopySuccess: f,
@@ -240,5 +239,5 @@ function Tr({
240
239
  return a ? /* @__PURE__ */ t(T, { placement: "top", triangle: !0, title: c(), children: a }) : c();
241
240
  }
242
241
  export {
243
- Tr as WithCopy
242
+ jr as WithCopy
244
243
  };
@@ -5,7 +5,6 @@ import { FilterButton as F } from "../buttons/filter-button/filter-button.js";
5
5
  import "@gearbox-protocol/sdk";
6
6
  import { cn as g } from "../../utils/cn.js";
7
7
  import "sonner";
8
- import "@gearbox-protocol/sdk/common-utils";
9
8
  import "luxon";
10
9
  import "../../utils/z-index.js";
11
10
  const j = z.forwardRef(
@@ -1,13 +1,12 @@
1
- import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
- import { cva as x } from "class-variance-authority";
1
+ import { jsxs as x, jsx as i } from "react/jsx-runtime";
2
+ import { cva as a } from "class-variance-authority";
3
3
  import "react";
4
4
  import "@gearbox-protocol/sdk";
5
5
  import { cn as e } from "../../utils/cn.js";
6
6
  import "sonner";
7
- import "@gearbox-protocol/sdk/common-utils";
8
7
  import "luxon";
9
8
  import "../../utils/z-index.js";
10
- const a = x("", {
9
+ const p = a("", {
11
10
  variants: {
12
11
  size: {
13
12
  sm: "text-[14px] mb-[14px]",
@@ -20,19 +19,19 @@ const a = x("", {
20
19
  size: "default"
21
20
  }
22
21
  });
23
- function g({
22
+ function b({
24
23
  title: m,
25
24
  children: t,
26
25
  size: o = "default",
27
26
  className: r
28
27
  }) {
29
- return /* @__PURE__ */ p("div", { className: e("flex flex-col"), children: [
28
+ return /* @__PURE__ */ x("div", { className: e("flex flex-col"), children: [
30
29
  /* @__PURE__ */ i(
31
30
  "div",
32
31
  {
33
32
  className: e(
34
33
  "text-foreground font-medium",
35
- a({ size: o }),
34
+ p({ size: o }),
36
35
  r
37
36
  ),
38
37
  children: m
@@ -42,5 +41,5 @@ function g({
42
41
  ] });
43
42
  }
44
43
  export {
45
- g as WithTitle
44
+ b as WithTitle
46
45
  };
@@ -1,11 +1,10 @@
1
1
  import "react";
2
- import { useDebounce as e } from "./use-debounce.js";
3
- import "@gearbox-protocol/sdk/common-utils";
2
+ import { useDebounce as o } from "./use-debounce.js";
4
3
  import "@gearbox-protocol/sdk";
5
- const n = (o) => o();
6
- function m(o) {
7
- return e(n, o);
4
+ const n = (e) => e();
5
+ function b(e) {
6
+ return o(n, e);
8
7
  }
9
8
  export {
10
- m as useDebounceCall
9
+ b as useDebounceCall
11
10
  };
@@ -1,43 +1,43 @@
1
- import { calcHealthFactor as p } from "@gearbox-protocol/sdk/common-utils";
2
- import { useMemo as E } from "react";
3
- function H({
4
- assets: t,
1
+ import { CreditAccountData_Legacy as l } from "@gearbox-protocol/sdk";
2
+ import { useMemo as p } from "react";
3
+ function _({
4
+ assets: e,
5
5
  quotas: c,
6
- prices: f,
7
- liquidationThresholds: n,
8
- underlyingToken: u,
9
- debt: e,
6
+ prices: n,
7
+ liquidationThresholds: u,
8
+ underlyingToken: f,
9
+ debt: t,
10
10
  quotasInfo: o,
11
11
  allowZeroDebt: m = !1,
12
- tokensList: l
12
+ tokensList: a
13
13
  }) {
14
- return { hf: E(() => {
14
+ return { hf: p(() => {
15
15
  try {
16
- return e === 0n && !m ? 0 : p({
17
- assets: t,
16
+ return t === 0n && !m ? 0 : l.calcHealthFactor({
17
+ assets: e,
18
18
  quotas: c,
19
- prices: f,
20
- liquidationThresholds: n,
21
- underlyingToken: u,
22
- debt: e,
19
+ prices: n,
20
+ liquidationThresholds: u,
21
+ underlyingToken: f,
22
+ debt: t,
23
23
  quotasInfo: o,
24
- tokensList: l
24
+ tokensList: a
25
25
  });
26
26
  } catch (r) {
27
27
  return typeof r == "object" && r !== null && "reason" in r && r.reason === "overflow" ? Number.MAX_SAFE_INTEGER : 0;
28
28
  }
29
29
  }, [
30
- t,
30
+ e,
31
31
  c,
32
- f,
33
32
  n,
34
33
  u,
35
- e,
34
+ f,
35
+ t,
36
36
  o,
37
37
  m,
38
- l
38
+ a
39
39
  ]) };
40
40
  }
41
41
  export {
42
- H as useHF
42
+ _ as useHF
43
43
  };
@@ -1,50 +1,49 @@
1
- import { toBN as v, PRICE_DECIMALS_POW as R } from "@gearbox-protocol/sdk";
2
- import { calcHealthFactor as U } from "@gearbox-protocol/sdk/common-utils";
3
- import { useMemo as G, useState as F, useCallback as Y } from "react";
4
- import { useFixedAssets as g, usePriceInNumber as S, useAxis as X, DEFAULT_AXIS_MAX as x } from "./utils.js";
5
- import { CELL_BAD as Z, CELL_CURRENT as $, CELL_GOOD as b, CELL_HOVERED as j, CELL_LIQUIDATION as M, CELL_OK as tt, DEFAULT_AXIS_MIN as et, formatAxisLabel as rt, formatAxisTipLabel as it, formatAxisTipPrice as st, getCellClass as nt, isPointInCell as ct, useIsAxisInRelativeUnits as ot, useLiquidationGraphActivePrice as at, useLiquidationGraphCurrentActiveValue as ut, useWithLiquidationGraphActivePrices as pt } from "./utils.js";
6
- const L = 35;
7
- function K({
1
+ import { toBN as v, PRICE_DECIMALS_POW as R, CreditAccountData_Legacy as U } from "@gearbox-protocol/sdk";
2
+ import { useMemo as G, useState as g, useCallback as F } from "react";
3
+ import { useFixedAssets as Y, usePriceInNumber as S, useAxis as X, DEFAULT_AXIS_MAX as x } from "./utils.js";
4
+ import { CELL_BAD as J, CELL_CURRENT as Z, CELL_GOOD as $, CELL_HOVERED as b, CELL_LIQUIDATION as j, CELL_OK as M, DEFAULT_AXIS_MIN as tt, formatAxisLabel as et, formatAxisTipLabel as rt, formatAxisTipPrice as it, getCellClass as nt, isPointInCell as st, useIsAxisInRelativeUnits as ct, useLiquidationGraphActivePrice as ot, useLiquidationGraphCurrentActiveValue as at, useWithLiquidationGraphActivePrices as ut } from "./utils.js";
5
+ const m = 35;
6
+ function W({
8
7
  xMin: t,
9
8
  xMax: e,
10
9
  yMin: r,
11
10
  yMax: c,
12
11
  xLabel: i,
13
- yLabel: s,
14
- assets: n,
12
+ yLabel: n,
13
+ assets: s,
15
14
  quotas: o,
16
15
  prices: u,
17
16
  liquidationThresholds: a,
18
- quotasInfo: p,
19
- underlyingTokenAddress: m,
20
- debt: A,
17
+ quotasInfo: A,
18
+ underlyingTokenAddress: p,
19
+ debt: E,
21
20
  tokensList: l
22
21
  }) {
23
22
  return G(() => {
24
- const N = e - t, T = c - r, P = N / L, d = T / L, f = Array.from(Array(L)), E = { ...u };
25
- return f.flatMap((B, C) => {
26
- const _ = t + C * P, I = t + (C + 1) * P;
27
- return i && (E[i.address] = v(
28
- String((_ + I) / 2),
23
+ const N = e - t, T = c - r, d = N / m, C = T / m, P = Array.from(Array(m)), L = { ...u };
24
+ return P.flatMap((B, _) => {
25
+ const f = t + _ * d, I = t + (_ + 1) * d;
26
+ return i && (L[i.address] = v(
27
+ String((f + I) / 2),
29
28
  R
30
- )), f.map((H, D) => {
31
- const O = r + D * d, h = r + (D + 1) * d;
32
- return s && (E[s.address] = v(
29
+ )), P.map((H, D) => {
30
+ const O = r + D * C, h = r + (D + 1) * C;
31
+ return n && (L[n.address] = v(
33
32
  String((O + h) / 2),
34
33
  R
35
34
  )), {
36
- x: _,
35
+ x: f,
37
36
  xEnd: I,
38
37
  y: O,
39
38
  yEnd: h,
40
- value: U({
41
- assets: n,
39
+ value: U.calcHealthFactor({
40
+ assets: s,
42
41
  quotas: o,
43
- prices: E,
42
+ prices: L,
44
43
  liquidationThresholds: a,
45
- underlyingToken: m,
46
- debt: A,
47
- quotasInfo: p,
44
+ underlyingToken: p,
45
+ debt: E,
46
+ quotasInfo: A,
48
47
  tokensList: l
49
48
  })
50
49
  };
@@ -56,83 +55,83 @@ function K({
56
55
  r,
57
56
  c,
58
57
  i,
59
- s,
60
58
  n,
59
+ s,
61
60
  o,
62
61
  u,
63
62
  a,
64
- m,
65
- A,
66
63
  p,
64
+ E,
65
+ A,
67
66
  l
68
67
  ]);
69
68
  }
70
- function Q({ prices: t }) {
71
- const [e, r] = F({}), c = G(
69
+ function K({ prices: t }) {
70
+ const [e, r] = g({}), c = G(
72
71
  () => ({ ...t, ...e }),
73
72
  [t, e]
74
- ), i = Y(
75
- (s, n) => {
76
- r({ ...e, [n]: s });
73
+ ), i = F(
74
+ (n, s) => {
75
+ r({ ...e, [s]: n });
77
76
  },
78
77
  [e]
79
78
  );
80
79
  return [c, i];
81
80
  }
82
- function w({
81
+ function Q({
83
82
  assets: t,
84
83
  liquidationThresholds: e,
85
84
  quotas: r,
86
85
  quotasInfo: c,
87
86
  tokensList: i,
88
- prices: s
87
+ prices: n
89
88
  }) {
90
- const [n] = g({
89
+ const [s] = Y({
91
90
  assets: t,
92
91
  liquidationThresholds: e,
93
92
  quotas: r,
94
93
  quotasInfo: c
95
94
  }), [o, u] = S({
96
- asset: n[0],
95
+ asset: s[0],
97
96
  tokensList: i,
98
- prices: s
99
- }), [a, p] = S({
100
- asset: n[1],
97
+ prices: n
98
+ }), [a, A] = S({
99
+ asset: s[1],
101
100
  tokensList: i,
102
- prices: s
103
- }), m = X({ currentPrice: o, token: u }), A = X({ currentPrice: a, token: p });
101
+ prices: n
102
+ }), p = X({ currentPrice: o, token: u }), E = X({ currentPrice: a, token: A });
104
103
  return {
105
- xAxis: m,
106
- yAxis: A,
104
+ xAxis: p,
105
+ yAxis: E,
107
106
  currentPoint: [
108
107
  o || x / 2,
109
108
  a || x / 2
110
109
  ],
111
- fixedBalances: n
110
+ fixedBalances: s
112
111
  };
113
112
  }
114
113
  export {
115
- Z as CELL_BAD,
116
- $ as CELL_CURRENT,
117
- b as CELL_GOOD,
118
- j as CELL_HOVERED,
119
- M as CELL_LIQUIDATION,
120
- tt as CELL_OK,
114
+ J as CELL_BAD,
115
+ Z as CELL_CURRENT,
116
+ $ as CELL_GOOD,
117
+ b as CELL_HOVERED,
118
+ j as CELL_LIQUIDATION,
119
+ M as CELL_OK,
121
120
  x as DEFAULT_AXIS_MAX,
122
- et as DEFAULT_AXIS_MIN,
123
- rt as formatAxisLabel,
124
- it as formatAxisTipLabel,
125
- st as formatAxisTipPrice,
121
+ tt as DEFAULT_AXIS_MIN,
122
+ et as formatAxisLabel,
123
+ rt as formatAxisTipLabel,
124
+ it as formatAxisTipPrice,
126
125
  nt as getCellClass,
127
- ct as isPointInCell,
126
+ st as isPointInCell,
128
127
  X as useAxis,
129
- Q as useEditPriceManually,
130
- g as useFixedAssets,
131
- ot as useIsAxisInRelativeUnits,
132
- at as useLiquidationGraphActivePrice,
133
- ut as useLiquidationGraphCurrentActiveValue,
134
- w as useLiquidationGraphParams,
135
- K as useLiquidationHeatmap,
128
+ K as useEditPriceManually,
129
+ Y as useFixedAssets,
130
+ ct as useIsAxisInRelativeUnits,
131
+ ot as useLiquidationGraphActivePrice,
132
+ at as useLiquidationGraphCurrentActiveValue,
133
+ Q as useLiquidationGraphParams,
134
+ W as useLiquidationHeatmap,
136
135
  S as usePriceInNumber,
137
- pt as useWithLiquidationGraphActivePrices
136
+ ut as useWithLiquidationGraphActivePrices
138
137
  };
@@ -1,5 +1,4 @@
1
- import { formatBN as M, WAD_DECIMALS_POW as $, PERCENTAGE_FACTOR as A } from "@gearbox-protocol/sdk";
2
- import { BigIntMath as g } from "@gearbox-protocol/sdk/common-utils";
1
+ import { BigIntMath as M, formatBN as $, WAD_DECIMALS_POW as A, PERCENTAGE_FACTOR as g } from "@gearbox-protocol/sdk";
3
2
  import "react";
4
3
  import { bnToInputView as h } from "./bn-to-input-view.js";
5
4
  import "clsx";
@@ -12,21 +11,21 @@ const _ = 10000000000000000n;
12
11
  function F(t) {
13
12
  return BigInt(t.toFixed(18).replace(".", ""));
14
13
  }
15
- function U(t, r) {
16
- const n = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", s = typeof t == "number" ? F(Math.abs(t)) : g.abs(t), u = s < _ && s > 0n, f = u ? "0.01" : M(s, $, r), o = `${n}$${f}`;
14
+ function H(t, r) {
15
+ const n = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", s = typeof t == "number" ? F(Math.abs(t)) : M.abs(t), u = s < _ && s > 0n, f = u ? "0.01" : $(s, A, r), o = `${n}$${f}`;
17
16
  return u ? `< ${o}` : o;
18
17
  }
19
18
  const O = 1e4;
20
- function l(t, r, i = !0) {
19
+ function p(t, r, i = !0) {
21
20
  const n = typeof t == "number" ? t : Number(t);
22
21
  return Number.isNaN(n) || n === void 0 || n === null ? "0" : n === 0 ? 0 : i && n > O ? n.toExponential(r) : n.toFixed(r);
23
22
  }
24
- function V(t, r = 2) {
25
- return `${l(t, r)}%`;
23
+ function U(t, r = 2) {
24
+ return `${p(t, r)}%`;
26
25
  }
27
- function W(t, r = 2) {
28
- const i = Number(t) / Number(A);
29
- return `${l(i, r)}%`;
26
+ function V(t, r = 2) {
27
+ const i = Number(t) / Number(g);
28
+ return `${p(i, r)}%`;
30
29
  }
31
30
  const c = {
32
31
  minimumFractionDigits: 2,
@@ -36,7 +35,7 @@ const c = {
36
35
  minExponentialThreshold: 1e-4,
37
36
  maxExponentialThreshold: 1e6,
38
37
  locale: "en-US"
39
- }, X = ({
38
+ }, W = ({
40
39
  amount: t,
41
40
  format: r = "full",
42
41
  maximumFractionDigits: i = c.maximumFractionDigits,
@@ -49,8 +48,8 @@ const c = {
49
48
  }) => {
50
49
  const m = typeof t == "bigint" ? Number(h(t, 8)) : t, e = Math.abs(m);
51
50
  if (r === "short") {
52
- const T = m < 0 ? "-" : "", a = (p, d) => {
53
- const b = p >= 100 ? 0 : i, E = p.toFixed(b).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
51
+ const T = m < 0 ? "-" : "", a = (l, d) => {
52
+ const b = l >= 100 ? 0 : i, E = l.toFixed(b).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
54
53
  return `${T}${E}${d}`;
55
54
  };
56
55
  if (e >= 1e9 && e <= o)
@@ -69,9 +68,9 @@ const c = {
69
68
  };
70
69
  export {
71
70
  c as DEFAULT_FORMAT_MONEY_CONSTANTS,
72
- U as formatMoney,
73
- X as formatMoneyAmount,
74
- l as formatPercentAmount,
75
- V as percentTemplate,
76
- W as percentageTemplate
71
+ H as formatMoney,
72
+ W as formatMoneyAmount,
73
+ p as formatPercentAmount,
74
+ U as percentTemplate,
75
+ V as percentageTemplate
77
76
  };
@@ -1,27 +1,26 @@
1
1
  import { jsx as f, Fragment as u } from "react/jsx-runtime";
2
- import { formatBN as a, toBigInt as g } from "@gearbox-protocol/sdk";
3
- import { BigIntMath as d } from "@gearbox-protocol/sdk/common-utils";
4
- import { percentTemplate as p } from "./format-money.js";
5
- function x(o, t = 2) {
6
- return /* @__PURE__ */ f(u, { children: p(o, t) });
2
+ import { formatBN as m, toBigInt as g, BigIntMath as d } from "@gearbox-protocol/sdk";
3
+ import { percentTemplate as $ } from "./format-money.js";
4
+ function B(o, t = 2) {
5
+ return /* @__PURE__ */ f(u, { children: $(o, t) });
7
6
  }
8
- function $(o, t, s, e = " ", r) {
7
+ function p(o, t, s, e = " ", r) {
9
8
  const { decimals: n = 18 } = t || {};
10
- let i = a(o, n, s);
11
- const m = t?.title || t?.symbol || "undefined";
9
+ let i = m(o, n, s);
10
+ const c = t?.title || t?.symbol || "undefined";
12
11
  if (r !== void 0 && i !== "-") {
13
- const l = e.length + m.length, c = r - l;
14
- c > 0 && i.length > c && (i = i.slice(0, c));
12
+ const l = e.length + c.length, a = r - l;
13
+ a > 0 && i.length > a && (i = i.slice(0, a));
15
14
  }
16
- return i === "-" ? i : `${i}${e}${m}`;
15
+ return i === "-" ? i : `${i}${e}${c}`;
17
16
  }
18
- function v(o, t, s = 2) {
17
+ function x(o, t, s = 2) {
19
18
  if (o === void 0) return "-";
20
19
  const e = o.toFixed(s), r = Math.abs(Number(e)) > 0 ? "" : "< ", n = r ? `${e.slice(0, e.length - 1)}1` : e;
21
20
  return `${r}${n} ${t?.title}`;
22
21
  }
23
- function k(o, t, s, e) {
24
- const r = g(o || 0), n = $(
22
+ function v(o, t, s, e) {
23
+ const r = g(o || 0), n = p(
25
24
  d.abs(r),
26
25
  t,
27
26
  s,
@@ -29,14 +28,14 @@ function k(o, t, s, e) {
29
28
  );
30
29
  return n === "-" ? n : `${r < 0 ? "-" : ""}${n}`;
31
30
  }
32
- function P(o, t, s, e = " ") {
33
- const { decimals: r = 18 } = t || {}, n = a(o, r, s), i = t?.title || t?.symbol || "undefined";
31
+ function k(o, t, s, e = " ") {
32
+ const { decimals: r = 18 } = t || {}, n = m(o, r, s), i = t?.title || t?.symbol || "undefined";
34
33
  return n === "-" ? n : `${n}${e}${i}`;
35
34
  }
36
35
  export {
37
- k as negativeTokenTemplate,
38
- x as percentageTemplate,
39
- $ as tokenTemplate,
40
- v as tokenTemplateNumber,
41
- P as tokenTemplateString
36
+ v as negativeTokenTemplate,
37
+ B as percentageTemplate,
38
+ p as tokenTemplate,
39
+ x as tokenTemplateNumber,
40
+ k as tokenTemplateString
42
41
  };