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

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 (314) 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/token-select-panel.cjs +1 -1
  6. package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
  7. package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -1
  8. package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
  9. package/dist/cjs/components/base/health-factor-block/health-factor-block.cjs +1 -1
  10. package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
  11. package/dist/cjs/components/base/index.cjs +1 -1
  12. package/dist/cjs/components/base/info-list/index.cjs +1 -1
  13. package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
  14. package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
  15. package/dist/cjs/components/base/leverage-preset-chips/constants.cjs +1 -0
  16. package/dist/cjs/components/base/leverage-preset-chips/index.cjs +1 -0
  17. package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -0
  18. package/dist/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
  19. package/dist/cjs/components/base/manage-pane/constants.cjs +1 -1
  20. package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
  21. package/dist/cjs/components/base/page-title/index.cjs +1 -1
  22. package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
  23. package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
  24. package/dist/cjs/components/base/position-assets/constants.cjs +1 -0
  25. package/dist/cjs/components/base/position-assets/index.cjs +1 -0
  26. package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -0
  27. package/dist/cjs/components/base/review-button/constants.cjs +1 -1
  28. package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
  29. package/dist/cjs/components/base/stat-badge/constants.cjs +1 -1
  30. package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
  31. package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -1
  32. package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
  33. package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
  34. package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
  35. package/dist/cjs/components/base/title-meta/constants.cjs +1 -1
  36. package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -1
  37. package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
  38. package/dist/cjs/components/base/values/constants.cjs +1 -1
  39. package/dist/cjs/components/base/values/index.cjs +1 -1
  40. package/dist/cjs/components/base/values/points-value.cjs +1 -0
  41. package/dist/cjs/components/base/values/position-status-badge.cjs +1 -0
  42. package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
  43. package/dist/cjs/components/base/values/scalars.cjs +1 -1
  44. package/dist/cjs/components/base-table/base-table-line.cjs +1 -0
  45. package/dist/cjs/components/base-table/base-table.cjs +1 -0
  46. package/dist/cjs/components/base-table/constants.cjs +1 -0
  47. package/dist/cjs/components/base-table/index.cjs +1 -0
  48. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  49. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  50. package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -0
  51. package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -0
  52. package/dist/cjs/components/collateral-allocation-tooltip/constants.cjs +1 -0
  53. package/dist/cjs/components/collateral-allocation-tooltip/index.cjs +1 -0
  54. package/dist/cjs/components/composites/index.cjs +1 -1
  55. package/dist/cjs/components/composites/pool-assets-table/constants.cjs +1 -0
  56. package/dist/cjs/components/composites/pool-assets-table/index.cjs +1 -1
  57. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
  58. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
  59. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
  60. package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
  61. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
  62. package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -1
  63. package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
  64. package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.cjs +1 -0
  65. package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
  66. package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
  67. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  68. package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
  69. package/dist/cjs/components/filter/filter-chip.cjs +1 -1
  70. package/dist/cjs/components/graph/default-config.cjs +1 -1
  71. package/dist/cjs/components/graph/formatters.cjs +1 -1
  72. package/dist/cjs/components/graph/graph-view.cjs +1 -1
  73. package/dist/cjs/components/graph/graph.cjs +1 -1
  74. package/dist/cjs/components/hf-indicator/hf-indicator.cjs +1 -0
  75. package/dist/cjs/components/hf-indicator/index.cjs +1 -0
  76. package/dist/cjs/components/index.cjs +1 -1
  77. package/dist/cjs/components/infinite-scroll/index.cjs +1 -0
  78. package/dist/cjs/components/infinite-scroll/infinite-scroll-wrapper.cjs +1 -0
  79. package/dist/cjs/components/layout/app-footer/app-footer.cjs +1 -1
  80. package/dist/cjs/components/name-cell/index.cjs +1 -0
  81. package/dist/cjs/components/name-cell/name-cell.cjs +1 -0
  82. package/dist/cjs/components/network-icon/index.cjs +1 -1
  83. package/dist/cjs/components/network-icon/network-indicator.cjs +1 -0
  84. package/dist/cjs/components/sdk-status-pill/constants.cjs +1 -0
  85. package/dist/cjs/components/sdk-status-pill/index.cjs +1 -0
  86. package/dist/cjs/components/sdk-status-pill/sdk-status-pill.cjs +1 -0
  87. package/dist/cjs/components/sdk-status-pill/sdk-status.cjs +1 -0
  88. package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
  89. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  90. package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
  91. package/dist/cjs/configs/tailwind-preset.cjs +1 -1
  92. package/dist/cjs/hooks/index.cjs +1 -1
  93. package/dist/cjs/hooks/use-observed-width-key.cjs +1 -0
  94. package/dist/cjs/index.cjs +1 -1
  95. package/dist/cjs/locale/en.json.cjs +1 -1
  96. package/dist/cjs/utils/format-leverage.cjs +1 -0
  97. package/dist/cjs/utils/format-money.cjs +1 -1
  98. package/dist/cjs/utils/index.cjs +1 -1
  99. package/dist/cjs/utils/leverage-presets.cjs +1 -0
  100. package/dist/esm/components/assets-list-cell/assets-list-cell.js +161 -159
  101. package/dist/esm/components/badge/badge.js +14 -8
  102. package/dist/esm/components/badge/chip.js +47 -0
  103. package/dist/esm/components/badge/index.js +8 -3
  104. package/dist/esm/components/base/amount-input/token-select-panel.js +33 -37
  105. package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +32 -25
  106. package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +6 -6
  107. package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +26 -27
  108. package/dist/esm/components/base/health-factor-block/health-factor-block.js +25 -25
  109. package/dist/esm/components/base/history-chart/history-chart.js +82 -41
  110. package/dist/esm/components/base/index.js +156 -141
  111. package/dist/esm/components/base/info-list/index.js +5 -4
  112. package/dist/esm/components/base/info-list/info-list.js +52 -27
  113. package/dist/esm/components/base/leverage-input/leverage-input.js +18 -20
  114. package/dist/esm/components/base/leverage-preset-chips/constants.js +7 -0
  115. package/dist/esm/components/base/leverage-preset-chips/index.js +6 -0
  116. package/dist/esm/components/base/leverage-preset-chips/leverage-preset-chips.js +39 -0
  117. package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +33 -28
  118. package/dist/esm/components/base/manage-pane/constants.js +3 -2
  119. package/dist/esm/components/base/manage-pane/manage-pane.js +154 -113
  120. package/dist/esm/components/base/page-title/index.js +5 -4
  121. package/dist/esm/components/base/page-title/page-title.js +31 -23
  122. package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +23 -30
  123. package/dist/esm/components/base/position-assets/constants.js +8 -0
  124. package/dist/esm/components/base/position-assets/index.js +6 -0
  125. package/dist/esm/components/base/position-assets/position-assets.js +96 -0
  126. package/dist/esm/components/base/review-button/constants.js +3 -2
  127. package/dist/esm/components/base/review-button/review-button.js +35 -22
  128. package/dist/esm/components/base/stat-badge/constants.js +1 -0
  129. package/dist/esm/components/base/stat-badge/stat-badge.js +91 -47
  130. package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +8 -3
  131. package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +191 -29
  132. package/dist/esm/components/base/tabber/tabber.js +67 -64
  133. package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +31 -31
  134. package/dist/esm/components/base/title-meta/constants.js +1 -0
  135. package/dist/esm/components/base/title-meta/title-meta.js +53 -33
  136. package/dist/esm/components/base/token-amount/token-amount.js +17 -16
  137. package/dist/esm/components/base/values/constants.js +1 -0
  138. package/dist/esm/components/base/values/index.js +18 -13
  139. package/dist/esm/components/base/values/points-value.js +30 -0
  140. package/dist/esm/components/base/values/position-status-badge.js +26 -0
  141. package/dist/esm/components/base/values/position-type-badge.js +7 -6
  142. package/dist/esm/components/base/values/scalars.js +58 -32
  143. package/dist/esm/components/base-table/base-table-line.js +117 -0
  144. package/dist/esm/components/base-table/base-table.js +110 -0
  145. package/dist/esm/components/base-table/constants.js +12 -0
  146. package/dist/esm/components/base-table/index.js +9 -0
  147. package/dist/esm/components/checkbox/checkbox-labeled.js +25 -20
  148. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +25 -20
  149. package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +71 -0
  150. package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +102 -0
  151. package/dist/esm/components/collateral-allocation-tooltip/constants.js +12 -0
  152. package/dist/esm/components/collateral-allocation-tooltip/index.js +9 -0
  153. package/dist/esm/components/composites/index.js +31 -31
  154. package/dist/esm/components/composites/pool-assets-table/constants.js +9 -0
  155. package/dist/esm/components/composites/pool-assets-table/index.js +8 -6
  156. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +52 -30
  157. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +111 -77
  158. package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -26
  159. package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +50 -39
  160. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +114 -59
  161. package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +10 -7
  162. package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +8 -10
  163. package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js +1 -0
  164. package/dist/esm/components/composites/tx-preview/confirm/index.js +24 -26
  165. package/dist/esm/components/composites/tx-preview/index.js +24 -26
  166. package/dist/esm/components/compound-apy/compound-apy.js +88 -82
  167. package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +50 -41
  168. package/dist/esm/components/filter/filter-chip.js +1 -0
  169. package/dist/esm/components/graph/default-config.js +20 -18
  170. package/dist/esm/components/graph/formatters.js +62 -52
  171. package/dist/esm/components/graph/graph-view.js +72 -88
  172. package/dist/esm/components/graph/graph.js +459 -458
  173. package/dist/esm/components/hf-indicator/hf-indicator.js +59 -0
  174. package/dist/esm/components/hf-indicator/index.js +4 -0
  175. package/dist/esm/components/index.js +739 -695
  176. package/dist/esm/components/infinite-scroll/index.js +4 -0
  177. package/dist/esm/components/infinite-scroll/infinite-scroll-wrapper.js +30 -0
  178. package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
  179. package/dist/esm/components/name-cell/index.js +4 -0
  180. package/dist/esm/components/name-cell/name-cell.js +35 -0
  181. package/dist/esm/components/network-icon/index.js +4 -2
  182. package/dist/esm/components/network-icon/network-indicator.js +82 -0
  183. package/dist/esm/components/sdk-status-pill/constants.js +8 -0
  184. package/dist/esm/components/sdk-status-pill/index.js +8 -0
  185. package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +59 -0
  186. package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
  187. package/dist/esm/components/trading-view/trading-view.js +193 -155
  188. package/dist/esm/components/with-copy/with-copy.js +25 -20
  189. package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +114 -171
  190. package/dist/esm/configs/tailwind-preset.js +13 -1
  191. package/dist/esm/hooks/index.js +20 -18
  192. package/dist/esm/hooks/use-observed-width-key.js +24 -0
  193. package/dist/esm/index.js +896 -842
  194. package/dist/esm/locale/en.json.js +28 -25
  195. package/dist/esm/utils/format-leverage.js +6 -0
  196. package/dist/esm/utils/format-money.js +59 -41
  197. package/dist/esm/utils/index.js +91 -85
  198. package/dist/esm/utils/leverage-presets.js +13 -0
  199. package/dist/globals.css +1 -1
  200. package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +3 -0
  201. package/dist/types/components/badge/badge.d.ts +2 -1
  202. package/dist/types/components/badge/chip.d.ts +22 -0
  203. package/dist/types/components/badge/index.d.ts +1 -0
  204. package/dist/types/components/base/amount-input/amount-input.d.ts +3 -2
  205. package/dist/types/components/base/amount-input/token-select-panel.d.ts +4 -3
  206. package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +10 -5
  207. package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +1 -3
  208. package/dist/types/components/base/health-factor-block/health-factor-block.d.ts +6 -6
  209. package/dist/types/components/base/history-chart/history-chart.d.ts +32 -8
  210. package/dist/types/components/base/index.d.ts +2 -0
  211. package/dist/types/components/base/info-list/info-list.d.ts +7 -0
  212. package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
  213. package/dist/types/components/base/leverage-preset-chips/constants.d.ts +4 -0
  214. package/dist/types/components/base/leverage-preset-chips/index.d.ts +2 -0
  215. package/dist/types/components/base/leverage-preset-chips/leverage-preset-chips.d.ts +13 -0
  216. package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +2 -2
  217. package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +6 -4
  218. package/dist/types/components/base/manage-pane/constants.d.ts +1 -0
  219. package/dist/types/components/base/manage-pane/manage-pane.d.ts +3 -1
  220. package/dist/types/components/base/page-title/page-title.d.ts +12 -6
  221. package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +4 -5
  222. package/dist/types/components/base/position-assets/constants.d.ts +5 -0
  223. package/dist/types/components/base/position-assets/index.d.ts +2 -0
  224. package/dist/types/components/base/position-assets/position-assets.d.ts +55 -0
  225. package/dist/types/components/base/review-button/constants.d.ts +1 -0
  226. package/dist/types/components/base/review-button/review-button.d.ts +17 -3
  227. package/dist/types/components/base/stat-badge/constants.d.ts +1 -0
  228. package/dist/types/components/base/stat-badge/stat-badge.d.ts +11 -1
  229. package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +6 -1
  230. package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +43 -4
  231. package/dist/types/components/base/tabber/tabber.d.ts +2 -2
  232. package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +5 -6
  233. package/dist/types/components/base/title-meta/constants.d.ts +1 -0
  234. package/dist/types/components/base/title-meta/title-meta.d.ts +9 -1
  235. package/dist/types/components/base/token-amount/token-amount.d.ts +8 -2
  236. package/dist/types/components/base/values/constants.d.ts +1 -0
  237. package/dist/types/components/base/values/index.d.ts +3 -1
  238. package/dist/types/components/base/values/points-value.d.ts +11 -0
  239. package/dist/types/components/base/values/position-short-label.d.ts +1 -1
  240. package/dist/types/components/base/values/position-status-badge.d.ts +7 -0
  241. package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
  242. package/dist/types/components/base/values/scalars.d.ts +30 -2
  243. package/dist/types/components/base-table/base-table-line.d.ts +21 -0
  244. package/dist/types/components/base-table/base-table.d.ts +19 -0
  245. package/dist/types/components/base-table/constants.d.ts +8 -0
  246. package/dist/types/components/base-table/index.d.ts +3 -0
  247. package/dist/types/components/base-table/types.d.ts +37 -0
  248. package/dist/types/components/collateral-allocation-tooltip/allocation-wheel.d.ts +10 -0
  249. package/dist/types/components/collateral-allocation-tooltip/collateral-allocation-tooltip.d.ts +23 -0
  250. package/dist/types/components/collateral-allocation-tooltip/constants.d.ts +8 -0
  251. package/dist/types/components/collateral-allocation-tooltip/index.d.ts +3 -0
  252. package/dist/types/components/composites/pool-assets-table/constants.d.ts +6 -0
  253. package/dist/types/components/composites/pool-assets-table/index.d.ts +1 -0
  254. package/dist/types/components/composites/pool-assets-table/pool-assets-table-head.d.ts +1 -2
  255. package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +8 -8
  256. package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +7 -20
  257. package/dist/types/components/composites/pool-assets-table/types.d.ts +4 -12
  258. package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +47 -14
  259. package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +1 -1
  260. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -19
  261. package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +2 -2
  262. package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +0 -3
  263. package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts +98 -0
  264. package/dist/types/components/compound-apy/compound-apy.d.ts +12 -2
  265. package/dist/types/components/graph/formatters.d.ts +6 -1
  266. package/dist/types/components/graph/graph-view.d.ts +1 -1
  267. package/dist/types/components/graph/graph.d.ts +4 -0
  268. package/dist/types/components/hf-indicator/hf-indicator.d.ts +17 -0
  269. package/dist/types/components/hf-indicator/index.d.ts +1 -0
  270. package/dist/types/components/index.d.ts +6 -1
  271. package/dist/types/components/infinite-scroll/index.d.ts +1 -0
  272. package/dist/types/components/infinite-scroll/infinite-scroll-wrapper.d.ts +11 -0
  273. package/dist/types/components/layout/app-footer/app-footer.d.ts +9 -15
  274. package/dist/types/components/name-cell/index.d.ts +1 -0
  275. package/dist/types/components/name-cell/name-cell.d.ts +13 -0
  276. package/dist/types/components/network-icon/index.d.ts +1 -0
  277. package/dist/types/components/network-icon/network-indicator.d.ts +23 -0
  278. package/dist/types/components/sdk-status-pill/constants.d.ts +5 -0
  279. package/dist/types/components/sdk-status-pill/index.d.ts +3 -0
  280. package/dist/types/components/sdk-status-pill/sdk-status-pill.d.ts +27 -0
  281. package/dist/types/components/sdk-status-pill/sdk-status.d.ts +11 -0
  282. package/dist/types/components/trading-view/trading-view.d.ts +14 -7
  283. package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +8 -10
  284. package/dist/types/configs/tailwind-preset.d.ts +12 -0
  285. package/dist/types/hooks/index.d.ts +1 -0
  286. package/dist/types/hooks/use-observed-width-key.d.ts +8 -0
  287. package/dist/types/index.d.ts +7 -3
  288. package/dist/types/locale/en.json.d.ts +28 -23
  289. package/dist/types/types/index.d.ts +0 -1
  290. package/dist/types/utils/format-leverage.d.ts +5 -0
  291. package/dist/types/utils/format-money.d.ts +11 -5
  292. package/dist/types/utils/index.d.ts +3 -1
  293. package/dist/types/utils/leverage-presets.d.ts +7 -0
  294. package/package.json +6 -6
  295. package/src/styles/base.css +30 -0
  296. package/src/styles/theme.css +16 -0
  297. package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +0 -1
  298. package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +0 -1
  299. package/dist/cjs/components/block-sync-pill/index.cjs +0 -1
  300. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +0 -1
  301. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +0 -1
  302. package/dist/esm/components/block-sync-pill/block-sync-pill.js +0 -206
  303. package/dist/esm/components/block-sync-pill/block-sync-status.js +0 -12
  304. package/dist/esm/components/block-sync-pill/index.js +0 -4
  305. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -176
  306. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
  307. package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +0 -35
  308. package/dist/types/components/block-sync-pill/block-sync-status.d.ts +0 -29
  309. package/dist/types/components/block-sync-pill/index.d.ts +0 -1
  310. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +0 -17
  311. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +0 -16
  312. package/dist/types/types/footer.d.ts +0 -51
  313. /package/dist/cjs/{types/footer.cjs → components/base-table/types.cjs} +0 -0
  314. /package/dist/esm/{types/footer.js → components/base-table/types.js} +0 -0
