@stridge/kit 0.1.0-alpha.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 (763) hide show
  1. package/LICENSE +21 -0
  2. package/dist/KitProvider.d.ts +91 -0
  3. package/dist/KitProvider.js +1 -0
  4. package/dist/_internal/deposit/driver/index.d.ts +5 -0
  5. package/dist/_internal/deposit/driver/index.js +1 -0
  6. package/dist/_internal/deposit/widgets/index.d.ts +11 -0
  7. package/dist/_internal/deposit/widgets/index.js +1 -0
  8. package/dist/_internal/drivers/stridge/index.d.ts +6 -0
  9. package/dist/_internal/drivers/stridge/index.js +1 -0
  10. package/dist/_internal/drivers/stridge-mock/index.d.ts +5 -0
  11. package/dist/_internal/drivers/stridge-mock/index.js +1 -0
  12. package/dist/_internal/index.d.ts +2 -0
  13. package/dist/_internal/index.js +1 -0
  14. package/dist/_internal/withdraw/driver/index.d.ts +6 -0
  15. package/dist/_internal/withdraw/driver/index.js +1 -0
  16. package/dist/_internal/withdraw/widgets/index.d.ts +5 -0
  17. package/dist/_internal/withdraw/widgets/index.js +1 -0
  18. package/dist/banners/index.d.ts +1 -0
  19. package/dist/banners/index.js +1 -0
  20. package/dist/banners/useBannerAck.d.ts +61 -0
  21. package/dist/banners/useBannerAck.js +1 -0
  22. package/dist/deposit/compound/index.d.ts +28 -0
  23. package/dist/deposit/compound/index.js +1 -0
  24. package/dist/deposit/dialog/index.d.ts +2 -0
  25. package/dist/deposit/dialog/index.js +1 -0
  26. package/dist/drivers/stridge/createStridgeDepositDriver.d.ts +29 -0
  27. package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -0
  28. package/dist/drivers/stridge/createStridgeWithdrawDriver.d.ts +113 -0
  29. package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -0
  30. package/dist/drivers/stridge/internal/encoding.js +1 -0
  31. package/dist/drivers/stridge/internal/env.js +1 -0
  32. package/dist/drivers/stridge/internal/metadata.js +1 -0
  33. package/dist/drivers/stridge/internal/pollOnce.js +1 -0
  34. package/dist/drivers/stridge/internal/signAndConfirm.js +1 -0
  35. package/dist/drivers/stridge/poll.js +1 -0
  36. package/dist/drivers/stridge/rpc.d.ts +77 -0
  37. package/dist/drivers/stridge/rpc.js +1 -0
  38. package/dist/drivers/stridge/types.d.ts +145 -0
  39. package/dist/drivers/stridge/types.js +1 -0
  40. package/dist/drivers/stridge/wagmiSigner.js +1 -0
  41. package/dist/drivers/stridge-mock/createStridgeMockDriver.d.ts +120 -0
  42. package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -0
  43. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +118 -0
  44. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -0
  45. package/dist/drivers/stridge-mock/fixtures.d.ts +127 -0
  46. package/dist/drivers/stridge-mock/fixtures.js +1 -0
  47. package/dist/drivers/stridge-mock/store.js +1 -0
  48. package/dist/drivers/stridge-mock/triggers.d.ts +41 -0
  49. package/dist/flows/deposit/dialog/DepositBootstrapErrorState.js +1 -0
  50. package/dist/flows/deposit/dialog/DepositBootstrapErrorState.styles.js +1 -0
  51. package/dist/flows/deposit/dialog/DepositDialog.d.ts +112 -0
  52. package/dist/flows/deposit/dialog/DepositDialog.js +1 -0
  53. package/dist/flows/deposit/driver/context.d.ts +37 -0
  54. package/dist/flows/deposit/driver/context.js +1 -0
  55. package/dist/flows/deposit/driver/payloads.d.ts +342 -0
  56. package/dist/flows/deposit/driver/transformers/balanceToBalancesPayload.js +1 -0
  57. package/dist/flows/deposit/driver/transformers/quoteToPayload.js +1 -0
  58. package/dist/flows/deposit/driver/transformers/settlementToPayload.js +1 -0
  59. package/dist/flows/deposit/driver/transformers/startToAddressesPayload.js +1 -0
  60. package/dist/flows/deposit/driver/transformers/startToBrandPayload.js +1 -0
  61. package/dist/flows/deposit/driver/transformers/startToTargetPayload.js +1 -0
  62. package/dist/flows/deposit/driver/transformers/walletAddressToWalletPayload.js +1 -0
  63. package/dist/flows/deposit/driver/types.d.ts +177 -0
  64. package/dist/flows/deposit/orchestrator/controller.d.ts +11 -0
  65. package/dist/flows/deposit/orchestrator/controller.js +1 -0
  66. package/dist/flows/deposit/orchestrator/reducer.js +1 -0
  67. package/dist/flows/deposit/orchestrator/resolveAssetById.js +1 -0
  68. package/dist/flows/deposit/orchestrator/steps.d.ts +23 -0
  69. package/dist/flows/deposit/orchestrator/steps.js +1 -0
  70. package/dist/flows/deposit/orchestrator/types.d.ts +266 -0
  71. package/dist/flows/deposit/orchestrator/useDeposit.d.ts +35 -0
  72. package/dist/flows/deposit/orchestrator/useDeposit.js +1 -0
  73. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.d.ts +35 -0
  74. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -0
  75. package/dist/flows/deposit/widgets/amount-entry/index.d.ts +1 -0
  76. package/dist/flows/deposit/widgets/amount-entry/index.js +1 -0
  77. package/dist/flows/deposit/widgets/asset-picker/AssetPicker.d.ts +25 -0
  78. package/dist/flows/deposit/widgets/asset-picker/AssetPicker.js +1 -0
  79. package/dist/flows/deposit/widgets/asset-picker/index.d.ts +1 -0
  80. package/dist/flows/deposit/widgets/asset-picker/index.js +1 -0
  81. package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.d.ts +31 -0
  82. package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.js +1 -0
  83. package/dist/flows/deposit/widgets/confirm-deposit/index.d.ts +1 -0
  84. package/dist/flows/deposit/widgets/confirm-deposit/index.js +1 -0
  85. package/dist/flows/deposit/widgets/deposit/Deposit.d.ts +30 -0
  86. package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -0
  87. package/dist/flows/deposit/widgets/deposit/compound/Deposit.d.ts +51 -0
  88. package/dist/flows/deposit/widgets/deposit/compound/Deposit.js +1 -0
  89. package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.d.ts +11 -0
  90. package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.js +1 -0
  91. package/dist/flows/deposit/widgets/deposit/compound/Deposit.styles.js +1 -0
  92. package/dist/flows/deposit/widgets/deposit/compound/components/Header.d.ts +15 -0
  93. package/dist/flows/deposit/widgets/deposit/compound/components/Header.js +1 -0
  94. package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +32 -0
  95. package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -0
  96. package/dist/flows/deposit/widgets/deposit/compound/components/Methods.d.ts +23 -0
  97. package/dist/flows/deposit/widgets/deposit/compound/components/Methods.js +1 -0
  98. package/dist/flows/deposit/widgets/deposit/compound/context.js +1 -0
  99. package/dist/flows/deposit/widgets/deposit/compound/index.d.ts +3 -0
  100. package/dist/flows/deposit/widgets/deposit/compound/index.js +1 -0
  101. package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +129 -0
  102. package/dist/flows/deposit/widgets/deposit/index.d.ts +1 -0
  103. package/dist/flows/deposit/widgets/deposit/index.js +1 -0
  104. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.d.ts +20 -0
  105. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -0
  106. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.d.ts +102 -0
  107. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.js +1 -0
  108. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.slots.d.ts +20 -0
  109. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.slots.js +1 -0
  110. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.js +1 -0
  111. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Body.d.ts +17 -0
  112. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Body.js +1 -0
  113. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Close.d.ts +13 -0
  114. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Close.js +1 -0
  115. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Detail.d.ts +14 -0
  116. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Detail.js +1 -0
  117. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Details.d.ts +20 -0
  118. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Details.js +1 -0
  119. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Footer.d.ts +17 -0
  120. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Footer.js +1 -0
  121. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.d.ts +17 -0
  122. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.js +1 -0
  123. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.d.ts +26 -0
  124. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.js +1 -0
  125. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Rows.d.ts +35 -0
  126. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Rows.js +1 -0
  127. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Toggle.d.ts +18 -0
  128. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Toggle.js +1 -0
  129. package/dist/flows/deposit/widgets/deposit-status-banner/compound/context.js +1 -0
  130. package/dist/flows/deposit/widgets/deposit-status-banner/compound/index.d.ts +3 -0
  131. package/dist/flows/deposit/widgets/deposit-status-banner/compound/index.js +1 -0
  132. package/dist/flows/deposit/widgets/deposit-status-banner/compound/types.d.ts +188 -0
  133. package/dist/flows/deposit/widgets/deposit-status-banner/index.d.ts +1 -0
  134. package/dist/flows/deposit/widgets/deposit-status-banner/index.js +1 -0
  135. package/dist/flows/deposit/widgets/error-state/ErrorState.d.ts +30 -0
  136. package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -0
  137. package/dist/flows/deposit/widgets/error-state/index.d.ts +1 -0
  138. package/dist/flows/deposit/widgets/error-state/index.js +1 -0
  139. package/dist/flows/deposit/widgets/processing-state/ProcessingState.d.ts +31 -0
  140. package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -0
  141. package/dist/flows/deposit/widgets/processing-state/index.d.ts +1 -0
  142. package/dist/flows/deposit/widgets/processing-state/index.js +1 -0
  143. package/dist/flows/deposit/widgets/success-state/SuccessState.d.ts +30 -0
  144. package/dist/flows/deposit/widgets/success-state/SuccessState.js +1 -0
  145. package/dist/flows/deposit/widgets/success-state/index.d.ts +1 -0
  146. package/dist/flows/deposit/widgets/success-state/index.js +1 -0
  147. package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.d.ts +41 -0
  148. package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.js +1 -0
  149. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.d.ts +56 -0
  150. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.js +1 -0
  151. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.slots.d.ts +15 -0
  152. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.slots.js +1 -0
  153. package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.styles.js +1 -0
  154. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.d.ts +10 -0
  155. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.js +1 -0
  156. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.d.ts +17 -0
  157. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.js +1 -0
  158. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.d.ts +15 -0
  159. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.js +1 -0
  160. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/InfoTooltip.js +1 -0
  161. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.d.ts +21 -0
  162. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -0
  163. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Selectors.d.ts +11 -0
  164. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Selectors.js +1 -0
  165. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Summary.d.ts +11 -0
  166. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Summary.js +1 -0
  167. package/dist/flows/deposit/widgets/transfer-crypto/compound/context.js +1 -0
  168. package/dist/flows/deposit/widgets/transfer-crypto/compound/index.d.ts +3 -0
  169. package/dist/flows/deposit/widgets/transfer-crypto/compound/index.js +1 -0
  170. package/dist/flows/deposit/widgets/transfer-crypto/compound/types.d.ts +187 -0
  171. package/dist/flows/deposit/widgets/transfer-crypto/index.d.ts +1 -0
  172. package/dist/flows/deposit/widgets/transfer-crypto/index.js +1 -0
  173. package/dist/flows/shared/transformers/classifySettlementStatus.js +1 -0
  174. package/dist/flows/shared/transformers/computeQuoteAttrs.js +1 -0
  175. package/dist/flows/shared/transformers/parseIsoMs.js +1 -0
  176. package/dist/flows/shared/transformers/parseSmallestUnit.js +1 -0
  177. package/dist/flows/shared/transformers/pickRelevantSettlement.js +1 -0
  178. package/dist/flows/withdraw/dialog/WithdrawDialog.d.ts +103 -0
  179. package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -0
  180. package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.d.ts +36 -0
  181. package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.js +1 -0
  182. package/dist/flows/withdraw/driver/context.d.ts +24 -0
  183. package/dist/flows/withdraw/driver/context.js +1 -0
  184. package/dist/flows/withdraw/driver/dto.d.ts +41 -0
  185. package/dist/flows/withdraw/driver/payloads.d.ts +206 -0
  186. package/dist/flows/withdraw/driver/transformers/balanceToWithdrawableBalancesPayload.js +1 -0
  187. package/dist/flows/withdraw/driver/transformers/quoteToWithdrawalPayload.js +1 -0
  188. package/dist/flows/withdraw/driver/transformers/settlementToWithdrawalPayload.js +1 -0
  189. package/dist/flows/withdraw/driver/transformers/supportedAssetsToReceiveOptionsPayload.js +1 -0
  190. package/dist/flows/withdraw/driver/types.d.ts +133 -0
  191. package/dist/flows/withdraw/orchestrator/controller.d.ts +11 -0
  192. package/dist/flows/withdraw/orchestrator/controller.js +1 -0
  193. package/dist/flows/withdraw/orchestrator/index.d.ts +4 -0
  194. package/dist/flows/withdraw/orchestrator/index.js +1 -0
  195. package/dist/flows/withdraw/orchestrator/reducer.js +1 -0
  196. package/dist/flows/withdraw/orchestrator/types.d.ts +156 -0
  197. package/dist/flows/withdraw/orchestrator/useWithdraw.d.ts +23 -0
  198. package/dist/flows/withdraw/orchestrator/useWithdraw.js +1 -0
  199. package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.d.ts +22 -0
  200. package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.js +1 -0
  201. package/dist/flows/withdraw/widgets/withdraw-error/index.d.ts +1 -0
  202. package/dist/flows/withdraw/widgets/withdraw-error/index.js +1 -0
  203. package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.d.ts +29 -0
  204. package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.js +1 -0
  205. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.d.ts +55 -0
  206. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js +1 -0
  207. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.slots.d.ts +31 -0
  208. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.slots.js +1 -0
  209. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.styles.js +1 -0
  210. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/AmountField.d.ts +12 -0
  211. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/AmountField.js +1 -0
  212. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Body.d.ts +20 -0
  213. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Body.js +1 -0
  214. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/BreakdownCard.d.ts +17 -0
  215. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/BreakdownCard.js +1 -0
  216. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Footer.d.ts +18 -0
  217. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Footer.js +1 -0
  218. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.d.ts +21 -0
  219. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.js +1 -0
  220. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/InfoTooltip.js +1 -0
  221. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/ReceiveSelectors.d.ts +13 -0
  222. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/ReceiveSelectors.js +1 -0
  223. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.d.ts +19 -0
  224. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -0
  225. package/dist/flows/withdraw/widgets/withdraw-form/compound/context.js +1 -0
  226. package/dist/flows/withdraw/widgets/withdraw-form/compound/index.d.ts +3 -0
  227. package/dist/flows/withdraw/widgets/withdraw-form/compound/index.js +1 -0
  228. package/dist/flows/withdraw/widgets/withdraw-form/compound/types.d.ts +149 -0
  229. package/dist/flows/withdraw/widgets/withdraw-form/index.d.ts +1 -0
  230. package/dist/flows/withdraw/widgets/withdraw-form/index.js +1 -0
  231. package/dist/flows/withdraw/widgets/withdraw-form/validation.js +1 -0
  232. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.d.ts +19 -0
  233. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js +1 -0
  234. package/dist/flows/withdraw/widgets/withdraw-in-progress/index.d.ts +1 -0
  235. package/dist/flows/withdraw/widgets/withdraw-in-progress/index.js +1 -0
  236. package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.d.ts +20 -0
  237. package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.js +1 -0
  238. package/dist/flows/withdraw/widgets/withdraw-success/index.d.ts +1 -0
  239. package/dist/flows/withdraw/widgets/withdraw-success/index.js +1 -0
  240. package/dist/format/index.d.ts +10 -0
  241. package/dist/format/index.js +1 -0
  242. package/dist/i18n/index.d.ts +9 -0
  243. package/dist/i18n/index.js +1 -0
  244. package/dist/i18n/locales/ar.d.ts +6 -0
  245. package/dist/i18n/locales/ar.js +1 -0
  246. package/dist/i18n/locales/es.d.ts +6 -0
  247. package/dist/i18n/locales/es.js +1 -0
  248. package/dist/icons/index.d.ts +27 -0
  249. package/dist/icons/index.js +1 -0
  250. package/dist/index.d.ts +26 -0
  251. package/dist/index.js +1 -0
  252. package/dist/kit/package.js +1 -0
  253. package/dist/scope/KitPortalScope.d.ts +31 -0
  254. package/dist/scope/KitPortalScope.js +1 -0
  255. package/dist/scope/KitScope.d.ts +63 -0
  256. package/dist/scope/KitScope.js +1 -0
  257. package/dist/scope/KitScope.slots.js +1 -0
  258. package/dist/scope/context.d.ts +67 -0
  259. package/dist/scope/context.js +1 -0
  260. package/dist/scope/index.d.ts +3 -0
  261. package/dist/scope/index.js +1 -0
  262. package/dist/shared/chains/index.d.ts +40 -0
  263. package/dist/shared/chains/index.js +1 -0
  264. package/dist/shared/constants/brand-links.js +1 -0
  265. package/dist/shared/dialog/DialogShell.d.ts +63 -0
  266. package/dist/shared/dialog/DialogShell.js +1 -0
  267. package/dist/shared/dialog/Frame.js +1 -0
  268. package/dist/shared/dialog/GatewayKitRoot.js +1 -0
  269. package/dist/shared/dialog/StepTransition.js +1 -0
  270. package/dist/shared/dialog/useDirectionalChevronTransform.js +1 -0
  271. package/dist/shared/driver/types.d.ts +69 -0
  272. package/dist/shared/error-handling/components/GatewayKitBoundary.js +1 -0
  273. package/dist/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.js +1 -0
  274. package/dist/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.slots.js +1 -0
  275. package/dist/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.js +1 -0
  276. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Action.js +1 -0
  277. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Actions.js +1 -0
  278. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/CodeSample.js +1 -0
  279. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Description.js +1 -0
  280. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/DetailRow.js +1 -0
  281. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Guidance.js +1 -0
  282. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Section.js +1 -0
  283. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/TechnicalDetails.js +1 -0
  284. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/TechnicalDetailsToggle.js +1 -0
  285. package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Title.js +1 -0
  286. package/dist/shared/error-handling/components/GatewayKitErrorCard/context.js +1 -0
  287. package/dist/shared/error-handling/components/GatewayKitErrorCard/index.js +1 -0
  288. package/dist/shared/error-handling/components/GatewayKitRecoveryError.js +1 -0
  289. package/dist/shared/error-handling/components/GatewayKitSetupError.js +1 -0
  290. package/dist/shared/error-handling/constants/guides.js +1 -0
  291. package/dist/shared/error-handling/constants/snippets.js +6 -0
  292. package/dist/shared/error-handling/index.js +1 -0
  293. package/dist/shared/error-handling/lib/isWagmiProviderMissingError.js +1 -0
  294. package/dist/shared/format/formatDurationCoarse.d.ts +29 -0
  295. package/dist/shared/format/formatDurationCoarse.js +1 -0
  296. package/dist/shared/format/formatDurationCompact.d.ts +28 -0
  297. package/dist/shared/format/formatDurationCompact.js +1 -0
  298. package/dist/shared/format/formatNetworkName.d.ts +27 -0
  299. package/dist/shared/format/formatNetworkName.js +1 -0
  300. package/dist/shared/format/formatPercent.d.ts +23 -0
  301. package/dist/shared/format/formatPercent.js +1 -0
  302. package/dist/shared/format/formatTimestamp.d.ts +22 -0
  303. package/dist/shared/format/formatTimestamp.js +1 -0
  304. package/dist/shared/format/formatTokenAmount.d.ts +46 -0
  305. package/dist/shared/format/formatTokenAmount.js +1 -0
  306. package/dist/shared/format/formatUsd.d.ts +41 -0
  307. package/dist/shared/format/formatUsd.js +1 -0
  308. package/dist/shared/format/shortenAddress.d.ts +27 -0
  309. package/dist/shared/format/shortenAddress.js +1 -0
  310. package/dist/shared/format/types.d.ts +33 -0
  311. package/dist/shared/i18n/KitI18nProvider.d.ts +23 -0
  312. package/dist/shared/i18n/KitI18nProvider.js +1 -0
  313. package/dist/shared/i18n/Trans.d.ts +39 -0
  314. package/dist/shared/i18n/Trans.js +1 -0
  315. package/dist/shared/i18n/createKitI18n.d.ts +41 -0
  316. package/dist/shared/i18n/createKitI18n.js +1 -0
  317. package/dist/shared/i18n/defaultI18n.js +1 -0
  318. package/dist/shared/i18n/getLocaleDirection.d.ts +24 -0
  319. package/dist/shared/i18n/getLocaleDirection.js +1 -0
  320. package/dist/shared/i18n/locales.d.ts +31 -0
  321. package/dist/shared/i18n/locales.js +1 -0
  322. package/dist/shared/i18n/useKitI18n.d.ts +14 -0
  323. package/dist/shared/i18n/useKitI18n.js +1 -0
  324. package/dist/shared/i18n/useLingui.d.ts +35 -0
  325. package/dist/shared/i18n/useLingui.js +1 -0
  326. package/dist/shared/i18n/useT.d.ts +25 -0
  327. package/dist/shared/i18n/useT.js +1 -0
  328. package/dist/shared/icons/AlertIcon.d.ts +12 -0
  329. package/dist/shared/icons/AlertIcon.js +1 -0
  330. package/dist/shared/icons/ArrowDownIcon.d.ts +7 -0
  331. package/dist/shared/icons/ArrowDownIcon.js +1 -0
  332. package/dist/shared/icons/ArrowRightIcon.d.ts +7 -0
  333. package/dist/shared/icons/ArrowRightIcon.js +1 -0
  334. package/dist/shared/icons/ArrowRightLeftIcon.d.ts +7 -0
  335. package/dist/shared/icons/ArrowRightLeftIcon.js +1 -0
  336. package/dist/shared/icons/CheckIcon.d.ts +7 -0
  337. package/dist/shared/icons/CheckIcon.js +1 -0
  338. package/dist/shared/icons/ChevronDownIcon.d.ts +7 -0
  339. package/dist/shared/icons/ChevronDownIcon.js +1 -0
  340. package/dist/shared/icons/ChevronLeftIcon.d.ts +7 -0
  341. package/dist/shared/icons/ChevronLeftIcon.js +1 -0
  342. package/dist/shared/icons/ChevronRightIcon.d.ts +7 -0
  343. package/dist/shared/icons/ChevronRightIcon.js +1 -0
  344. package/dist/shared/icons/ChevronUpIcon.d.ts +7 -0
  345. package/dist/shared/icons/ChevronUpIcon.js +1 -0
  346. package/dist/shared/icons/CircleArrowUpIcon.d.ts +7 -0
  347. package/dist/shared/icons/CircleArrowUpIcon.js +1 -0
  348. package/dist/shared/icons/CircleHelpIcon.d.ts +7 -0
  349. package/dist/shared/icons/CircleHelpIcon.js +1 -0
  350. package/dist/shared/icons/ClockIcon.d.ts +7 -0
  351. package/dist/shared/icons/ClockIcon.js +1 -0
  352. package/dist/shared/icons/CopyIcon.d.ts +7 -0
  353. package/dist/shared/icons/CopyIcon.js +1 -0
  354. package/dist/shared/icons/ExternalLinkIcon.d.ts +7 -0
  355. package/dist/shared/icons/ExternalLinkIcon.js +1 -0
  356. package/dist/shared/icons/InfoIcon.d.ts +7 -0
  357. package/dist/shared/icons/InfoIcon.js +1 -0
  358. package/dist/shared/icons/LoaderIcon.d.ts +7 -0
  359. package/dist/shared/icons/LoaderIcon.js +1 -0
  360. package/dist/shared/icons/MailIcon.d.ts +7 -0
  361. package/dist/shared/icons/MailIcon.js +1 -0
  362. package/dist/shared/icons/PackageIcon.d.ts +7 -0
  363. package/dist/shared/icons/PackageIcon.js +1 -0
  364. package/dist/shared/icons/QrCodeIcon.d.ts +7 -0
  365. package/dist/shared/icons/QrCodeIcon.js +1 -0
  366. package/dist/shared/icons/WalletIcon.d.ts +7 -0
  367. package/dist/shared/icons/WalletIcon.js +1 -0
  368. package/dist/shared/icons/XIcon.d.ts +7 -0
  369. package/dist/shared/icons/XIcon.js +1 -0
  370. package/dist/shared/icons/exchanges/BinanceIcon.d.ts +7 -0
  371. package/dist/shared/icons/exchanges/BinanceIcon.js +1 -0
  372. package/dist/shared/icons/exchanges/CoinbaseIcon.d.ts +7 -0
  373. package/dist/shared/icons/exchanges/CoinbaseIcon.js +1 -0
  374. package/dist/shared/icons/exchanges/KrakenIcon.d.ts +7 -0
  375. package/dist/shared/icons/exchanges/KrakenIcon.js +1 -0
  376. package/dist/shared/icons/exchanges/OkxIcon.d.ts +7 -0
  377. package/dist/shared/icons/exchanges/OkxIcon.js +1 -0
  378. package/dist/shared/icons/exchanges/RobinhoodIcon.d.ts +7 -0
  379. package/dist/shared/icons/exchanges/RobinhoodIcon.js +1 -0
  380. package/dist/shared/icons/exchanges/index.d.ts +5 -0
  381. package/dist/shared/icons/exchanges/index.js +1 -0
  382. package/dist/shared/orchestrator/failureReason.js +1 -0
  383. package/dist/shared/orchestrator/index.js +1 -0
  384. package/dist/shared/orchestrator/toFailure.js +1 -0
  385. package/dist/shared/orchestrator/types.d.ts +20 -0
  386. package/dist/shared/orchestrator/useDialogLifecycle.js +1 -0
  387. package/dist/shared/orchestrator/useDriverSettlementListener.js +1 -0
  388. package/dist/shared/orchestrator/useEffectiveState.js +1 -0
  389. package/dist/shared/orchestrator/useSettlementWatcher.js +1 -0
  390. package/dist/shared/orchestrator/userRejection.js +1 -0
  391. package/dist/shared/primitives/TxHashValue/TxHashValue.d.ts +20 -0
  392. package/dist/shared/primitives/TxHashValue/TxHashValue.js +1 -0
  393. package/dist/shared/primitives/TxHashValue/TxHashValue.slots.js +1 -0
  394. package/dist/shared/primitives/TxHashValue/TxHashValue.styles.js +1 -0
  395. package/dist/shared/primitives/TxHashValue/index.d.ts +2 -0
  396. package/dist/shared/primitives/TxHashValue/index.js +1 -0
  397. package/dist/shared/primitives/TxHashValue/types.d.ts +25 -0
  398. package/dist/shared/primitives/WalletValue/WalletValue.d.ts +40 -0
  399. package/dist/shared/primitives/WalletValue/WalletValue.js +1 -0
  400. package/dist/shared/primitives/WalletValue/index.d.ts +1 -0
  401. package/dist/shared/primitives/WalletValue/index.js +1 -0
  402. package/dist/shared/quote/index.js +1 -0
  403. package/dist/shared/quote/useQuoteCountdown.js +1 -0
  404. package/dist/shared/styles/tokens.stylex.js +1 -0
  405. package/dist/shared/ui/Alert/Alert.d.ts +105 -0
  406. package/dist/shared/ui/Alert/Alert.js +1 -0
  407. package/dist/shared/ui/Alert/Alert.slots.d.ts +10 -0
  408. package/dist/shared/ui/Alert/Alert.slots.js +1 -0
  409. package/dist/shared/ui/Alert/Alert.styles.js +1 -0
  410. package/dist/shared/ui/Alert/index.d.ts +2 -0
  411. package/dist/shared/ui/Alert/index.js +1 -0
  412. package/dist/shared/ui/AmountInput/AmountInput.d.ts +132 -0
  413. package/dist/shared/ui/AmountInput/AmountInput.js +1 -0
  414. package/dist/shared/ui/AmountInput/AmountInput.slots.d.ts +11 -0
  415. package/dist/shared/ui/AmountInput/AmountInput.slots.js +1 -0
  416. package/dist/shared/ui/AmountInput/AmountInput.styles.js +1 -0
  417. package/dist/shared/ui/AmountInput/attachInputNormalization.js +1 -0
  418. package/dist/shared/ui/AmountInput/context.js +1 -0
  419. package/dist/shared/ui/AmountInput/index.d.ts +3 -0
  420. package/dist/shared/ui/AmountInput/index.js +1 -0
  421. package/dist/shared/ui/AmountInput/useAutoShrinkFontSize.js +14 -0
  422. package/dist/shared/ui/AmountInput/utils.d.ts +12 -0
  423. package/dist/shared/ui/AmountInput/utils.js +1 -0
  424. package/dist/shared/ui/Badge/Badge.d.ts +89 -0
  425. package/dist/shared/ui/Badge/Badge.js +1 -0
  426. package/dist/shared/ui/Badge/Badge.slots.d.ts +7 -0
  427. package/dist/shared/ui/Badge/Badge.slots.js +1 -0
  428. package/dist/shared/ui/Badge/Badge.styles.js +1 -0
  429. package/dist/shared/ui/Badge/index.d.ts +2 -0
  430. package/dist/shared/ui/Badge/index.js +1 -0
  431. package/dist/shared/ui/Button/Button.d.ts +82 -0
  432. package/dist/shared/ui/Button/Button.js +1 -0
  433. package/dist/shared/ui/Button/Button.slots.d.ts +7 -0
  434. package/dist/shared/ui/Button/Button.slots.js +1 -0
  435. package/dist/shared/ui/Button/Button.styles.js +1 -0
  436. package/dist/shared/ui/Button/index.d.ts +2 -0
  437. package/dist/shared/ui/Button/index.js +1 -0
  438. package/dist/shared/ui/Card/Card.d.ts +93 -0
  439. package/dist/shared/ui/Card/Card.js +1 -0
  440. package/dist/shared/ui/Card/Card.slots.d.ts +10 -0
  441. package/dist/shared/ui/Card/Card.slots.js +1 -0
  442. package/dist/shared/ui/Card/Card.styles.js +1 -0
  443. package/dist/shared/ui/Card/index.d.ts +2 -0
  444. package/dist/shared/ui/Card/index.js +1 -0
  445. package/dist/shared/ui/Collapsible/Collapsible.d.ts +57 -0
  446. package/dist/shared/ui/Collapsible/Collapsible.js +1 -0
  447. package/dist/shared/ui/Collapsible/Collapsible.slots.d.ts +10 -0
  448. package/dist/shared/ui/Collapsible/Collapsible.slots.js +1 -0
  449. package/dist/shared/ui/Collapsible/Collapsible.styles.js +1 -0
  450. package/dist/shared/ui/Collapsible/index.d.ts +2 -0
  451. package/dist/shared/ui/Collapsible/index.js +1 -0
  452. package/dist/shared/ui/Details/Details.d.ts +76 -0
  453. package/dist/shared/ui/Details/Details.js +1 -0
  454. package/dist/shared/ui/Details/Details.slots.d.ts +9 -0
  455. package/dist/shared/ui/Details/Details.slots.js +1 -0
  456. package/dist/shared/ui/Details/Details.styles.js +1 -0
  457. package/dist/shared/ui/Details/index.d.ts +2 -0
  458. package/dist/shared/ui/Details/index.js +1 -0
  459. package/dist/shared/ui/Dialog/Dialog.d.ts +147 -0
  460. package/dist/shared/ui/Dialog/Dialog.js +1 -0
  461. package/dist/shared/ui/Dialog/Dialog.slots.d.ts +17 -0
  462. package/dist/shared/ui/Dialog/Dialog.slots.js +1 -0
  463. package/dist/shared/ui/Dialog/Dialog.styles.js +1 -0
  464. package/dist/shared/ui/Dialog/index.d.ts +2 -0
  465. package/dist/shared/ui/Dialog/index.js +1 -0
  466. package/dist/shared/ui/ExternalLink/ExternalLink.d.ts +41 -0
  467. package/dist/shared/ui/ExternalLink/ExternalLink.js +1 -0
  468. package/dist/shared/ui/ExternalLink/ExternalLink.slots.d.ts +7 -0
  469. package/dist/shared/ui/ExternalLink/ExternalLink.slots.js +1 -0
  470. package/dist/shared/ui/ExternalLink/ExternalLink.styles.js +1 -0
  471. package/dist/shared/ui/ExternalLink/index.d.ts +2 -0
  472. package/dist/shared/ui/ExternalLink/index.js +1 -0
  473. package/dist/shared/ui/ExternalLink/toSafeHref.js +1 -0
  474. package/dist/shared/ui/Field/Field.d.ts +185 -0
  475. package/dist/shared/ui/Field/Field.js +1 -0
  476. package/dist/shared/ui/Field/Field.slots.d.ts +21 -0
  477. package/dist/shared/ui/Field/Field.slots.js +1 -0
  478. package/dist/shared/ui/Field/Field.styles.js +1 -0
  479. package/dist/shared/ui/Field/index.d.ts +2 -0
  480. package/dist/shared/ui/Field/index.js +1 -0
  481. package/dist/shared/ui/IconButton/IconButton.d.ts +48 -0
  482. package/dist/shared/ui/IconButton/IconButton.js +1 -0
  483. package/dist/shared/ui/IconButton/IconButton.slots.d.ts +7 -0
  484. package/dist/shared/ui/IconButton/IconButton.slots.js +1 -0
  485. package/dist/shared/ui/IconButton/IconButton.styles.js +1 -0
  486. package/dist/shared/ui/IconButton/index.d.ts +2 -0
  487. package/dist/shared/ui/IconButton/index.js +1 -0
  488. package/dist/shared/ui/Image/Image.d.ts +43 -0
  489. package/dist/shared/ui/Image/Image.js +1 -0
  490. package/dist/shared/ui/Image/Image.slots.d.ts +14 -0
  491. package/dist/shared/ui/Image/Image.slots.js +1 -0
  492. package/dist/shared/ui/Image/Image.styles.js +1 -0
  493. package/dist/shared/ui/Image/index.d.ts +3 -0
  494. package/dist/shared/ui/Image/index.js +1 -0
  495. package/dist/shared/ui/Image/types.d.ts +131 -0
  496. package/dist/shared/ui/InputGroup/InputGroup.d.ts +129 -0
  497. package/dist/shared/ui/InputGroup/InputGroup.js +1 -0
  498. package/dist/shared/ui/InputGroup/InputGroup.slots.d.ts +16 -0
  499. package/dist/shared/ui/InputGroup/InputGroup.slots.js +1 -0
  500. package/dist/shared/ui/InputGroup/InputGroup.styles.js +1 -0
  501. package/dist/shared/ui/InputGroup/index.d.ts +2 -0
  502. package/dist/shared/ui/InputGroup/index.js +1 -0
  503. package/dist/shared/ui/LtrAtom/LtrAtom.d.ts +31 -0
  504. package/dist/shared/ui/LtrAtom/LtrAtom.js +1 -0
  505. package/dist/shared/ui/LtrAtom/index.d.ts +1 -0
  506. package/dist/shared/ui/LtrAtom/index.js +1 -0
  507. package/dist/shared/ui/ScrollArea/ScrollArea.d.ts +86 -0
  508. package/dist/shared/ui/ScrollArea/ScrollArea.js +1 -0
  509. package/dist/shared/ui/ScrollArea/ScrollArea.slots.d.ts +12 -0
  510. package/dist/shared/ui/ScrollArea/ScrollArea.slots.js +1 -0
  511. package/dist/shared/ui/ScrollArea/ScrollArea.styles.js +1 -0
  512. package/dist/shared/ui/ScrollArea/index.d.ts +2 -0
  513. package/dist/shared/ui/ScrollArea/index.js +1 -0
  514. package/dist/shared/ui/Select/Select.context.d.ts +10 -0
  515. package/dist/shared/ui/Select/Select.context.js +1 -0
  516. package/dist/shared/ui/Select/Select.d.ts +243 -0
  517. package/dist/shared/ui/Select/Select.js +1 -0
  518. package/dist/shared/ui/Select/Select.slots.d.ts +20 -0
  519. package/dist/shared/ui/Select/Select.slots.js +1 -0
  520. package/dist/shared/ui/Select/Select.styles.js +1 -0
  521. package/dist/shared/ui/Select/index.d.ts +3 -0
  522. package/dist/shared/ui/Select/index.js +1 -0
  523. package/dist/shared/ui/SelectableTile/SelectableTile.d.ts +83 -0
  524. package/dist/shared/ui/SelectableTile/SelectableTile.js +1 -0
  525. package/dist/shared/ui/SelectableTile/SelectableTile.slots.d.ts +7 -0
  526. package/dist/shared/ui/SelectableTile/SelectableTile.slots.js +1 -0
  527. package/dist/shared/ui/SelectableTile/SelectableTile.styles.js +1 -0
  528. package/dist/shared/ui/SelectableTile/SelectableTileGroup.d.ts +82 -0
  529. package/dist/shared/ui/SelectableTile/SelectableTileGroup.js +1 -0
  530. package/dist/shared/ui/SelectableTile/index.d.ts +3 -0
  531. package/dist/shared/ui/SelectableTile/index.js +1 -0
  532. package/dist/shared/ui/Skeleton/Skeleton.d.ts +41 -0
  533. package/dist/shared/ui/Skeleton/Skeleton.js +1 -0
  534. package/dist/shared/ui/Skeleton/Skeleton.slots.d.ts +7 -0
  535. package/dist/shared/ui/Skeleton/Skeleton.slots.js +1 -0
  536. package/dist/shared/ui/Skeleton/Skeleton.styles.js +1 -0
  537. package/dist/shared/ui/Skeleton/index.d.ts +2 -0
  538. package/dist/shared/ui/Skeleton/index.js +1 -0
  539. package/dist/shared/ui/Text/Text.d.ts +87 -0
  540. package/dist/shared/ui/Text/Text.js +1 -0
  541. package/dist/shared/ui/Text/Text.slots.d.ts +7 -0
  542. package/dist/shared/ui/Text/Text.slots.js +1 -0
  543. package/dist/shared/ui/Text/Text.styles.js +1 -0
  544. package/dist/shared/ui/Text/index.d.ts +2 -0
  545. package/dist/shared/ui/Text/index.js +1 -0
  546. package/dist/shared/ui/TokenLogo/TokenLogo.d.ts +41 -0
  547. package/dist/shared/ui/TokenLogo/TokenLogo.js +1 -0
  548. package/dist/shared/ui/TokenLogo/index.d.ts +2 -0
  549. package/dist/shared/ui/TokenLogo/index.js +1 -0
  550. package/dist/shared/ui/TokenLogo/types.d.ts +64 -0
  551. package/dist/shared/ui/Tooltip/Tooltip.d.ts +171 -0
  552. package/dist/shared/ui/Tooltip/Tooltip.js +1 -0
  553. package/dist/shared/ui/Tooltip/Tooltip.slots.d.ts +11 -0
  554. package/dist/shared/ui/Tooltip/Tooltip.slots.js +1 -0
  555. package/dist/shared/ui/Tooltip/Tooltip.styles.js +1 -0
  556. package/dist/shared/ui/Tooltip/index.d.ts +2 -0
  557. package/dist/shared/ui/Tooltip/index.js +1 -0
  558. package/dist/shared/ui/WalletRow/WalletRow.d.ts +55 -0
  559. package/dist/shared/ui/WalletRow/WalletRow.js +1 -0
  560. package/dist/shared/ui/WalletRow/WalletRow.slots.d.ts +7 -0
  561. package/dist/shared/ui/WalletRow/WalletRow.slots.js +1 -0
  562. package/dist/shared/ui/WalletRow/WalletRow.styles.js +1 -0
  563. package/dist/shared/ui/WalletRow/index.d.ts +2 -0
  564. package/dist/shared/ui/WalletRow/index.js +1 -0
  565. package/dist/shared/utils/explorers.js +1 -0
  566. package/dist/shared/utils/joinClassNames.js +1 -0
  567. package/dist/shared/utils/logos/api.d.ts +54 -0
  568. package/dist/shared/utils/logos/api.js +1 -0
  569. package/dist/shared/utils/logos/chains.d.ts +32 -0
  570. package/dist/shared/utils/logos/chains.js +1 -0
  571. package/dist/shared/utils/logos/conventionUrls.js +1 -0
  572. package/dist/shared/utils/logos/index.js +1 -0
  573. package/dist/shared/utils/logos/resolveLogoSrc.js +1 -0
  574. package/dist/shared/utils/logos/types.d.ts +62 -0
  575. package/dist/shared/utils/mergeClassName.js +1 -0
  576. package/dist/shared/utils/mergeStyle.js +1 -0
  577. package/dist/shared/wallet/resolveSupportedChainIds.js +1 -0
  578. package/dist/shared/wallet/resolveSupportedChains.js +1 -0
  579. package/dist/shared/wallet/types.d.ts +103 -0
  580. package/dist/shared/wallet/useWalletState.d.ts +21 -0
  581. package/dist/shared/wallet/useWalletState.js +1 -0
  582. package/dist/shared/widgets/amount-entry/compound/AmountEntry.d.ts +59 -0
  583. package/dist/shared/widgets/amount-entry/compound/AmountEntry.js +1 -0
  584. package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.d.ts +15 -0
  585. package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.js +1 -0
  586. package/dist/shared/widgets/amount-entry/compound/AmountEntry.styles.js +1 -0
  587. package/dist/shared/widgets/amount-entry/compound/components/Flow.d.ts +14 -0
  588. package/dist/shared/widgets/amount-entry/compound/components/Flow.js +1 -0
  589. package/dist/shared/widgets/amount-entry/compound/components/Footer.d.ts +22 -0
  590. package/dist/shared/widgets/amount-entry/compound/components/Footer.js +1 -0
  591. package/dist/shared/widgets/amount-entry/compound/components/Header.d.ts +15 -0
  592. package/dist/shared/widgets/amount-entry/compound/components/Header.js +1 -0
  593. package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.d.ts +22 -0
  594. package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -0
  595. package/dist/shared/widgets/amount-entry/compound/components/Hero/StaticBand.js +1 -0
  596. package/dist/shared/widgets/amount-entry/compound/components/Hero/SwapBackdrop.js +1 -0
  597. package/dist/shared/widgets/amount-entry/compound/components/Hero/index.d.ts +1 -0
  598. package/dist/shared/widgets/amount-entry/compound/components/Hero/index.js +1 -0
  599. package/dist/shared/widgets/amount-entry/compound/components/Hero/transitions.js +1 -0
  600. package/dist/shared/widgets/amount-entry/compound/components/Hero/useSwapState.js +1 -0
  601. package/dist/shared/widgets/amount-entry/compound/components/Hero/utils.js +1 -0
  602. package/dist/shared/widgets/amount-entry/compound/components/Pills.d.ts +22 -0
  603. package/dist/shared/widgets/amount-entry/compound/components/Pills.js +1 -0
  604. package/dist/shared/widgets/amount-entry/compound/context.js +1 -0
  605. package/dist/shared/widgets/amount-entry/compound/index.d.ts +3 -0
  606. package/dist/shared/widgets/amount-entry/compound/index.js +1 -0
  607. package/dist/shared/widgets/amount-entry/compound/types.d.ts +224 -0
  608. package/dist/shared/widgets/asset-descriptor.d.ts +27 -0
  609. package/dist/shared/widgets/asset-descriptor.js +1 -0
  610. package/dist/shared/widgets/asset-picker/compound/AssetPicker.d.ts +51 -0
  611. package/dist/shared/widgets/asset-picker/compound/AssetPicker.js +1 -0
  612. package/dist/shared/widgets/asset-picker/compound/AssetPicker.slots.d.ts +11 -0
  613. package/dist/shared/widgets/asset-picker/compound/AssetPicker.slots.js +1 -0
  614. package/dist/shared/widgets/asset-picker/compound/AssetPicker.styles.js +1 -0
  615. package/dist/shared/widgets/asset-picker/compound/components/Asset.d.ts +30 -0
  616. package/dist/shared/widgets/asset-picker/compound/components/Asset.js +1 -0
  617. package/dist/shared/widgets/asset-picker/compound/components/Footer.d.ts +16 -0
  618. package/dist/shared/widgets/asset-picker/compound/components/Footer.js +1 -0
  619. package/dist/shared/widgets/asset-picker/compound/components/Header.d.ts +19 -0
  620. package/dist/shared/widgets/asset-picker/compound/components/Header.js +1 -0
  621. package/dist/shared/widgets/asset-picker/compound/components/List.d.ts +22 -0
  622. package/dist/shared/widgets/asset-picker/compound/components/List.js +1 -0
  623. package/dist/shared/widgets/asset-picker/compound/context.js +1 -0
  624. package/dist/shared/widgets/asset-picker/compound/index.d.ts +3 -0
  625. package/dist/shared/widgets/asset-picker/compound/index.js +1 -0
  626. package/dist/shared/widgets/asset-picker/compound/types.d.ts +212 -0
  627. package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.d.ts +64 -0
  628. package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.js +1 -0
  629. package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.slots.d.ts +16 -0
  630. package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.slots.js +1 -0
  631. package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.js +1 -0
  632. package/dist/shared/widgets/confirm-transfer/compound/components/Amounts.d.ts +15 -0
  633. package/dist/shared/widgets/confirm-transfer/compound/components/Amounts.js +1 -0
  634. package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.d.ts +17 -0
  635. package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.js +1 -0
  636. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts +15 -0
  637. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.js +1 -0
  638. package/dist/shared/widgets/confirm-transfer/compound/components/Footer.d.ts +26 -0
  639. package/dist/shared/widgets/confirm-transfer/compound/components/Footer.js +1 -0
  640. package/dist/shared/widgets/confirm-transfer/compound/components/Header.d.ts +13 -0
  641. package/dist/shared/widgets/confirm-transfer/compound/components/Header.js +1 -0
  642. package/dist/shared/widgets/confirm-transfer/compound/components/Hero.d.ts +16 -0
  643. package/dist/shared/widgets/confirm-transfer/compound/components/Hero.js +1 -0
  644. package/dist/shared/widgets/confirm-transfer/compound/components/Meta.d.ts +16 -0
  645. package/dist/shared/widgets/confirm-transfer/compound/components/Meta.js +1 -0
  646. package/dist/shared/widgets/confirm-transfer/compound/components/QuoteTimer.js +1 -0
  647. package/dist/shared/widgets/confirm-transfer/compound/components/splitAmount.js +1 -0
  648. package/dist/shared/widgets/confirm-transfer/compound/context.js +1 -0
  649. package/dist/shared/widgets/confirm-transfer/compound/index.d.ts +3 -0
  650. package/dist/shared/widgets/confirm-transfer/compound/index.js +1 -0
  651. package/dist/shared/widgets/confirm-transfer/compound/types.d.ts +338 -0
  652. package/dist/shared/widgets/error-state/compound/ErrorState.d.ts +96 -0
  653. package/dist/shared/widgets/error-state/compound/ErrorState.js +1 -0
  654. package/dist/shared/widgets/error-state/compound/ErrorState.slots.d.ts +18 -0
  655. package/dist/shared/widgets/error-state/compound/ErrorState.slots.js +1 -0
  656. package/dist/shared/widgets/error-state/compound/ErrorState.styles.js +1 -0
  657. package/dist/shared/widgets/error-state/compound/components/Actions.d.ts +17 -0
  658. package/dist/shared/widgets/error-state/compound/components/Actions.js +1 -0
  659. package/dist/shared/widgets/error-state/compound/components/AssetValue.d.ts +20 -0
  660. package/dist/shared/widgets/error-state/compound/components/AssetValue.js +1 -0
  661. package/dist/shared/widgets/error-state/compound/components/Detail.d.ts +14 -0
  662. package/dist/shared/widgets/error-state/compound/components/Detail.js +1 -0
  663. package/dist/shared/widgets/error-state/compound/components/Details.d.ts +12 -0
  664. package/dist/shared/widgets/error-state/compound/components/Details.js +1 -0
  665. package/dist/shared/widgets/error-state/compound/components/DisclosureChevron.d.ts +11 -0
  666. package/dist/shared/widgets/error-state/compound/components/DisclosureChevron.js +1 -0
  667. package/dist/shared/widgets/error-state/compound/components/Header.d.ts +13 -0
  668. package/dist/shared/widgets/error-state/compound/components/Header.js +1 -0
  669. package/dist/shared/widgets/error-state/compound/components/HelpInfo.d.ts +10 -0
  670. package/dist/shared/widgets/error-state/compound/components/HelpInfo.js +1 -0
  671. package/dist/shared/widgets/error-state/compound/components/Hero.d.ts +9 -0
  672. package/dist/shared/widgets/error-state/compound/components/Hero.js +1 -0
  673. package/dist/shared/widgets/error-state/compound/components/MoreDetails.d.ts +18 -0
  674. package/dist/shared/widgets/error-state/compound/components/MoreDetails.js +1 -0
  675. package/dist/shared/widgets/error-state/compound/components/Rows.d.ts +57 -0
  676. package/dist/shared/widgets/error-state/compound/components/Rows.js +1 -0
  677. package/dist/shared/widgets/error-state/compound/components/StatusValue.d.ts +14 -0
  678. package/dist/shared/widgets/error-state/compound/components/StatusValue.js +1 -0
  679. package/dist/shared/widgets/error-state/compound/context.js +1 -0
  680. package/dist/shared/widgets/error-state/compound/index.d.ts +3 -0
  681. package/dist/shared/widgets/error-state/compound/index.js +1 -0
  682. package/dist/shared/widgets/error-state/compound/types.d.ts +291 -0
  683. package/dist/shared/widgets/processing-state/compound/ProcessingState.d.ts +77 -0
  684. package/dist/shared/widgets/processing-state/compound/ProcessingState.js +1 -0
  685. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.d.ts +15 -0
  686. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.js +1 -0
  687. package/dist/shared/widgets/processing-state/compound/ProcessingState.styles.js +1 -0
  688. package/dist/shared/widgets/processing-state/compound/components/Actions.d.ts +17 -0
  689. package/dist/shared/widgets/processing-state/compound/components/Actions.js +1 -0
  690. package/dist/shared/widgets/processing-state/compound/components/Detail.d.ts +14 -0
  691. package/dist/shared/widgets/processing-state/compound/components/Detail.js +1 -0
  692. package/dist/shared/widgets/processing-state/compound/components/Details.d.ts +12 -0
  693. package/dist/shared/widgets/processing-state/compound/components/Details.js +1 -0
  694. package/dist/shared/widgets/processing-state/compound/components/Header.d.ts +15 -0
  695. package/dist/shared/widgets/processing-state/compound/components/Header.js +1 -0
  696. package/dist/shared/widgets/processing-state/compound/components/Hero.d.ts +16 -0
  697. package/dist/shared/widgets/processing-state/compound/components/Hero.js +1 -0
  698. package/dist/shared/widgets/processing-state/compound/components/Rows.d.ts +36 -0
  699. package/dist/shared/widgets/processing-state/compound/components/Rows.js +1 -0
  700. package/dist/shared/widgets/processing-state/compound/components/StatusPill.d.ts +13 -0
  701. package/dist/shared/widgets/processing-state/compound/components/StatusPill.js +1 -0
  702. package/dist/shared/widgets/processing-state/compound/context.js +1 -0
  703. package/dist/shared/widgets/processing-state/compound/index.d.ts +3 -0
  704. package/dist/shared/widgets/processing-state/compound/index.js +1 -0
  705. package/dist/shared/widgets/processing-state/compound/types.d.ts +216 -0
  706. package/dist/shared/widgets/success-state/compound/SuccessState.d.ts +105 -0
  707. package/dist/shared/widgets/success-state/compound/SuccessState.js +1 -0
  708. package/dist/shared/widgets/success-state/compound/SuccessState.slots.d.ts +21 -0
  709. package/dist/shared/widgets/success-state/compound/SuccessState.slots.js +1 -0
  710. package/dist/shared/widgets/success-state/compound/SuccessState.styles.js +1 -0
  711. package/dist/shared/widgets/success-state/compound/components/Actions.d.ts +18 -0
  712. package/dist/shared/widgets/success-state/compound/components/Actions.js +1 -0
  713. package/dist/shared/widgets/success-state/compound/components/AssetValue.d.ts +18 -0
  714. package/dist/shared/widgets/success-state/compound/components/AssetValue.js +1 -0
  715. package/dist/shared/widgets/success-state/compound/components/Detail.d.ts +18 -0
  716. package/dist/shared/widgets/success-state/compound/components/Detail.js +1 -0
  717. package/dist/shared/widgets/success-state/compound/components/Details.d.ts +16 -0
  718. package/dist/shared/widgets/success-state/compound/components/Details.js +1 -0
  719. package/dist/shared/widgets/success-state/compound/components/Header.d.ts +13 -0
  720. package/dist/shared/widgets/success-state/compound/components/Header.js +1 -0
  721. package/dist/shared/widgets/success-state/compound/components/Headline.d.ts +16 -0
  722. package/dist/shared/widgets/success-state/compound/components/Headline.js +1 -0
  723. package/dist/shared/widgets/success-state/compound/components/Hero.d.ts +10 -0
  724. package/dist/shared/widgets/success-state/compound/components/Hero.js +1 -0
  725. package/dist/shared/widgets/success-state/compound/components/MoreDetails.d.ts +19 -0
  726. package/dist/shared/widgets/success-state/compound/components/MoreDetails.js +1 -0
  727. package/dist/shared/widgets/success-state/compound/components/RouteValue.d.ts +15 -0
  728. package/dist/shared/widgets/success-state/compound/components/RouteValue.js +1 -0
  729. package/dist/shared/widgets/success-state/compound/components/Rows.d.ts +69 -0
  730. package/dist/shared/widgets/success-state/compound/components/Rows.js +1 -0
  731. package/dist/shared/widgets/success-state/compound/components/StatusPill.d.ts +13 -0
  732. package/dist/shared/widgets/success-state/compound/components/StatusPill.js +1 -0
  733. package/dist/shared/widgets/success-state/compound/context.js +1 -0
  734. package/dist/shared/widgets/success-state/compound/index.d.ts +3 -0
  735. package/dist/shared/widgets/success-state/compound/index.js +1 -0
  736. package/dist/shared/widgets/success-state/compound/types.d.ts +307 -0
  737. package/dist/storage/adapters.d.ts +29 -0
  738. package/dist/storage/adapters.js +1 -0
  739. package/dist/storage/context.d.ts +62 -0
  740. package/dist/storage/context.js +1 -0
  741. package/dist/storage/createKitStorage.d.ts +45 -0
  742. package/dist/storage/createKitStorage.js +1 -0
  743. package/dist/storage/index.d.ts +4 -0
  744. package/dist/storage/index.js +1 -0
  745. package/dist/storage/types.d.ts +26 -0
  746. package/dist/stridge/StridgeContext.d.ts +29 -0
  747. package/dist/stridge/StridgeContext.js +1 -0
  748. package/dist/stridge/StridgeProvider.d.ts +158 -0
  749. package/dist/stridge/StridgeProvider.js +1 -0
  750. package/dist/stridge/stubs.js +1 -0
  751. package/dist/styles/index.css +3494 -0
  752. package/dist/types.d.ts +15 -0
  753. package/dist/types.js +1 -0
  754. package/dist/ui/index.d.ts +48 -0
  755. package/dist/ui/index.js +1 -0
  756. package/dist/utils/src/use-copy-to-clipboard.js +1 -0
  757. package/dist/wallet/index.d.ts +3 -0
  758. package/dist/wallet/index.js +1 -0
  759. package/dist/withdraw/compound/index.d.ts +22 -0
  760. package/dist/withdraw/compound/index.js +1 -0
  761. package/dist/withdraw/dialog/index.d.ts +2 -0
  762. package/dist/withdraw/dialog/index.js +1 -0
  763. package/package.json +156 -0
