@gearbox-protocol/permissionless-ui 1.17.9 → 1.18.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 (371) hide show
  1. package/dist/cjs/_virtual/ResizeObserver.es.cjs +1 -0
  2. package/dist/cjs/_virtual/_commonjsHelpers.cjs +1 -1
  3. package/dist/cjs/_virtual/arrows.cjs +1 -0
  4. package/dist/cjs/_virtual/default-props.cjs +1 -0
  5. package/dist/cjs/_virtual/dots.cjs +1 -0
  6. package/dist/cjs/_virtual/index2.cjs +1 -0
  7. package/dist/cjs/_virtual/index3.cjs +1 -0
  8. package/dist/cjs/_virtual/index4.cjs +1 -0
  9. package/dist/cjs/_virtual/initial-state.cjs +1 -0
  10. package/dist/cjs/_virtual/inner-slider.cjs +1 -0
  11. package/dist/cjs/_virtual/innerSliderUtils.cjs +1 -0
  12. package/dist/cjs/_virtual/slider.cjs +1 -0
  13. package/dist/cjs/_virtual/track.cjs +1 -0
  14. package/dist/cjs/components/address/address.cjs +1 -0
  15. package/dist/cjs/components/address/index.cjs +1 -0
  16. package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -0
  17. package/dist/cjs/components/alert-modal/index.cjs +1 -0
  18. package/dist/cjs/components/apy/apy.cjs +1 -0
  19. package/dist/cjs/components/apy/index.cjs +1 -0
  20. package/dist/cjs/components/arc-loader/arc-loader.cjs +1 -0
  21. package/dist/cjs/components/arc-loader/index.cjs +1 -0
  22. package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
  23. package/dist/cjs/components/button-checkbox/button-checkbox.cjs +1 -0
  24. package/dist/cjs/components/button-checkbox/index.cjs +1 -0
  25. package/dist/cjs/components/carousel/carousel.cjs +5 -0
  26. package/dist/cjs/components/carousel/index.cjs +1 -0
  27. package/dist/cjs/components/complex-input/complex-input.cjs +1 -0
  28. package/dist/cjs/components/complex-input/index.cjs +1 -0
  29. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  30. package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -0
  31. package/dist/cjs/components/confirm-menu/index.cjs +1 -0
  32. package/dist/cjs/components/currency-button/currency-button.cjs +1 -0
  33. package/dist/cjs/components/currency-button/index.cjs +1 -0
  34. package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -0
  35. package/dist/cjs/components/detailed-apy/index.cjs +1 -0
  36. package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
  37. package/dist/cjs/components/dropdown-label/dropdown-label.cjs +1 -0
  38. package/dist/cjs/components/dropdown-label/index.cjs +1 -0
  39. package/dist/cjs/components/edit-input/edit-input.cjs +1 -0
  40. package/dist/cjs/components/edit-input/index.cjs +1 -0
  41. package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -0
  42. package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -0
  43. package/dist/cjs/components/filter/filter-block.cjs +1 -1
  44. package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
  45. package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
  46. package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -0
  47. package/dist/cjs/components/formatted-number/index.cjs +1 -0
  48. package/dist/cjs/components/general-asset-list/general-asset-list.cjs +1 -0
  49. package/dist/cjs/components/general-asset-list/index.cjs +1 -0
  50. package/dist/cjs/components/graph/graph-view.cjs +1 -1
  51. package/dist/cjs/components/graph/graph.cjs +1 -1
  52. package/dist/cjs/components/grid-td-cell/grid-td-cell.cjs +1 -0
  53. package/dist/cjs/components/grid-td-cell/index.cjs +1 -0
  54. package/dist/cjs/components/help-sections/help-sections.cjs +1 -0
  55. package/dist/cjs/components/help-sections/index.cjs +1 -0
  56. package/dist/cjs/components/hide-on/hide-on.cjs +1 -1
  57. package/dist/cjs/components/index.cjs +1 -1
  58. package/dist/cjs/components/layout/col/col.cjs +1 -1
  59. package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
  60. package/dist/cjs/components/navbar-logo/index.cjs +1 -0
  61. package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -0
  62. package/dist/cjs/components/network-icon/index.cjs +1 -0
  63. package/dist/cjs/components/network-icon/network-icon.cjs +1 -0
  64. package/dist/cjs/components/overflow/index.cjs +1 -0
  65. package/dist/cjs/components/overflow/overflow.cjs +1 -0
  66. package/dist/cjs/components/overflow-container/index.cjs +1 -0
  67. package/dist/cjs/components/overflow-container/overflow-container.cjs +1 -0
  68. package/dist/cjs/components/pool-apy-tooltip/index.cjs +1 -0
  69. package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -0
  70. package/dist/cjs/components/pool-indicator-icon/index.cjs +1 -0
  71. package/dist/cjs/components/pool-indicator-icon/pool-indicator-icon.cjs +1 -0
  72. package/dist/cjs/components/rounded-image/index.cjs +1 -0
  73. package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -0
  74. package/dist/cjs/components/row/index.cjs +1 -0
  75. package/dist/cjs/components/row/row.cjs +1 -0
  76. package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
  77. package/dist/cjs/components/slider/slider.cjs +1 -1
  78. package/dist/cjs/components/slider-token/index.cjs +1 -0
  79. package/dist/cjs/components/slider-token/slider-token.cjs +1 -0
  80. package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
  81. package/dist/cjs/components/split-list/index.cjs +1 -0
  82. package/dist/cjs/components/split-list/split-list.cjs +1 -0
  83. package/dist/cjs/components/stat-badge/stat-badge.cjs +1 -1
  84. package/dist/cjs/components/status-triangle/status-triangle.cjs +1 -1
  85. package/dist/cjs/components/styled-dropdown/index.cjs +1 -0
  86. package/dist/cjs/components/styled-dropdown/styled-dropdown.cjs +1 -0
  87. package/dist/cjs/components/table/grid-table.cjs +1 -1
  88. package/dist/cjs/components/text-button/index.cjs +1 -0
  89. package/dist/cjs/components/text-button/text-button.cjs +1 -0
  90. package/dist/cjs/components/time-to-liquidation/index.cjs +1 -0
  91. package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -0
  92. package/dist/cjs/components/tokens-list-cell/index.cjs +1 -0
  93. package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -0
  94. package/dist/cjs/components/with-filter-button/with-filter-button.cjs +1 -1
  95. package/dist/cjs/components/with-title/index.cjs +1 -0
  96. package/dist/cjs/components/with-title/with-title.cjs +1 -0
  97. package/dist/cjs/hooks/index.cjs +1 -1
  98. package/dist/cjs/hooks/use-debounce-call.cjs +1 -0
  99. package/dist/cjs/hooks/use-debounce.cjs +1 -1
  100. package/dist/cjs/hooks/use-pool-points-tips.cjs +1 -0
  101. package/dist/cjs/index.cjs +1 -1
  102. package/dist/cjs/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs +5 -0
  103. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.cjs +1 -0
  104. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.cjs +1 -0
  105. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.cjs +1 -0
  106. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.cjs +1 -0
  107. package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.cjs +1 -0
  108. package/dist/cjs/node_modules/.pnpm/json2mq@0.2.0/node_modules/json2mq/index.cjs +1 -0
  109. package/dist/cjs/node_modules/.pnpm/lodash.debounce@4.0.8/node_modules/lodash.debounce/index.cjs +1 -0
  110. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.cjs +1 -0
  111. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/default-props.cjs +1 -0
  112. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.cjs +1 -0
  113. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/index.cjs +1 -0
  114. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/initial-state.cjs +1 -0
  115. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/inner-slider.cjs +1 -0
  116. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.cjs +1 -0
  117. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/track.cjs +1 -0
  118. package/dist/cjs/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/utils/innerSliderUtils.cjs +1 -0
  119. package/dist/cjs/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.cjs +1 -0
  120. package/dist/cjs/node_modules/.pnpm/string-convert@0.2.1/node_modules/string-convert/camel2hyphen.cjs +1 -0
  121. package/dist/cjs/utils/bn-to-pretty-view.cjs +1 -0
  122. package/dist/cjs/utils/format-money.cjs +1 -1
  123. package/dist/cjs/utils/index.cjs +1 -1
  124. package/dist/cjs/utils/network-icons.cjs +1 -0
  125. package/dist/cjs/utils/parse-input-to-bn.cjs +1 -0
  126. package/dist/cjs/utils/plural.cjs +1 -0
  127. package/dist/cjs/utils/ranges.cjs +1 -0
  128. package/dist/cjs/utils/search.cjs +1 -0
  129. package/dist/cjs/utils/shorten-string.cjs +1 -0
  130. package/dist/cjs/utils/ttl.cjs +1 -1
  131. package/dist/cjs/utils/window.cjs +1 -0
  132. package/dist/esm/_virtual/ResizeObserver.es.js +6 -0
  133. package/dist/esm/_virtual/_commonjsHelpers.js +25 -3
  134. package/dist/esm/_virtual/arrows.js +4 -0
  135. package/dist/esm/_virtual/default-props.js +4 -0
  136. package/dist/esm/_virtual/dots.js +4 -0
  137. package/dist/esm/_virtual/index2.js +7 -0
  138. package/dist/esm/_virtual/index3.js +4 -0
  139. package/dist/esm/_virtual/index4.js +4 -0
  140. package/dist/esm/_virtual/initial-state.js +4 -0
  141. package/dist/esm/_virtual/inner-slider.js +4 -0
  142. package/dist/esm/_virtual/innerSliderUtils.js +4 -0
  143. package/dist/esm/_virtual/slider.js +4 -0
  144. package/dist/esm/_virtual/track.js +4 -0
  145. package/dist/esm/components/address/address.js +21 -0
  146. package/dist/esm/components/address/index.js +4 -0
  147. package/dist/esm/components/alert-modal/alert-modal.js +32 -0
  148. package/dist/esm/components/alert-modal/index.js +4 -0
  149. package/dist/esm/components/apy/apy.js +32 -0
  150. package/dist/esm/components/apy/index.js +4 -0
  151. package/dist/esm/components/arc-loader/arc-loader.js +45 -0
  152. package/dist/esm/components/arc-loader/index.js +4 -0
  153. package/dist/esm/components/breadcrumbs/breadcrumbs.js +60 -30
  154. package/dist/esm/components/button-checkbox/button-checkbox.js +53 -0
  155. package/dist/esm/components/button-checkbox/index.js +4 -0
  156. package/dist/esm/components/carousel/carousel.js +65 -0
  157. package/dist/esm/components/carousel/index.js +4 -0
  158. package/dist/esm/components/complex-input/complex-input.js +85 -0
  159. package/dist/esm/components/complex-input/index.js +4 -0
  160. package/dist/esm/components/compound-apy/compound-apy.js +91 -74
  161. package/dist/esm/components/confirm-menu/confirm-menu.js +31 -0
  162. package/dist/esm/components/confirm-menu/index.js +4 -0
  163. package/dist/esm/components/currency-button/currency-button.js +84 -0
  164. package/dist/esm/components/currency-button/index.js +4 -0
  165. package/dist/esm/components/detailed-apy/detailed-apy.js +73 -0
  166. package/dist/esm/components/detailed-apy/index.js +4 -0
  167. package/dist/esm/components/detailed-page-title/detailed-page-title.js +11 -11
  168. package/dist/esm/components/dropdown-label/dropdown-label.js +44 -0
  169. package/dist/esm/components/dropdown-label/index.js +4 -0
  170. package/dist/esm/components/edit-input/edit-input.js +96 -0
  171. package/dist/esm/components/edit-input/index.js +4 -0
  172. package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +80 -0
  173. package/dist/esm/components/explorer-links-dropdown/index.js +4 -0
  174. package/dist/esm/components/filter/filter-block.js +14 -11
  175. package/dist/esm/components/filter/filter-dropdown-item.js +47 -17
  176. package/dist/esm/components/filter/filter-modal-item.js +53 -18
  177. package/dist/esm/components/formatted-number/formatted-number.js +15 -0
  178. package/dist/esm/components/formatted-number/index.js +4 -0
  179. package/dist/esm/components/general-asset-list/general-asset-list.js +42 -0
  180. package/dist/esm/components/general-asset-list/index.js +4 -0
  181. package/dist/esm/components/graph/graph-view.js +97 -84
  182. package/dist/esm/components/graph/graph.js +80 -70
  183. package/dist/esm/components/grid-td-cell/grid-td-cell.js +11 -0
  184. package/dist/esm/components/grid-td-cell/index.js +4 -0
  185. package/dist/esm/components/help-sections/help-sections.js +18 -0
  186. package/dist/esm/components/help-sections/index.js +5 -0
  187. package/dist/esm/components/hide-on/hide-on.js +50 -26
  188. package/dist/esm/components/index.js +530 -468
  189. package/dist/esm/components/layout/col/col.js +4 -4
  190. package/dist/esm/components/markdown-viewer/markdown-viewer.js +71 -68
  191. package/dist/esm/components/navbar-logo/index.js +4 -0
  192. package/dist/esm/components/navbar-logo/navbar-logo.js +30 -0
  193. package/dist/esm/components/network-icon/index.js +4 -0
  194. package/dist/esm/components/network-icon/network-icon.js +48 -0
  195. package/dist/esm/components/overflow/index.js +5 -0
  196. package/dist/esm/components/overflow/overflow.js +20 -0
  197. package/dist/esm/components/overflow-container/index.js +4 -0
  198. package/dist/esm/components/overflow-container/overflow-container.js +38 -0
  199. package/dist/esm/components/pool-apy-tooltip/index.js +4 -0
  200. package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +83 -0
  201. package/dist/esm/components/pool-indicator-icon/index.js +4 -0
  202. package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +25 -0
  203. package/dist/esm/components/rounded-image/index.js +4 -0
  204. package/dist/esm/components/rounded-image/rounded-image.js +32 -0
  205. package/dist/esm/components/row/index.js +4 -0
  206. package/dist/esm/components/row/row.js +55 -0
  207. package/dist/esm/components/segmented-control/segmented-control.js +64 -63
  208. package/dist/esm/components/slider/slider.js +123 -41
  209. package/dist/esm/components/slider-token/index.js +4 -0
  210. package/dist/esm/components/slider-token/slider-token.js +68 -0
  211. package/dist/esm/components/smart-number-input/smart-number-input.js +113 -67
  212. package/dist/esm/components/split-list/index.js +4 -0
  213. package/dist/esm/components/split-list/split-list.js +39 -0
  214. package/dist/esm/components/stat-badge/stat-badge.js +63 -53
  215. package/dist/esm/components/status-triangle/status-triangle.js +20 -13
  216. package/dist/esm/components/styled-dropdown/index.js +4 -0
  217. package/dist/esm/components/styled-dropdown/styled-dropdown.js +106 -0
  218. package/dist/esm/components/table/grid-table.js +132 -92
  219. package/dist/esm/components/text-button/index.js +4 -0
  220. package/dist/esm/components/text-button/text-button.js +55 -0
  221. package/dist/esm/components/time-to-liquidation/index.js +4 -0
  222. package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +45 -0
  223. package/dist/esm/components/tokens-list-cell/index.js +4 -0
  224. package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +72 -0
  225. package/dist/esm/components/with-filter-button/with-filter-button.js +53 -44
  226. package/dist/esm/components/with-title/index.js +4 -0
  227. package/dist/esm/components/with-title/with-title.js +30 -0
  228. package/dist/esm/hooks/index.js +42 -39
  229. package/dist/esm/hooks/use-debounce-call.js +17 -0
  230. package/dist/esm/hooks/use-debounce.js +14 -25
  231. package/dist/esm/hooks/use-pool-points-tips.js +17 -0
  232. package/dist/esm/index.js +660 -575
  233. package/dist/esm/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +42 -0
  234. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.js +71 -0
  235. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.js +46 -0
  236. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.js +57 -0
  237. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.js +24 -0
  238. package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.js +11 -0
  239. package/dist/esm/node_modules/.pnpm/json2mq@0.2.0/node_modules/json2mq/index.js +25 -0
  240. package/dist/esm/node_modules/.pnpm/lodash.debounce@4.0.8/node_modules/lodash.debounce/index.js +85 -0
  241. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.js +216 -0
  242. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/default-props.js +80 -0
  243. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.js +176 -0
  244. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/index.js +18 -0
  245. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/initial-state.js +44 -0
  246. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/inner-slider.js +549 -0
  247. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.js +261 -0
  248. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/track.js +240 -0
  249. package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/utils/innerSliderUtils.js +385 -0
  250. package/dist/esm/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +290 -0
  251. package/dist/esm/node_modules/.pnpm/string-convert@0.2.1/node_modules/string-convert/camel2hyphen.js +14 -0
  252. package/dist/esm/utils/bn-to-pretty-view.js +6 -0
  253. package/dist/esm/utils/format-money.js +41 -24
  254. package/dist/esm/utils/index.js +73 -51
  255. package/dist/esm/utils/network-icons.js +56 -0
  256. package/dist/esm/utils/parse-input-to-bn.js +20 -0
  257. package/dist/esm/utils/plural.js +11 -0
  258. package/dist/esm/utils/ranges.js +24 -0
  259. package/dist/esm/utils/search.js +6 -0
  260. package/dist/esm/utils/shorten-string.js +6 -0
  261. package/dist/esm/utils/ttl.js +13 -3
  262. package/dist/esm/utils/window.js +6 -0
  263. package/dist/globals.css +1 -1
  264. package/dist/permissionless-ui.css +1 -0
  265. package/dist/types/components/address/address.d.ts +56 -0
  266. package/dist/types/components/address/index.d.ts +1 -0
  267. package/dist/types/components/alert-modal/alert-modal.d.ts +78 -0
  268. package/dist/types/components/alert-modal/index.d.ts +1 -0
  269. package/dist/types/components/apy/apy.d.ts +35 -0
  270. package/dist/types/components/apy/index.d.ts +1 -0
  271. package/dist/types/components/arc-loader/arc-loader.d.ts +31 -0
  272. package/dist/types/components/arc-loader/index.d.ts +1 -0
  273. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +40 -3
  274. package/dist/types/components/button-checkbox/button-checkbox.d.ts +39 -0
  275. package/dist/types/components/button-checkbox/index.d.ts +1 -0
  276. package/dist/types/components/card-grid/card-grid.d.ts +1 -1
  277. package/dist/types/components/carousel/carousel.d.ts +30 -0
  278. package/dist/types/components/carousel/index.d.ts +2 -0
  279. package/dist/types/components/colored-text/colored-text.d.ts +1 -1
  280. package/dist/types/components/complex-input/complex-input.d.ts +78 -0
  281. package/dist/types/components/complex-input/index.d.ts +1 -0
  282. package/dist/types/components/compound-apy/compound-apy.d.ts +38 -2
  283. package/dist/types/components/confirm-menu/confirm-menu.d.ts +27 -0
  284. package/dist/types/components/confirm-menu/index.d.ts +1 -0
  285. package/dist/types/components/currency-button/currency-button.d.ts +79 -0
  286. package/dist/types/components/currency-button/index.d.ts +1 -0
  287. package/dist/types/components/detailed-apy/detailed-apy.d.ts +54 -0
  288. package/dist/types/components/detailed-apy/index.d.ts +1 -0
  289. package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +3 -5
  290. package/dist/types/components/dropdown-label/dropdown-label.d.ts +47 -0
  291. package/dist/types/components/dropdown-label/index.d.ts +1 -0
  292. package/dist/types/components/edit-input/edit-input.d.ts +55 -0
  293. package/dist/types/components/edit-input/index.d.ts +1 -0
  294. package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +82 -0
  295. package/dist/types/components/explorer-links-dropdown/index.d.ts +1 -0
  296. package/dist/types/components/filter/filter-block.d.ts +22 -0
  297. package/dist/types/components/filter/filter-dropdown-item.d.ts +40 -2
  298. package/dist/types/components/filter/filter-modal-item.d.ts +26 -2
  299. package/dist/types/components/formatted-number/formatted-number.d.ts +11 -0
  300. package/dist/types/components/formatted-number/index.d.ts +1 -0
  301. package/dist/types/components/general-asset-list/general-asset-list.d.ts +59 -0
  302. package/dist/types/components/general-asset-list/index.d.ts +1 -0
  303. package/dist/types/components/graph/formatters.d.ts +1 -1
  304. package/dist/types/components/graph/graph-view.d.ts +19 -3
  305. package/dist/types/components/grid-td-cell/grid-td-cell.d.ts +8 -0
  306. package/dist/types/components/grid-td-cell/index.d.ts +1 -0
  307. package/dist/types/components/help-sections/help-sections.d.ts +33 -0
  308. package/dist/types/components/help-sections/index.d.ts +1 -0
  309. package/dist/types/components/hide-on/hide-on.d.ts +61 -12
  310. package/dist/types/components/index.d.ts +30 -0
  311. package/dist/types/components/layout/col/col.d.ts +1 -1
  312. package/dist/types/components/markdown-viewer/markdown-viewer.d.ts +4 -1
  313. package/dist/types/components/navbar-logo/index.d.ts +1 -0
  314. package/dist/types/components/navbar-logo/navbar-logo.d.ts +11 -0
  315. package/dist/types/components/network-icon/index.d.ts +2 -0
  316. package/dist/types/components/network-icon/network-icon.d.ts +21 -0
  317. package/dist/types/components/overflow/index.d.ts +1 -0
  318. package/dist/types/components/overflow/overflow.d.ts +19 -0
  319. package/dist/types/components/overflow-container/index.d.ts +1 -0
  320. package/dist/types/components/overflow-container/overflow-container.d.ts +47 -0
  321. package/dist/types/components/pool-apy-tooltip/index.d.ts +1 -0
  322. package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +59 -0
  323. package/dist/types/components/pool-indicator-icon/index.d.ts +1 -0
  324. package/dist/types/components/pool-indicator-icon/pool-indicator-icon.d.ts +20 -0
  325. package/dist/types/components/rounded-image/index.d.ts +1 -0
  326. package/dist/types/components/rounded-image/rounded-image.d.ts +11 -0
  327. package/dist/types/components/row/index.d.ts +1 -0
  328. package/dist/types/components/row/row.d.ts +59 -0
  329. package/dist/types/components/segmented-control/segmented-control.d.ts +49 -32
  330. package/dist/types/components/skeleton/skeleton.d.ts +1 -1
  331. package/dist/types/components/slider/slider.d.ts +66 -2
  332. package/dist/types/components/slider-token/index.d.ts +1 -0
  333. package/dist/types/components/slider-token/slider-token.d.ts +70 -0
  334. package/dist/types/components/smart-number-input/smart-number-input.d.ts +70 -8
  335. package/dist/types/components/split-list/index.d.ts +1 -0
  336. package/dist/types/components/split-list/split-list.d.ts +37 -0
  337. package/dist/types/components/stat-badge/stat-badge.d.ts +17 -3
  338. package/dist/types/components/status-triangle/status-triangle.d.ts +11 -4
  339. package/dist/types/components/styled-dropdown/index.d.ts +1 -0
  340. package/dist/types/components/styled-dropdown/styled-dropdown.d.ts +95 -0
  341. package/dist/types/components/table/grid-table.d.ts +13 -1
  342. package/dist/types/components/text-button/index.d.ts +1 -0
  343. package/dist/types/components/text-button/text-button.d.ts +48 -0
  344. package/dist/types/components/time-to-liquidation/index.d.ts +1 -0
  345. package/dist/types/components/time-to-liquidation/time-to-liquidation.d.ts +20 -0
  346. package/dist/types/components/tokens-list-cell/index.d.ts +1 -0
  347. package/dist/types/components/tokens-list-cell/tokens-list-cell.d.ts +92 -0
  348. package/dist/types/components/typed-intl/index.d.ts +2 -0
  349. package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +1 -1
  350. package/dist/types/components/with-filter-button/with-filter-button.d.ts +30 -1
  351. package/dist/types/components/with-title/index.d.ts +1 -0
  352. package/dist/types/components/with-title/with-title.d.ts +31 -0
  353. package/dist/types/hooks/index.d.ts +2 -0
  354. package/dist/types/hooks/use-debounce-call.d.ts +19 -0
  355. package/dist/types/hooks/use-debounce.d.ts +0 -14
  356. package/dist/types/hooks/use-pool-points-tips.d.ts +40 -0
  357. package/dist/types/index.d.ts +29 -0
  358. package/dist/types/types/graph.d.ts +3 -1
  359. package/dist/types/utils/bn-to-pretty-view.d.ts +15 -0
  360. package/dist/types/utils/format-money.d.ts +16 -0
  361. package/dist/types/utils/index.d.ts +9 -1
  362. package/dist/types/utils/network-icons.d.ts +47 -0
  363. package/dist/types/utils/parse-input-to-bn.d.ts +16 -0
  364. package/dist/types/utils/plural.d.ts +36 -0
  365. package/dist/types/utils/ranges.d.ts +17 -0
  366. package/dist/types/utils/search.d.ts +15 -0
  367. package/dist/types/utils/shorten-string.d.ts +15 -0
  368. package/dist/types/utils/ttl.d.ts +24 -0
  369. package/dist/types/utils/window.d.ts +15 -0
  370. package/package.json +8 -3
  371. package/src/styles/theme.css +85 -0