@@ -1,95 +1,101 @@
1
- import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
- import { PointsIcon as R } from "../points-icon/points-icon.js";
3
- import { TokenIcon as Y } from "../token-icon/token-icon.js";
4
- import { YieldBreakdownTooltip as w } from "../yield-breakdown-tooltip/yield-breakdown-tooltip.js";
5
- import "react";
6
- import { positiveTokenRewardsOf as z, pointProgramsOf as I, totalApyOf as L } from "../../utils/apy-breakdown.js";
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import { useId as w } from "react";
3
+ import { YieldBreakdownTooltip as x } from "../yield-breakdown-tooltip/yield-breakdown-tooltip.js";
4
+ import { totalApyOf as v, positiveTokenRewardsOf as C, pointProgramsOf as I } from "../../utils/apy-breakdown.js";
7
5
  import "@gearbox-protocol/sdk";
8
- import { bpsToPercent as N } from "../../utils/bps.js";
9
- import { cn as $ } from "../../utils/cn.js";
6
+ import { bpsToPercent as k } from "../../utils/bps.js";
7
+ import { cn as P } from "../../utils/cn.js";
10
8
  import "sonner";
11
- import { formatPercentAmount as v } from "../../utils/format-money.js";
9
+ import { formatCompactPercent as A } from "../../utils/format-money.js";
12
10
  import "@gearbox-protocol/sdk/common-utils";
