@gearbox-protocol/ui-kit 3.14.0-next.6 → 3.14.0-next.61

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 (259) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
  3. package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
  4. package/dist/cjs/components/apy/apy.cjs +1 -1
  5. package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
  6. package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
  7. package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -0
  8. package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +1 -0
  9. package/dist/cjs/components/block-sync-pill/index.cjs +1 -0
  10. package/dist/cjs/components/buttons/button/button.cjs +1 -1
  11. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  12. package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
  13. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  14. package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
  15. package/dist/cjs/components/composites/credit-account-history/body.cjs +1 -0
  16. package/dist/cjs/components/composites/credit-account-history/cells/details.cjs +1 -0
  17. package/dist/cjs/components/composites/credit-account-history/cells/hash.cjs +1 -0
  18. package/dist/cjs/components/composites/credit-account-history/cells/index.cjs +1 -0
  19. package/dist/cjs/components/composites/credit-account-history/cells/protocol.cjs +1 -0
  20. package/dist/cjs/components/composites/credit-account-history/cells/token-list.cjs +1 -0
  21. package/dist/cjs/components/composites/credit-account-history/credit-account-history.cjs +1 -0
  22. package/dist/cjs/components/composites/credit-account-history/index.cjs +1 -0
  23. package/dist/cjs/components/composites/credit-account-history/line.cjs +1 -0
  24. package/dist/cjs/components/composites/credit-account-history/types.cjs +1 -0
  25. package/dist/cjs/components/composites/index.cjs +1 -1
  26. package/dist/cjs/components/composites/notification-center/index.cjs +1 -0
  27. package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -0
  28. package/dist/cjs/components/composites/notification-center/types.cjs +1 -0
  29. package/dist/cjs/components/composites/pool-table/columns.cjs +1 -1
  30. package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -0
  31. package/dist/cjs/components/composites/tx-preview/confirm/amounts/constants.cjs +1 -0
  32. package/dist/cjs/components/composites/tx-preview/confirm/amounts/index.cjs +1 -0
  33. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +1 -0
  34. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +1 -0
  35. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -0
  36. package/dist/cjs/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.cjs +1 -0
  37. package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -0
  38. package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -0
  39. package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.cjs +1 -0
  40. package/dist/cjs/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.cjs +1 -0
  41. package/dist/cjs/components/composites/tx-preview/confirm/execution/index.cjs +1 -0
  42. package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -0
  43. package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.cjs +1 -0
  44. package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.cjs +1 -0
  45. package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.cjs +1 -0
  46. package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.cjs +1 -0
  47. package/dist/cjs/components/composites/tx-preview/confirm/result/constants.cjs +1 -0
  48. package/dist/cjs/components/composites/tx-preview/confirm/result/index.cjs +1 -0
  49. package/dist/cjs/components/composites/tx-preview/confirm/stepper/ProgressStepper.cjs +1 -0
  50. package/dist/cjs/components/composites/tx-preview/confirm/stepper/constants.cjs +1 -0
  51. package/dist/cjs/components/composites/tx-preview/confirm/stepper/index.cjs +1 -0
  52. package/dist/cjs/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.cjs +1 -0
  53. package/dist/cjs/components/composites/tx-preview/index.cjs +1 -0
  54. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  55. package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
  56. package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
  57. package/dist/cjs/components/graph/formatters.cjs +1 -1
  58. package/dist/cjs/components/graph/graph.cjs +1 -1
  59. package/dist/cjs/components/graph/index.cjs +1 -1
  60. package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
  61. package/dist/cjs/components/index.cjs +1 -1
  62. package/dist/cjs/components/layout/app-footer/app-footer.cjs +1 -0
  63. package/dist/cjs/components/layout/app-footer/index.cjs +1 -0
  64. package/dist/cjs/components/layout/app-header/app-header.cjs +1 -0
  65. package/dist/cjs/components/layout/app-header/index.cjs +1 -0
  66. package/dist/cjs/components/layout/index.cjs +1 -1
  67. package/dist/cjs/components/layout/main-aside-layout/main-aside-layout.cjs +1 -1
  68. package/dist/cjs/components/legal-agreement/index.cjs +1 -1
  69. package/dist/cjs/components/legal-agreement/legal-agreement-awaiting-panel.cjs +1 -0
  70. package/dist/cjs/components/legal-agreement/legal-agreement-dialog.cjs +1 -1
  71. package/dist/cjs/components/legal-agreement/legal-agreement-link.cjs +1 -0
  72. package/dist/cjs/components/legal-agreement/legal-agreement-panel.cjs +1 -0
  73. package/dist/cjs/components/legal-agreement/legal-agreement-theme.cjs +1 -0
  74. package/dist/cjs/components/legal-agreement/legal-agreement.stories-config.cjs +1 -0
  75. package/dist/cjs/components/link/link.cjs +1 -1
  76. package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
  77. package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
  78. package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
  79. package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
  80. package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
  81. package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
  82. package/dist/cjs/components/token-template/token-template.cjs +1 -1
  83. package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
  84. package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
  85. package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
  86. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  87. package/dist/cjs/configs/tailwind-preset.cjs +1 -1
  88. package/dist/cjs/hooks/index.cjs +1 -1
  89. package/dist/cjs/hooks/use-filter.cjs +1 -1
  90. package/dist/cjs/index.cjs +1 -1
  91. package/dist/cjs/locale/en.json.cjs +1 -1
  92. package/dist/cjs/test-ids/index.cjs +1 -1
  93. package/dist/cjs/test-ids/notification-center.cjs +1 -0
  94. package/dist/esm/components/alert-badge/alert-badge.js +12 -10
  95. package/dist/esm/components/app-bar/app-bar.js +1 -1
  96. package/dist/esm/components/apy/apy.js +9 -9
  97. package/dist/esm/components/assets-list-cell/assets-list-cell.js +14 -8
  98. package/dist/esm/components/block-sync/block-sync.js +14 -8
  99. package/dist/esm/components/block-sync-pill/block-sync-pill.js +243 -0
  100. package/dist/esm/components/block-sync-pill/block-sync-status.js +12 -0
  101. package/dist/esm/components/block-sync-pill/index.js +4 -0
  102. package/dist/esm/components/buttons/button/button.js +1 -0
  103. package/dist/esm/components/checkbox/checkbox-labeled.js +12 -6
  104. package/dist/esm/components/client-adapters/styled-button/styled-button.js +11 -11
  105. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +12 -6
  106. package/dist/esm/components/complex-input/complex-input.js +14 -8
  107. package/dist/esm/components/composites/credit-account-history/body.js +73 -0
  108. package/dist/esm/components/composites/credit-account-history/cells/details.js +22 -0
  109. package/dist/esm/components/composites/credit-account-history/cells/hash.js +24 -0
  110. package/dist/esm/components/composites/credit-account-history/cells/index.js +10 -0
  111. package/dist/esm/components/composites/credit-account-history/cells/protocol.js +25 -0
  112. package/dist/esm/components/composites/credit-account-history/cells/token-list.js +43 -0
  113. package/dist/esm/components/composites/credit-account-history/credit-account-history.js +46 -0
  114. package/dist/esm/components/composites/credit-account-history/index.js +8 -0
  115. package/dist/esm/components/composites/credit-account-history/line.js +125 -0
  116. package/dist/esm/components/composites/credit-account-history/types.js +9 -0
  117. package/dist/esm/components/composites/index.js +125 -79
  118. package/dist/esm/components/composites/notification-center/index.js +4 -0
  119. package/dist/esm/components/composites/notification-center/notification-center.js +208 -0
  120. package/dist/esm/components/composites/notification-center/types.js +1 -0
  121. package/dist/esm/components/composites/pool-table/columns.js +51 -45
  122. package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +234 -0
  123. package/dist/esm/components/composites/tx-preview/confirm/amounts/constants.js +10 -0
  124. package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +7 -0
  125. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +213 -0
  126. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +53 -0
  127. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +97 -0
  128. package/dist/esm/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.js +35 -0
  129. package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +23 -0
  130. package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +14 -0
  131. package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.js +1 -0
  132. package/dist/esm/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.js +30 -0
  133. package/dist/esm/components/composites/tx-preview/confirm/execution/index.js +4 -0
  134. package/dist/esm/components/composites/tx-preview/confirm/index.js +40 -0
  135. package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.js +55 -0
  136. package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.js +25 -0
  137. package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.js +60 -0
  138. package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.js +21 -0
  139. package/dist/esm/components/composites/tx-preview/confirm/result/constants.js +24 -0
  140. package/dist/esm/components/composites/tx-preview/confirm/result/index.js +15 -0
  141. package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +105 -0
  142. package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +6 -0
  143. package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +8 -0
  144. package/dist/esm/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.js +6 -0
  145. package/dist/esm/components/composites/tx-preview/index.js +40 -0
  146. package/dist/esm/components/compound-apy/compound-apy.js +14 -8
  147. package/dist/esm/components/confirm-menu/confirm-menu.js +28 -25
  148. package/dist/esm/components/detailed-page-title/detailed-page-title.js +12 -6
  149. package/dist/esm/components/graph/formatters.js +128 -132
  150. package/dist/esm/components/graph/graph.js +744 -389
  151. package/dist/esm/components/graph/index.js +26 -24
  152. package/dist/esm/components/health-factor/health-factor.js +27 -26
  153. package/dist/esm/components/index.js +793 -722
  154. package/dist/esm/components/layout/app-footer/app-footer.js +54 -0
  155. package/dist/esm/components/layout/app-footer/index.js +5 -0
  156. package/dist/esm/components/layout/app-header/app-header.js +100 -0
  157. package/dist/esm/components/layout/app-header/index.js +4 -0
  158. package/dist/esm/components/layout/index.js +32 -27
  159. package/dist/esm/components/layout/main-aside-layout/main-aside-layout.js +107 -58
  160. package/dist/esm/components/legal-agreement/index.js +23 -7
  161. package/dist/esm/components/legal-agreement/legal-agreement-awaiting-panel.js +29 -0
  162. package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +72 -212
  163. package/dist/esm/components/legal-agreement/legal-agreement-link.js +22 -0
  164. package/dist/esm/components/legal-agreement/legal-agreement-panel.js +130 -0
  165. package/dist/esm/components/legal-agreement/legal-agreement-theme.js +137 -0
  166. package/dist/esm/components/legal-agreement/legal-agreement.stories-config.js +170 -0
  167. package/dist/esm/components/link/link.js +42 -35
  168. package/dist/esm/components/loader-guard/loader-guard.js +7 -5
  169. package/dist/esm/components/markdown-viewer/markdown-viewer.js +14 -8
  170. package/dist/esm/components/segmented-control/segmented-control.js +21 -21
  171. package/dist/esm/components/smart-number-input/smart-number-input.js +33 -29
  172. package/dist/esm/components/tab-control/tab-control.js +1 -1
  173. package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +12 -6
  174. package/dist/esm/components/token-template/token-template.js +17 -17
  175. package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +14 -8
  176. package/dist/esm/components/trading-view/trading-view.js +164 -147
  177. package/dist/esm/components/vertical-indicator/vertical-indicator.js +39 -33
  178. package/dist/esm/components/with-copy/with-copy.js +14 -8
  179. package/dist/esm/configs/tailwind-preset.js +1 -0
  180. package/dist/esm/hooks/index.js +50 -47
  181. package/dist/esm/hooks/use-filter.js +63 -29
  182. package/dist/esm/index.js +972 -896
  183. package/dist/esm/locale/en.json.js +10 -0
  184. package/dist/esm/test-ids/index.js +14 -12
  185. package/dist/esm/test-ids/notification-center.js +16 -0
  186. package/dist/globals.css +1 -1
  187. package/dist/types/components/alert-badge/alert-badge.d.ts +1 -1
  188. package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +35 -0
  189. package/dist/types/components/block-sync-pill/block-sync-status.d.ts +29 -0
  190. package/dist/types/components/block-sync-pill/index.d.ts +1 -0
  191. package/dist/types/components/buttons/button/button.d.ts +4 -3
  192. package/dist/types/components/composites/credit-account-history/body.d.ts +14 -0
  193. package/dist/types/components/composites/credit-account-history/cells/details.d.ts +9 -0
  194. package/dist/types/components/composites/credit-account-history/cells/hash.d.ts +6 -0
  195. package/dist/types/components/composites/credit-account-history/cells/index.d.ts +4 -0
  196. package/dist/types/components/composites/credit-account-history/cells/protocol.d.ts +7 -0
  197. package/dist/types/components/composites/credit-account-history/cells/token-list.d.ts +9 -0
  198. package/dist/types/components/composites/credit-account-history/credit-account-history.d.ts +15 -0
  199. package/dist/types/components/composites/credit-account-history/index.d.ts +2 -0
  200. package/dist/types/components/composites/credit-account-history/line.d.ts +18 -0
  201. package/dist/types/components/composites/credit-account-history/types.d.ts +36 -0
  202. package/dist/types/components/composites/index.d.ts +3 -0
  203. package/dist/types/components/composites/notification-center/index.d.ts +2 -0
  204. package/dist/types/components/composites/notification-center/notification-center.d.ts +9 -0
  205. package/dist/types/components/composites/notification-center/types.d.ts +31 -0
  206. package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +29 -0
  207. package/dist/types/components/composites/tx-preview/confirm/amounts/constants.d.ts +6 -0
  208. package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +2 -0
  209. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +17 -0
  210. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +15 -0
  211. package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -0
  212. package/dist/types/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.d.ts +8 -0
  213. package/dist/types/components/composites/tx-preview/confirm/dialog/constants.d.ts +17 -0
  214. package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +5 -0
  215. package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +4 -0
  216. package/dist/types/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.d.ts +6 -0
  217. package/dist/types/components/composites/tx-preview/confirm/execution/index.d.ts +1 -0
  218. package/dist/types/components/composites/tx-preview/confirm/index.d.ts +5 -0
  219. package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.d.ts +8 -0
  220. package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.d.ts +2 -0
  221. package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.d.ts +8 -0
  222. package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.d.ts +6 -0
  223. package/dist/types/components/composites/tx-preview/confirm/result/constants.d.ts +18 -0
  224. package/dist/types/components/composites/tx-preview/confirm/result/index.d.ts +5 -0
  225. package/dist/types/components/composites/tx-preview/confirm/stepper/ProgressStepper.d.ts +36 -0
  226. package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +3 -0
  227. package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +3 -0
  228. package/dist/types/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.d.ts +10 -0
  229. package/dist/types/components/composites/tx-preview/index.d.ts +1 -0
  230. package/dist/types/components/confirm-menu/confirm-menu.d.ts +4 -2
  231. package/dist/types/components/graph/graph.d.ts +112 -2
  232. package/dist/types/components/graph/index.d.ts +1 -1
  233. package/dist/types/components/health-factor/health-factor.d.ts +6 -3
  234. package/dist/types/components/index.d.ts +1 -0
  235. package/dist/types/components/layout/app-footer/app-footer.d.ts +62 -0
  236. package/dist/types/components/layout/app-footer/index.d.ts +1 -0
  237. package/dist/types/components/layout/app-header/app-header.d.ts +67 -0
  238. package/dist/types/components/layout/app-header/index.d.ts +1 -0
  239. package/dist/types/components/layout/index.d.ts +2 -0
  240. package/dist/types/components/layout/main-aside-layout/main-aside-layout.d.ts +42 -0
  241. package/dist/types/components/legal-agreement/index.d.ts +5 -1
  242. package/dist/types/components/legal-agreement/legal-agreement-awaiting-panel.d.ts +10 -0
  243. package/dist/types/components/legal-agreement/legal-agreement-dialog.d.ts +19 -52
  244. package/dist/types/components/legal-agreement/legal-agreement-link.d.ts +11 -0
  245. package/dist/types/components/legal-agreement/legal-agreement-panel.d.ts +16 -0
  246. package/dist/types/components/legal-agreement/legal-agreement-theme.d.ts +36 -0
  247. package/dist/types/components/legal-agreement/legal-agreement.stories-config.d.ts +11 -0
  248. package/dist/types/components/trading-view/trading-view.d.ts +15 -1
  249. package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +6 -0
  250. package/dist/types/configs/tailwind-preset.d.ts +1 -0
  251. package/dist/types/hooks/use-filter.d.ts +46 -0
  252. package/dist/types/index.d.ts +2 -0
  253. package/dist/types/locale/en.json.d.ts +13 -0
  254. package/dist/types/test-ids/index.d.ts +1 -0
  255. package/dist/types/test-ids/notification-center.d.ts +13 -0
  256. package/dist/types/types/footer.d.ts +24 -3
  257. package/package.json +7 -4
  258. package/src/styles/base.css +2 -0
  259. package/src/styles/theme.css +1 -0