@@ -0,0 +1,6 @@
1
+ function r(n, t, e) {
2
+ return (Number(n) / 10 ** t).toLocaleString("en-US", e);
3
+ }
4
+ export {
5
+ r as bnToPrettyView
6
+ };
@@ -1,35 +1,52 @@
1
- import { BigIntMath as s, formatBN as a, WAD_DECIMALS_POW as m } from "@gearbox-protocol/sdk";
1
+ import { BigIntMath as f, formatBN as a, WAD_DECIMALS_POW as s } from "@gearbox-protocol/sdk";
2
2
  const N = 10000000000000000n;
3
- function p(t) {
3
+ function b(t) {
4
4
  return BigInt(t.toFixed(18).replace(".", ""));
5
5
  }
6
- function _(t, n) {
7
- const e = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", o = typeof t == "number" ? p(Math.abs(t)) : s.abs(t), u = o < N && o > 0n, f = u ? "0.01" : a(o, m, n), i = `${e}$${f}`;
6
+ function T(t, e) {
7
+ const r = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", o = typeof t == "number" ? b(Math.abs(t)) : f.abs(t), u = o < N && o > 0n, c = u ? "0.01" : a(o, s, e), i = `${r}$${c}`;
8
8
  return u ? `< ${i}` : i;
9
9
  }
10
- const E = 1e4;
11
- function c(t, n, r = !0) {
12
- const e = typeof t == "number" ? t : Number(t);
13
- return Number.isNaN(e) || e === void 0 || e === null ? "0" : e === 0 ? 0 : r && e > E ? e.toExponential(n) : e.toFixed(n);
10
+ const y = 1e4;
11
+ function m(t, e, n = !0) {
12
+ const r = typeof t == "number" ? t : Number(t);
13
+ return Number.isNaN(r) || r === void 0 || r === null ? "0" : r === 0 ? 0 : n && r > y ? r.toExponential(e) : r.toFixed(e);
14
14
  }
15
- function d(t, n = 2) {
16
- return `${c(t, n)}%`;
15
+ function g(t, e = 2) {
16
+ return `${m(t, e)}%`;
17
17
  }
18
- const T = 1e4;
19
- function g(t, n = 2) {
20
- const r = Number(t) / Number(T);
21
- return `${c(r, n)}%`;
18
+ const l = 1e4;
19
+ function A(t, e = 2) {
20
+ const n = Number(t) / Number(l);
21
+ return `${m(n, e)}%`;
22
22
  }
23
- const b = 1000n;
24
- function l(t, n = 1) {
25
- return t === void 0 ? "-" : `${(t / Number(b)).toFixed(n)}%`;
23
+ const p = 1000n;
24
+ function F(t, e) {
25
+ let n;
26
+ return typeof t == "string" ? n = Number.parseFloat(t) || 0 : typeof t == "bigint" ? n = Number(t) : n = t, typeof e == "number" ? new Intl.NumberFormat("en-US", {
27
+ style: "currency",
28
+ currency: "USD",
29
+ minimumFractionDigits: e,
30
+ maximumFractionDigits: e
31
+ }).format(n) : e && typeof e == "object" ? new Intl.NumberFormat("en-US", {
32
+ style: "currency",
33
+ currency: "USD",
34
+ ...e
35
+ }).format(n) : new Intl.NumberFormat("en-US", {
36
+ style: "currency",
37
+ currency: "USD"
38
+ }).format(n);
39
+ }
40
+ function S(t, e = 1) {
41
+ return t === void 0 ? "-" : `${(t / Number(p)).toFixed(e)}%`;
26
42
  }
27
43
  export {
28
- T as PERCENTAGE_FACTOR,
29
- b as SLIPPAGE_DECIMALS,
30
- _ as formatMoney,
31
- c as formatPercentAmount,
32
- d as percentTemplate,
33
- g as percentageTemplate,
34
- l as slippageTemplate
44
+ l as PERCENTAGE_FACTOR,
45
+ p as SLIPPAGE_DECIMALS,
46
+ T as formatMoney,
47
+ F as formatMoneyAmount,
48
+ m as formatPercentAmount,
49
+ g as percentTemplate,
50
+ A as percentageTemplate,
51
+ S as slippageTemplate
35
52
  };
@@ -1,60 +1,82 @@
1
1
  import { generateId as o, useFormFieldIds as r } from "./a11y.js";
2
2
  import { bnToInputView as m } from "./bn-to-input-view.js";
3
- import { cn as i, cn as n } from "./cn.js";
4
- import { generateColorsFromBase as T, getCSSVariable as l, hexToRgba as s, resolveCSSColor as c } from "./colors.js";
5
- import { copyToClipboard as S } from "./copy.js";
6
- import { convertPercent as A, formatBytecodeSize as u, formatBytecodeVersion as C, formatTimestamp as d, shortenHash as h, significantTrunc as F } from "./format.js";
7
- import { formatAssetAmount as N } from "./format-asset-amount.js";
8
- import { PERCENTAGE_FACTOR as y, SLIPPAGE_DECIMALS as E, formatMoney as I, formatPercentAmount as L, percentTemplate as P, percentageTemplate as v, slippageTemplate as B } from "./format-money.js";
9
- import { FORMAT_CONSTANTS as O, formatNumberWithSuffix as R, formatPrice as V, getAdaptiveDecimals as _, isBelowDisplayThreshold as M, isEffectivelyZero as w, toSignificantDigits as z } from "./format-number.js";
10
- import { extractTextFromLabel as H, serializeValue as Z } from "./react.js";
11
- import { createTokenSearchFilter as j, searchInToken as q } from "./search-in-token.js";
12
- import { shortSHA as K } from "./short-sha.js";
13
- import { negativeTokenTemplate as U, tokenTemplate as X, tokenTemplateNumber as Y, tokenTemplateString as $ } from "./templates.js";
14
- import { TTL_CONSTANTS as te, getTTLZone as oe, ttlFromTimestamp as re, ttlLeft as ae } from "./ttl.js";
3
+ import { bnToPrettyView as p } from "./bn-to-pretty-view.js";
4
+ import { cn as i, cn as l } from "./cn.js";
5
+ import { generateColorsFromBase as T, getCSSVariable as x, hexToRgba as c, resolveCSSColor as g } from "./colors.js";
6
+ import { copyToClipboard as A } from "./copy.js";
7
+ import { convertPercent as N, formatBytecodeSize as d, formatBytecodeVersion as h, formatTimestamp as C, shortenHash as I, significantTrunc as k } from "./format.js";
8
+ import { formatAssetAmount as b } from "./format-asset-amount.js";
9
+ import { PERCENTAGE_FACTOR as P, SLIPPAGE_DECIMALS as F, formatMoney as L, formatMoney as v, formatPercentAmount as B, percentTemplate as E, percentageTemplate as M, slippageTemplate as R } from "./format-money.js";
10
+ import { FORMAT_CONSTANTS as D, formatNumberWithSuffix as O, formatPrice as _, getAdaptiveDecimals as z, isBelowDisplayThreshold as G, isEffectivelyZero as H, toSignificantDigits as W } from "./format-number.js";
11
+ import { getAllNetworks as j, getNetworkByChainId as q, getNetworkConfig as J, getNetworkIcon as K } from "./network-icons.js";
12
+ import { parseInputToBN as U } from "./parse-input-to-bn.js";
13
+ import { pluralize as Y, selectPluralString as $ } from "./plural.js";
14
+ import { getAvailableRanges as te } from "./ranges.js";
15
+ import { extractTextFromLabel as re, serializeValue as ae } from "./react.js";
16
+ import { searchInString as ne } from "./search.js";
17
+ import { createTokenSearchFilter as fe, searchInToken as ie } from "./search-in-token.js";
18
+ import { shortSHA as se } from "./short-sha.js";
19
+ import { shortenString as xe } from "./shorten-string.js";
20
+ import { negativeTokenTemplate as ge, tokenTemplate as Se, tokenTemplateNumber as Ae, tokenTemplateString as ue } from "./templates.js";
21
+ import { TTL_CONSTANTS as de, getTTLZone as he, ttlFromTimestamp as Ce, ttlLeft as Ie, ttlLeftParsed as ke } from "./ttl.js";
22
+ import { openInNewWindow as be } from "./window.js";
15
23
  export {
16
- O as FORMAT_CONSTANTS,
17
- y as PERCENTAGE_FACTOR,
18
- E as SLIPPAGE_DECIMALS,
19
- te as TTL_CONSTANTS,
24
+ D as FORMAT_CONSTANTS,
25
+ P as PERCENTAGE_FACTOR,
26
+ F as SLIPPAGE_DECIMALS,
27
+ de as TTL_CONSTANTS,
20
28
  m as bnToInputView,
29
+ p as bnToPrettyView,
21
30
  i as cn,
22
- A as convertPercent,
23
- S as copyToClipboard,
24
- j as createTokenSearchFilter,
25
- n as default,
26
- H as extractTextFromLabel,
27
- N as formatAssetAmount,
28
- u as formatBytecodeSize,
29
- C as formatBytecodeVersion,
30
- I as formatMoney,
31
- R as formatNumberWithSuffix,
32
- L as formatPercentAmount,
33
- V as formatPrice,
34
- d as formatTimestamp,
31
+ N as convertPercent,
32
+ A as copyToClipboard,
33
+ fe as createTokenSearchFilter,
34
+ l as default,
35
+ re as extractTextFromLabel,
36
+ b as formatAssetAmount,
37
+ d as formatBytecodeSize,
38
+ h as formatBytecodeVersion,
39
+ L as formatMoney,
40
+ v as formatMoneyAmount,
41
+ O as formatNumberWithSuffix,
42
+ B as formatPercentAmount,
43
+ _ as formatPrice,
44
+ C as formatTimestamp,
35
45
  T as generateColorsFromBase,
36
46
  o as generateId,
37
- _ as getAdaptiveDecimals,
38
- l as getCSSVariable,
39
- oe as getTTLZone,
40
- s as hexToRgba,
41
- M as isBelowDisplayThreshold,
42
- w as isEffectivelyZero,
43
- U as negativeTokenTemplate,
44
- P as percentTemplate,
45
- v as percentageTemplate,
46
- c as resolveCSSColor,
47
- q as searchInToken,
48
- Z as serializeValue,
49
- K as shortSHA,
50
- h as shortenHash,
51
- F as significantTrunc,
52
- B as slippageTemplate,
53
- z as toSignificantDigits,
54
- X as tokenTemplate,
55
- Y as tokenTemplateNumber,
56
- $ as tokenTemplateString,
57
- re as ttlFromTimestamp,
58
- ae as ttlLeft,
47
+ z as getAdaptiveDecimals,
48
+ j as getAllNetworks,
49
+ te as getAvailableRanges,
50
+ x as getCSSVariable,
51
+ q as getNetworkByChainId,
52
+ J as getNetworkConfig,
53
+ K as getNetworkIcon,
54
+ he as getTTLZone,
55
+ c as hexToRgba,
56
+ G as isBelowDisplayThreshold,
57
+ H as isEffectivelyZero,
58
+ ge as negativeTokenTemplate,
59
+ be as openInNewWindow,
60
+ U as parseInputToBN,
61
+ E as percentTemplate,
62
+ M as percentageTemplate,
63
+ Y as pluralize,
64
+ g as resolveCSSColor,
65
+ ne as searchInString,
66
+ ie as searchInToken,
67
+ $ as selectPluralString,
68
+ ae as serializeValue,
69
+ se as shortSHA,
70
+ I as shortenHash,
71
+ xe as shortenString,
72
+ k as significantTrunc,
73
+ R as slippageTemplate,
74
+ W as toSignificantDigits,
75
+ Se as tokenTemplate,
76
+ Ae as tokenTemplateNumber,
77
+ ue as tokenTemplateString,
78
+ Ce as ttlFromTimestamp,
79
+ Ie as ttlLeft,
80
+ ke as ttlLeftParsed,
59
81
  r as useFormFieldIds
60
82
  };
@@ -0,0 +1,56 @@
1
+ const i = {
2
+ Mainnet: {
3
+ name: "Ethereum",
4
+ icon: "/icons/networks/ethereum.svg",
5
+ chainId: 1
6
+ },
7
+ Arbitrum: {
8
+ name: "Arbitrum",
9
+ icon: "/icons/networks/arbitrum.svg",
10
+ chainId: 42161
11
+ },
12
+ Optimism: {
13
+ name: "Optimism",
14
+ icon: "/icons/networks/optimism.svg",
15
+ chainId: 10
16
+ },
17
+ Sonic: {
18
+ name: "Sonic",
19
+ icon: "/icons/networks/sonic.svg",
20
+ chainId: 146
21
+ },
22
+ Monad: {
23
+ name: "Monad",
24
+ icon: "/icons/networks/monad.svg",
25
+ chainId: 0
26
+ // TBD
27
+ },
28
+ AllNetworks: {
29
+ name: "All Networks",
30
+ icon: "/icons/networks/all.svg",
31
+ chainId: 0
32
+ }
33
+ }, o = {
34
+ 1: "Mainnet",
35
+ 42161: "Arbitrum",
36
+ 10: "Optimism",
37
+ 146: "Sonic"
38
+ };
39
+ function t(n) {
40
+ return i[n]?.icon || "";
41
+ }
42
+ function e(n) {
43
+ return o[n];
44
+ }
45
+ function c(n) {
46
+ return i[n];
47
+ }
48
+ function r() {
49
+ return Object.values(i);
50
+ }
51
+ export {
52
+ r as getAllNetworks,
53
+ e as getNetworkByChainId,
54
+ c as getNetworkConfig,
55
+ t as getNetworkIcon
56
+ };
@@ -0,0 +1,20 @@
1
+ function p(n, l, r = !1) {
2
+ if (n == null || n === "") return [0n, ""];
3
+ let t = n.replace(/,/g, ".");
4
+ const e = t.split(".");
5
+ if (e.length > 2 && (t = `${e[0]}.${e.slice(1).join("")}`), !(r ? /^-?[0-9]*\.?[0-9]*$/ : /^[0-9]*\.?[0-9]*$/).test(t))
6
+ return [null, null];
7
+ const [c, u = ""] = t.split("."), a = u.padEnd(l, "0").slice(0, l), o = `${c || "0"}${a}`;
8
+ try {
9
+ const s = BigInt(o);
10
+ return [
11
+ r && t.startsWith("-") ? -s : s,
12
+ t
13
+ ];
14
+ } catch {
15
+ return [null, null];
16
+ }
17
+ }
18
+ export {
19
+ p as parseInputToBN
20
+ };
@@ -0,0 +1,11 @@
1
+ function u(r, t) {
2
+ const n = r % 10, e = r % 100;
3
+ return n === 1 && e !== 11 ? t[0] : n >= 2 && n <= 4 && (e < 10 || e >= 20) ? t[1] : t[2];
4
+ }
5
+ function i(r, t, n) {
6
+ return r === 1 ? t : n ?? `${t}s`;
7
+ }
8
+ export {
9
+ i as pluralize,
10
+ u as selectPluralString
11
+ };
@@ -0,0 +1,24 @@
1
+ function a(t) {
2
+ return {
3
+ from: t.from ?? t.start ?? 0,
4
+ to: t.to ?? t.end ?? 0
5
+ };
6
+ }
7
+ function s(t, e, c) {
8
+ return c.filter((o) => {
9
+ const { from: r, to: n } = a(o), m = Math.max(t, r), f = Math.min(e, n);
10
+ return m < f;
11
+ }).map((o) => {
12
+ const { from: r, to: n } = a(o);
13
+ return {
14
+ from: Math.max(t, r),
15
+ to: Math.min(e, n),
16
+ start: Math.max(t, r),
17
+ end: Math.min(e, n),
18
+ color: o.color
19
+ };
20
+ });
21
+ }
22
+ export {
23
+ s as getAvailableRanges
24
+ };
@@ -0,0 +1,6 @@
1
+ function n(e, r) {
2
+ return e.toLowerCase().includes(r.toLowerCase());
3
+ }
4
+ export {
5
+ n as searchInString
6
+ };
@@ -0,0 +1,6 @@
1
+ function r(n, e = 10) {
2
+ return n.length <= e ? n : `${n.slice(0, e)}...`;
3
+ }
4
+ export {
5
+ r as shortenString
6
+ };
@@ -17,7 +17,16 @@ function f(n, r = Date.now()) {
17
17
  const o = t - r;
18
18
  return i(o);
19
19
  }
20
- const N = {
20
+ function s(n) {
21
+ if (!n) return;
22
+ const r = typeof n == "bigint" ? Number(n) : n;
23
+ if (r <= 0) return;
24
+ const t = r / 2592e6;
25
+ if (t > 3) return { months: Math.floor(t) };
26
+ const o = r / 864e5;
27
+ if (o >= 1) return { day: Math.floor(o) };
28
+ }
29
+ const c = {
21
30
  SECOND: 1e3,
22
31
  MINUTE: 6e4,
23
32
  HOUR: 36e5,
@@ -26,8 +35,9 @@ const N = {
26
35
  MONTH: 2592e6
27
36
  };
28
37
  export {
29
- N as TTL_CONSTANTS,
38
+ c as TTL_CONSTANTS,
30
39
  u as getTTLZone,
31
40
  f as ttlFromTimestamp,
32
- i as ttlLeft
41
+ i as ttlLeft,
42
+ s as ttlLeftParsed
33
43
  };
@@ -0,0 +1,6 @@
1
+ function e(n) {
2
+ window.open(n, "_blank", "noopener,noreferrer");
3
+ }
4
+ export {
5
+ e as openInNewWindow
6
+ };