@@ -0,0 +1,32 @@
1
+ //#region src/shared/utils/logos/chains.d.ts
2
+ /**
3
+ * Static chain registry used by the logo resolver. Maps EIP-155 chain ids to the metadata required
4
+ * to build convention CDN URLs (`trustwallet/assets` repo) and to render a friendly chain label
5
+ * underneath the gradient+letter fallback when the CDN entry 404s.
6
+ *
7
+ * Keep this list aligned with the chains the gateway provisions today. Adding a new chain is a
8
+ * purely additive change — the resolver returns `undefined` for unknown ids and falls through to
9
+ * the backend-supplied URL automatically.
10
+ */
11
+ /**
12
+ * Visual identity record bundled per chain.
13
+ */
14
+ interface ChainLogoMeta {
15
+ /**
16
+ * EIP-155 chain id (e.g. `1`, `42161`).
17
+ */
18
+ chainId: number;
19
+ /**
20
+ * Human-readable label rendered as the chain badge's `alt` text and as the seed for the
21
+ * deterministic gradient+letter fallback when no CDN entry exists.
22
+ */
23
+ name: string;
24
+ /**
25
+ * Slug used inside the `trustwallet/assets/blockchains/{slug}` path. Some chains use legacy
26
+ * naming (BNB Chain → `smartchain`, Avalanche → `avalanchec`) that doesn't match the chain id
27
+ * directly.
28
+ */
29
+ assetRepoSlug: string;
30
+ }
31
+ //#endregion
32
+ export { ChainLogoMeta };
@@ -0,0 +1 @@
1
+ const e=new Map([[1,{chainId:1,name:`Ethereum`,assetRepoSlug:`ethereum`}],[10,{chainId:10,name:`Optimism`,assetRepoSlug:`optimism`}],[56,{chainId:56,name:`BNB Chain`,assetRepoSlug:`smartchain`}],[100,{chainId:100,name:`Gnosis`,assetRepoSlug:`xdai`}],[137,{chainId:137,name:`Polygon`,assetRepoSlug:`polygon`}],[250,{chainId:250,name:`Fantom`,assetRepoSlug:`fantom`}],[324,{chainId:324,name:`zkSync Era`,assetRepoSlug:`zksync`}],[5e3,{chainId:5e3,name:`Mantle`,assetRepoSlug:`mantle`}],[8453,{chainId:8453,name:`Base`,assetRepoSlug:`base`}],[42161,{chainId:42161,name:`Arbitrum One`,assetRepoSlug:`arbitrum`}],[43114,{chainId:43114,name:`Avalanche`,assetRepoSlug:`avalanchec`}],[59144,{chainId:59144,name:`Linea`,assetRepoSlug:`linea`}],[81457,{chainId:81457,name:`Blast`,assetRepoSlug:`blast`}],[534352,{chainId:534352,name:`Scroll`,assetRepoSlug:`scroll`}]]);function t(t){if(!(t===void 0||!Number.isFinite(t)))return e.get(t)}function n(){return Array.from(e.values())}export{t as getChainLogoMeta,n as listChainLogoMeta};
@@ -0,0 +1 @@
1
+ import{getChainLogoMeta as e}from"./chains.js";import{getAddress as t,isAddress as n}from"viem";const r=`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains`;function i(i,a){let o=e(i);if(!o||!a||!n(a))return;let s=t(a);return`${r}/${o.assetRepoSlug}/assets/${s}/logo.png`}function a(t){let n=e(t);if(n)return`${r}/${n.assetRepoSlug}/info/logo.png`}const o={USDC:{chainId:1,address:`0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48`},USDT:{chainId:1,address:`0xdAC17F958D2ee523a2206206994597C13D831ec7`},DAI:{chainId:1,address:`0x6B175474E89094C44Da98b954EedeAC495271d0F`},WBTC:{chainId:1,address:`0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599`},WETH:{chainId:1,address:`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`},TUSD:{chainId:1,address:`0x0000000000085d4780B73119b644AE5ecd22b376`},BUSD:{chainId:1,address:`0x4Fabb145d64652a948d72533023f6E7A623C7C53`},FRAX:{chainId:1,address:`0x853d955aCEf822Db058eb8505911ED77F175b99e`},LINK:{chainId:1,address:`0x514910771AF9Ca656af840dff83E8264EcF986CA`},PYUSD:{chainId:1,address:`0x6c3ea9036406852006290770BEdFcAbA0e23A0e8`}};function s(e){if(!e)return;let t=o[u(e)];if(t)return i(t.chainId,t.address)}const c={ETH:1,BNB:56,MATIC:137,POL:137,AVAX:43114,FTM:250,XDAI:100};function l(e){if(!e)return;let t=c[u(e)];if(t!==void 0)return a(t)}function u(e){return e.replace(/\s*\(.*?\)\s*$/,``).trim().toUpperCase()}export{s as buildCanonicalLogoUrl,l as buildCanonicalNativeLogoUrl,a as buildChainLogoUrl,i as buildErc20LogoUrl};
@@ -0,0 +1 @@
1
+ import"./chains.js";import"./conventionUrls.js";import"./resolveLogoSrc.js";import"./api.js";
@@ -0,0 +1 @@
1
+ import{buildCanonicalLogoUrl as e,buildCanonicalNativeLogoUrl as t,buildChainLogoUrl as n,buildErc20LogoUrl as r}from"./conventionUrls.js";function i(i){if(i.pinnedLogoUrl)return[i.pinnedLogoUrl];let a=[];if(i.isNative){let e=t(i.symbol);e&&a.push(e)}else{let t=e(i.symbol);t&&a.push(t)}let s=i.isNative?n(i.chainId):r(i.chainId,i.address);return s&&a.push(s),i.logoUrl&&a.push(i.logoUrl),o(a)}function a(e){let t=[],r=n(e.chainId);return r&&t.push(r),e.chainLogoUrl&&t.push(e.chainLogoUrl),o(t)}function o(e){let t=new Set,n=[];for(let r of e)t.has(r)||(t.add(r),n.push(r));return n}export{a as resolveChainLogoChain,i as resolveTokenLogoChain};
@@ -0,0 +1,62 @@
1
+ //#region src/shared/utils/logos/types.d.ts
2
+ /**
3
+ * Input to {@link logos.token | `logos.token()`}. Every field is optional — pass what is
4
+ * available and the resolver falls back gracefully when fields are missing.
5
+ *
6
+ * Two URL fields with distinct semantics:
7
+ *
8
+ * - `pinnedLogoUrl` — when set, `logos.token` returns it as the only candidate. Bypasses the
9
+ * Trustwallet CDN and the gradient+letter fallback. Use when a definitive logo URL is
10
+ * available and no CDN probing is desired.
11
+ * - `logoUrl` — appended after the CDN candidates. Used when the convention URLs 404. Typical
12
+ * source: a backend's per-token `logo` field (e.g. Stridge's `Uda.supportedAssets()` payload).
13
+ */
14
+ interface TokenLogoInput {
15
+ /**
16
+ * EIP-155 chain id (e.g. `1`, `42161`). Drives the convention CDN URL and (in `<TokenLogo>`)
17
+ * the chain-badge overlay rendered on the bottom-right of the disc.
18
+ */
19
+ chainId?: number;
20
+ /**
21
+ * ERC-20 contract address on `chainId`. Omit for chain-native tokens (set `isNative`). Either
22
+ * checksum or lowercase is fine.
23
+ */
24
+ address?: string;
25
+ /**
26
+ * `true` for chain-native tokens (ETH on Ethereum, MATIC on Polygon, BNB on BSC, …). Drives
27
+ * the resolver toward `…/blockchains/{slug}/info/logo.png` instead of the per-token path.
28
+ */
29
+ isNative?: boolean;
30
+ /**
31
+ * Token symbol (e.g. `"USDC"`). When present, the resolver consults a curated canonical
32
+ * mapping (USDC, USDT, DAI, WBTC, WETH, …) for blue-chip tokens whose Trustwallet entry is
33
+ * missing on some chains but identical to the Ethereum-mainnet artwork.
34
+ */
35
+ symbol?: string;
36
+ /**
37
+ * Logo URL appended after the CDN candidates. Used as the final URL fallback before the
38
+ * gradient+letter visual.
39
+ */
40
+ logoUrl?: string;
41
+ /**
42
+ * Pinned logo URL. When set, `logos.token` returns `[pinnedLogoUrl]` and skips every other
43
+ * source. Use when a definitive URL is available and CDN probing is not desired.
44
+ */
45
+ pinnedLogoUrl?: string;
46
+ }
47
+ /**
48
+ * Input to {@link logos.chain | `logos.chain()`}.
49
+ */
50
+ interface ChainLogoInput {
51
+ /**
52
+ * EIP-155 chain id used to look up the bundled chain entry.
53
+ */
54
+ chainId?: number;
55
+ /**
56
+ * Logo URL appended after the CDN candidate. Used as the final URL fallback when the chain
57
+ * isn't in the bundled registry or its CDN entry 404s.
58
+ */
59
+ chainLogoUrl?: string;
60
+ }
61
+ //#endregion
62
+ export { ChainLogoInput, TokenLogoInput };
@@ -0,0 +1 @@
1
+ function e(e,t){return n=>[e,typeof t==`function`?t(n):t].filter(Boolean).join(` `)}export{e as mergeClassName};
@@ -0,0 +1 @@
1
+ function e(e,t){return n=>{let r=typeof t==`function`?t(n):t;return{...e,...r}}}export{e as mergeStyle};
@@ -0,0 +1 @@
1
+ function e(e){return e.map(e=>e.id)}export{e as resolveSupportedChainIds};
@@ -0,0 +1 @@
1
+ import{mainnet as e}from"wagmi/chains";const t=[e];function n(e){return e&&e.length>0?e:t}export{n as resolveSupportedChains};
@@ -0,0 +1,103 @@
1
+ import { Address, Chain } from "viem";
2
+
3
+ //#region src/shared/wallet/types.d.ts
4
+ /**
5
+ * Options accepted by `useWalletState`.
6
+ */
7
+ interface UseWalletStateOptions {
8
+ /**
9
+ * Chains supported by the kit.
10
+ *
11
+ * When omitted or empty, Ethereum mainnet is used by default.
12
+ */
13
+ chains?: readonly Chain[];
14
+ }
15
+ /**
16
+ * Shared metadata included in all wallet states.
17
+ */
18
+ interface WalletStateBase {
19
+ /**
20
+ * The chains accepted as valid networks.
21
+ */
22
+ supportedChains: readonly Chain[];
23
+ /**
24
+ * The EIP-155 numeric IDs of the accepted chains.
25
+ */
26
+ supportedChainIds: readonly number[];
27
+ }
28
+ /**
29
+ * Represents a wallet state in which the connection is being established or restored.
30
+ */
31
+ interface WalletConnectingState extends WalletStateBase {
32
+ /**
33
+ * Discriminant identifying this state as `connecting`.
34
+ */
35
+ kind: "connecting";
36
+ }
37
+ /**
38
+ * Represents a wallet state in which no active connection is available.
39
+ */
40
+ interface WalletDisconnectedState extends WalletStateBase {
41
+ /**
42
+ * Discriminant identifying this state as `disconnected`.
43
+ */
44
+ kind: "disconnected";
45
+ }
46
+ /**
47
+ * Represents a wallet state in which a wallet is connected but the active network is not
48
+ * in the supported chain list.
49
+ */
50
+ interface WalletWrongChainState extends WalletStateBase {
51
+ /**
52
+ * Discriminant identifying this state as `wrong_chain`.
53
+ */
54
+ kind: "wrong_chain";
55
+ /**
56
+ * The primary connected address.
57
+ */
58
+ address: Address;
59
+ /**
60
+ * All addresses exposed by the connected wallet.
61
+ */
62
+ addresses: readonly Address[];
63
+ /**
64
+ * The active chain object, or `undefined` when wagmi cannot resolve it.
65
+ */
66
+ chain: Chain | undefined;
67
+ /**
68
+ * The active EIP-155 chain ID, or `undefined` when wagmi cannot resolve it.
69
+ */
70
+ chainId: number | undefined;
71
+ }
72
+ /**
73
+ * Represents a wallet state in which a wallet is connected and the active network is in the
74
+ * supported chain list.
75
+ */
76
+ interface WalletReadyState extends WalletStateBase {
77
+ /**
78
+ * Discriminant identifying this state as `ready`.
79
+ */
80
+ kind: "ready";
81
+ /**
82
+ * The primary connected address.
83
+ */
84
+ address: Address;
85
+ /**
86
+ * All addresses exposed by the connected wallet; guaranteed non-empty.
87
+ */
88
+ addresses: readonly [Address, ...Address[]];
89
+ /**
90
+ * The active chain object.
91
+ */
92
+ chain: Chain;
93
+ /**
94
+ * The active EIP-155 chain ID.
95
+ */
96
+ chainId: number;
97
+ }
98
+ /**
99
+ * State returned by {@link useWalletState}.
100
+ */
101
+ type WalletState = WalletConnectingState | WalletDisconnectedState | WalletWrongChainState | WalletReadyState;
102
+ //#endregion
103
+ export { UseWalletStateOptions, WalletConnectingState, WalletDisconnectedState, WalletReadyState, WalletState, WalletStateBase, WalletWrongChainState };
@@ -0,0 +1,21 @@
1
+ import { UseWalletStateOptions, WalletState } from "./types.js";
2
+
3
+ //#region src/shared/wallet/useWalletState.d.ts
4
+ /**
5
+ * Reads the current wagmi connection and classifies it as one of `connecting` / `disconnected` /
6
+ * `wrong_chain` / `ready`.
7
+ *
8
+ * Does not initiate connections; the caller remains responsible for connecting the wallet.
9
+ *
10
+ * @example
11
+ *
12
+ * ```tsx
13
+ * const wallet = useWalletState({ chains: [mainnet, base] });
14
+ * if (wallet.kind === "ready") {
15
+ * console.log(wallet.address, wallet.chainId);
16
+ * }
17
+ * ```
18
+ */
19
+ declare function useWalletState(options?: UseWalletStateOptions): WalletState;
20
+ //#endregion
21
+ export { useWalletState };
@@ -0,0 +1 @@
1
+ "use client";import{resolveSupportedChainIds as e}from"./resolveSupportedChainIds.js";import{resolveSupportedChains as t}from"./resolveSupportedChains.js";import{useMemo as n}from"react";import{useConnection as r}from"wagmi";function i(i={}){let a=r(),o=n(()=>t(i.chains),[i.chains]),s=n(()=>e(o),[o]),c=n(()=>({supportedChains:o,supportedChainIds:s}),[o,s]);if(a.status===`connecting`||a.status===`reconnecting`)return{kind:`connecting`,...c};if(a.status===`disconnected`)return{kind:`disconnected`,...c};let{address:l,addresses:u,chain:d,chainId:f}=a;return!s.includes(f)||!d?{kind:`wrong_chain`,address:l,addresses:u,chain:d,chainId:f,...c}:{kind:`ready`,address:l,addresses:u,chain:d,chainId:f,...c}}export{i as useWalletState};
@@ -0,0 +1,59 @@
1
+ import { AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPillsProps, AmountEntryProps } from "./types.js";
2
+ import { AmountEntryFlow } from "./components/Flow.js";
3
+ import { AmountEntryFooter } from "./components/Footer.js";
4
+ import { AmountEntryHeader } from "./components/Header.js";
5
+ import { AmountEntryHero } from "./components/Hero/Hero.js";
6
+ import { AmountEntryPills } from "./components/Pills.js";
7
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
8
+
9
+ //#region src/shared/widgets/amount-entry/compound/AmountEntry.d.ts
10
+ /**
11
+ * Root of the AmountEntry compound. Renders the modal-frame card surface
12
+ * and provides shared state (amount + send/receive tokens + slot wiring)
13
+ * to every compound part rendered inside it.
14
+ *
15
+ * AmountEntry is the screen the user reaches after picking an asset on
16
+ * the Asset picker — they enter an amount here and confirm to continue.
17
+ *
18
+ * Parts:
19
+ * - {@link AmountEntry.Header}
20
+ * - {@link AmountEntry.Body}
21
+ * - {@link AmountEntry.Hero}
22
+ * - {@link AmountEntry.Pills}
23
+ * - {@link AmountEntry.Flow}
24
+ * - {@link AmountEntry.Footer}
25
+ *
26
+ * Dialog form: {@link AmountEntry.Dialog} pre-composes the widget into
27
+ * a `Dialog.Root + Dialog.Trigger + Dialog.Content` shell — the
28
+ * production-recommended entry point. Use the bare `AmountEntry` form
29
+ * when you want the widget mounted inline.
30
+ */
31
+ declare function AmountEntry(props: AmountEntryProps): _$react_jsx_runtime0.JSX.Element;
32
+ declare function AmountEntryBody(props: AmountEntryBodyProps): _$react_jsx_runtime0.JSX.Element;
33
+ declare function AmountEntryDialog({
34
+ open,
35
+ defaultOpen,
36
+ onOpenChange,
37
+ trigger,
38
+ children,
39
+ ...rootProps
40
+ }: AmountEntryDialogProps): _$react_jsx_runtime0.JSX.Element;
41
+ declare namespace AmountEntry {
42
+ type Props = AmountEntryProps;
43
+ type HeaderProps = AmountEntryHeaderProps;
44
+ type BodyProps = AmountEntryBodyProps;
45
+ type HeroProps = AmountEntryHeroProps;
46
+ type PillsProps = AmountEntryPillsProps;
47
+ type FlowProps = AmountEntryFlowProps;
48
+ type FooterProps = AmountEntryFooterProps;
49
+ type DialogProps = AmountEntryDialogProps;
50
+ const Header: typeof AmountEntryHeader;
51
+ const Body: typeof AmountEntryBody;
52
+ const Hero: typeof AmountEntryHero;
53
+ const Pills: typeof AmountEntryPills;
54
+ const Flow: typeof AmountEntryFlow;
55
+ const Footer: typeof AmountEntryFooter;
56
+ const Dialog: typeof AmountEntryDialog;
57
+ }
58
+ //#endregion
59
+ export { AmountEntry };
@@ -0,0 +1 @@
1
+ "use client";import{DialogShell as e}from"../../../dialog/DialogShell.js";import{Card as t}from"../../../ui/Card/Card.js";import{Tooltip as n}from"../../../ui/Tooltip/Tooltip.js";import"../../../ui/Tooltip/index.js";import"../../../../ui/index.js";import{Frame as r}from"../../../dialog/Frame.js";import{AMOUNT_ENTRY_SLOTS as i}from"./AmountEntry.slots.js";import{styles as a}from"./AmountEntry.styles.js";import{AmountEntryContext as o}from"./context.js";import{AmountEntryFlow as s}from"./components/Flow.js";import{AmountEntryFooter as c}from"./components/Footer.js";import{AmountEntryHeader as l}from"./components/Header.js";import{AmountEntryHero as u}from"./components/Hero/Hero.js";import"./components/Hero/index.js";import{AmountEntryPills as d}from"./components/Pills.js";import{useMemo as f}from"react";import{jsx as p}from"react/jsx-runtime";import*as m from"@stylexjs/stylex";const h={useGrouping:!0,maximumFractionDigits:8},g=[];function _(e){let{amount:t,sendToken:s,receiveToken:c,locale:l,format:u,min:d=0,max:_,onAmountChange:v,headerTitle:y,onBack:b,currencySymbol:x,subLine:S,subLineAmount:C,presets:w=g,activePreset:T,onPresetSelect:E,bridge:D,footerLabel:O,onContinue:k,children:A}=e,j=f(()=>({amount:t,sendToken:s,receiveToken:c,locale:l,format:u??h,min:d,max:_,onAmountChange:v,headerTitle:y,onBack:b,currencySymbol:x,subLine:S,subLineAmount:C,presets:w,activePreset:T,onPresetSelect:E,bridge:D,footerLabel:O,onContinue:k}),[t,s,c,l,u,d,_,v,y,b,x,S,C,w,T,E,D,O,k]);return p(o.Provider,{value:j,children:p(n.Provider,{children:p(r,{"data-stridge-slot":i.root,...m.props(a.root),children:A})})})}function v(e){return p(t.Body,{"data-stridge-slot":i.body,...e})}function y({open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:a,...o}){return p(e,{open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:p(_,{...o,children:a})})}(function(e){e.Header=l,e.Body=v,e.Hero=u,e.Pills=d,e.Flow=s,e.Footer=c,e.Dialog=y})(_||={});export{_ as AmountEntry};
@@ -0,0 +1,15 @@
1
+ //#region src/shared/widgets/amount-entry/compound/AmountEntry.slots.d.ts
2
+ declare const AMOUNT_ENTRY_SLOTS: {
3
+ readonly root: "amount-entry";
4
+ readonly header: "amount-entry-header";
5
+ readonly body: "amount-entry-body";
6
+ readonly footer: "amount-entry-footer";
7
+ readonly flow: "amount-entry-flow";
8
+ readonly pills: "amount-entry-pills";
9
+ readonly hero: "amount-entry-hero";
10
+ readonly heroBand: "amount-entry-hero-band";
11
+ readonly heroSwap: "amount-entry-hero-swap";
12
+ };
13
+ type AmountEntrySlot = (typeof AMOUNT_ENTRY_SLOTS)[keyof typeof AMOUNT_ENTRY_SLOTS];
14
+ //#endregion
15
+ export { AMOUNT_ENTRY_SLOTS, AmountEntrySlot };
@@ -0,0 +1 @@
1
+ const e={root:`amount-entry`,header:`amount-entry-header`,body:`amount-entry-body`,footer:`amount-entry-footer`,flow:`amount-entry-flow`,pills:`amount-entry-pills`,hero:`amount-entry-hero`,heroBand:`amount-entry-hero-band`,heroSwap:`amount-entry-hero-swap`};export{e as AMOUNT_ENTRY_SLOTS};
@@ -0,0 +1 @@
1
+ const e={root:{"AmountEntry__styles.root":`AmountEntry__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:18`},header:{"AmountEntry__styles.header":`AmountEntry__styles.header`,"gap-kOIVth":`x1v2ro7d`,"paddingTop-kLKAdn":`xyamay9`,"paddingInlineEnd-kwRFfy":`x1x5flf6`,"paddingBottom-kGO01o":`x1l90r2v`,"paddingInlineStart-kZCmMZ":`xf7dkkf`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:25`},headerTitle:{"AmountEntry__styles.headerTitle":`AmountEntry__styles.headerTitle`,"margin-kogj98":`x1ghz6dp`,"flexGrow-kzQI83":`x1iyjqo2`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:32`},backIcon:{"AmountEntry__styles.backIcon":`AmountEntry__styles.backIcon`,"color-kMwMTN":`xzn0pkc`,"strokeWidth-kfJifR":`xhxwl1`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:36`},closeIcon:{"AmountEntry__styles.closeIcon":`AmountEntry__styles.closeIcon`,"color-kMwMTN":`xzn0pkc`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:40`},heroBlock:{"AmountEntry__styles.heroBlock":`AmountEntry__styles.heroBlock`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"paddingTop-kLKAdn":`x1byr4rc`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`xwib8y2`,"paddingInlineStart-kZCmMZ":`xz7312c`,"gap-kOIVth":`x167g77z`,"textAlign-k9WMMc":`x2b8uid`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:52`},hero:{"AmountEntry__styles.hero":`AmountEntry__styles.hero`,"gap-kOIVth":`x1nj97wv`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:68`},heroCurrency:{"AmountEntry__styles.heroCurrency":`AmountEntry__styles.heroCurrency`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xsfzzmd`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`x1b4dsll`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:71`},heroAmount:{"AmountEntry__styles.heroAmount":`AmountEntry__styles.heroAmount`,"fontSize-kGuDYH":`xrv4cvt`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`xo2cfqc`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:77`},subLine:{"AmountEntry__styles.subLine":`AmountEntry__styles.subLine`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:82`},subLineIcon:{"AmountEntry__styles.subLineIcon":`AmountEntry__styles.subLineIcon`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:88`},bigSlot:{"AmountEntry__styles.bigSlot":`AmountEntry__styles.bigSlot`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x1fina04`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:97`},swapToggle:{"AmountEntry__styles.swapToggle":`AmountEntry__styles.swapToggle`,"appearance-kysU6D":`xjyslct`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"backgroundColor-kWkggS":`x1qkydf4`,"margin-kogj98":`x1ghz6dp`,"paddingBlock-k8WAf4":`x12ulsxz`,"paddingInline-kg3NbH":`x1awh872`,"font-kVVagm":`xln7xf2`,"color-kMwMTN":`xi96bwj`,"cursor-kkrTdU":`x1ypdohk`,"borderRadius-kaIpWk":`x1npxkrn`,"transitionProperty-k1ekBW":`xs2xxs2`,"transitionDuration-kIyJzY":`x9dyr19`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,":hover_backgroundColor-kGzVvX":`x1tkvd9a`,":hover_color-kDPRdz":`xpscirx`,":focus-visible_outline-k3Woio":`x67ar3w`,":focus-visible_outlineOffset-kiEn40":`x7s97pk`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:104`},swapIcon:{"AmountEntry__styles.swapIcon":`AmountEntry__styles.swapIcon`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:131`},swapTextWrap:{"AmountEntry__styles.swapTextWrap":`AmountEntry__styles.swapTextWrap`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:140`},swapText:{"AmountEntry__styles.swapText":`AmountEntry__styles.swapText`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x11uqc5h`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xkpwil5`,"lineHeight-kLWn49":`x132q4wb`,"fontWeight-k63SB2":`xk50ysn`,"letterSpacing-kb6lSQ":`xjat59b`,"whiteSpace-khDVqt":`xuxw1ft`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:144`},swapSymbol:{"AmountEntry__styles.swapSymbol":`AmountEntry__styles.swapSymbol`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xkpwil5`,"lineHeight-kLWn49":`x132q4wb`,"fontWeight-k63SB2":`xk50ysn`,"letterSpacing-kb6lSQ":`xjat59b`,"whiteSpace-khDVqt":`x1sdyfia`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:155`},swapBackdrop:{"AmountEntry__styles.swapBackdrop":`AmountEntry__styles.swapBackdrop`,"position-kVAEAm":`x10l6tqk`,"inset-kpwlN0":`x1v1xp8j`,"zIndex-kY2c9j":`x8knxv4`,"filter-ku685b":`x1qgin71`,"pointerEvents-kfzvcC":`x47corl`,"backgroundImage-kKwaWg":`x1bmns5n`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:165`},pills:{"AmountEntry__styles.pills":`AmountEntry__styles.pills`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x167g77z`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:178`},flowWrap:{"AmountEntry__styles.flowWrap":`AmountEntry__styles.flowWrap`,"display-k1xSpc":`x78zum5`,"justifyContent-kjj79g":`xl56j7k`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:191`},flow:{"AmountEntry__styles.flow":`AmountEntry__styles.flow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"backgroundColor-kWkggS":`x12obg9s`,"borderColor-kVAM5u":`x1bue7yx`,"borderStyle-ksu8eU":`x1y0btm7`,"borderWidth-kMzoRj":`xmkeg23`,"borderRadius-kaIpWk":`x1npxkrn`,"paddingBlock-k8WAf4":`xxlmvz2`,"paddingInline-kg3NbH":`x65v0h`,"gap-kOIVth":`x1c1vhfx`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:198`},flowSide:{"AmountEntry__styles.flowSide":`AmountEntry__styles.flowSide`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1v2ro7d`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:212`},flowLabels:{"AmountEntry__styles.flowLabels":`AmountEntry__styles.flowLabels`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x12mrbbr`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:219`},flowBridge:{"AmountEntry__styles.flowBridge":`AmountEntry__styles.flowBridge`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:225`},flowBridgeIcon:{"AmountEntry__styles.flowBridgeIcon":`AmountEntry__styles.flowBridgeIcon`,"width-kzqmXN":`x1kky2od`,"height-kZKoxP":`xlup9mm`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:232`},footer:{"AmountEntry__styles.footer":`AmountEntry__styles.footer`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x167g77z`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:240`},cta:{"AmountEntry__styles.cta":`AmountEntry__styles.cta`,"width-kzqmXN":`xh8yej3`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:250`},ctaInteractive:{"AmountEntry__styles.ctaInteractive":`AmountEntry__styles.ctaInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:253`},ctaInert:{"AmountEntry__styles.ctaInert":`AmountEntry__styles.ctaInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:256`}};export{e as styles};
@@ -0,0 +1,14 @@
1
+ import { AmountEntryFlowProps } from "../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/widgets/amount-entry/compound/components/Flow.d.ts
5
+ /**
6
+ * Flow part — Send → Receive pill bridging the source and destination
7
+ * tokens. Reads both tokens from context, and falls back to the
8
+ * {@link AmountEntry} root's `bridge` for the divider glyph.
9
+ */
10
+ declare function AmountEntryFlow({
11
+ bridge
12
+ }?: AmountEntryFlowProps): _$react_jsx_runtime0.JSX.Element;
13
+ //#endregion
14
+ export { AmountEntryFlow };
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ArrowRightIcon as t}from"../../../../icons/ArrowRightIcon.js";import"../../../../../icons/index.js";import{text as n}from"../../../../ui/Text/Text.js";import{TokenLogo as r}from"../../../../ui/TokenLogo/TokenLogo.js";import"../../../../ui/TokenLogo/index.js";import"../../../../../ui/index.js";import{AMOUNT_ENTRY_SLOTS as i}from"../AmountEntry.slots.js";import{styles as a}from"../AmountEntry.styles.js";import{useAmountEntryContext as o}from"../context.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import*as l from"@stylexjs/stylex";function u({bridge:t}={}){let n=o(`AmountEntry.Flow`),{_:r}=e(),u=t??n.bridge??s(f,{});return s(`div`,{"data-stridge-slot":i.flow,...l.props(a.flowWrap),children:c(`div`,{...l.props(a.flow),children:[s(d,{token:n.sendToken,fallbackLabel:r({id:`Ck1xL4`,message:`You send`})}),u,s(d,{token:n.receiveToken,fallbackLabel:r({id:`88cUW-`,message:`You receive`})})]})})}function d({token:e,fallbackLabel:t}){return c(`div`,{...l.props(a.flowSide),children:[s(r,{size:32,symbol:e.symbol,...e.chainId===void 0?{}:{chainId:e.chainId},...e.address===void 0?{}:{address:e.address},...e.isNative===void 0?{}:{isNative:e.isNative},...e.logoUrl===void 0?{}:{logoUrl:e.logoUrl}}),c(`span`,{...l.props(a.flowLabels),children:[s(n.span,{size:`caption`,fontWeight:`medium`,leading:`tight`,color:`subdued`,truncate:!0,children:e.label??t}),s(n.span,{size:`sm`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,truncate:!0,children:e.symbol})]})]})}function f(){return s(`span`,{"aria-hidden":!0,...l.props(a.flowBridge),children:s(t,{...l.props(a.flowBridgeIcon)})})}export{u as AmountEntryFlow};
@@ -0,0 +1,22 @@
1
+ import { AmountEntryFooterProps } from "../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/widgets/amount-entry/compound/components/Footer.d.ts
5
+ /**
6
+ * Footer part — owns the action row at the bottom of the modal and
7
+ * renders the canonical full-width Continue CTA.
8
+ *
9
+ * Built on Button at `size="cta"` + `variant="default"` — Button owns
10
+ * the height, typography, and primary fill (via `--stridge-kit-primary`).
11
+ * The widget contributes only the full-width layout, since button width
12
+ * is a layout concern of the consuming Footer.
13
+ *
14
+ * Reads `footerLabel` and `onContinue` from the {@link AmountEntry} root
15
+ * by default; pass `label` / `onContinue` to override per-instance.
16
+ */
17
+ declare function AmountEntryFooter({
18
+ label,
19
+ onContinue
20
+ }?: AmountEntryFooterProps): _$react_jsx_runtime0.JSX.Element;
21
+ //#endregion
22
+ export { AmountEntryFooter };
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Button as t}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{AMOUNT_ENTRY_SLOTS as n}from"../AmountEntry.slots.js";import{styles as r}from"../AmountEntry.styles.js";import{useAmountEntryContext as i}from"../context.js";import{jsx as a}from"react/jsx-runtime";import*as o from"@stylexjs/stylex";function s({label:s,onContinue:c}={}){let l=i(`AmountEntry.Footer`),{_:u}=e(),d=c??l.onContinue,f=s??l.footerLabel??u({id:`xGVfLh`,message:`Continue`}),p=typeof d==`function`;return a(`div`,{"data-stridge-slot":n.footer,...o.props(r.footer),children:a(t,{size:`cta`,onClick:p?d:void 0,...o.props(r.cta,p?r.ctaInteractive:r.ctaInert),children:f})})}export{s as AmountEntryFooter};
@@ -0,0 +1,15 @@
1
+ import { AmountEntryHeaderProps } from "../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/widgets/amount-entry/compound/components/Header.d.ts
5
+ /**
6
+ * Header part — back button and title laid out over `Card.Header`.
7
+ * `Dialog.CloseButton` renders as the trailing flex child only when the
8
+ * widget is mounted inside `Dialog.Content`.
9
+ */
10
+ declare function AmountEntryHeader({
11
+ title,
12
+ onBack
13
+ }?: AmountEntryHeaderProps): _$react_jsx_runtime0.JSX.Element;
14
+ //#endregion
15
+ export { AmountEntryHeader };
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ChevronLeftIcon as t}from"../../../../icons/ChevronLeftIcon.js";import"../../../../../icons/index.js";import{IconButton as n}from"../../../../ui/IconButton/IconButton.js";import{Dialog as r}from"../../../../ui/Dialog/Dialog.js";import"../../../../ui/Dialog/index.js";import{Card as i}from"../../../../ui/Card/Card.js";import{text as a}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{AMOUNT_ENTRY_SLOTS as o}from"../AmountEntry.slots.js";import{styles as s}from"../AmountEntry.styles.js";import{useAmountEntryContext as c}from"../context.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";import*as d from"@stylexjs/stylex";function f({title:f,onBack:p}={}){let m=c(`AmountEntry.Header`),{_:h}=e(),g=f??m.headerTitle??h({id:`AOPSKq`,message:`Deposit {0}`,values:{0:m.receiveToken.symbol}}),_=p===null?void 0:p??m.onBack;return u(i.Header,{"data-stridge-slot":o.header,...d.props(s.header),children:[typeof _==`function`?l(n,{"aria-label":h({id:`iH8pgl`,message:`Back`}),onClick:_,children:l(t,{"aria-hidden":!0,...d.props(s.backIcon)})}):null,l(a.span,{size:`base`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,...d.props(s.headerTitle),children:g}),l(r.CloseButton,{})]})}export{f as AmountEntryHeader};
@@ -0,0 +1,22 @@
1
+ import { AmountEntryHeroProps } from "../../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/widgets/amount-entry/compound/components/Hero/Hero.d.ts
5
+ /**
6
+ * Hero part — oversized amount centered in the modal, with a swap-mode
7
+ * toggle. Tapping the sub-line pill flips the display between
8
+ * **fiat-primary** (`$10` big, `10.00000 USDC` sub-line) and
9
+ * **asset-primary** (`10.00000` big, `$10` sub-line); the two views
10
+ * cross-morph between positions.
11
+ *
12
+ * When `onAmountChange` is wired through the root the digits become
13
+ * editable (caret-preserving live formatting, locale-aware grouping,
14
+ * auto-shrink typography). Otherwise the band is read-only.
15
+ */
16
+ declare function AmountEntryHero({
17
+ currencySymbol: currencySymbolProp,
18
+ subLine: subLineProp,
19
+ subLineAmount: subLineAmountProp
20
+ }?: AmountEntryHeroProps): _$react_jsx_runtime0.JSX.Element;
21
+ //#endregion
22
+ export { AmountEntryHero };
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../../../../../i18n/useLingui.js";import"../../../../../../i18n/index.js";import{ArrowRightLeftIcon as t}from"../../../../../icons/ArrowRightLeftIcon.js";import"../../../../../../icons/index.js";import{parseAmountInputValue as n}from"../../../../../ui/AmountInput/utils.js";import{AmountInput as r}from"../../../../../ui/AmountInput/AmountInput.js";import"../../../../../ui/AmountInput/index.js";import{AMOUNT_ENTRY_SLOTS as i}from"../../AmountEntry.slots.js";import{styles as a}from"../../AmountEntry.styles.js";import{useAmountEntryContext as o}from"../../context.js";import{detectAssetDecimals as s,formatAmountForBand as c,formatFiatLine as l,splitSubLine as u}from"./utils.js";import{StaticBand as ee}from"./StaticBand.js";import{ICON_TRANSITION as d,SWAP_TRANSITION as f,SYMBOL_TRANSITION as p,WIDTH_TRANSITION as te}from"./transitions.js";import{SwapBackdrop as m}from"./SwapBackdrop.js";import{useSwapState as h}from"./useSwapState.js";import{useCallback as g,useEffect as _,useId as v,useRef as y,useState as b}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import*as C from"@stylexjs/stylex";import{LayoutGroup as w,motion as T}from"motion/react";function E({currencySymbol:l,subLine:u,subLineAmount:E}={}){let D=o(`AmountEntry.Hero`),O=l??D.currencySymbol??`$`,k=u??D.subLine,A=E??D.subLineAmount,{_:j}=e(),M=typeof D.onAmountChange==`function`,N=v(),P=y(null),F=y(null),[I,re]=b(null);_(()=>{let e=F.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>{let t=window.getComputedStyle(e),n=(Number.parseFloat(t.paddingInlineStart)||0)+(Number.parseFloat(t.paddingInlineEnd)||0),r=e.clientWidth-n;re(e=>e===r||r<=0?e:r)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let L=D.format?.maximumFractionDigits??5,R=D.format?.useGrouping!==!1,z=s(A,L),B=g((e,t)=>c(e,t,{locale:D.locale,fiatFormat:D.format,fiatMaxDecimals:L,assetDecimals:z,useGrouping:R}),[D.locale,D.format,L,z,R]),{swapped:V,isAnimating:H,onSwap:U}=h({inputRef:P,onAfterSwap:g(e=>{D.amount!==null&&K(B(D.amount,e))},[D.amount,B])}),W=D.amount===null?``:B(D.amount,V),[G,K]=b(W);_(()=>{document.activeElement!==P.current&&K(W)},[W]);let q=e=>{K(e),D.onAmountChange?.(n(e,D.locale))},J=`${N}-fiat`,Y=`${N}-asset`,X=V?Y:J,Z=V?J:Y,Q=ne({swapped:V,ctx:D,currencySymbol:O,subLineAmount:A}),$=C.props(a.heroBlock),ie=I===null?void 0:{"--stridge-amt-available-width":`${I}px`};return x(w,{id:N,children:S(`div`,{ref:F,"data-stridge-slot":i.hero,className:$.className,style:$.style,children:[S(T.div,{layoutId:X,dir:`ltr`,transition:f,...C.props(a.bigSlot),children:[x(m,{active:H}),M?S(r,{"data-stridge-slot":i.heroBand,value:G,onValueChange:q,locale:D.locale??`en-US`,maxDecimals:V?z:L,useGrouping:R,placeholder:`0`,className:C.props(a.hero).className,style:{...C.props(a.hero).style,...ie},children:[!V&&x(r.Prefix,{...C.props(a.heroCurrency),children:O}),x(r.Field,{"aria-label":V?`Amount in ${D.receiveToken.symbol}`:`Amount in ${O}`,ref:P,autoFocus:!0,...C.props(a.heroAmount)})]}):x(ee,{swapped:V,ctx:D,currencySymbol:O,assetDecimals:z})]},X),k??S(`button`,{type:`button`,dir:`ltr`,"data-stridge-slot":i.heroSwap,"aria-label":j({id:`GwkmPx`,message:`Swap displayed amount`}),"aria-pressed":V,onClick:U,...C.props(a.swapToggle),children:[x(T.span,{"aria-hidden":!0,animate:{scaleY:V?-1:1},transition:d,...C.props(a.swapIcon),children:x(t,{width:`14`,height:`14`})}),S(T.span,{layout:!0,transition:te,...C.props(a.swapTextWrap),children:[S(T.span,{layoutId:Z,transition:f,...C.props(a.swapText),children:[Q.digits,x(m,{active:H})]},Z),Q.symbol&&x(T.span,{initial:{opacity:0},animate:{opacity:1},transition:p,...C.props(a.swapSymbol),children:Q.symbol},`symbol-${Q.symbol}`)]})]})]})})}function ne({swapped:e,ctx:t,currencySymbol:n,subLineAmount:r}){if(e)return{digits:l(t.amount,n,t.locale,t.format),symbol:null};let i=u(r);return{digits:i.digits||`${t.amount??0}`,symbol:i.symbol||` ${t.receiveToken.symbol}`}}export{E as AmountEntryHero};
@@ -0,0 +1 @@
1
+ "use client";import{styles as e}from"../../AmountEntry.styles.js";import{formatAmountForBand as t}from"./utils.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({swapped:a,ctx:o,currencySymbol:s,assetDecimals:c}){let l=o.format?.useGrouping!==!1,u=o.format?.maximumFractionDigits??5,d=o.amount===null?`0`:t(o.amount,a,{locale:o.locale,fiatFormat:o.format,fiatMaxDecimals:u,assetDecimals:c,useGrouping:l});return r(`div`,{...i.props(e.hero),children:[!a&&n(`span`,{...i.props(e.heroCurrency),children:s}),n(`span`,{...i.props(e.heroAmount),children:d})]})}export{a as StaticBand};
@@ -0,0 +1 @@
1
+ "use client";import{styles as e}from"../../AmountEntry.styles.js";import{SWAP_TRANSITION as t}from"./transitions.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";import{motion as i}from"motion/react";function a({active:a}){return n(i.span,{"aria-hidden":!0,initial:{opacity:0},animate:{opacity:+!!a},transition:t,...r.props(e.swapBackdrop)})}export{a as SwapBackdrop};
@@ -0,0 +1 @@
1
+ import { AmountEntryHero } from "./Hero.js";
@@ -0,0 +1 @@
1
+ const e=[.25,1,.5,1],t=[.33,1,.68,1],n={duration:.2,ease:e,layout:{delay:.05,duration:.2,ease:e}},r={duration:.4,ease:e},i={duration:.15,ease:t},a={duration:.4,ease:e};export{r as ICON_TRANSITION,n as SWAP_TRANSITION,a as SYMBOL_TRANSITION,i as WIDTH_TRANSITION};
@@ -0,0 +1 @@
1
+ "use client";import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";function i({inputRef:i,onAfterSwap:a}){let[o,s]=r(!1),[c,l]=r(!1),u=n(null),d=()=>{u.current&&=(window.clearTimeout(u.current),null)},f=e(()=>{let e=!o;l(!0),s(e),a?.(e),d(),u.current=window.setTimeout(()=>{l(!1),u.current=null},300),requestAnimationFrame(()=>i.current?.focus())},[i,a,o]);return t(()=>()=>d(),[]),{swapped:o,isAnimating:c,onSwap:f}}export{i as useSwapState};
@@ -0,0 +1 @@
1
+ import{formatAmountForInput as e}from"../../../../../ui/AmountInput/utils.js";import"../../../../../ui/AmountInput/index.js";function t(e){if(!e)return{digits:``,symbol:``};let t=e.match(/^(\d[\d.,]*)(.*)$/);return t?{digits:t[1],symbol:t[2]}:{digits:``,symbol:``}}function n(e,n){let{digits:r}=t(e);if(!r)return n;let i=r.lastIndexOf(`.`),a=r.lastIndexOf(`,`),o=Math.max(i,a);if(o===-1)return 0;let s=r.slice(o+1).replace(/[^\d]/g,``).length;return s>0?s:n}function r(t,n,r){return n?new Intl.NumberFormat(r.locale,{minimumFractionDigits:r.assetDecimals,maximumFractionDigits:r.assetDecimals,useGrouping:r.useGrouping}).format(t):e(t,r.locale,r.fiatMaxDecimals,r.useGrouping)}function i(e,t,n,r){return`${t}${new Intl.NumberFormat(n,r).format(e??0)}`}export{n as detectAssetDecimals,r as formatAmountForBand,i as formatFiatLine,t as splitSubLine};
@@ -0,0 +1,22 @@
1
+ import { AmountEntryPillsProps } from "../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/widgets/amount-entry/compound/components/Pills.d.ts
5
+ /**
6
+ * Pills part — horizontal segmented row of percent presets, wired as a
7
+ * single-select `SelectableTileGroup`. The group provides arrow-key
8
+ * navigation (Left / Right) and roving tabindex; click/Enter/Space
9
+ * dispatches `onSelect` via the group's `onValueChange`. When no
10
+ * `onSelect` is supplied the group emits no events and the chips render
11
+ * inert.
12
+ *
13
+ * Reads `presets`, `activePreset`, and `onPresetSelect` from the
14
+ * {@link AmountEntry} root by default; pass props to override per-instance.
15
+ */
16
+ declare function AmountEntryPills({
17
+ presets,
18
+ activeValue,
19
+ onSelect
20
+ }?: AmountEntryPillsProps): _$react_jsx_runtime0.JSX.Element;
21
+ //#endregion
22
+ export { AmountEntryPills };
@@ -0,0 +1 @@
1
+ "use client";import{SelectableTile as e}from"../../../../ui/SelectableTile/SelectableTile.js";import{SelectableTileGroup as t}from"../../../../ui/SelectableTile/SelectableTileGroup.js";import"../../../../ui/SelectableTile/index.js";import{text as n}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{AMOUNT_ENTRY_SLOTS as r}from"../AmountEntry.slots.js";import{styles as i}from"../AmountEntry.styles.js";import{useAmountEntryContext as a}from"../context.js";import{jsx as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({presets:c,activeValue:l,onSelect:u}={}){let d=a(`AmountEntry.Pills`),f=c??d.presets,p=l??d.activePreset,m=u??d.onPresetSelect,h=p===void 0?[]:[p];return o(t,{"data-stridge-slot":r.pills,orientation:`horizontal`,value:h,onValueChange:m?e=>{let t=e[0];t!==void 0&&m(t)}:void 0,...s.props(i.pills),children:f.map(t=>o(e,{shape:`pill`,value:t.value,children:o(n.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,children:t.label})},t.value))})}export{c as AmountEntryPills};
@@ -0,0 +1 @@
1
+ "use client";import{createContext as e,use as t}from"react";const n=e(null);function r(e){let r=t(n);if(!r)throw Error(`${e} must be rendered inside <AmountEntry>.`);return r}export{n as AmountEntryContext,r as useAmountEntryContext};
@@ -0,0 +1,3 @@
1
+ import { AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntryToken } from "./types.js";
2
+ import { AmountEntry } from "./AmountEntry.js";
3
+ import { AMOUNT_ENTRY_SLOTS, AmountEntrySlot } from "./AmountEntry.slots.js";
@@ -0,0 +1 @@
1
+ import"./AmountEntry.slots.js";import"./AmountEntry.js";