@@ -0,0 +1,170 @@
1
+ import { jsxs as r, Fragment as i, jsx as d } from "react/jsx-runtime";
2
+ import { LegalAgreementLink as l } from "./legal-agreement-link.js";
3
+ const t = {
4
+ termsOfService: "https://gearbox.finance/terms",
5
+ privacyNotice: "https://gearbox.finance/privacy",
6
+ riskDisclosure: "https://gearbox.finance/risks",
7
+ rwaMarketsTerms: "https://gearbox.finance/rwa-tc"
8
+ }, n = "Example App";
9
+ function c(a, e, s) {
10
+ return /* @__PURE__ */ d(l, { href: e, theme: a, children: s });
11
+ }
12
+ function m(a = "default") {
13
+ const e = (s, o) => c(a, s, o);
14
+ return {
15
+ productName: n,
16
+ notificationText: /* @__PURE__ */ r(i, { children: [
17
+ "Any use of and/or interaction with the ",
18
+ n,
19
+ " is subject to the",
20
+ " ",
21
+ e(t.termsOfService, "Terms of Service"),
22
+ " and",
23
+ " ",
24
+ e(t.privacyNotice, "Privacy Notice"),
25
+ ", and acceptance of risks described in the",
26
+ " ",
27
+ e(t.riskDisclosure, "Risk Disclosure Statement"),
28
+ "."
29
+ ] }),
30
+ checkboxItems: [
31
+ {
32
+ id: "consent",
33
+ content: /* @__PURE__ */ r(i, { children: [
34
+ "I agree to the",
35
+ " ",
36
+ e(t.termsOfService, "Terms of Service"),
37
+ " and acknowledge the ",
38
+ e(t.privacyNotice, "Privacy Notice"),
39
+ ". I have read the",
40
+ " ",
41
+ e(t.riskDisclosure, "Risk Disclosure Statement"),
42
+ " and I voluntarily assume all risks described in it."
43
+ ] })
44
+ }
45
+ ]
46
+ };
47
+ }
48
+ function h(a = "default") {
49
+ const e = (s, o) => c(a, s, o);
50
+ return {
51
+ productName: n,
52
+ notificationText: /* @__PURE__ */ r(i, { children: [
53
+ "By accessing or using ",
54
+ n,
55
+ ", I agree to the",
56
+ " ",
57
+ e(t.termsOfService, "Terms of Service"),
58
+ " and confirm that I have read and understood the",
59
+ " ",
60
+ e(t.privacyNotice, "Privacy Notice"),
61
+ " and",
62
+ " ",
63
+ e(t.riskDisclosure, "Risk Disclosure Statement"),
64
+ "."
65
+ ] }),
66
+ updatedTermsNoticeText: /* @__PURE__ */ r(i, { children: [
67
+ "Our Terms of Service have been updated. Please review and sign the new agreement to continue using ",
68
+ n,
69
+ "."
70
+ ] }),
71
+ checkboxItems: [
72
+ {
73
+ id: "terms",
74
+ content: /* @__PURE__ */ r(i, { children: [
75
+ "I agree to the",
76
+ " ",
77
+ e(t.termsOfService, "Terms of Service"),
78
+ " and acknowledge the ",
79
+ e(t.privacyNotice, "Privacy Notice"),
80
+ "."
81
+ ] })
82
+ },
83
+ {
84
+ id: "prohibited",
85
+ content: "I represent and confirm that I am not a Prohibited Person (as defined in the above Terms of Service) and am not acting on behalf of one."
86
+ },
87
+ {
88
+ id: "risks",
89
+ content: /* @__PURE__ */ r(i, { children: [
90
+ "I acknowledge that the ",
91
+ n,
92
+ ", related software, and smart contracts are experimental and may contain errors or vulnerabilities. I understand that their use may result in the complete loss of my funds. I have read the",
93
+ " ",
94
+ e(t.riskDisclosure, "Risk Disclosure Statement"),
95
+ " and I voluntarily assume all risks described in it."
96
+ ] })
97
+ }
98
+ ]
99
+ };
100
+ }
101
+ function f(a = "default") {
102
+ const e = (s, o) => c(a, s, o);
103
+ return {
104
+ productName: n,
105
+ notificationText: /* @__PURE__ */ r(i, { children: [
106
+ "By accessing or using ",
107
+ n,
108
+ ", I agree to the",
109
+ " ",
110
+ e(t.termsOfService, "Terms of Service"),
111
+ " and",
112
+ " ",
113
+ e(
114
+ t.rwaMarketsTerms,
115
+ "RWA Markets Interface Terms & Conditions"
116
+ ),
117
+ ", and confirm that I have read and understood the",
118
+ " ",
119
+ e(t.privacyNotice, "Privacy Notice"),
120
+ " and",
121
+ " ",
122
+ e(t.riskDisclosure, "Risk Disclosure Statement"),
123
+ "."
124
+ ] }),
125
+ checkboxItems: [
126
+ {
127
+ id: "terms",
128
+ content: /* @__PURE__ */ r(i, { children: [
129
+ "I agree to the",
130
+ " ",
131
+ e(t.termsOfService, "Terms of Service"),
132
+ " and",
133
+ " ",
134
+ e(
135
+ t.rwaMarketsTerms,
136
+ "RWA Markets Interface Terms & Conditions"
137
+ ),
138
+ ", and acknowledge the",
139
+ " ",
140
+ e(t.privacyNotice, "Privacy Notice"),
141
+ "."
142
+ ] })
143
+ },
144
+ {
145
+ id: "prohibited",
146
+ content: "I represent and confirm that I am not a Prohibited Person (as defined in the above Terms of Service) and am not acting on behalf of one."
147
+ },
148
+ {
149
+ id: "risks",
150
+ content: /* @__PURE__ */ r(i, { children: [
151
+ "I acknowledge that the ",
152
+ n,
153
+ ", RWA Markets Interface, related software, and smart contracts are experimental and may contain errors or vulnerabilities. I understand that their use may result in the complete loss of my funds. I have read the",
154
+ " ",
155
+ e(t.riskDisclosure, "Risk Disclosure Statement"),
156
+ ", and I voluntarily assume all risks described in it and the above RWA Markets Interface Terms & Conditions."
157
+ ] })
158
+ }
159
+ ]
160
+ };
161
+ }
162
+ const k = m(), g = h(), p = f();
163
+ export {
164
+ h as createStoryExtendedLegalConfig,
165
+ m as createStoryPermissionlessLegalConfig,
166
+ f as createStoryRwaLegalConfig,
167
+ g as storyExtendedLegalConfig,
168
+ k as storyPermissionlessLegalConfig,
169
+ p as storyRwaLegalConfig
170
+ };
@@ -1,15 +1,15 @@
1
- import { jsx as r, jsxs as e, Fragment as f } from "react/jsx-runtime";
2
- import { IconExternal as t } from "@gearbox-protocol/static";
3
- import { cva as w } from "class-variance-authority";
4
- import { BaseLink as u } from "../base-link/base-link.js";
1
+ import { jsxs as o, jsx as r, Fragment as g } from "react/jsx-runtime";
2
+ import { IconExternal as x } from "@gearbox-protocol/static";
3
+ import { cva as b } from "class-variance-authority";
4
+ import { BaseLink as N } from "../base-link/base-link.js";
5
5
  import "react";