13
11
  import "luxon";
14
12
  import "../../utils/z-index.js";
15
- function K({
16
- apy: e,
17
- maxLeverage: f,
18
- collateralApy: h,
19
- borrowApy: g,
20
- additionalBorrowApy: x,
21
- decimals: u = 2,
22
- className: a
13
+ const l = 14;
14
+ function O() {
15
+ const t = `additional-incentives-${w().replace(/:/g, "")}`;
16
+ return /* @__PURE__ */ r(
17
+ "svg",
18
+ {
19
+ width: l,
20
+ height: l,
21
+ viewBox: "0 0 14 14",
22
+ fill: "none",
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ className: "size-3.5 shrink-0 overflow-clip",
25
+ role: "img",
26
+ "aria-label": "Incentives",
27
+ children: [
28
+ /* @__PURE__ */ e("title", { children: "Incentives" }),
29
+ /* @__PURE__ */ e(
30
+ "path",
31
+ {
32
+ d: "M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14Z",
33
+ fill: `url(#${t})`
34
+ }
35
+ ),
36
+ /* @__PURE__ */ e(
37
+ "path",
38
+ {
39
+ d: "M7 3.75V10.25M3.75 7H10.25",
40
+ stroke: "white",
41
+ strokeWidth: "1.5",
42
+ strokeLinecap: "round"
43
+ }
44
+ ),
45
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ r(
46
+ "linearGradient",
47
+ {
48
+ id: t,
49
+ x1: "0",
50
+ y1: "7",
51
+ x2: "14",
52
+ y2: "7",
53
+ gradientUnits: "userSpaceOnUse",
54
+ children: [
55
+ /* @__PURE__ */ e("stop", { stopColor: "#FF2D8D" }),
56
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: "#FF6C20" })
57
+ ]
58
+ }
59
+ ) })
60
+ ]
61
+ }
62
+ );
63
+ }
64
+ function c(t) {
65
+ return t == null ? !1 : C(t).length > 0 || I(t).length > 0;
66
+ }
67
+ function U({
68
+ apy: t,
69
+ maxLeverage: p,
70
+ collateralApy: n,
71
+ borrowApy: d,
72
+ quotaRate: a,
73
+ decimals: m = 2,
74
+ tooltip: f = !0,
75
+ className: o
23
76
  }) {
24
- if (!e)
25
- return /* @__PURE__ */ n("span", { className: "text-secondary-foreground", children: "—" });
26
- const i = z(e), m = I(e), p = L(e), A = p >= 1, l = () => {
27
- const P = i.length > 0, k = m.length > 0, y = `${v(N(p), u)}%`, c = i.length, o = c + m.length;
28
- return /* @__PURE__ */ d("div", { className: $("inline-flex items-center gap-1.5", a), children: [
29
- /* @__PURE__ */ n("span", { className: "inline-flex items-center", children: y }),
30
- (P || k) && /* @__PURE__ */ d("span", { className: "relative inline-flex", children: [
31
- i.map((t, r) => {
32
- const s = r === o - 1;
33
- return /* @__PURE__ */ n(
34
- "span",
35
- {
36
- style: {
37
- zIndex: o - r,
38
- marginRight: s ? 0 : -7
39
- },
40
- children: /* @__PURE__ */ n(
41
- Y,
42
- {
43
- token: t.token,
44
- size: 14,
45
- style: {
46
- margin: t.token.symbol === "GEAR" ? "-3px 0 0 0" : "0"
47
- }
48
- }
49
- )
50
- },
51
- `extra-${t.token.address}-${t.supplyApr ?? 0}`
52
- );
53
- }),
54
- m.map((t, r) => {
55
- const s = r + c, T = s === o - 1;
56
- return /* @__PURE__ */ n(
57
- "span",
58
- {
59
- style: {
60
- zIndex: o - s,
61
- marginRight: T ? 0 : -7
62
- },
63
- children: /* @__PURE__ */ n(
64
- R,
65
- {
66
- reward: {
67
- name: t.name,
68
- type: t.id
69
- },
70
- size: 14
71
- }
72
- )
73
- },
74
- `points-${t.id}`
75
- );
76
- })
77
- ] })
77
+ if (!t)
78
+ return /* @__PURE__ */ e("span", { className: "text-secondary-foreground", children: "—" });
79
+ const i = v(t), h = c(t) || c(n), u = f && i >= 1, s = () => {
80
+ const g = A(k(i), m);
81
+ return /* @__PURE__ */ r("div", { className: P("inline-flex items-center gap-1.5", o), children: [
82
+ /* @__PURE__ */ e("span", { className: "inline-flex items-center", children: g }),
83
+ h ? /* @__PURE__ */ e(O, {}) : null
78
84
  ] });
79
85
  };
80
- return A ? /* @__PURE__ */ n(
81
- w,
86
+ return u ? /* @__PURE__ */ e(
87
+ x,
82
88
  {
83
- supplyApy: e,
84
- maxLeverage: f,
85
- collateralApy: h,
86
- borrowApy: g,
87
- additionalBorrowApy: x,
88
- className: a,
89
- children: l()
89
+ supplyApy: t,
90
+ maxLeverage: p,
91
+ collateralApy: n,
92
+ borrowApy: d,
93
+ quotaRate: a,
94
+ className: o,
95
+ children: s()
90
96
  }
91
- ) : l();
97
+ ) : s();
92
98
  }
93
99
  export {
94
- K as CompoundAPY
100
+ U as CompoundAPY
95
101
  };
@@ -1,59 +1,68 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { IconExternal as t } from "@gearbox-protocol/static";
3
- import * as a from "react";
4
- import { BaseLink as p } from "../base-link/base-link.js";
1
+ import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
+ import { IconExternal as o } from "@gearbox-protocol/static";
3
+ import * as s from "react";
4
+ import { BaseLink as a } from "../base-link/base-link.js";
5
5
  import { IconButton as d } from "../icon-button/icon-button.js";
6
6
  import { SimpleDropdown as c } from "../simple-dropdown/simple-dropdown.js";
7
7
  import { SimpleDropdownMenuItem as f } from "../simple-dropdown/simple-dropdown-menu-item.js";
8
- import { useIsMobile as u } from "../../hooks/use-media-query.js";
8
+ import { SimpleTooltip as u } from "../tooltip/simple-tooltip.js";
9
+ import "../tooltip/tooltip.js";
10
+ import { FormattedMessageTyped as h } from "../typed-intl/index.js";
11
+ import { useIsMobile as x } from "../../hooks/use-media-query.js";
9
12
  import "@gearbox-protocol/sdk";
10
- import { cn as h } from "../../utils/cn.js";
13
+ import { cn as g } from "../../utils/cn.js";
11
14
  import "sonner";
12
15
  import "@gearbox-protocol/sdk/common-utils";
13
16
  import "luxon";
14
17
  import "../../utils/z-index.js";
15
- const x = a.forwardRef(function({ explorerLinks: o, className: i, title: l }, n) {
16
- const m = u() ? 32 : 40;
18
+ const D = s.forwardRef(function({ explorerLinks: r, className: i, title: m }, n) {
19
+ const l = x() ? 32 : 40;
17
20
  return /* @__PURE__ */ e(
18
- c,
21
+ u,
19
22
  {
20
- title: l || /* @__PURE__ */ e(
21
- d,
23
+ title: /* @__PURE__ */ e(
24
+ c,
22
25
  {
23
- ref: n,
24
- buttonType: "outlined",
25
- size: m,
26
- title: "View in explorer",
27
- className: h(i),
28
- children: /* @__PURE__ */ e("span", { className: "flex items-center justify-center text-foreground", children: /* @__PURE__ */ e(t, { size: 14 }) })
26
+ title: m || /* @__PURE__ */ e(
27
+ d,
28
+ {
29
+ ref: n,
30
+ buttonType: "outlined",
31
+ size: l,
32
+ className: g(i),
33
+ children: /* @__PURE__ */ e("span", { className: "flex items-center justify-center text-foreground", children: /* @__PURE__ */ e(o, { size: 14 }) })
34
+ }
35
+ ),
36
+ asChild: !0,
37
+ placement: "bottom",
38
+ align: "end",
39
+ children: r?.map((t) => /* @__PURE__ */ e(f, { asChild: !0, children: /* @__PURE__ */ p(
40
+ a,
41
+ {
42
+ href: t.url,
43
+ external: !0,
44
+ className: "flex items-center gap-2",
45
+ children: [
46
+ t.name,
47
+ /* @__PURE__ */ e(
48
+ o,
49
+ {
50
+ size: 14,
51
+ className: "ml-auto",
52
+ style: { width: 14, height: 14 }
53
+ }
54
+ )
55
+ ]
56
+ }
57
+ ) }, t.url))
29
58
  }
30
59
  ),
31
- asChild: !0,
32
- placement: "bottom",
33
- align: "end",
34
- children: o?.map((r) => /* @__PURE__ */ e(f, { asChild: !0, children: /* @__PURE__ */ s(
35
- p,
36
- {
37
- href: r.url,
38
- external: !0,
39
- className: "flex items-center gap-2",
40
- children: [
41
- r.name,
42
- /* @__PURE__ */ e(
43
- t,
44
- {
45
- size: 14,
46
- className: "ml-auto",
47
- style: { width: 14, height: 14 }
48
- }
49
- )
50
- ]
51
- }
52
- ) }, r.url))
60
+ placement: "top",
61
+ children: /* @__PURE__ */ e(h, { messageId: "components.openCopyButtons.explorer" })
53
62
  }
54
63
  );
55
64
  });
56
- x.displayName = "DetailedPageTitleExplorerDropdown";
65
+ D.displayName = "DetailedPageTitleExplorerDropdown";
57
66
  export {
58
- x as DetailedPageTitleExplorerDropdown
67
+ D as DetailedPageTitleExplorerDropdown
59
68
  };
@@ -1,6 +1,7 @@
1
1
  import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
3
  import { Badge as s } from "../badge/badge.js";
4
+ import "../badge/chip.js";
4
5
  import { faXmark as f } from "@fortawesome/free-solid-svg-icons";
5
6
  import { FaIcon as l } from "../icons/fa-icon.js";
6
7
  import "@gearbox-protocol/sdk";
@@ -4,17 +4,17 @@ const e = {
4
4
  bottomColor: "rgba(76, 175, 80, 0.04)",
5
5
  lineColor: "#02c39a",
6
6
  lineWidth: 2
7
- }, i = {
7
+ }, s = {
8
8
  showLabel: !0,
9
9
  color: "#02c39a",
10
10
  labelBackgroundColor: "#02c39a",
11
11
  width: 2
12
- };
13
- function t() {
12
+ }, l = 'Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', t = 14;
13
+ function b() {
14
14
  const r = o(
15
- "hsl(var(--foreground))",
16
- "rgb(0, 0, 0)"
17
- );
15
+ "hsl(var(--muted-foreground))",
16
+ "rgb(163, 163, 163)"
17
+ ), i = o("hsl(var(--card))", "rgb(24, 24, 24)");
18
18
  return {
19
19
  timeScale: {
20
20
  borderVisible: !0,
@@ -37,10 +37,11 @@ function t() {
37
37
  },
38
38
  layout: {
39
39
  background: {
40
- color: "transparent"
40
+ color: i
41
41
  },
42
42
  textColor: r,
43
- fontSize: 14
43
+ fontSize: t,
44
+ fontFamily: l
44
45
  },
45
46
  crosshair: {
46
47
  horzLine: {
@@ -66,7 +67,7 @@ function t() {
66
67
  }
67
68
  };
68
69
  }
69
- function a() {
70
+ function n() {
70
71
  return {
71
72
  topColor: "rgba(76, 175, 80, 0.56)",
72
73
  bottomColor: "rgba(76, 175, 80, 0.04)",
@@ -74,7 +75,7 @@ function a() {
74
75
  lineWidth: 2
75
76
  };
76
77
  }
77
- function s() {
78
+ function c() {
78
79
  return {
79
80
  showLabel: !0,
80
81
  color: e.lineColor,
@@ -82,7 +83,7 @@ function s() {
82
83
  width: 2
83
84
  };
84
85
  }
85
- const b = {
86
+ const u = {
86
87
  timeScale: {
87
88
  borderVisible: !0,
88
89
  borderColor: "rgba(224, 227, 235, 0.1)",
@@ -102,8 +103,9 @@ const b = {
102
103
  background: {
103
104
  color: "transparent"
104
105
  },
105
- textColor: "rgb(0, 0, 0)",
106
- fontSize: 14
106
+ textColor: "rgb(163, 163, 163)",
107
+ fontSize: t,
108
+ fontFamily: l
107
109
  },
108
110
  crosshair: {
109
111
  horzLine: {
@@ -130,9 +132,9 @@ const b = {
130
132
  };
131
133
  export {
132
134
  e as DEFAULT_AREA_SERIES,
133
- b as DEFAULT_OPTIONS,
134
- i as DEFAULT_VERTICAL_LINE,
135
- t as getDefaultOptions,
136
- a as getDefaultSeries,
137
- s as getDefaultVerticalLine
135
+ u as DEFAULT_OPTIONS,
136
+ s as DEFAULT_VERTICAL_LINE,
137
+ b as getDefaultOptions,
138
+ n as getDefaultSeries,
139
+ c as getDefaultVerticalLine
138
140
  };
@@ -1,45 +1,45 @@
1
1
  import { TickMarkType as g } from "lightweight-charts";
2
2
  import { DateTime as S } from "luxon";
3
- import { isBelowDisplayThreshold as x, FORMAT_CONSTANTS as X, toSignificantDigits as L, formatNumberWithSuffix as k } from "../../utils/format-number.js";
4
- const { MIN_DISPLAY_THRESHOLD: M, MAX_EXPONENTIAL_THRESHOLD: I } = X, P = (t, e, o = "full") => {
3
+ import { isBelowDisplayThreshold as x, FORMAT_CONSTANTS as P, toSignificantDigits as I, formatNumberWithSuffix as p } from "../../utils/format-number.js";
4
+ const { MIN_DISPLAY_THRESHOLD: M, MAX_EXPONENTIAL_THRESHOLD: H } = P, w = (t, e, o = "full") => {
5
5
  if (x(t))
6
6
  return e ? `<${M}${e}` : `<${M}`;
7
7
  if (t === 0)
8
8
  return e ? `0${e}` : "0";
9
- const r = k(t, {
10
- maxExponentialThreshold: I,
9
+ const r = p(t, {
10
+ maxExponentialThreshold: H,
11
11
  minimumFractionDigits: 0,
12
12
  maximumFractionDigits: o === "short" ? 1 : 0,
13
13
  format: o,
14
14
  adaptiveDecimals: o === "short"
15
15
  });
16
16
  return e ? `${r}${e}` : r;
17
- }, U = 2, p = (t, e) => {
17
+ }, C = 2, R = (t, e) => {
18
18
  if (x(t))
19
19
  return e ? `<${M}${e}` : `<${M}`;
20
20
  if (t === 0)
21
21
  return e ? `0${e}` : "0";
22
- const o = L(t, U);
22
+ const o = I(t, C);
23
23
  return e ? `${o}${e}` : o;
24
- }, C = 4, w = (t) => {
24
+ }, Y = 4, G = (t) => {
25
25
  if (x(t))
26
26
  return `<${M}`;
27
27
  if (t === 0)
28
28
  return "0";
29
29
  const e = Math.round(t), o = Math.abs(t - e);
30
- return o > 0 && o < 0.01 ? t.toFixed(12).replace(/0+$/, "").replace(/\.$/, "") : L(t, C);
31
- }, G = (t, e) => {
30
+ return o > 0 && o < 0.01 ? t.toFixed(12).replace(/0+$/, "").replace(/\.$/, "") : I(t, Y);
31
+ }, V = (t, e) => {
32
32
  if (x(t))
33
33
  return e ? `<${M} ${e}` : `<${M}`;
34
34
  if (t === 0)
35
35
  return e ? `0 ${e}` : "0";
36
36
  const o = Number.isInteger(t), r = Math.abs(t), i = o && r >= 1e3, s = Math.round(t), a = Math.abs(t - s);
37
37
  if (a > 0 && a < 0.01 && !i) {
38
- const $ = t.toFixed(12).replace(/0+$/, "").replace(/\.$/, "");
39
- return e ? `${$} ${e}` : $;
38
+ const D = t.toFixed(12).replace(/0+$/, "").replace(/\.$/, "");
39
+ return e ? `${D} ${e}` : D;
40
40
  }
41
- const F = k(t, {
42
- maxExponentialThreshold: I,
41
+ const F = p(t, {
42
+ maxExponentialThreshold: H,
43
43
  minimumFractionDigits: o ? 0 : 2,
44
44
  maximumFractionDigits: i ? 1 : o ? 0 : 2,
45
45
  format: i ? "short" : "full",
@@ -47,12 +47,12 @@ const { MIN_DISPLAY_THRESHOLD: M, MAX_EXPONENTIAL_THRESHOLD: I } = X, P = (t, e,
47
47
  });
48
48
  return e ? `${F} ${e}` : F;
49
49
  }, N = {
50
- "%": p,
51
- $: P,
52
- token: G,
53
- none: w
54
- }, J = (t) => N[t] || N.token;
55
- function Z(t, e, o = 4) {
50
+ "%": R,
51
+ $: w,
52
+ token: V,
53
+ none: G
54
+ }, v = (t) => N[t] || N.token;
55
+ function tt(t, e, o = 4) {
56
56
  if (t === 0)
57
57
  return e ? `0 ${e}` : "0";
58
58
  const r = e && Math.abs(t) >= 1e3 ? 0 : o, i = t.toLocaleString("en-US", {
@@ -61,14 +61,20 @@ function Z(t, e, o = 4) {
61
61
  });
62
62
  return e ? `${i} ${e}` : i;
63
63
  }
64
- function v(t, e, o) {
64
+ function k(t, e) {
65
+ return !t || e === "none" || e === "token" ? t : e === "$" ? `$${t}` : e === "%" ? `${t}%` : `${t} ${e}`;
66
+ }
67
+ function L(t) {
68
+ return t.includes("/") ? "none" : t;
69
+ }
70
+ function et(t, e, o) {
65
71
  const r = o?.yScaleMin;
66
72
  let i = t.length > 0 ? Math.min(...t) : 0, s = t.length > 0 ? Math.max(...t) : 0, a = [];
67
73
  const u = () => {
68
74
  const n = (i + s) / 2;
69
75
  let c = 1, m = "";
70
76
  return n >= 1e9 ? (c = 1e9, m = "B") : n >= 1e6 ? (c = 1e6, m = "M") : n >= 1e3 && (c = 1e3, m = "K"), { scale: c, suffix: m };
71
- }, F = 8, $ = 0.02;
77
+ }, F = 8, D = 0.02;
72
78
  let A = 0;
73
79
  const E = (n, c, m, d) => {
74
80
  const h = (c > 1 ? n / c : n).toLocaleString("en-US", {
@@ -77,45 +83,48 @@ function v(t, e, o) {
77
83
  useGrouping: !1
78
84
  });
79
85
  return c > 1 ? `${h}${m}` : h;
80
- }, R = (n, c, m) => {
86
+ }, U = (n, c, m) => {
81
87
  for (let d = 0; d <= F; d++) {
82
- const l = /* @__PURE__ */ new Set();
88
+ const $ = /* @__PURE__ */ new Set();
83
89
  let h = !0;
84
- for (const D of n) {
85
- const f = E(D, c, m, d);
86
- if (l.has(f)) {
90
+ for (const T of n) {
91
+ const f = E(T, c, m, d);
92
+ if ($.has(f)) {
87
93
  h = !1;
88
94
  break;
89
95
  }
90
- l.add(f);
96
+ $.add(f);
91
97
  }
92
98
  if (h) return d;
93
99
  }
94
100
  return F;
95
- }, O = (n) => {
101
+ }, X = (n) => {
96
102
  if (r !== void 0 && n < r) return "";
97
- if (n === 0) return "0";
103
+ if (n === 0) return k("0", L(e));
98
104
  const { scale: c, suffix: m } = u();
99
- return E(n, c, m, A);
105
+ return k(
106
+ E(n, c, m, A),
107
+ L(e)
108
+ );
100
109
  };
101
110
  return {
102
- formatter: (n) => O(n),
111
+ formatter: (n) => X(n),
103
112
  tickmarksFormatter: (n) => {
104
- const { scale: c, suffix: m } = u(), d = s - i, l = d > 0 ? a.filter(
105
- (f) => Math.abs(f) >= d * $
113
+ const { scale: c, suffix: m } = u(), d = s - i, $ = d > 0 ? a.filter(
114
+ (f) => Math.abs(f) >= d * D
106
115
  ) : a, h = n.filter(
107
116
  (f) => f !== 0 && !(r !== void 0 && f < r)
108
117
  );
109
- A = R(
110
- [...h, ...l],
118
+ A = U(
119
+ [...h, ...$],
111
120
  c,
112
121
  m
113
122
  );
114
- const D = /* @__PURE__ */ new Set();
123
+ const T = /* @__PURE__ */ new Set();
115
124
  return n.map((f) => {
116
125
  if (r !== void 0 && f < r) return "";
117
- const T = f === 0 ? "0" : E(f, c, m, A);
118
- return !T || D.has(T) ? "" : (D.add(T), T);
126
+ const l = f === 0 ? "0" : E(f, c, m, A);
127
+ return !l || T.has(l) ? "" : (T.add(l), k(l, L(e)));
119
128
  });
120
129
  },
121
130
  updateVisibleRange: (n) => {
@@ -126,11 +135,11 @@ function v(t, e, o) {
126
135
  }
127
136
  };
128
137
  }
129
- const H = (t) => S.fromSeconds(Number(t)).toFormat("dd/LL/yyyy HH:mm"), Y = (t) => S.fromSeconds(Number(t)).toFormat("HH:mm"), V = (t, e) => p(Number(t), e), _ = {
130
- time: H,
131
- "%": V
138
+ const O = (t) => S.fromSeconds(Number(t)).toFormat("dd/LL/yyyy HH:mm"), W = (t) => S.fromSeconds(Number(t)).toFormat("HH:mm"), q = (t, e) => R(Number(t), e), _ = {
139
+ time: O,
140
+ "%": q
132
141
  };
133
- function W(t) {
142
+ function B(t) {
134
143
  const e = /* @__PURE__ */ new Map();
135
144
  return (o, r, i) => {
136
145
  const s = S.fromSeconds(Number(o));
@@ -160,26 +169,27 @@ function W(t) {
160
169
  return u || (u = /* @__PURE__ */ new Set(), e.set(r, u)), u.has(a) ? " " : (u.add(a), a);
161
170
  };
162
171
  }
163
- const b = (t, e) => {
172
+ const y = (t, e) => {
164
173
  if (t === "time" && e && e.length > 0) {
165
174
  const r = S.fromSeconds(Number(e[0].time)), i = S.fromSeconds(
166
175
  Number(e[e.length - 1].time)
167
176
  ), s = r.hasSame(i, "day"), a = s ? 0 : Math.ceil(i.diff(r, "days").days);
168
177
  return {
169
- timeFormatter: s ? Y : H,
170
- tickMarkFormatter: W(a)
178
+ timeFormatter: s ? W : O,
179
+ tickMarkFormatter: B(a)
171
180
  };
172
181
  }
173
182
  const o = _[t] || _.time;
174
183
  return {
175
184
  timeFormatter: o,
176
- tickMarkFormatter: (r) => o(r, void 0)
185
+ tickMarkFormatter: (r) => o(r, t)
177
186
  };
178
- }, tt = (t, e) => b(t, e).timeFormatter;
187
+ }, rt = (t, e) => y(t, e).timeFormatter;
179
188
  export {
180
- v as createAdaptiveYAxisFormatter,
181
- Z as formatExactValue,
182
- tt as getXFormatter,
183
- b as getXFormatters,
184
- J as getYFormatter
189
+ et as createAdaptiveYAxisFormatter,
190
+ tt as formatExactValue,
191
+ rt as getXFormatter,
192
+ y as getXFormatters,
193
+ v as getYFormatter,
194
+ k as withYAxisUnit
185
195
  };