@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,40 @@
1
+ //#region src/shared/chains/index.d.ts
2
+ /**
3
+ * Chain catalog for `@stridge/kit`. Exports the `chains` namespace (EIP-155 chain ids keyed by
4
+ * slug, suitable for IDE autocomplete) and a normalizer that converts any accepted form
5
+ * (slug, EIP-155 number, Stridge networkId) into the wire-shape `network_id` string the gateway
6
+ * expects.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * import { chains } from "@stridge/kit";
11
+ *
12
+ * <StridgeProvider asset={{ chain: chains.bsc, symbol: "USDC" }} ... />;
13
+ * <StridgeProvider asset={{ chain: 56, symbol: "USDC" }} ... />; // also valid
14
+ * <StridgeProvider asset={{ chain: "bsc", symbol: "USDC" }} ... />; // also valid
15
+ * <StridgeProvider asset={{ chain: "9006", symbol: "USDC" }} ... />; // also valid
16
+ * ```
17
+ */
18
+ /**
19
+ * EIP-155 chain ids for the chains Stridge's gateway routes to. Keyed by lowercase slug for
20
+ * IDE autocomplete; the value is a plain number so consumers can pass `chains.bsc` directly to
21
+ * any prop that accepts a chain id.
22
+ */
23
+ declare const chains: {
24
+ readonly ethereum: 1;
25
+ readonly bsc: 56;
26
+ readonly polygon: 137;
27
+ readonly arbitrum: 42161;
28
+ readonly base: 8453;
29
+ };
30
+ type ChainSlug = keyof typeof chains;
31
+ /**
32
+ * The accepted shape of a `chain` field on kit configuration props. Any of:
33
+ *
34
+ * - `number` — EIP-155 chain id (`56`, `137`).
35
+ * - `string` — chain slug (`"bsc"`), the matching EIP-155 id as text (`"56"`), or a Stridge
36
+ * `network_id` (`"9006"`). The kit normalizes via {@link normalizeChainToNetworkId}.
37
+ */
38
+ type ChainInput = string | number;
39
+ //#endregion
40
+ export { ChainInput, ChainSlug, chains };
@@ -0,0 +1 @@
1
+ const e={ethereum:1,bsc:56,polygon:137,arbitrum:42161,base:8453},t={ethereum:`60`,bsc:`9006`,polygon:`966`,arbitrum:`9001`,base:`8453`},n={1:`60`,56:`9006`,137:`966`,42161:`9001`,8453:`8453`};function r(e){if(typeof e==`number`)return n[e]??String(e);let r=e.toLowerCase();return r in t?t[r]:/^\d+$/.test(e)?n[Number(e)]??e:e}export{e as chains,r as normalizeChainToNetworkId};
@@ -0,0 +1 @@
1
+ const e={support:`https://stridge.com/support`,terms:`https://stridge.com/terms`};export{e as BRAND_LINKS};
@@ -0,0 +1,63 @@
1
+ import { ReactElement, ReactNode } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/dialog/DialogShell.d.ts
5
+ /**
6
+ * Open-state and trigger controls shared by every widget's `.Dialog`
7
+ * form (and the generic {@link DialogShell}). Mirrors the controlled /
8
+ * uncontrolled / programmatic shapes that `Dialog.Root` already accepts.
9
+ */
10
+ interface DialogShellControls {
11
+ /** Controlled open state. Pair with `onOpenChange` for full control. */
12
+ open?: boolean;
13
+ /** Initial open state when uncontrolled. Ignored if `open` is set. */
14
+ defaultOpen?: boolean;
15
+ /** Fires whenever the dialog open state changes. */
16
+ onOpenChange?: (open: boolean) => void;
17
+ /**
18
+ * Element rendered as the `Dialog.Trigger`. Omit when the dialog is
19
+ * opened programmatically via `open`.
20
+ */
21
+ trigger?: ReactElement;
22
+ }
23
+ interface DialogShellProps extends DialogShellControls {
24
+ /**
25
+ * Widget JSX rendered inside `Dialog.Content`. Each widget detects
26
+ * the dialog context and swaps to its bare frame, so the same
27
+ * composition that works inline as `Card variant="frame"` paints
28
+ * the same surface chrome here.
29
+ */
30
+ children?: ReactNode;
31
+ }
32
+ /**
33
+ * Pre-composed dialog shell for a kit widget. Wraps `Dialog.Root` +
34
+ * (optional) `Dialog.Trigger` + `Dialog.Content` so consumers don't
35
+ * re-stitch those three primitives every time they want to open a
36
+ * widget in a modal.
37
+ *
38
+ * Each widget also exposes a typed `.Dialog` form (`Deposit.Dialog`,
39
+ * `AssetPicker.Dialog`, …) that wraps this shell and forwards the
40
+ * widget's own root props — that's the recommended entry point for
41
+ * production usage. Reach for `DialogShell` directly when you have
42
+ * already-rendered widget JSX (an inline `<Deposit>` element) and just
43
+ * want to lift it into a dialog.
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * <DialogShell trigger={<Button>Deposit</Button>}>
48
+ * <Deposit token={token}>
49
+ * <Deposit.Header />
50
+ * <Deposit.Body>…</Deposit.Body>
51
+ * </Deposit>
52
+ * </DialogShell>
53
+ * ```
54
+ */
55
+ declare function DialogShell({
56
+ open,
57
+ defaultOpen,
58
+ onOpenChange,
59
+ trigger,
60
+ children
61
+ }: DialogShellProps): _$react_jsx_runtime0.JSX.Element;
62
+ //#endregion
63
+ export { DialogShell, DialogShellControls, DialogShellProps };
@@ -0,0 +1 @@
1
+ "use client";import{Dialog as e}from"../ui/Dialog/Dialog.js";import"../ui/Dialog/index.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";function r({open:r,defaultOpen:i,onOpenChange:a,trigger:o,children:s}){return n(e,{open:r,defaultOpen:i,onOpenChange:a,children:[o?t(e.Trigger,{render:o}):null,t(e.Content,{children:s})]})}export{r as DialogShell};
@@ -0,0 +1 @@
1
+ "use client";import{useKitConfig as e}from"../../scope/context.js";import{useIsInsideDialogContent as t}from"../ui/Dialog/Dialog.js";import"../ui/Dialog/index.js";import{Card as n}from"../ui/Card/Card.js";import"../../ui/index.js";import{jsx as r}from"react/jsx-runtime";function i({className:i,style:a,dir:o,...s}){let c=t(),{direction:l}=e(),u=o??l;if(c){let e={className:`Frame__styles.bare x78zum5 xdt5ytf x12lumcd x2lwn1j x7giv3`,"data-style-src":`@stridge/kit:src/shared/dialog/Frame.tsx:25`};return r(`div`,{...s,dir:u,className:[e.className,i].filter(Boolean).join(` `)||void 0,style:{...e.style,...a}})}return r(n,{variant:`frame`,dir:u,className:i,style:a,...s})}export{i as Frame};
@@ -0,0 +1 @@
1
+ "use client";import{joinClassNames as e}from"../utils/joinClassNames.js";import{jsx as t}from"react/jsx-runtime";function n({children:n,className:r}){let i={className:`GatewayKitRoot__styles.root x78zum5 xdt5ytf x12lumcd x2lwn1j`,"data-style-src":`@stridge/kit:src/shared/dialog/GatewayKitRoot.tsx:13`};return t(`div`,{className:e(`stridge-kit-root`,i.className,r),style:i.style,children:n})}export{n as GatewayKitRoot};
@@ -0,0 +1 @@
1
+ "use client";import{useEffect as e,useLayoutEffect as t,useRef as n}from"react";import{jsx as r}from"react/jsx-runtime";import{AnimatePresence as i,motion as a}from"motion/react";const o=[.3,0,.06,1],s={enter:e=>({opacity:0,x:e>=0?16:-16,filter:`blur(6px)`}),center:{opacity:1,x:0,filter:`blur(0px)`,transition:{duration:.22,delay:.12,ease:o}},exit:e=>({opacity:0,x:e>=0?-16:16,filter:`blur(6px)`,transition:{duration:.14,ease:o}})};function c({stateKey:o,children:c}){let l=n([]),u=n(null),d=l.current,f=d[d.length-1],p=0;o!==f&&(p=d.indexOf(o)>=0?-1:1);let m=n(null),h=n(o),g=n(null),_=n(null);return e(()=>{let e=l.current;if(e[e.length-1]===o)return;let t=e.indexOf(o);l.current=t>=0?e.slice(0,t+1):[...e,o]},[o]),t(()=>{let e=u.current;if(!e)return;let t=e.getBoundingClientRect().height;if(h.current===o){m.current=t;return}let n=m.current;if(h.current=o,m.current=t,n===null||n===t)return;let r=e.style.transition;e.style.transition=`none`,e.style.height=`${n}px`,e.offsetHeight,e.style.transition=r,_.current!==null&&window.cancelAnimationFrame(_.current),_.current=window.requestAnimationFrame(()=>{_.current=null,u.current&&(u.current.style.height=`${t}px`)}),g.current!==null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null;let e=u.current;e&&(e.style.height=``)},320)}),e(()=>()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null),_.current!==null&&(window.cancelAnimationFrame(_.current),_.current=null)},[]),r(`div`,{ref:u,style:{position:`relative`,overflow:`hidden`,transition:`height 260ms cubic-bezier(0.3, 0, 0.06, 1)`,flex:`0 1 auto`,minHeight:0,display:`flex`,flexDirection:`column`},children:r(i,{mode:`popLayout`,custom:p,initial:!1,children:r(a.div,{custom:p,variants:s,initial:`enter`,animate:`center`,exit:`exit`,tabIndex:-1,style:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:0,outline:`none`},children:c},o)})})}export{c as StepTransition};
@@ -0,0 +1 @@
1
+ "use client";import{useKitConfig as e}from"../../scope/context.js";function t(t){let{direction:n}=e(),r=n===`rtl`;return t?r?`scaleX(-1) rotate(-90deg)`:`rotate(90deg)`:r?`scaleX(-1)`:void 0}export{t as useDirectionalChevronTransform};
@@ -0,0 +1,69 @@
1
+ //#region src/shared/driver/types.d.ts
2
+ /**
3
+ * Canonical home for the kit's driver-layer types that are shared across deposit and withdraw
4
+ * flows. Lives under `shared/driver/` so neither flow has to cross-import the other; both flows
5
+ * import from here, and the per-flow driver `index.ts` re-exports for back-compat with the
6
+ * public `@stridge/kit/<flow>/driver` surface.
7
+ */
8
+ /**
9
+ * On-chain transaction reference. Drivers return one of these from any imperative wallet action
10
+ * (`submitDeposit`, `submitWithdrawal`); the orchestrator stamps it on the FSM's `tx` slot until
11
+ * the matching settlement entity catches up and exposes a richer `txHash` / `txExplorerUrl` pair.
12
+ */
13
+ interface TxRef {
14
+ hash: string;
15
+ explorerUrl?: string;
16
+ }
17
+ /**
18
+ * Stable classification of why a settlement failed. The widget maps each kind to a localized
19
+ * headline + reason via `useT()`; keeping the discriminator here as an enum (not free-text)
20
+ * preserves the kit's "payload is data, copy lives in widget" boundary.
21
+ */
22
+ type SettlementFailureKind = /** The route's expected output drifted while the on-chain submission was pending. */"slippage" /** The bridge could not fund the destination transaction (gas budget exhausted). */ | "insufficient-gas" /** Destination-leg transaction reverted on-chain. */ | "execution-reverted" /** Settlement failed for a reason the driver could not classify. */ | "unknown";
23
+ /**
24
+ * Lifecycle envelope for every reactive entity exposed by a kit driver. Each variant narrows
25
+ * what the consumer can read:
26
+ *
27
+ * - `idle` — the entity has no data and no fetch is in flight (e.g. the user has not entered an
28
+ * amount yet, so there is no quote to display).
29
+ * - `loading` — a fetch is in flight; no payload available.
30
+ * - `ready` — a fresh value arrived. `payload` is the kit-formatted, locale-aware shape kit
31
+ * components and host headless code render. `raw` is the source-of-truth DTO from the backend
32
+ * (one item out of a list / response). `response` is the full HTTP response that contained the
33
+ * entity, exposed for headless integrators that want the entire envelope.
34
+ * - `stale` — the previously-ready value is past its freshness window (e.g. an expired quote).
35
+ * The `payload` is still safe to render in a "Refresh" affordance; downstream FSM logic chooses
36
+ * when to re-request.
37
+ * - `error` — the latest fetch failed. The original `error` is kept so analytics + UI can present
38
+ * it. No `payload` — components show their error fallback.
39
+ *
40
+ * Components in `@stridge/kit/<flow>/widgets` and `@stridge/kit/<flow>/compound` only ever read
41
+ * `payload`. The `raw` and `response` slots are part of the public contract for headless
42
+ * integrators (e.g. an analytics pipeline that wants the wire-shaped settlement record, or a
43
+ * custom React tree that wants to surface a backend field the kit's payload does not include).
44
+ *
45
+ * @template P - Payload shape — the kit-formatted, locale-aware data the kit's components render.
46
+ * @template R - Raw shape — the DTO of THIS specific entity (e.g. one settlement record, not the
47
+ * whole poll response).
48
+ * @template Resp - Response shape — the full HTTP response that contained `R`.
49
+ */
50
+ type Entity<P, R, Resp> = {
51
+ status: "idle";
52
+ } | {
53
+ status: "loading";
54
+ } | {
55
+ status: "ready";
56
+ payload: P;
57
+ raw: R;
58
+ response: Resp;
59
+ } | {
60
+ status: "stale";
61
+ payload: P;
62
+ raw: R;
63
+ response: Resp;
64
+ } | {
65
+ status: "error";
66
+ error: Error;
67
+ };
68
+ //#endregion
69
+ export { Entity, SettlementFailureKind, TxRef };
@@ -0,0 +1 @@
1
+ "use client";import{GatewayKitRoot as e}from"../../dialog/GatewayKitRoot.js";import{isWagmiProviderMissingError as t}from"../lib/isWagmiProviderMissingError.js";import{GatewayKitRecoveryError as n}from"./GatewayKitRecoveryError.js";import{GatewayKitSetupError as r}from"./GatewayKitSetupError.js";import{Component as i}from"react";import{jsx as a}from"react/jsx-runtime";function o(e){return a(s,{...e})}var s=class extends i{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){process.env.NODE_ENV!==`production`&&console.error(`[Stridge Kit] Render error`,e,t),this.props.onError?.(e,t)}reset=()=>{this.props.onReset?.(),this.setState({error:null})};render(){let{error:i}=this.state;return i?a(e,{children:this.props.fallback??(t(i)?a(r,{error:i}):a(n,{error:i,onRetry:this.reset}))}):a(e,{children:this.props.children})}};export{o as GatewayKitBoundary};
@@ -0,0 +1 @@
1
+ "use client";import{joinClassNames as e}from"../../../utils/joinClassNames.js";import{GATEWAY_KIT_ERROR_CARD_SLOTS as t}from"./GatewayKitErrorCard.slots.js";import{styles as n}from"./GatewayKitErrorCard.styles.js";import{GatewayKitErrorCardAction as r}from"./components/Action.js";import{GatewayKitErrorCardActions as i}from"./components/Actions.js";import{GatewayKitErrorCardCodeSample as a}from"./components/CodeSample.js";import{GatewayKitErrorCardDescription as o}from"./components/Description.js";import{GatewayKitErrorCardGuidance as s}from"./components/Guidance.js";import{GatewayKitErrorCardContext as c}from"./context.js";import{GatewayKitErrorCardTechnicalDetails as l}from"./components/TechnicalDetails.js";import{GatewayKitErrorCardTechnicalDetailsToggle as u}from"./components/TechnicalDetailsToggle.js";import{GatewayKitErrorCardTitle as d}from"./components/Title.js";import{useId as f,useMemo as p,useState as m}from"react";import{jsx as h}from"react/jsx-runtime";import*as g from"@stylexjs/stylex";function _({error:r,defaultErrorName:i,defaultErrorMessage:a,className:o,"data-testid":s,children:l}){let[u,d]=m(!1),_=f(),v=process.env.NODE_ENV!==`production`,y=r?.name??i,b=r?.message??a,x=r?.stack,S=!!y||!!b||v&&!!x,C=p(()=>({showTechnicalDetails:u,toggleTechnicalDetails:()=>d(e=>!e),hasTechnicalDetails:S,detailsId:_,resolvedErrorName:y,resolvedErrorMessage:b,errorStack:x,isDevelopment:v}),[u,S,_,y,b,x,v]),w=g.props(n.card);return h(c.Provider,{value:C,children:h(`div`,{"data-stridge-slot":t.root,"data-testid":s,className:e(w.className,o),style:w.style,children:l})})}(function(e){e.Title=d,e.Description=o,e.Guidance=s,e.Actions=i,e.Action=r,e.CodeSample=a,e.TechnicalDetails=l,e.TechnicalDetailsToggle=u})(_||={});export{_ as GatewayKitErrorCard};
@@ -0,0 +1 @@
1
+ const e={root:`gateway-kit-error-card`,title:`gateway-kit-error-card-title`,description:`gateway-kit-error-card-description`,guidance:`gateway-kit-error-card-guidance`,actions:`gateway-kit-error-card-actions`,action:`gateway-kit-error-card-action`,technicalDetailsToggle:`gateway-kit-error-card-technical-details-toggle`,codeSample:`gateway-kit-error-card-code-sample`,codeSampleSection:`gateway-kit-error-card-code-sample-section`,technicalDetails:`gateway-kit-error-card-technical-details`,detailRow:`gateway-kit-error-card-detail-row`};export{e as GATEWAY_KIT_ERROR_CARD_SLOTS};
@@ -0,0 +1 @@
1
+ import{colors as e}from"../../../styles/tokens.stylex.js";`${e.destructiveSoft}`,`${e.destructiveSoft}${e.foreground}`,`${e.destructiveBorder}`,`${e.destructiveBorder}`,e.destructiveSoftForeground,`${e.destructiveSoftForeground}${e.foreground}`,e.destructive,e.destructiveForeground,`${e.destructive}${e.foreground}`,`${e.background}`;const t={card:{"GatewayKitErrorCard__styles.card":`GatewayKitErrorCard__styles.card`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x1fxxxea`,"borderRadius-kaIpWk":`x13pkpm2`,"padding-kmVPX3":`x163h9xw`,"fontFamily-kMv6JI":`xlaww2m`,"backgroundColor-kWkggS":`x1o9k46r`,"color-kMwMTN":`x19vemxs`,"boxShadow-kGVxlE":`x1lo0mqj`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:24`},title:{"GatewayKitErrorCard__styles.title":`GatewayKitErrorCard__styles.title`,"marginBottom-k1K539":`xji1aa`,"fontWeight-k63SB2":`x1qvi77d`,"fontSize-kGuDYH":`x1ll9jre`,"lineHeight-kLWn49":`x2fnr2h`,"letterSpacing-kb6lSQ":`x17krmmv`,"color-kMwMTN":`xreodjm`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:35`},bodyText:{"GatewayKitErrorCard__styles.bodyText":`GatewayKitErrorCard__styles.bodyText`,"lineHeight-kLWn49":`x1ppnlvb`,"color-kMwMTN":`x19vemxs`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:43`},guidance:{"GatewayKitErrorCard__styles.guidance":`GatewayKitErrorCard__styles.guidance`,"marginTop-keoZOQ":`x1u1y36e`,"lineHeight-kLWn49":`x1ppnlvb`,"color-kMwMTN":`xtb34l4`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:47`},actionsRow:{"GatewayKitErrorCard__styles.actionsRow":`GatewayKitErrorCard__styles.actionsRow`,"display-k1xSpc":`x78zum5`,"flexWrap-kwnvtZ":`x1a02dak`,"gap-kOIVth":`x1a6yh9e`,"marginTop-keoZOQ":`xq9mr0s`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:52`},section:{"GatewayKitErrorCard__styles.section":`GatewayKitErrorCard__styles.section`,"borderRadius-kaIpWk":`x12ur2as`,"backgroundColor-kWkggS":`xij6k22`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x1fxxxea`,"padding-kmVPX3":`xewtfw4`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:58`},sectionTitle:{"GatewayKitErrorCard__styles.sectionTitle":`GatewayKitErrorCard__styles.sectionTitle`,"marginBottom-k1K539":`x1anr4k7`,"fontSize-kGuDYH":`x1oae1zf`,"lineHeight-kLWn49":`x2fnr2h`,"letterSpacing-kb6lSQ":`xen6mf`,"textTransform-kP9fke":`xtvhhri`,"opacity-kSiTet":`x27vdmw`,"fontWeight-k63SB2":`x1qvi77d`,"color-kMwMTN":`xreodjm`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:66`},codeSample:{"GatewayKitErrorCard__styles.codeSample":`GatewayKitErrorCard__styles.codeSample`,"margin-kogj98":`x1ghz6dp`,"overflowX-kXHlph":`xw2csxc`,"whiteSpace-khDVqt":`x1sdyfia`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x1ppnlvb`,"color-kMwMTN":`xzn0pkc`,"fontFamily-kMv6JI":`x47j52l`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:76`},detailSubheading:{"GatewayKitErrorCard__styles.detailSubheading":`GatewayKitErrorCard__styles.detailSubheading`,"marginBottom-k1K539":`x1782xsq`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"fontWeight-k63SB2":`x1qvi77d`,"color-kMwMTN":`xzn0pkc`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:85`},stack:{"GatewayKitErrorCard__styles.stack":`GatewayKitErrorCard__styles.stack`,"margin-kogj98":`x1ghz6dp`,"overflowX-kXHlph":`xw2csxc`,"whiteSpace-khDVqt":`x126k92a`,"wordBreak-kTgw9":`x13faqbe`,"fontSize-kGuDYH":`x1oae1zf`,"lineHeight-kLWn49":`x1ppnlvb`,"color-kMwMTN":`xzn0pkc`,"fontFamily-kMv6JI":`x47j52l`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:92`},detailRow:{"GatewayKitErrorCard__styles.detailRow":`GatewayKitErrorCard__styles.detailRow`,"display-k1xSpc":`xrvj5dj`,"gap-kOIVth":`x1r05nms`,"marginTop-keoZOQ":`x1u1y36e`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:102`},detailLabel:{"GatewayKitErrorCard__styles.detailLabel":`GatewayKitErrorCard__styles.detailLabel`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"fontWeight-k63SB2":`x1qvi77d`,"color-kMwMTN":`x19vemxs`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:107`},detailValue:{"GatewayKitErrorCard__styles.detailValue":`GatewayKitErrorCard__styles.detailValue`,"display-k1xSpc":`x1lliihq`,"borderRadius-kaIpWk":`x143j3yi`,"backgroundColor-kWkggS":`xij6k22`,"paddingTop-kLKAdn":`x2tg1xt`,"paddingBottom-kGO01o":`x1ww8orz`,"paddingInline-kg3NbH":`x1fk34n2`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"color-kMwMTN":`xzn0pkc`,"wordBreak-kTgw9":`x13faqbe`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:113`},primaryAction:{"GatewayKitErrorCard__styles.primaryAction":`GatewayKitErrorCard__styles.primaryAction`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"minHeight-kAzted":`x21xpn4`,"borderRadius-kaIpWk":`x143j3yi`,"paddingInline-kg3NbH":`x1fk34n2`,"backgroundColor-kWkggS":`x1qvyn6m`,"color-kMwMTN":`x18o46el`,"textDecoration-kybGjl":`x1hl2dhg`,"fontSize-kGuDYH":`x14qa7mu`,"fontWeight-k63SB2":`x1qvi77d`,"borderWidth-kMzoRj":`xc342km`,"borderStyle-ksu8eU":`x1y0btm7`,"cursor-kkrTdU":`xt0e3qv`,":hover_backgroundColor-kGzVvX":`x8av6v9`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:125`},secondaryAction:{"GatewayKitErrorCard__styles.secondaryAction":`GatewayKitErrorCard__styles.secondaryAction`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"minHeight-kAzted":`x21xpn4`,"borderRadius-kaIpWk":`x143j3yi`,"paddingInline-kg3NbH":`x1fk34n2`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x84ybii`,"backgroundColor-kWkggS":`xjbqb8w`,"color-kMwMTN":`xreodjm`,"textDecoration-kybGjl":`x1hl2dhg`,"fontSize-kGuDYH":`x14qa7mu`,"fontWeight-k63SB2":`x1qvi77d`,"cursor-kkrTdU":`xt0e3qv`,":hover_backgroundColor-kGzVvX":`x1ehxjrm`,$$css:`@stridge/kit:src/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.ts:144`}};export{t as styles};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({href:i,onClick:a,variant:o=`primary`,children:s}){let c=r.props(o===`secondary`?t.secondaryAction:t.primaryAction);return i?n(`a`,{"data-stridge-slot":e.action,href:i,target:`_blank`,rel:`noreferrer`,className:c.className,style:c.style,children:s}):n(`button`,{"data-stridge-slot":e.action,type:`button`,onClick:a,className:c.className,style:c.style,children:s})}export{i as GatewayKitErrorCardAction};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({children:i}){return n(`div`,{"data-stridge-slot":e.actions,...r.props(t.actionsRow),children:i})}export{i as GatewayKitErrorCardActions};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{Section as n}from"./Section.js";import{jsx as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({title:a,children:o}){return r(n,{"data-stridge-slot":e.codeSampleSection,title:a,style:{marginTop:14},children:r(`pre`,{"data-stridge-slot":e.codeSample,...i.props(t.codeSample),children:o})})}export{a as GatewayKitErrorCardCodeSample};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({children:i}){return n(`div`,{"data-stridge-slot":e.description,...r.props(t.bodyText),children:i})}export{i as GatewayKitErrorCardDescription};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({label:a,value:o}){return r(`div`,{"data-stridge-slot":e.detailRow,...i.props(t.detailRow),children:[n(`div`,{...i.props(t.detailLabel),children:a}),n(`code`,{...i.props(t.detailValue),children:o})]})}export{a as DetailRow};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({children:i}){return n(`div`,{"data-stridge-slot":e.guidance,...r.props(t.guidance),children:i})}export{i as GatewayKitErrorCardGuidance};
@@ -0,0 +1 @@
1
+ "use client";import{styles as e}from"../GatewayKitErrorCard.styles.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({title:i,children:a,id:o,style:s,"data-stridge-slot":c}){let l=r.props(e.section);return n(`div`,{id:o,"data-stridge-slot":c,className:l.className,style:{...l.style,...s},children:[t(`div`,{...r.props(e.sectionTitle),children:i}),a]})}export{i as Section};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{Section as n}from"./Section.js";import{useGatewayKitErrorCardContext as r}from"../context.js";import{DetailRow as i}from"./DetailRow.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({title:c}){let l=r(`GatewayKitErrorCard.TechnicalDetails`);return!l.hasTechnicalDetails||!l.showTechnicalDetails?null:o(n,{id:l.detailsId,"data-stridge-slot":e.technicalDetails,title:c,style:{marginTop:14},children:[l.resolvedErrorName?a(i,{label:`Error`,value:l.resolvedErrorName}):null,l.resolvedErrorMessage?a(i,{label:`Message`,value:l.resolvedErrorMessage}):null,l.isDevelopment&&l.errorStack?o(`div`,{style:{marginTop:10},children:[a(`div`,{...s.props(t.detailSubheading),children:`Stack`}),a(`pre`,{...s.props(t.stack),children:l.errorStack})]}):null]})}export{c as GatewayKitErrorCardTechnicalDetails};
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{GATEWAY_KIT_ERROR_CARD_SLOTS as t}from"../GatewayKitErrorCard.slots.js";import{styles as n}from"../GatewayKitErrorCard.styles.js";import{useGatewayKitErrorCardContext as r}from"../context.js";import{jsx as i}from"react/jsx-runtime";import*as a from"@stylexjs/stylex";function o({showLabel:o,hideLabel:s}={}){let c=r(`GatewayKitErrorCard.TechnicalDetailsToggle`),{_:l}=e();if(!c.hasTechnicalDetails)return null;let u=o??l({id:`aiEUrg`,message:`Show technical details`}),d=s??l({id:`DoS2vD`,message:`Hide technical details`}),f=a.props(n.secondaryAction);return i(`button`,{"data-stridge-slot":t.technicalDetailsToggle,type:`button`,onClick:c.toggleTechnicalDetails,"aria-expanded":c.showTechnicalDetails,"aria-controls":c.detailsId,className:f.className,style:f.style,children:c.showTechnicalDetails?d:u})}export{o as GatewayKitErrorCardTechnicalDetailsToggle};
@@ -0,0 +1 @@
1
+ "use client";import{GATEWAY_KIT_ERROR_CARD_SLOTS as e}from"../GatewayKitErrorCard.slots.js";import{styles as t}from"../GatewayKitErrorCard.styles.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({children:i}){return n(`div`,{"data-stridge-slot":e.title,...r.props(t.title),children:i})}export{i as GatewayKitErrorCardTitle};
@@ -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 used inside <GatewayKitErrorCard>.`);return r}export{n as GatewayKitErrorCardContext,r as useGatewayKitErrorCardContext};
@@ -0,0 +1 @@
1
+ import"./GatewayKitErrorCard.slots.js";import"./GatewayKitErrorCard.js";
@@ -0,0 +1 @@
1
+ "use client";import{Trans as e}from"../../i18n/Trans.js";import"../../../i18n/index.js";import{GatewayKitErrorCard as t}from"./GatewayKitErrorCard/GatewayKitErrorCard.js";import"./GatewayKitErrorCard/index.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({error:i,onRetry:a,className:o}){return r(t,{"data-testid":`gateway-kit-recovery-error`,className:o,error:i,defaultErrorName:`Error`,defaultErrorMessage:`The kit hit an unexpected error and could not finish rendering.`,children:[n(t.Title,{children:n(e,{id:`nwtY4N`,message:`Something went wrong`})}),n(t.Description,{children:n(`p`,{children:n(e,{id:`G-SK3q`,message:`The kit hit an unexpected error and could not finish rendering. Try again, or close this dialog and retry from the host.`})})}),r(t.Actions,{children:[a?n(t.Action,{onClick:a,variant:`primary`,children:n(e,{id:`KDw4GX`,message:`Try again`})}):null,n(t.TechnicalDetailsToggle,{})]}),n(t.TechnicalDetails,{title:`Technical details`})]})}export{i as GatewayKitRecoveryError};
@@ -0,0 +1 @@
1
+ "use client";import{GatewayKitErrorCard as e}from"./GatewayKitErrorCard/GatewayKitErrorCard.js";import"./GatewayKitErrorCard/index.js";import{GATEWAY_KIT_GUIDES as t}from"../constants/guides.js";import{WAGMI_SETUP_CODE_SAMPLE as n}from"../constants/snippets.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";function a({error:a,className:o}){return i(e,{"data-testid":`gateway-kit-setup-error`,className:o,error:a,defaultErrorName:`WagmiProviderNotFoundError`,defaultErrorMessage:"useConfig must be used within `WagmiProvider`",children:[r(e.Title,{children:`Missing wallet provider`}),r(e.Description,{children:i(`p`,{children:[`Stridge Kit requires a `,r(`code`,{children:`WagmiProvider`}),` above it in the React tree.`]})}),r(e.Guidance,{children:i(`p`,{className:`GatewayKitSetupError__styles.guidance x4z9k3i`,"data-style-src":`@stridge/kit:src/shared/error-handling/components/GatewayKitSetupError.tsx:8`,children:[`Add `,r(`code`,{children:`WagmiProvider`}),` at your app root, then render the kit inside that provider so wallet state is available.`]})}),i(e.Actions,{children:[r(e.Action,{href:t.wagmiSetup,variant:`primary`,children:`View integration docs`}),r(e.TechnicalDetailsToggle,{})]}),r(e.CodeSample,{title:`Setup example`,children:n}),r(e.TechnicalDetails,{title:`Technical details`})]})}export{a as GatewayKitSetupError};
@@ -0,0 +1 @@
1
+ const e={wagmiSetup:`/docs/integration/wagmi`};export{e as GATEWAY_KIT_GUIDES};
@@ -0,0 +1,6 @@
1
+ const e=`import { WagmiProvider } from 'wagmi'
2
+ import { wagmiConfig } from './config'
3
+
4
+ <WagmiProvider config={wagmiConfig}>
5
+ <App />
6
+ </WagmiProvider>`;export{e as WAGMI_SETUP_CODE_SAMPLE};
@@ -0,0 +1 @@
1
+ import"./components/GatewayKitErrorCard/GatewayKitErrorCard.js";import"./components/GatewayKitErrorCard/index.js";import"./components/GatewayKitRecoveryError.js";import"./constants/guides.js";import"./constants/snippets.js";import"./components/GatewayKitSetupError.js";import"./components/GatewayKitBoundary.js";
@@ -0,0 +1 @@
1
+ import{WagmiProviderNotFoundError as e}from"wagmi";function t(t){return t instanceof e?!0:t instanceof Error?t.name===`WagmiProviderNotFoundError`||t.message.includes("must be used within `WagmiProvider`"):!1}export{t as isWagmiProviderMissingError};
@@ -0,0 +1,29 @@
1
+ import { I18n } from "@lingui/core";
2
+
3
+ //#region src/shared/format/formatDurationCoarse.d.ts
4
+ /**
5
+ * Formats a millisecond duration as a coarse human-readable label, suited for deposit ETA
6
+ * displays where minor wire jitter should not change the rendered value. Buckets:
7
+ *
8
+ * - `< 60_000` → `"< 1 min"`
9
+ * - `< 3_600_000` → `"N min"` (rounded down to whole minutes)
10
+ * - otherwise → `"N hr"` (rounded down to whole hours)
11
+ *
12
+ * Sub-second precision is intentionally absent. The unit suffix runs through Lingui so the result
13
+ * localizes (e.g. `"5 min"` in English, `"5 دقيقة"` in Arabic) without callers having to compose
14
+ * their own translation keys.
15
+ *
16
+ * @example
17
+ *
18
+ * ```ts
19
+ * formatDurationCoarse(15_000, i18n); // → "< 1 min"
20
+ * formatDurationCoarse(305_000, i18n); // → "5 min"
21
+ * formatDurationCoarse(7_200_000, i18n); // → "2 hr"
22
+ * ```
23
+ *
24
+ * @param ms - Elapsed time in milliseconds.
25
+ * @param i18n - The active Lingui {@link I18n} instance — `i18n._(…)` resolves the unit suffix.
26
+ */
27
+ declare function formatDurationCoarse(ms: number, i18n: I18n): string;
28
+ //#endregion
29
+ export { formatDurationCoarse };
@@ -0,0 +1 @@
1
+ function e(e,t){if(e<6e4)return t._({id:`< 1 min`,message:`< 1 min`});if(e<36e5){let n=Math.floor(e/6e4);return t._({id:`{minutes} min`,message:`{minutes} min`,values:{minutes:n}})}let n=Math.floor(e/36e5);return t._({id:`{hours} hr`,message:`{hours} hr`,values:{hours:n}})}export{e as formatDurationCoarse};
@@ -0,0 +1,28 @@
1
+ import { I18n } from "@lingui/core";
2
+
3
+ //#region src/shared/format/formatDurationCompact.d.ts
4
+ /**
5
+ * Formats an elapsed millisecond duration as a compact total — used for the success receipt's
6
+ * "Total time" row.
7
+ *
8
+ * Examples (en-US):
9
+ * - `7_000` → `"7s"`
10
+ * - `107_000` → `"1m 47s"`
11
+ * - `3_725_000` → `"1h 2m 5s"`
12
+ *
13
+ * Each unit suffix runs through Lingui so the result localizes (e.g. `"1 د 47 ث"` in Arabic)
14
+ * without callers composing their own translation keys.
15
+ *
16
+ * @example
17
+ *
18
+ * ```ts
19
+ * formatDurationCompact(7000, i18n); // → "7s"
20
+ * formatDurationCompact(107_000, i18n); // → "1m 47s"
21
+ * ```
22
+ *
23
+ * @param ms - Elapsed time in milliseconds.
24
+ * @param i18n - The active Lingui {@link I18n} instance — `i18n._(…)` resolves each unit suffix.
25
+ */
26
+ declare function formatDurationCompact(ms: number, i18n: I18n): string;
27
+ //#endregion
28
+ export { formatDurationCompact };
@@ -0,0 +1 @@
1
+ function e(e,t){let n=Math.max(0,Math.round(e/1e3)),r=Math.floor(n/3600),i=Math.floor(n%3600/60),a=n%60,o=e=>t._({id:`{n}h`,message:`{n}h`,values:{n:e}}),s=e=>t._({id:`{n}m`,message:`{n}m`,values:{n:e}}),c=e=>t._({id:`{n}s`,message:`{n}s`,values:{n:e}});return r>0?`${o(r)} ${s(i)} ${c(a)}`:i>0?`${s(i)} ${c(a)}`:c(a)}export{e as formatDurationCompact};
@@ -0,0 +1,27 @@
1
+ //#region src/shared/format/formatNetworkName.d.ts
2
+ /**
3
+ * Normalize a wire network name into the kit's display form. Stridge gateway responses (and most
4
+ * upstream catalogs) emit network names in lowercase canonical form (`"ethereum"`, `"bsc"`,
5
+ * `"arbitrum"`); the kit's chrome shows them title-cased so picker rows, pill labels, and headers
6
+ * read consistently regardless of which driver supplied the value.
7
+ *
8
+ * Names whose uppercased form matches a registered acronym (`BSC`, `BNB`, `ETH`, `USDC`, `USDT`,
9
+ * `USD`) are uppercased entirely — preserving the natural shape readers expect for those tickers.
10
+ * Every other input is left as-is from the second character onward and only the first letter is
11
+ * upper-cased; pre-cased input like `"Polygon"` is returned unchanged rather than re-cased.
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts
16
+ * formatNetworkName("ethereum"); // → "Ethereum"
17
+ * formatNetworkName("bsc"); // → "BSC"
18
+ * formatNetworkName("Polygon"); // → "Polygon"
19
+ * formatNetworkName(""); // → ""
20
+ * ```
21
+ *
22
+ * @param name - Wire-supplied network name. Empty input round-trips to the empty string so callers
23
+ * can pass DTO fields directly without a guard.
24
+ */
25
+ declare function formatNetworkName(name: string): string;
26
+ //#endregion
27
+ export { formatNetworkName };
@@ -0,0 +1 @@
1
+ function e(e){if(!e)return``;let n=e.toUpperCase();return t.has(n)?n:e.charAt(0).toUpperCase()+e.slice(1)}const t=new Set([`BSC`,`BNB`,`ETH`,`USDC`,`USDT`,`USD`]);export{e as formatNetworkName};
@@ -0,0 +1,23 @@
1
+ import { I18n } from "@lingui/core";
2
+
3
+ //#region src/shared/format/formatPercent.d.ts
4
+ /**
5
+ * Formats a percent value (the input is in **percent units** — `0.21` means `0.21%`) as a
6
+ * locale-aware decimal string with the `%` glyph appended. The glyph is appended manually instead
7
+ * of relying on `Intl.NumberFormatOptions.style: "percent"` so the symbol placement stays
8
+ * consistent across locales.
9
+ *
10
+ * @example
11
+ *
12
+ * ```ts
13
+ * formatPercent(0.21, i18n); // → "0.21%"
14
+ * formatPercent(12.5, i18n); // → "12.50%"
15
+ * ```
16
+ *
17
+ * @param value - Percent value (`0.21` for `0.21%`, NOT `0.0021`).
18
+ * @param i18n - The active Lingui {@link I18n} instance — `i18n.locale` drives `Intl.NumberFormat`.
19
+ * @param options - Optional override for the default 2-decimal `Intl.NumberFormatOptions`.
20
+ */
21
+ declare function formatPercent(value: number, i18n: I18n, options?: Intl.NumberFormatOptions): string;
22
+ //#endregion
23
+ export { formatPercent };
@@ -0,0 +1 @@
1
+ const e={minimumFractionDigits:2,maximumFractionDigits:2};function t(t,n,r){return`${new Intl.NumberFormat(n.locale,r??e).format(t)}%`}export{t as formatPercent};
@@ -0,0 +1,22 @@
1
+ import { I18n } from "@lingui/core";
2
+
3
+ //#region src/shared/format/formatTimestamp.d.ts
4
+ /**
5
+ * Formats a unix-millisecond timestamp for display, locale-aware.
6
+ *
7
+ * @example
8
+ *
9
+ * ```ts
10
+ * formatTimestamp(1_778_086_787_000, i18n);
11
+ * // → "May 6, 16:59" (en-US)
12
+ * // → "6 may, 16:59" (es)
13
+ * // → "٦ مايو، 16:59" (ar)
14
+ * ```
15
+ *
16
+ * @param epochMs - Unix milliseconds.
17
+ * @param i18n - The active Lingui {@link I18n} instance — `i18n.locale` drives the formatter.
18
+ * @param options - Optional override for the default short-form `Intl.DateTimeFormatOptions`.
19
+ */
20
+ declare function formatTimestamp(epochMs: number, i18n: I18n, options?: Intl.DateTimeFormatOptions): string;
21
+ //#endregion
22
+ export { formatTimestamp };
@@ -0,0 +1 @@
1
+ const e={month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,hour12:!1};function t(t,n,r){return new Intl.DateTimeFormat(n.locale,r??e).format(new Date(t))}export{t as formatTimestamp};
@@ -0,0 +1,46 @@
1
+ import { I18n } from "@lingui/core";
2
+
3
+ //#region src/shared/format/formatTokenAmount.d.ts
4
+ /**
5
+ * Optional knobs for {@link formatTokenAmount}.
6
+ */
7
+ interface FormatTokenAmountOptions {
8
+ /**
9
+ * Maximum decimal places to render. Defaults to `6`.
10
+ */
11
+ maxDecimals?: number;
12
+ /**
13
+ * Groups the integer part with locale-appropriate separators (e.g. `1,234.5678`). Defaults to
14
+ * `false`, except when `compact` is enabled and the magnitude reaches `≥ 1000`.
15
+ */
16
+ useGrouping?: boolean;
17
+ /**
18
+ * When `true`, picks `maxDecimals` adaptively from magnitude (`< 1` → 6, `< 1,000` → 4,
19
+ * `≥ 1,000` → 2 with grouping forced on). The explicit `maxDecimals` (when provided) caps the
20
+ * picked value. Defaults to `false`.
21
+ */
22
+ compact?: boolean;
23
+ }
24
+ /**
25
+ * Formats a human-readable token amount as a locale-aware decimal string. Accepts a pre-scaled
26
+ * decimal value (e.g. `2` USDT, `1.99580` USDC, `0.000977` ETH) — never the on-chain base-unit
27
+ * integer.
28
+ *
29
+ * Tiny non-zero values (below the `maxDecimals` epsilon) render as `< 0.000001` instead of
30
+ * collapsing to zero, so balance lists never read as "no balance" when there's actual dust.
31
+ *
32
+ * @example
33
+ *
34
+ * ```ts
35
+ * formatTokenAmount(1.99580, i18n); // → "1.9958"
36
+ * formatTokenAmount(1234.5, i18n, { compact: true }); // → "1,234.50"
37
+ * formatTokenAmount(0.000000934, i18n); // → "< 0.000001"
38
+ * ```
39
+ *
40
+ * @param value - Decimal token amount (post-scale, not base units).
41
+ * @param i18n - The active Lingui {@link I18n} instance — `i18n.locale` drives `Intl.NumberFormat`.
42
+ * @param options - See {@link FormatTokenAmountOptions}.
43
+ */
44
+ declare function formatTokenAmount(value: number, i18n: I18n, options?: FormatTokenAmountOptions): string;
45
+ //#endregion
46
+ export { FormatTokenAmountOptions, formatTokenAmount };
@@ -0,0 +1 @@
1
+ function e(e){return 10**-e}function t(e){let t=Math.abs(e);return t>=1e3?2:t>=1?4:6}function n(n,r,i={}){let a=i.maxDecimals,o=i.compact??!1,s=o?t(n):6,c=a===void 0?s:Math.min(a,s),l=i.useGrouping??(o&&Math.abs(n)>=1e3);if(n===0)return new Intl.NumberFormat(r.locale,{minimumFractionDigits:0,maximumFractionDigits:c,useGrouping:l}).format(0);let u=e(c),d=Math.abs(n);if(d>0&&d<u){let e=new Intl.NumberFormat(r.locale,{minimumFractionDigits:0,maximumFractionDigits:c,useGrouping:l}).format(u);return n<0?`> -${e}`:`< ${e}`}return new Intl.NumberFormat(r.locale,{minimumFractionDigits:0,maximumFractionDigits:c,useGrouping:l}).format(n)}export{n as formatTokenAmount};
@@ -0,0 +1,41 @@
1
+ import { I18n } from "@lingui/core";
2
+
3
+ //#region src/shared/format/formatUsd.d.ts
4
+ /**
5
+ * Optional knobs for {@link formatUsd}.
6
+ */
7
+ interface FormatUsdOptions {
8
+ /**
9
+ * When `true` (the default), non-zero values that would round to `$0.00` render as `< $0.01`
10
+ * instead — keeps tiny balances visible in lists where `$0.00` reads as "no balance". Set to
11
+ * `false` for breakdown views where the rounding to `$0.00` is the right signal.
12
+ */
13
+ showSmallValueClamp?: boolean;
14
+ /**
15
+ * Override the default 2-decimal currency `Intl.NumberFormatOptions`. Useful for callers that
16
+ * want extra precision (e.g. for rate displays).
17
+ */
18
+ intlOptions?: Intl.NumberFormatOptions;
19
+ }
20
+ /**
21
+ * Formats a USD amount as `"$0.00"` — locale-aware currency, two decimals.
22
+ *
23
+ * Non-zero values smaller than one cent render as `< $0.01` so display lists never visually read
24
+ * as "zero" when there's a real-but-tiny balance. Pass `{ showSmallValueClamp: false }` to opt
25
+ * out (e.g. for breakdown views where rounding to `$0.00` is intentional).
26
+ *
27
+ * @example
28
+ *
29
+ * ```ts
30
+ * formatUsd(2.0, i18n); // → "$2.00"
31
+ * formatUsd(0.005, i18n); // → "< $0.01"
32
+ * formatUsd(0.005, i18n, { showSmallValueClamp: false }); // → "$0.01"
33
+ * ```
34
+ *
35
+ * @param value - USD amount.
36
+ * @param i18n - The active Lingui {@link I18n} instance — `i18n.locale` drives `Intl.NumberFormat`.
37
+ * @param options - See {@link FormatUsdOptions}.
38
+ */
39
+ declare function formatUsd(value: number, i18n: I18n, options?: FormatUsdOptions): string;
40
+ //#endregion
41
+ export { FormatUsdOptions, formatUsd };
@@ -0,0 +1 @@
1
+ const e={style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:2};function t(t,n,r={}){let i=r.intlOptions??e,a=r.showSmallValueClamp??!0,o=new Intl.NumberFormat(n.locale,i);return a&&t>0&&t<.01?`< ${o.format(.01)}`:o.format(t)}export{t as formatUsd};
@@ -0,0 +1,27 @@
1
+ //#region src/shared/format/shortenAddress.d.ts
2
+ /**
3
+ * Truncates a 0x-prefixed hex string (wallet address, transaction hash, contract address, …) to
4
+ * the kit's canonical compact form: the leading `0x` followed by a Unicode horizontal ellipsis
5
+ * (`…`, U+2026) and the last four characters of the input.
6
+ *
7
+ * The canonical form is **identical** for every entity that carries an on-chain identifier in a
8
+ * driver `payload` — wallet addresses, deposit-tx hashes, settlement-tx hashes, deposit-address
9
+ * pills. Components never re-truncate; they render the formatted string the transformer produced.
10
+ *
11
+ * @example
12
+ *
13
+ * ```ts
14
+ * shortenAddress("0xCA8779a5FD7cEAf54211177A2b22dB5E0480685c");
15
+ * // → "0x…685c"
16
+ *
17
+ * shortenAddress("0xa15b11eb774cfac27b369f3d1908b0d1d8aa48b893d7a1e89612d8438920650f");
18
+ * // → "0x…650f"
19
+ * ```
20
+ *
21
+ * @param value - The full hex identifier. Must start with `0x` and have at least four characters
22
+ * after the prefix; otherwise the input is returned unchanged so callers never see
23
+ * a truncated form that would be ambiguous.
24
+ */
25
+ declare function shortenAddress(value: string): string;
26
+ //#endregion
27
+ export { shortenAddress };
@@ -0,0 +1 @@
1
+ function e(e){return!e.startsWith(`0x`)||e.length<6?e:`0x…${e.slice(-4)}`}export{e as shortenAddress};