6
6
  import "@gearbox-protocol/sdk";
7
- import { cn as _ } from "../../utils/cn.js";
7
+ import { cn as h } from "../../utils/cn.js";
8
8
  import "sonner";
9
9
  import "@gearbox-protocol/sdk/common-utils";
10
10
  import "luxon";
11
11
  import "../../utils/z-index.js";
12
- const g = w(
12
+ const v = b(
13
13
  "[&_.icon-wrap]:-mt-px [&_.icon-wrap]:pl-1.5 [&_.icon-wrap]:leading-none [&_.icon-wrap]:text-secondary-foreground hover:[&_.icon-wrap]:text-foreground",
14
14
  {
15
15
  variants: {
@@ -22,40 +22,47 @@ const g = w(
22
22
  defaultVariants: { variant: "default" }
23
23
  }
24
24
  );
25
- function x({
26
- className: p,
27
- children: a,
28
- href: i,
29
- target: s,
30
- variant: o = "default",
31
- size: c = "default",
32
- color: m = "main",
33
- external: n = !1,
34
- asChild: d = !1,
35
- ...l
25
+ function k({
26
+ className: i,
27
+ children: n,
28
+ href: c,
29
+ target: m,
30
+ variant: e = "default",
31
+ size: l = "default",
32
+ color: d = "main",
33
+ external: a = !1,
34
+ asChild: f = !1,
35
+ ...w
36
36
  }) {
37
+ const p = a ? /* @__PURE__ */ r("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ r(x, { size: 14 }) }) : null, s = a && typeof n == "string" ? (() => {
38
+ const t = n.trimEnd().lastIndexOf(" "), u = t === -1 ? "" : n.slice(0, t + 1), _ = t === -1 ? n : n.slice(t + 1);
39
+ return /* @__PURE__ */ o("span", { className: "content-wrap", children: [
40
+ u,
41
+ /* @__PURE__ */ o("span", { className: "whitespace-nowrap", children: [
42
+ _,
43
+ p
44
+ ] })
45
+ ] });
46
+ })() : /* @__PURE__ */ o(g, { children: [
47
+ /* @__PURE__ */ r("span", { className: "content-wrap", children: n }),
48
+ p
49
+ ] });
37
50
  return /* @__PURE__ */ r(
38
- u,
51
+ N,
39
52
  {
40
- href: i,
41
- target: s,
42
- external: n,
43
- variant: o,
44
- size: c,
45
- color: m,
46
- className: _(g({ variant: o }), p),
47
- ...l,
48
- children: d ? /* @__PURE__ */ e("span", { children: [
49
- /* @__PURE__ */ r("span", { className: "content-wrap", children: a }),
50
- n && /* @__PURE__ */ r("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ r(t, { size: 14 }) })
51
- ] }) : /* @__PURE__ */ e(f, { children: [
52
- /* @__PURE__ */ r("span", { className: "content-wrap", children: a }),
53
- n && /* @__PURE__ */ r("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ r(t, { size: 14 }) })
54
- ] })
53
+ href: c,
54
+ target: m,
55
+ external: a,
56
+ variant: e,
57
+ size: l,
58
+ color: d,
59
+ className: h(v({ variant: e }), i),
60
+ ...w,
61
+ children: f ? /* @__PURE__ */ r("span", { children: s }) : s
55
62
  }
56
63
  );
57
64
  }
58
- x.displayName = "Link";
65
+ k.displayName = "Link";
59
66
  export {
60
- x as Link
67
+ k as Link
61
68
  };
@@ -1,5 +1,7 @@
1
1
  import { jsx as m, jsxs as o } from "react/jsx-runtime";
2
2
  import { Guard as p } from "../guard/guard.js";
3
+ import "../layout/app-footer/app-footer.js";
4
+ import "../layout/app-header/app-header.js";
3
5
  import "../base-link/base-link.js";
4
6
  import "react";
5
7
  import "@gearbox-protocol/sdk";
@@ -20,12 +22,12 @@ import "../buttons/back-button/back-button.js";
20
22
  import "../page-title/page-title.js";
21
23
  import "../layout/social-icons/social-icons.js";
22
24
  import { Skeleton as r } from "../skeleton/skeleton.js";
23
- function B({
25
+ function E({
24
26
  showGuard: s,
25
27
  children: i,
26
- loader: a
28
+ loader: t
27
29
  }) {
28
- const t = /* @__PURE__ */ m(e, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-4 p-4 sm:p-6 w-full", children: [
30
+ const a = /* @__PURE__ */ m(e, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-4 p-4 sm:p-6 w-full", children: [
29
31
  /* @__PURE__ */ m(r, { className: "h-6 sm:h-8 w-48 sm:w-64" }),
30
32
  /* @__PURE__ */ o("div", { className: "space-y-2 mb-4", children: [
31
33
  /* @__PURE__ */ m(r, { className: "h-3 sm:h-4 w-full" }),
@@ -37,8 +39,8 @@ function B({
37
39
  /* @__PURE__ */ m(r, { className: "h-48 sm:h-64 md:h-72 md:w-1/3 w-full" })
38
40
  ] })
39
41
  ] }) }), l = s;
40
- return /* @__PURE__ */ m(p, { showGuard: l, guard: l && (a || t), children: i });
42
+ return /* @__PURE__ */ m(p, { showGuard: l, guard: l && (t || a), children: i });
41
43
  }
42
44
  export {
43
- B as LoaderGuard
45
+ E as LoaderGuard
44
46
  };
@@ -2,6 +2,8 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { useEffect as y } from "react";
3
3
  import h from "react-markdown";
4
4
  import k from "remark-gfm";
5
+ import "../layout/app-footer/app-footer.js";
6
+ import "../layout/app-header/app-header.js";
5
7
  import "../base-link/base-link.js";
6
8
  import "@gearbox-protocol/sdk";
7
9
  import { cn as p } from "../../utils/cn.js";
@@ -58,9 +60,12 @@ import "../input/input.js";
58
60
  import "../with-title/with-title.js";
59
61
  import "../smart-number-input/balance-indicator.js";
60
62
  import "../smart-number-input/smart-number-input.js";
63
+ import "../composites/credit-account-history/credit-account-history.js";
64
+ import "../simple-dropdown/simple-dropdown.js";
65
+ import "../simple-dropdown/simple-dropdown-menu-item.js";
66
+ import "../typography/typography.js";
61
67
  import "../table/grid-table.js";
62
68
  import "../token-symbol/token-symbol.js";
63
- import "../typography/typography.js";
64
69
  import "../help-tip/help-tip.js";
65
70
  import "../description/description.js";
66
71
  import "../confirm-menu/confirm-menu.js";
@@ -79,14 +84,17 @@ import "../icon-button/icon-button.js";
79
84
  import "../separate-line/separate-line.js";
80
85
  import "../tip-card/tip-card.js";
81
86
  import "../composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
87
+ import "../composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js";
88
+ import "../composites/tx-preview/confirm/dialog/constants.js";
89
+ import "../modal/modal.js";
90
+ import "../dialog/dialog-container.js";
91
+ import "../spinner-loader/spinner-loader.js";
82
92
  import "../currency-button/currency-button.js";
83
93
  import "../detailed-apy/detailed-apy.js";
84
94
  import "../detailed-page-title/detailed-page-title.js";
85
95
  import "../detailed-page-title/detailed-page-title-copy-button.js";
86
96
  import "../detailed-page-title/detailed-page-title-explorer-dropdown.js";
87
- import "../modal/modal.js";
88
97
  import "@radix-ui/react-dialog";
89
- import "../dialog/dialog-container.js";
90
98
  import "../dialog/dialog-content.js";
91
99
  import "../dialog/dialog-description.js";
92
100
  import "../dialog/dialog-footer.js";
@@ -124,6 +132,7 @@ import "lightweight-charts";
124
132
  import "../graph/graph-view.js";
125
133
  import "../health-factor/health-factor.js";
126
134
  import "../horizontal-indicator/horizontal-indicator.js";
135
+ import "../legal-agreement/legal-agreement-theme.js";
127
136
  import { Link as I } from "../link/link.js";
128
137
  import "../../utils/reactochart-compat.js";
129
138
  import "../status-elements/status-elements.js";
@@ -134,7 +143,6 @@ import "../navbar/navbar.js";
134
143
  import "../navbar/navbar-indicator-context.js";
135
144
  import "../app-bar/app-bar.js";
136
145
  import "../navitem/navitem.js";
137
- import "../simple-dropdown/simple-dropdown.js";
138
146
  import "../page-title/page-title.js";
139
147
  import "../progress-bar/progress-bar.js";
140
148
  import "../radio-group/radio-group.js";
@@ -143,12 +151,10 @@ import "../segmented-control/segmented-control.js";
143
151
  import "../select/select.js";
144
152
  import "../separator/separator.js";
145
153
  import "../simple-accordion/simple-accordion.js";
146
- import "../simple-dropdown/simple-dropdown-menu-item.js";
147
154
  import "../slider/slider.js";
148
155
  import "../slider/slider-context.js";
149
156
  import "@radix-ui/react-slider";
150
157
  import "../spinner/spinner.js";
151
- import "../spinner-loader/spinner-loader.js";
152
158
  import "../split-list/split-list.js";
153
159
  import "../stat-badge/stat-badge.js";
154
160
  import "../status-dot/status-dot.js";
@@ -181,7 +187,7 @@ function a(o) {
181
187
  }
182
188
  return { id: T(l), displayText: o };
183
189
  }
184
- function jr({
190
+ function Vr({
185
191
  content: o,
186
192
  title: l,
187
193
  backButton: s,
@@ -393,5 +399,5 @@ function jr({
393
399
  return c ? d : /* @__PURE__ */ r(w, { title: l || "", backButton: s, children: d });
394
400
  }
395
401
  export {
396
- jr as MarkdownViewer
402
+ Vr as MarkdownViewer
397
403
  };
@@ -1,15 +1,15 @@
1
1
  import { jsxs as C, jsx as f } from "react/jsx-runtime";
2
- import { cva as k } from "class-variance-authority";
3
- import * as R from "react";
4
- import { useRef as w, useState as I, useCallback as v, useLayoutEffect as y } from "react";
2
+ import { cva as R } from "class-variance-authority";
3
+ import * as N from "react";
4
+ import { useRef as x, useState as I, useCallback as v, useLayoutEffect as y } from "react";
5
5
  import "@gearbox-protocol/sdk";
6
6
  import { cn as g } from "../../utils/cn.js";
7
7
  import "sonner";
8
8
  import "@gearbox-protocol/sdk/common-utils";
9
9
  import "luxon";
10
10
  import "../../utils/z-index.js";
11
- const S = k(
12
- "relative z-0 flex w-full flex-row flex-nowrap items-center bg-gray-30",
11
+ const S = R(
12
+ "relative z-0 w-full grid grid-flow-col auto-cols-[1fr] bg-gray-30",
13
13
  {
14
14
  variants: {
15
15
  size: {
@@ -19,7 +19,7 @@ const S = k(
19
19
  },
20
20
  defaultVariants: { size: "md" }
21
21
  }
22
- ), V = k("", {
22
+ ), V = R("", {
23
23
  variants: {
24
24
  size: {
25
25
  sm: "rounded-sm",
@@ -27,30 +27,30 @@ const S = k(
27
27
  }
28
28
  },
29
29
  defaultVariants: { size: "md" }
30
- }), $ = R.forwardRef(({ className: b, name: m, items: n, size: l = "md", ...u }, t) => {
31
- const r = n.findIndex((e) => e.checked), s = r < 0 ? 0 : r, o = n.length, i = w(null), p = w([]), [h, x] = I({ left: 0, width: 0 }), d = v(() => {
30
+ }), $ = N.forwardRef(({ className: b, name: m, items: n, size: l = "md", ...u }, t) => {
31
+ const r = n.findIndex((e) => e.checked), s = r < 0 ? 0 : r, o = n.length, d = x(null), p = x([]), [h, w] = I({ left: 0, width: 0 }), i = v(() => {
32
32
  const e = p.current[s];
33
33
  if (!e || o === 0) {
34
- x({ left: 0, width: 0 });
34
+ w({ left: 0, width: 0 });
35
35
  return;
36
36
  }
37
- x({
37
+ w({
38
38
  left: e.offsetLeft,
39
39
  width: e.offsetWidth
40
40
  });
41
41
  }, [o, s]);
42
42
  y(() => {
43
- d();
44
- }, [d]), y(() => {
45
- const e = new ResizeObserver(() => d()), a = i.current;
43
+ i();
44
+ }, [i]), y(() => {
45
+ const e = new ResizeObserver(() => i()), a = d.current;
46
46
  a && e.observe(a);
47
47
  for (const c of p.current)
48
48
  c && e.observe(c);
49
49
  return () => e.disconnect();
50
- }, [d]);
50
+ }, [i]);
51
51
  const z = v(
52
52
  (e) => {
53
- i.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
53
+ d.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
54
54
  },
55
55
  [t]
56
56
  );
@@ -62,7 +62,7 @@ const S = k(
62
62
  ...u,
63
63
  children: [
64
64
  n.map((e, a) => /* @__PURE__ */ f(
65
- N,
65
+ k,
66
66
  {
67
67
  ...e,
68
68
  name: m,
@@ -93,16 +93,16 @@ const S = k(
93
93
  );
94
94
  });
95
95
  $.displayName = "SegmentedControl";
96
- const N = R.forwardRef(function({ name: m, switchLabel: n, label: l, onChange: u, onSelect: t, ...r }, s) {
97
- const o = u ?? (t ? (i) => {
98
- i.preventDefault(), t();
96
+ const k = N.forwardRef(function({ name: m, switchLabel: n, label: l, onChange: u, onSelect: t, ...r }, s) {
97
+ const o = u ?? (t ? (d) => {
98
+ d.preventDefault(), t();
99
99
  } : void 0);
100
100
  return /* @__PURE__ */ C(
101
101
  "label",
102
102
  {
103
103
  ref: s,
104
104
  className: g(
105
- "relative m-0 block h-full grow shrink-0 basis-0 cursor-pointer select-none",
105
+ "relative m-0 h-full cursor-pointer select-none",
106
106
  r.disabled && "cursor-default opacity-50"
107
107
  ),
108
108
  "data-checked": r.checked,
@@ -123,7 +123,7 @@ const N = R.forwardRef(function({ name: m, switchLabel: n, label: l, onChange: u
123
123
  }
124
124
  );
125
125
  });
126
- N.displayName = "SegmentedControlItem";
126
+ k.displayName = "SegmentedControlItem";
127
127
  export {
128
128
  $ as SegmentedControl,
129
129
  S as segmentedControlVariants
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
2
  import { cva as k } from "class-variance-authority";
3
- import * as r from "react";
3
+ import * as s from "react";
4
4
  import { createPortal as de } from "react-dom";
5
5
  import { Checkbox as ue } from "../checkbox/checkbox.js";
6
6
  import "../checkbox/checkbox-labeled.js";
@@ -53,16 +53,17 @@ const Ce = k(
53
53
  defaultVariants: { size: "md" }
54
54
  }
55
55
  );
56
- function C(s) {
57
- return Math.round(s * 100);
56
+ function C(a) {
57
+ return Math.round(a * 100);
58
58
  }
59
- function ze(s) {
60
- return s / 100;
59
+ function ze(a) {
60
+ return a / 100;
61
61
  }
62
- function Fe(s, a) {
63
- const f = parseFloat(s.replace(",", ".") || "0");
64
- if (!Number.isFinite(f) || f === 0) return "$0";
65
- const o = f * a, x = Math.abs(o) < 100;
62
+ function Fe(a, r) {
63
+ if (!r) return null;
64
+ const f = parseFloat(a.replace(",", ".") || "0");
65
+ if (!Number.isFinite(f) || f === 0) return null;
66
+ const o = f * r, x = Math.abs(o) < 100;
66
67
  try {
67
68
  return new Intl.NumberFormat("en-US", {
68
69
  style: "currency",
@@ -74,10 +75,10 @@ function Fe(s, a) {
74
75
  return "$0";
75
76
  }
76
77
  }
77
- const Le = r.forwardRef(
78
+ const Le = s.forwardRef(
78
79
  ({
79
- amount: s,
80
- token: a,
80
+ amount: a,
81
+ token: r,
81
82
  label: f,
82
83
  maxAmount: o,
83
84
  maxAmountLimit: g,
@@ -95,11 +96,11 @@ const Le = r.forwardRef(
95
96
  onShowSelectDialog: M,
96
97
  onRemove: z,
97
98
  onFocus: U,
98
- onBlur: P,
99
+ onBlur: W,
99
100
  usdPrice: F,
100
101
  hfSlider: c
101
- }, W) => {
102
- const { formatMessage: O } = xe(), X = r.useId(), L = a?.decimals ?? 18, q = (e) => {
102
+ }, O) => {
103
+ const { formatMessage: P } = xe(), X = s.useId(), L = r?.decimals ?? 18, q = (e) => {
103
104
  const n = e.target.value, [i, d] = Ne(n, L);
104
105
  i === null || d === null || p && p(i, d);
105
106
  }, G = () => {
@@ -107,12 +108,12 @@ const Le = r.forwardRef(
107
108
  const e = o && g && o > g ? g : o || 0n, n = ye(e, L);
108
109
  p(e, n);
109
110
  }
110
- }, [J, T] = r.useState(!1), K = () => {
111
+ }, [J, T] = s.useState(!1), K = () => {
111
112
  T(!0), U?.();
112
113
  }, Q = () => {
113
- T(!1), P?.();
114
- }, Y = be(), Z = c?.min ?? 1, _ = c?.max ?? 3, A = c?.step ?? 0.01, ee = Math.max(1, Math.round(1 / A)), h = j ?? "md", te = Y, ne = ve(), re = we(), se = $ ?? (te ? 20 : ne ? 30 : re ? 22 : 30), [m, I] = r.useState(!1), b = r.useRef(null), V = r.useRef(null), [ae, oe] = r.useState({});
115
- r.useLayoutEffect(() => {
114
+ T(!1), W?.();
115
+ }, Y = be(), Z = c?.min ?? 1, _ = c?.max ?? 3, A = c?.step ?? 0.01, ee = Math.max(1, Math.round(1 / A)), h = j ?? "md", te = Y, ne = ve(), re = we(), se = $ ?? (te ? 20 : ne ? 30 : re ? 22 : 30), [m, I] = s.useState(!1), b = s.useRef(null), V = s.useRef(null), [ae, oe] = s.useState({});
116
+ s.useLayoutEffect(() => {
116
117
  if (!m || !b.current) return;
117
118
  const e = () => {
118
119
  const n = b.current?.getBoundingClientRect();
@@ -127,7 +128,7 @@ const Le = r.forwardRef(
127
128
  return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
128
129
  window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
129
130
  };
130
- }, [m]), r.useEffect(() => {
131
+ }, [m]), s.useEffect(() => {
131
132
  if (!m) return;
132
133
  const e = (n) => {
133
134
  const i = n.target, d = b.current?.contains(i), ce = V.current?.contains(i);
@@ -135,11 +136,11 @@ const Le = r.forwardRef(
135
136
  };
136
137
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
137
138
  }, [m]);
138
- const v = !!(N && N.length > 0), ie = !u && v ? () => I((e) => !e) : M, le = !!(a || M || v);
139
+ const v = !!(N && N.length > 0), ie = !u && v ? () => I((e) => !e) : M, le = !!(r || M || v);
139
140
  return /* @__PURE__ */ l(
140
141
  "div",
141
142
  {
142
- ref: W,
143
+ ref: O,
143
144
  className: Ce({ size: h }),
144
145
  "data-testid": w.root,
145
146
  "data-active": J,
@@ -196,11 +197,11 @@ const Le = r.forwardRef(
196
197
  className: "shrink-0 text-xs tabular-nums"
197
198
  }
198
199
  )
199
- ] }) : o !== void 0 && a && /* @__PURE__ */ t(
200
+ ] }) : o !== void 0 && r && /* @__PURE__ */ t(
200
201
  Ie,
201
202
  {
202
203
  title: x,
203
- token: a,
204
+ token: r,
204
205
  maxAmount: o,
205
206
  size: h,
206
207
  disabled: u,
@@ -226,7 +227,7 @@ const Le = r.forwardRef(
226
227
  spellCheck: "false",
227
228
  pattern: "^[0-9]*[.,]?[0-9]*$",
228
229
  placeholder: "0",
229
- value: s,
230
+ value: a,
230
231
  onChange: q,
231
232
  onFocus: K,
232
233
  onBlur: Q,
@@ -238,7 +239,7 @@ const Le = r.forwardRef(
238
239
  "data-testid": w.input,
239
240
  minLength: 1,
240
241
  maxLength: 79,
241
- title: O({
242
+ title: P({
242
243
  messageId: "components.smartNumberInput.inputTitle"
243
244
  })
244
245
  }
@@ -250,12 +251,12 @@ const Le = r.forwardRef(
250
251
  active: v ? m : D,
251
252
  size: h,
252
253
  disabled: u,
253
- token: a,
254
+ token: r,
254
255
  showSelectDialog: ie,
255
256
  chainId: S,
256
257
  network: E,
257
258
  maxLength: se,
258
- children: a?.symbol ?? /* @__PURE__ */ t(B, { messageId: "components.smartNumberInput.selectToken" })
259
+ children: r?.symbol ?? /* @__PURE__ */ t(B, { messageId: "components.smartNumberInput.selectToken" })
259
260
  }
260
261
  ),
261
262
  v && m && de(
@@ -321,7 +322,10 @@ const Le = r.forwardRef(
321
322
  ]
322
323
  }
323
324
  ),
324
- F !== void 0 && /* @__PURE__ */ t("div", { className: "mt-1 text-xs leading-[130%] text-secondary-foreground", children: Fe(s, F) })
325
+ F !== void 0 && (() => {
326
+ const e = Fe(a, F);
327
+ return e ? /* @__PURE__ */ t("div", { className: "mt-1 text-xs leading-[130%] text-secondary-foreground", children: e }) : null;
328
+ })()
325
329
  ]
326
330
  }
327
331
  );
@@ -80,7 +80,7 @@ function B({
80
80
  onClick: t.disabled ? void 0 : d(t.id, a),
81
81
  disabled: t.disabled,
82
82
  className: m(
83
- "flex items-center bg-transparent border-none shrink-0 text-foreground",
83
+ "flex items-center bg-transparent border-none shrink-0 text-foreground outline-none",
84
84
  o ? "" : "p-0 pb-3.5",
85
85
  u === "equal" ? "grow shrink-0 basis-[0%] justify-center min-w-0" : !x && "mr-10 max-[500px]:mr-8",
86
86
  t.disabled && "cursor-not-allowed",