@ton/appkit-react 0.0.1-alpha.2 → 0.0.2

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 (397) hide show
  1. package/README.md +211 -1
  2. package/dist/esm/components/block/block.js +7 -0
  3. package/dist/esm/components/block/block.js.map +1 -0
  4. package/dist/esm/components/block/block.module.css +13 -0
  5. package/dist/esm/components/block/block.stories.js +27 -0
  6. package/dist/esm/components/block/block.stories.js.map +1 -0
  7. package/dist/esm/components/block/index.js +9 -0
  8. package/dist/esm/components/block/index.js.map +1 -0
  9. package/dist/esm/components/button/button.js +7 -0
  10. package/dist/esm/components/button/button.js.map +1 -0
  11. package/dist/esm/components/button/button.module.css +38 -0
  12. package/dist/esm/components/button/button.stories.js +30 -0
  13. package/dist/esm/components/button/button.stories.js.map +1 -0
  14. package/dist/esm/components/button/index.js +9 -0
  15. package/dist/esm/components/button/index.js.map +1 -0
  16. package/dist/esm/components/circle-icon/circle-icon.js +8 -0
  17. package/dist/esm/components/circle-icon/circle-icon.js.map +1 -0
  18. package/dist/esm/components/circle-icon/circle-icon.module.css +32 -0
  19. package/dist/esm/components/circle-icon/circle-icon.stories.js +56 -0
  20. package/dist/esm/components/circle-icon/circle-icon.stories.js.map +1 -0
  21. package/dist/esm/components/circle-icon/index.js +9 -0
  22. package/dist/esm/components/circle-icon/index.js.map +1 -0
  23. package/dist/esm/components/ton-icon/index.js +9 -0
  24. package/dist/esm/components/ton-icon/index.js.map +1 -0
  25. package/dist/esm/components/ton-icon/ton-icon.js +8 -0
  26. package/dist/esm/components/ton-icon/ton-icon.js.map +1 -0
  27. package/dist/esm/components/ton-icon/ton-icon.stories.js +56 -0
  28. package/dist/esm/components/ton-icon/ton-icon.stories.js.map +1 -0
  29. package/dist/esm/features/balances/components/balance-badge/balance-badge.js +33 -0
  30. package/dist/esm/features/balances/components/balance-badge/balance-badge.js.map +1 -0
  31. package/dist/esm/features/balances/components/balance-badge/balance-badge.module.css +21 -0
  32. package/dist/esm/features/balances/components/balance-badge/balance-badge.stories.js +23 -0
  33. package/dist/esm/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
  34. package/dist/esm/features/balances/components/balance-badge/index.js +9 -0
  35. package/dist/esm/features/balances/components/balance-badge/index.js.map +1 -0
  36. package/dist/esm/features/balances/components/currency-item/currency-item.js +8 -0
  37. package/dist/esm/features/balances/components/currency-item/currency-item.js.map +1 -0
  38. package/dist/esm/features/balances/components/currency-item/currency-item.module.css +80 -0
  39. package/dist/esm/features/balances/components/currency-item/currency-item.stories.js +61 -0
  40. package/dist/esm/features/balances/components/currency-item/currency-item.stories.js.map +1 -0
  41. package/dist/esm/features/balances/components/currency-item/index.js +9 -0
  42. package/dist/esm/features/balances/components/currency-item/index.js.map +1 -0
  43. package/dist/esm/features/balances/components/send-jetton-button/index.js +9 -0
  44. package/dist/esm/features/balances/components/send-jetton-button/index.js.map +1 -0
  45. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js +43 -0
  46. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
  47. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.stories.js +41 -0
  48. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +1 -0
  49. package/dist/esm/features/balances/components/send-ton-button/index.js +9 -0
  50. package/dist/esm/features/balances/components/send-ton-button/index.js.map +1 -0
  51. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js +26 -0
  52. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
  53. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.stories.js +36 -0
  54. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.stories.js.map +1 -0
  55. package/dist/esm/features/balances/hooks/use-balance-by-address.js +18 -0
  56. package/dist/esm/features/balances/hooks/use-balance-by-address.js.map +1 -0
  57. package/dist/esm/features/balances/hooks/use-balance.js +17 -0
  58. package/dist/esm/features/balances/hooks/use-balance.js.map +1 -0
  59. package/dist/esm/features/balances/index.js +14 -0
  60. package/dist/esm/features/balances/index.js.map +1 -0
  61. package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js +18 -0
  62. package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
  63. package/dist/esm/features/jettons/hooks/use-jetton-info.js +18 -0
  64. package/dist/esm/features/jettons/hooks/use-jetton-info.js.map +1 -0
  65. package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js +18 -0
  66. package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
  67. package/dist/esm/features/jettons/hooks/use-jettons-by-address.js +18 -0
  68. package/dist/esm/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
  69. package/dist/esm/features/jettons/hooks/use-jettons.js +17 -0
  70. package/dist/esm/features/jettons/hooks/use-jettons.js.map +1 -0
  71. package/dist/esm/features/jettons/hooks/use-transfer-jetton.js +16 -0
  72. package/dist/esm/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
  73. package/dist/esm/features/jettons/index.js +14 -0
  74. package/dist/esm/features/jettons/index.js.map +1 -0
  75. package/dist/esm/features/network/hooks/use-network.js +17 -0
  76. package/dist/esm/features/network/hooks/use-network.js.map +1 -0
  77. package/dist/esm/features/network/hooks/use-networks.js +24 -0
  78. package/dist/esm/features/network/hooks/use-networks.js.map +1 -0
  79. package/dist/esm/features/network/index.js +11 -0
  80. package/dist/esm/features/network/index.js.map +1 -0
  81. package/dist/esm/features/nft/components/nft-item/index.js +9 -0
  82. package/dist/esm/features/nft/components/nft-item/index.js.map +1 -0
  83. package/dist/esm/features/nft/components/nft-item/nft-item.js +15 -0
  84. package/dist/esm/features/nft/components/nft-item/nft-item.js.map +1 -0
  85. package/dist/esm/features/nft/components/nft-item/nft-item.module.css +74 -0
  86. package/dist/esm/features/nft/components/nft-item/nft-item.stories.js +52 -0
  87. package/dist/esm/features/nft/components/nft-item/nft-item.stories.js.map +1 -0
  88. package/dist/esm/features/nft/hooks/use-nft.js +18 -0
  89. package/dist/esm/features/nft/hooks/use-nft.js.map +1 -0
  90. package/dist/esm/features/nft/hooks/use-nfts-by-address.js +18 -0
  91. package/dist/esm/features/nft/hooks/use-nfts-by-address.js.map +1 -0
  92. package/dist/esm/features/nft/hooks/use-nfts.js +17 -0
  93. package/dist/esm/features/nft/hooks/use-nfts.js.map +1 -0
  94. package/dist/esm/features/nft/hooks/use-transfer-nft.js +16 -0
  95. package/dist/esm/features/nft/hooks/use-transfer-nft.js.map +1 -0
  96. package/dist/esm/features/nft/index.js +13 -0
  97. package/dist/esm/features/nft/index.js.map +1 -0
  98. package/dist/esm/features/signing/hooks/use-sign-binary.js +27 -0
  99. package/dist/esm/features/signing/hooks/use-sign-binary.js.map +1 -0
  100. package/dist/esm/features/signing/hooks/use-sign-cell.js +28 -0
  101. package/dist/esm/features/signing/hooks/use-sign-cell.js.map +1 -0
  102. package/dist/esm/features/signing/hooks/use-sign-text.js +27 -0
  103. package/dist/esm/features/signing/hooks/use-sign-text.js.map +1 -0
  104. package/dist/esm/features/signing/index.js +11 -0
  105. package/dist/esm/features/signing/index.js.map +1 -0
  106. package/dist/esm/features/swap/hooks/use-build-swap-transaction.js +16 -0
  107. package/dist/esm/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
  108. package/dist/esm/features/swap/hooks/use-swap-quote.js +16 -0
  109. package/dist/esm/features/swap/hooks/use-swap-quote.js.map +1 -0
  110. package/dist/esm/features/swap/index.js +10 -0
  111. package/dist/esm/features/swap/index.js.map +1 -0
  112. package/dist/esm/features/transaction/components/transaction/index.js +9 -0
  113. package/dist/esm/features/transaction/components/transaction/index.js.map +1 -0
  114. package/dist/esm/features/transaction/components/transaction/transaction.js +41 -0
  115. package/dist/esm/features/transaction/components/transaction/transaction.js.map +1 -0
  116. package/dist/esm/features/transaction/components/transaction/transaction.stories.js +47 -0
  117. package/dist/esm/features/transaction/components/transaction/transaction.stories.js.map +1 -0
  118. package/dist/esm/features/transaction/components/transaction-provider/index.js +9 -0
  119. package/dist/esm/features/transaction/components/transaction-provider/index.js.map +1 -0
  120. package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js +64 -0
  121. package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
  122. package/dist/esm/features/transaction/hooks/use-send-transaction.js +16 -0
  123. package/dist/esm/features/transaction/hooks/use-send-transaction.js.map +1 -0
  124. package/dist/esm/features/transaction/hooks/use-transfer-ton.js +16 -0
  125. package/dist/esm/features/transaction/hooks/use-transfer-ton.js.map +1 -0
  126. package/dist/esm/features/transaction/index.js +11 -0
  127. package/dist/esm/features/transaction/index.js.map +1 -0
  128. package/dist/esm/features/wallets/components/connect-button/index.js +9 -0
  129. package/dist/esm/features/wallets/components/connect-button/index.js.map +1 -0
  130. package/dist/esm/features/wallets/hooks/use-address.js +17 -0
  131. package/dist/esm/features/wallets/hooks/use-address.js.map +1 -0
  132. package/dist/esm/features/wallets/hooks/use-connect.js +15 -0
  133. package/dist/esm/features/wallets/hooks/use-connect.js.map +1 -0
  134. package/dist/esm/features/wallets/hooks/use-connected-wallets.js +21 -0
  135. package/dist/esm/features/wallets/hooks/use-connected-wallets.js.map +1 -0
  136. package/dist/esm/features/wallets/hooks/use-connector-by-id.js +21 -0
  137. package/dist/esm/features/wallets/hooks/use-connector-by-id.js.map +1 -0
  138. package/dist/esm/features/wallets/hooks/use-connectors.js +21 -0
  139. package/dist/esm/features/wallets/hooks/use-connectors.js.map +1 -0
  140. package/dist/esm/features/wallets/hooks/use-disconnect.js +16 -0
  141. package/dist/esm/features/wallets/hooks/use-disconnect.js.map +1 -0
  142. package/dist/esm/features/wallets/hooks/use-selected-wallet.js +28 -0
  143. package/dist/esm/features/wallets/hooks/use-selected-wallet.js.map +1 -0
  144. package/dist/esm/features/wallets/index.js +16 -0
  145. package/dist/esm/features/wallets/index.js.map +1 -0
  146. package/dist/esm/hooks/use-app-kit-theme.js +17 -0
  147. package/dist/esm/hooks/use-app-kit-theme.js.map +1 -0
  148. package/dist/esm/hooks/use-app-kit.js +17 -0
  149. package/dist/esm/hooks/use-app-kit.js.map +1 -0
  150. package/dist/esm/hooks/use-i18n.js +17 -0
  151. package/dist/esm/hooks/use-i18n.js.map +1 -0
  152. package/dist/esm/index.js +26 -0
  153. package/dist/esm/index.js.map +1 -0
  154. package/dist/esm/libs/i18n.js +14 -0
  155. package/dist/esm/libs/i18n.js.map +1 -0
  156. package/dist/esm/libs/query.js +18 -0
  157. package/dist/esm/libs/query.js.map +1 -0
  158. package/dist/esm/locales/en.js +32 -0
  159. package/dist/esm/locales/en.js.map +1 -0
  160. package/dist/esm/providers/app-kit-provider.js +9 -0
  161. package/dist/esm/providers/app-kit-provider.js.map +1 -0
  162. package/dist/esm/providers/i18n-provider.js +51 -0
  163. package/dist/esm/providers/i18n-provider.js.map +1 -0
  164. package/dist/esm/styles/index.css +88 -0
  165. package/dist/esm/styles/typography.module.css +92 -0
  166. package/dist/esm/tonconnect/tonconnect-bridge.js +27 -0
  167. package/dist/esm/tonconnect/tonconnect-bridge.js.map +1 -0
  168. package/dist/esm/tsconfig.build.tsbuildinfo +1 -0
  169. package/dist/types/components/block/block.d.ts +13 -0
  170. package/dist/types/components/block/block.d.ts.map +1 -0
  171. package/dist/types/components/block/block.stories.d.ts +15 -0
  172. package/dist/types/components/block/block.stories.d.ts.map +1 -0
  173. package/dist/types/components/block/index.d.ts +9 -0
  174. package/dist/types/components/block/index.d.ts.map +1 -0
  175. package/dist/types/components/button/button.d.ts +10 -0
  176. package/dist/types/components/button/button.d.ts.map +1 -0
  177. package/dist/types/components/button/button.stories.d.ts +16 -0
  178. package/dist/types/components/button/button.stories.d.ts.map +1 -0
  179. package/dist/types/components/button/index.d.ts +9 -0
  180. package/dist/types/components/button/index.d.ts.map +1 -0
  181. package/dist/types/components/circle-icon/circle-icon.d.ts +16 -0
  182. package/dist/types/components/circle-icon/circle-icon.d.ts.map +1 -0
  183. package/dist/types/components/circle-icon/circle-icon.stories.d.ts +18 -0
  184. package/dist/types/components/circle-icon/circle-icon.stories.d.ts.map +1 -0
  185. package/dist/types/components/circle-icon/index.d.ts +9 -0
  186. package/dist/types/components/circle-icon/index.d.ts.map +1 -0
  187. package/dist/types/components/ton-icon/index.d.ts +9 -0
  188. package/dist/types/components/ton-icon/index.d.ts.map +1 -0
  189. package/dist/types/components/ton-icon/ton-icon.d.ts +14 -0
  190. package/dist/types/components/ton-icon/ton-icon.d.ts.map +1 -0
  191. package/dist/types/components/ton-icon/ton-icon.stories.d.ts +20 -0
  192. package/dist/types/components/ton-icon/ton-icon.stories.d.ts.map +1 -0
  193. package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts +21 -0
  194. package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
  195. package/dist/types/features/balances/components/balance-badge/balance-badge.stories.d.ts +16 -0
  196. package/dist/types/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +1 -0
  197. package/dist/types/features/balances/components/balance-badge/index.d.ts +9 -0
  198. package/dist/types/features/balances/components/balance-badge/index.d.ts.map +1 -0
  199. package/dist/types/features/balances/components/currency-item/currency-item.d.ts +17 -0
  200. package/dist/types/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
  201. package/dist/types/features/balances/components/currency-item/currency-item.stories.d.ts +19 -0
  202. package/dist/types/features/balances/components/currency-item/currency-item.stories.d.ts.map +1 -0
  203. package/dist/types/features/balances/components/currency-item/index.d.ts +9 -0
  204. package/dist/types/features/balances/components/currency-item/index.d.ts.map +1 -0
  205. package/dist/types/features/balances/components/send-jetton-button/index.d.ts +9 -0
  206. package/dist/types/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
  207. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts +21 -0
  208. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
  209. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +22 -0
  210. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +1 -0
  211. package/dist/types/features/balances/components/send-ton-button/index.d.ts +9 -0
  212. package/dist/types/features/balances/components/send-ton-button/index.d.ts.map +1 -0
  213. package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts +16 -0
  214. package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
  215. package/dist/types/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +21 -0
  216. package/dist/types/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +1 -0
  217. package/dist/types/features/balances/hooks/use-balance-by-address.d.ts +16 -0
  218. package/dist/types/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
  219. package/dist/types/features/balances/hooks/use-balance.d.ts +16 -0
  220. package/dist/types/features/balances/hooks/use-balance.d.ts.map +1 -0
  221. package/dist/types/features/balances/index.d.ts +14 -0
  222. package/dist/types/features/balances/index.d.ts.map +1 -0
  223. package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts +16 -0
  224. package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
  225. package/dist/types/features/jettons/hooks/use-jetton-info.d.ts +16 -0
  226. package/dist/types/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
  227. package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts +16 -0
  228. package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
  229. package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts +16 -0
  230. package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
  231. package/dist/types/features/jettons/hooks/use-jettons.d.ts +16 -0
  232. package/dist/types/features/jettons/hooks/use-jettons.d.ts.map +1 -0
  233. package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts +14 -0
  234. package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
  235. package/dist/types/features/jettons/index.d.ts +14 -0
  236. package/dist/types/features/jettons/index.d.ts.map +1 -0
  237. package/dist/types/features/network/hooks/use-network.d.ts +14 -0
  238. package/dist/types/features/network/hooks/use-network.d.ts.map +1 -0
  239. package/dist/types/features/network/hooks/use-networks.d.ts +14 -0
  240. package/dist/types/features/network/hooks/use-networks.d.ts.map +1 -0
  241. package/dist/types/features/network/index.d.ts +10 -0
  242. package/dist/types/features/network/index.d.ts.map +1 -0
  243. package/dist/types/features/nft/components/nft-item/index.d.ts +9 -0
  244. package/dist/types/features/nft/components/nft-item/index.d.ts.map +1 -0
  245. package/dist/types/features/nft/components/nft-item/nft-item.d.ts +14 -0
  246. package/dist/types/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
  247. package/dist/types/features/nft/components/nft-item/nft-item.stories.d.ts +25 -0
  248. package/dist/types/features/nft/components/nft-item/nft-item.stories.d.ts.map +1 -0
  249. package/dist/types/features/nft/hooks/use-nft.d.ts +16 -0
  250. package/dist/types/features/nft/hooks/use-nft.d.ts.map +1 -0
  251. package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts +16 -0
  252. package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
  253. package/dist/types/features/nft/hooks/use-nfts.d.ts +16 -0
  254. package/dist/types/features/nft/hooks/use-nfts.d.ts.map +1 -0
  255. package/dist/types/features/nft/hooks/use-transfer-nft.d.ts +14 -0
  256. package/dist/types/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
  257. package/dist/types/features/nft/index.d.ts +13 -0
  258. package/dist/types/features/nft/index.d.ts.map +1 -0
  259. package/dist/types/features/signing/hooks/use-sign-binary.d.ts +25 -0
  260. package/dist/types/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
  261. package/dist/types/features/signing/hooks/use-sign-cell.d.ts +26 -0
  262. package/dist/types/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
  263. package/dist/types/features/signing/hooks/use-sign-text.d.ts +25 -0
  264. package/dist/types/features/signing/hooks/use-sign-text.d.ts.map +1 -0
  265. package/dist/types/features/signing/index.d.ts +11 -0
  266. package/dist/types/features/signing/index.d.ts.map +1 -0
  267. package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts +13 -0
  268. package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
  269. package/dist/types/features/swap/hooks/use-swap-quote.d.ts +13 -0
  270. package/dist/types/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
  271. package/dist/types/features/swap/index.d.ts +10 -0
  272. package/dist/types/features/swap/index.d.ts.map +1 -0
  273. package/dist/types/features/transaction/components/transaction/index.d.ts +10 -0
  274. package/dist/types/features/transaction/components/transaction/index.d.ts.map +1 -0
  275. package/dist/types/features/transaction/components/transaction/transaction.d.ts +30 -0
  276. package/dist/types/features/transaction/components/transaction/transaction.d.ts.map +1 -0
  277. package/dist/types/features/transaction/components/transaction/transaction.stories.d.ts +23 -0
  278. package/dist/types/features/transaction/components/transaction/transaction.stories.d.ts.map +1 -0
  279. package/dist/types/features/transaction/components/transaction-provider/index.d.ts +10 -0
  280. package/dist/types/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
  281. package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts +36 -0
  282. package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
  283. package/dist/types/features/transaction/hooks/use-send-transaction.d.ts +14 -0
  284. package/dist/types/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
  285. package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts +14 -0
  286. package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
  287. package/dist/types/features/transaction/index.d.ts +11 -0
  288. package/dist/types/features/transaction/index.d.ts.map +1 -0
  289. package/dist/types/features/wallets/components/connect-button/index.d.ts +9 -0
  290. package/dist/types/features/wallets/components/connect-button/index.d.ts.map +1 -0
  291. package/dist/types/features/wallets/hooks/use-address.d.ts +13 -0
  292. package/dist/types/features/wallets/hooks/use-address.d.ts.map +1 -0
  293. package/dist/types/features/wallets/hooks/use-connect.d.ts +14 -0
  294. package/dist/types/features/wallets/hooks/use-connect.d.ts.map +1 -0
  295. package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts +11 -0
  296. package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
  297. package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts +10 -0
  298. package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
  299. package/dist/types/features/wallets/hooks/use-connectors.d.ts +11 -0
  300. package/dist/types/features/wallets/hooks/use-connectors.d.ts.map +1 -0
  301. package/dist/types/features/wallets/hooks/use-disconnect.d.ts +14 -0
  302. package/dist/types/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
  303. package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts +14 -0
  304. package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
  305. package/dist/types/features/wallets/index.d.ts +16 -0
  306. package/dist/types/features/wallets/index.d.ts.map +1 -0
  307. package/dist/types/hooks/use-app-kit-theme.d.ts +10 -0
  308. package/dist/types/hooks/use-app-kit-theme.d.ts.map +1 -0
  309. package/dist/types/hooks/use-app-kit.d.ts +9 -0
  310. package/dist/types/hooks/use-app-kit.d.ts.map +1 -0
  311. package/dist/types/hooks/use-i18n.d.ts +9 -0
  312. package/dist/types/hooks/use-i18n.d.ts.map +1 -0
  313. package/dist/types/index.d.ts +26 -0
  314. package/dist/types/index.d.ts.map +1 -0
  315. package/dist/types/libs/i18n.d.ts +34 -0
  316. package/dist/types/libs/i18n.d.ts.map +1 -0
  317. package/dist/types/libs/query.d.ts +26 -0
  318. package/dist/types/libs/query.d.ts.map +1 -0
  319. package/dist/types/locales/en.d.ts +29 -0
  320. package/dist/types/locales/en.d.ts.map +1 -0
  321. package/dist/types/providers/app-kit-provider.d.ts +15 -0
  322. package/dist/types/providers/app-kit-provider.d.ts.map +1 -0
  323. package/dist/types/providers/i18n-provider.d.ts +22 -0
  324. package/dist/types/providers/i18n-provider.d.ts.map +1 -0
  325. package/dist/types/tonconnect/tonconnect-bridge.d.ts +19 -0
  326. package/dist/types/tonconnect/tonconnect-bridge.d.ts.map +1 -0
  327. package/package.json +70 -7
  328. package/src/components/block/block.tsx +20 -0
  329. package/src/components/block/index.ts +9 -0
  330. package/src/components/button/button.tsx +16 -0
  331. package/src/components/button/index.ts +9 -0
  332. package/src/components/circle-icon/circle-icon.tsx +34 -0
  333. package/src/components/circle-icon/index.ts +9 -0
  334. package/src/components/ton-icon/index.ts +9 -0
  335. package/src/components/ton-icon/ton-icon.tsx +46 -0
  336. package/src/features/balances/components/balance-badge/balance-badge.tsx +47 -0
  337. package/src/features/balances/components/balance-badge/index.ts +9 -0
  338. package/src/features/balances/components/currency-item/currency-item.tsx +59 -0
  339. package/src/features/balances/components/currency-item/index.ts +9 -0
  340. package/src/features/balances/components/send-jetton-button/index.ts +9 -0
  341. package/src/features/balances/components/send-jetton-button/send-jetton-button.tsx +76 -0
  342. package/src/features/balances/components/send-ton-button/index.ts +9 -0
  343. package/src/features/balances/components/send-ton-button/send-ton-button.tsx +44 -0
  344. package/src/features/balances/hooks/use-balance-by-address.ts +33 -0
  345. package/src/features/balances/hooks/use-balance.ts +28 -0
  346. package/src/features/balances/index.ts +15 -0
  347. package/src/features/jettons/hooks/use-jetton-balance-by-address.ts +37 -0
  348. package/src/features/jettons/hooks/use-jetton-info.ts +32 -0
  349. package/src/features/jettons/hooks/use-jetton-wallet-address.ts +37 -0
  350. package/src/features/jettons/hooks/use-jettons-by-address.ts +33 -0
  351. package/src/features/jettons/hooks/use-jettons.ts +28 -0
  352. package/src/features/jettons/hooks/use-transfer-jetton.ts +44 -0
  353. package/src/features/jettons/index.ts +14 -0
  354. package/src/features/network/hooks/use-network.ts +23 -0
  355. package/src/features/network/hooks/use-networks.ts +35 -0
  356. package/src/features/network/index.ts +11 -0
  357. package/src/features/nft/components/nft-item/index.ts +9 -0
  358. package/src/features/nft/components/nft-item/nft-item.tsx +57 -0
  359. package/src/features/nft/hooks/use-nft.ts +29 -0
  360. package/src/features/nft/hooks/use-nfts-by-address.ts +29 -0
  361. package/src/features/nft/hooks/use-nfts.ts +28 -0
  362. package/src/features/nft/hooks/use-transfer-nft.ts +44 -0
  363. package/src/features/nft/index.ts +14 -0
  364. package/src/features/signing/hooks/use-sign-binary.ts +43 -0
  365. package/src/features/signing/hooks/use-sign-cell.ts +44 -0
  366. package/src/features/signing/hooks/use-sign-text.ts +43 -0
  367. package/src/features/signing/index.ts +11 -0
  368. package/src/features/swap/hooks/use-build-swap-transaction.ts +38 -0
  369. package/src/features/swap/hooks/use-swap-quote.ts +31 -0
  370. package/src/features/swap/index.ts +10 -0
  371. package/src/features/transaction/components/transaction/index.ts +10 -0
  372. package/src/features/transaction/components/transaction/transaction.tsx +105 -0
  373. package/src/features/transaction/components/transaction-provider/index.ts +10 -0
  374. package/src/features/transaction/components/transaction-provider/transaction-provider.tsx +114 -0
  375. package/src/features/transaction/hooks/use-send-transaction.ts +44 -0
  376. package/src/features/transaction/hooks/use-transfer-ton.ts +44 -0
  377. package/src/features/transaction/index.ts +12 -0
  378. package/src/features/wallets/components/connect-button/index.ts +9 -0
  379. package/src/features/wallets/hooks/use-address.ts +22 -0
  380. package/src/features/wallets/hooks/use-connect.ts +37 -0
  381. package/src/features/wallets/hooks/use-connected-wallets.ts +32 -0
  382. package/src/features/wallets/hooks/use-connector-by-id.ts +30 -0
  383. package/src/features/wallets/hooks/use-connectors.ts +32 -0
  384. package/src/features/wallets/hooks/use-disconnect.ts +39 -0
  385. package/src/features/wallets/hooks/use-selected-wallet.ts +44 -0
  386. package/src/features/wallets/index.ts +18 -0
  387. package/src/global.d.ts +12 -0
  388. package/src/hooks/use-app-kit-theme.ts +22 -0
  389. package/src/hooks/use-app-kit.ts +21 -0
  390. package/src/hooks/use-i18n.ts +21 -0
  391. package/src/index.ts +29 -0
  392. package/src/libs/i18n.ts +20 -0
  393. package/src/libs/query.ts +69 -0
  394. package/src/locales/en.ts +35 -0
  395. package/src/providers/app-kit-provider.tsx +30 -0
  396. package/src/providers/i18n-provider.tsx +83 -0
  397. package/src/tonconnect/tonconnect-bridge.tsx +39 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { MutateFunction, MutateOptions } from '@tanstack/react-query';
9
+ import type { SendTransactionData, SendTransactionErrorType, SendTransactionOptions, SendTransactionVariables } from '@ton/appkit/queries';
10
+ import type { UseMutationReturnType } from '../../../libs/query';
11
+ export type UseSendTransactionParameters<context = unknown> = SendTransactionOptions<context>;
12
+ export type UseSendTransactionReturnType<context = unknown> = UseMutationReturnType<SendTransactionData, SendTransactionErrorType, SendTransactionVariables, context, (variables: SendTransactionVariables, options?: MutateOptions<SendTransactionData, SendTransactionErrorType, SendTransactionVariables, context>) => void, MutateFunction<SendTransactionData, SendTransactionErrorType, SendTransactionVariables, context>>;
13
+ export declare const useSendTransaction: <context = unknown>(parameters?: UseSendTransactionParameters<context>) => UseSendTransactionReturnType<context>;
14
+ //# sourceMappingURL=use-send-transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-send-transaction.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/hooks/use-send-transaction.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EAC3B,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,4BAA4B,CAAC,OAAO,GAAG,OAAO,IAAI,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAE9F,MAAM,MAAM,4BAA4B,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAC/E,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,OAAO,EACP,CACI,SAAS,EAAE,wBAAwB,EACnC,OAAO,CAAC,EAAE,aAAa,CAAC,mBAAmB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,OAAO,CAAC,KACxG,IAAI,EACT,cAAc,CAAC,mBAAmB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,OAAO,CAAC,CACnG,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,GAAG,OAAO,EAChD,aAAY,4BAA4B,CAAC,OAAO,CAAM,KACvD,4BAA4B,CAAC,OAAO,CAItC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { MutateFunction, MutateOptions } from '@tanstack/react-query';
9
+ import type { TransferTonData, TransferTonErrorType, TransferTonOptions, TransferTonVariables } from '@ton/appkit/queries';
10
+ import type { UseMutationReturnType } from '../../../libs/query';
11
+ export type UseTransferTonParameters<context = unknown> = TransferTonOptions<context>;
12
+ export type UseTransferTonReturnType<context = unknown> = UseMutationReturnType<TransferTonData, TransferTonErrorType, TransferTonVariables, context, (variables: TransferTonVariables, options?: MutateOptions<TransferTonData, TransferTonErrorType, TransferTonVariables, context>) => void, MutateFunction<TransferTonData, TransferTonErrorType, TransferTonVariables, context>>;
13
+ export declare const useTransferTon: <context = unknown>(parameters?: UseTransferTonParameters<context>) => UseTransferTonReturnType<context>;
14
+ //# sourceMappingURL=use-transfer-ton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-transfer-ton.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/hooks/use-transfer-ton.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EACR,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACvB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAEtF,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAC3E,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,CACI,SAAS,EAAE,oBAAoB,EAC/B,OAAO,CAAC,EAAE,aAAa,CAAC,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,OAAO,CAAC,KAC5F,IAAI,EACT,cAAc,CAAC,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,OAAO,CAAC,CACvF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,OAAO,EAC5C,aAAY,wBAAwB,CAAC,OAAO,CAAM,KACnD,wBAAwB,CAAC,OAAO,CAIlC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './hooks/use-send-transaction';
9
+ export * from './hooks/use-transfer-ton';
10
+ export * from './components/transaction';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export { TonConnectButton } from '@tonconnect/ui-react';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/wallets/components/connect-button/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export type UseAddressReturnType = string | undefined;
9
+ /**
10
+ * Hook to get current wallet address
11
+ */
12
+ export declare const useAddress: () => UseAddressReturnType;
13
+ //# sourceMappingURL=use-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-address.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/hooks/use-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,UAAU,QAAO,oBAI7B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { MutateFunction, MutateOptions } from '@tanstack/react-query';
9
+ import type { ConnectData, ConnectErrorType, ConnectOptions, ConnectVariables } from '@ton/appkit/queries';
10
+ import type { UseMutationReturnType } from '../../../libs/query';
11
+ export type UseConnectParameters<context = unknown> = ConnectOptions<context>;
12
+ export type UseConnectReturnType<context = unknown> = UseMutationReturnType<ConnectData, ConnectErrorType, ConnectVariables, context, (variables: ConnectVariables, options?: MutateOptions<ConnectData, ConnectErrorType, ConnectVariables, context>) => void, MutateFunction<ConnectData, ConnectErrorType, ConnectVariables, context>>;
13
+ export declare const useConnect: <context = unknown>(parameters?: UseConnectParameters<context>) => UseConnectReturnType<context>;
14
+ //# sourceMappingURL=use-connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-connect.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/hooks/use-connect.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG3G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,oBAAoB,CAAC,OAAO,GAAG,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AAE9E,MAAM,MAAM,oBAAoB,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CACvE,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,CACI,SAAS,EAAE,gBAAgB,EAC3B,OAAO,CAAC,EAAE,aAAa,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,KAChF,IAAI,EACT,cAAc,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAC3E,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,OAAO,EACxC,aAAY,oBAAoB,CAAC,OAAO,CAAM,KAC/C,oBAAoB,CAAC,OAAO,CAI9B,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { GetConnectedWalletsReturnType } from '@ton/appkit';
9
+ export type UseConnectedWalletsReturnType = GetConnectedWalletsReturnType;
10
+ export declare const useConnectedWallets: () => UseConnectedWalletsReturnType;
11
+ //# sourceMappingURL=use-connected-wallets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-connected-wallets.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/hooks/use-connected-wallets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAIjE,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAC;AAE1E,eAAO,MAAM,mBAAmB,QAAO,6BAetC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { Connector } from '@ton/appkit';
9
+ export declare const useConnectorById: (id: string) => Connector | undefined;
10
+ //# sourceMappingURL=use-connector-by-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-connector-by-id.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/hooks/use-connector-by-id.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM,KAAG,SAAS,GAAG,SAezD,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { GetConnectorsReturnType } from '@ton/appkit';
9
+ export type UseConnectorsReturnType = GetConnectorsReturnType;
10
+ export declare const useConnectors: () => UseConnectorsReturnType;
11
+ //# sourceMappingURL=use-connectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-connectors.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/hooks/use-connectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAI3D,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;AAE9D,eAAO,MAAM,aAAa,QAAO,uBAehC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { MutateFunction, MutateOptions } from '@tanstack/react-query';
9
+ import type { DisconnectData, DisconnectErrorType, DisconnectOptions, DisconnectVariables } from '@ton/appkit/queries';
10
+ import type { UseMutationReturnType } from '../../../libs/query';
11
+ export type UseDisconnectParameters<context = unknown> = DisconnectOptions<context>;
12
+ export type UseDisconnectReturnType<context = unknown> = UseMutationReturnType<DisconnectData, DisconnectErrorType, DisconnectVariables, context, (variables: DisconnectVariables, options?: MutateOptions<DisconnectData, DisconnectErrorType, DisconnectVariables, context>) => void, MutateFunction<DisconnectData, DisconnectErrorType, DisconnectVariables, context>>;
13
+ export declare const useDisconnect: <context = unknown>(parameters?: UseDisconnectParameters<context>) => UseDisconnectReturnType<context>;
14
+ //# sourceMappingURL=use-disconnect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-disconnect.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/hooks/use-disconnect.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAGvH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAEpF,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAC1E,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,EACP,CACI,SAAS,EAAE,mBAAmB,EAC9B,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,KACzF,IAAI,EACT,cAAc,CAAC,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,CACpF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,OAAO,EAC3C,aAAY,uBAAuB,CAAC,OAAO,CAAM,KAClD,uBAAuB,CAAC,OAAO,CAIjC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { GetSelectedWalletReturnType } from '@ton/appkit';
9
+ export type UseSelectedWalletReturnType = readonly [GetSelectedWalletReturnType, (walletId: string | null) => void];
10
+ /**
11
+ * Hook to get the currently selected wallet
12
+ */
13
+ export declare const useSelectedWallet: () => UseSelectedWalletReturnType;
14
+ //# sourceMappingURL=use-selected-wallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-selected-wallet.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/hooks/use-selected-wallet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAI/D,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,2BAA2B,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC;AAEpH;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,2BAwBpC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './components/connect-button';
9
+ export * from './hooks/use-connected-wallets';
10
+ export * from './hooks/use-selected-wallet';
11
+ export * from './hooks/use-address';
12
+ export * from './hooks/use-connect';
13
+ export * from './hooks/use-disconnect';
14
+ export * from './hooks/use-connectors';
15
+ export * from './hooks/use-connector-by-id';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/wallets/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,6BAA6B,CAAC;AAE5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AAEpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export type AppKitTheme = 'light' | 'dark' | string;
9
+ export declare function useAppKitTheme(): readonly [string, import("react").Dispatch<import("react").SetStateAction<string>>];
10
+ //# sourceMappingURL=use-app-kit-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-app-kit-theme.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-app-kit-theme.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,wBAAgB,cAAc,wFAS7B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare function useAppKit(): import("@ton/appkit").AppKit;
9
+ //# sourceMappingURL=use-app-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-app-kit.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-app-kit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,wBAAgB,SAAS,iCAQxB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare const useI18n: () => import("../providers/i18n-provider").I18nContextType;
9
+ //# sourceMappingURL=use-i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-i18n.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-i18n.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,eAAO,MAAM,OAAO,4DAQnB,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export { AppKitProvider } from './providers/app-kit-provider';
9
+ export { useAppKit } from './hooks/use-app-kit';
10
+ export { useAppKitTheme } from './hooks/use-app-kit-theme';
11
+ export { I18nProvider } from './providers/i18n-provider';
12
+ export { useI18n } from './hooks/use-i18n';
13
+ export * from '@ton/appkit';
14
+ export * from './components/block';
15
+ export * from './components/button';
16
+ export * from './components/circle-icon';
17
+ export * from './components/ton-icon';
18
+ export * from './features/balances';
19
+ export * from './features/jettons';
20
+ export * from './features/network';
21
+ export * from './features/nft';
22
+ export * from './features/transaction';
23
+ export * from './features/wallets';
24
+ export * from './features/swap';
25
+ export * from './features/signing';
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,cAAc,aAAa,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import rosetta from 'rosetta';
9
+ import en from '../locales/en';
10
+ export declare const i18n: rosetta.Rosetta<{
11
+ readonly wallet: {
12
+ readonly connect: "Connect";
13
+ readonly disconnect: "Disconnect";
14
+ readonly connectWallet: "Connect Wallet";
15
+ readonly noWalletsFound: "No wallets found";
16
+ };
17
+ readonly transaction: {
18
+ readonly sendTransaction: "Send Transaction";
19
+ readonly processing: "Processing...";
20
+ };
21
+ readonly balances: {
22
+ readonly sendTon: "Send {{ amount }} TON";
23
+ readonly sendJetton: "Send {{ amount }} TON";
24
+ readonly sendJettonWithAmount: "Send {{ amount }} {{ symbol }}";
25
+ };
26
+ readonly nft: {
27
+ readonly onSale: "On Sale";
28
+ };
29
+ }>;
30
+ export { en };
31
+ export declare const defaultLanguage = "en";
32
+ export type I18n = typeof i18n;
33
+ export type Dict = typeof en;
34
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/libs/i18n.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;EAAkB,CAAC;AACpC,OAAO,EAAE,EAAE,EAAE,CAAC;AACd,eAAO,MAAM,eAAe,OAAO,CAAC;AAIpC,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC;AAC/B,MAAM,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { useMutation } from '@tanstack/react-query';
9
+ import type { DefaultError, MutateFunction, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
10
+ import type { Compute, ExactPartial, UnionStrictOmit } from '@ton/appkit';
11
+ export { useMutation };
12
+ export type UseMutationParameters<data = unknown, error = Error, variables = void, context = unknown> = Compute<Omit<UseMutationOptions<data, error, Compute<variables>, context>, 'mutationFn' | 'mutationKey' | 'throwOnError'>>;
13
+ export type UseMutationReturnType<data = unknown, error = Error, variables = void, context = unknown, mutate = MutateFunction, mutateAsync = MutateFunction> = Compute<UnionStrictOmit<UseMutationResult<data, error, variables, context>, 'mutate' | 'mutateAsync'> & {
14
+ mutate: mutate;
15
+ mutateAsync: mutateAsync;
16
+ }>;
17
+ export declare function useQuery<queryFnData, error, data, queryKey extends QueryKey>(parameters: UseQueryParameters<queryFnData, error, data, queryKey> & {
18
+ queryKey: QueryKey;
19
+ }): UseQueryReturnType<data, error>;
20
+ export type UseQueryParameters<queryFnData = unknown, error = DefaultError, data = queryFnData, queryKey extends QueryKey = QueryKey> = Compute<ExactPartial<Omit<UseQueryOptions<queryFnData, error, data, queryKey>, 'initialData'>> & {
21
+ initialData?: UseQueryOptions<queryFnData, error, data, queryKey>['initialData'] | undefined;
22
+ }>;
23
+ export type UseQueryReturnType<data = unknown, error = DefaultError> = Compute<UseQueryResult<data, error> & {
24
+ queryKey: QueryKey;
25
+ }>;
26
+ //# sourceMappingURL=query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/libs/query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAiC,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EACR,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,MAAM,MAAM,qBAAqB,CAAC,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,KAAK,EAAE,SAAS,GAAG,IAAI,EAAE,OAAO,GAAG,OAAO,IAAI,OAAO,CAC3G,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC,CACpH,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAC7B,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,KAAK,EACb,SAAS,GAAG,IAAI,EAChB,OAAO,GAAG,OAAO,EACjB,MAAM,GAAG,cAAc,EACvB,WAAW,GAAG,cAAc,IAC5B,OAAO,CACP,eAAe,CAAC,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC,GAAG;IAC5F,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;CAC5B,CACJ,CAAC;AAEF,wBAAgB,QAAQ,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,SAAS,QAAQ,EACxE,UAAU,EAAE,kBAAkB,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,GAAG;IACjE,QAAQ,EAAE,QAAQ,CAAC;CACtB,GACF,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAOjC;AAED,MAAM,MAAM,kBAAkB,CAC1B,WAAW,GAAG,OAAO,EACrB,KAAK,GAAG,YAAY,EACpB,IAAI,GAAG,WAAW,EAClB,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IACpC,OAAO,CACP,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC,GAAG;IACrF,WAAW,CAAC,EAAE,eAAe,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;CAChG,CACJ,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,YAAY,IAAI,OAAO,CAC1E,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG;IAC1B,QAAQ,EAAE,QAAQ,CAAC;CACtB,CACJ,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ declare const _default: {
9
+ readonly wallet: {
10
+ readonly connect: "Connect";
11
+ readonly disconnect: "Disconnect";
12
+ readonly connectWallet: "Connect Wallet";
13
+ readonly noWalletsFound: "No wallets found";
14
+ };
15
+ readonly transaction: {
16
+ readonly sendTransaction: "Send Transaction";
17
+ readonly processing: "Processing...";
18
+ };
19
+ readonly balances: {
20
+ readonly sendTon: "Send {{ amount }} TON";
21
+ readonly sendJetton: "Send {{ amount }} TON";
22
+ readonly sendJettonWithAmount: "Send {{ amount }} {{ symbol }}";
23
+ };
24
+ readonly nft: {
25
+ readonly onSale: "On Sale";
26
+ };
27
+ };
28
+ export default _default;
29
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/locales/en.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;AAEH,wBA0BW"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { PropsWithChildren } from 'react';
9
+ import type { AppKit } from '@ton/appkit';
10
+ export declare const AppKitContext: import("react").Context<AppKit | undefined>;
11
+ export interface AppKitProviderProps extends PropsWithChildren {
12
+ appKit: AppKit;
13
+ }
14
+ export declare function AppKitProvider({ appKit, children }: AppKitProviderProps): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=app-kit-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-kit-provider.d.ts","sourceRoot":"","sources":["../../../src/providers/app-kit-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAK1C,eAAO,MAAM,aAAa,6CAA+C,CAAC;AAE1E,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAQvE"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { PropsWithChildren } from 'react';
9
+ import type { Dict, I18n } from '../libs/i18n';
10
+ export interface I18nContextType {
11
+ activeLocale: string;
12
+ t: I18n['t'];
13
+ locale: (lang: string, dict?: Dict) => void;
14
+ addDict: (lang: string, dict: Dict) => void;
15
+ }
16
+ export declare const I18nContext: import("react").Context<I18nContextType | null>;
17
+ export interface I18nProviderProps extends PropsWithChildren {
18
+ locale?: string;
19
+ lngDicts?: Record<string, Dict>;
20
+ }
21
+ export declare const I18nProvider: ({ children, locale, lngDicts }: I18nProviderProps) => import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=i18n-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-provider.d.ts","sourceRoot":"","sources":["../../../src/providers/i18n-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,WAAW,eAAe;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,WAAW,iDAA8C,CAAC;AAEvE,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,YAAY,GAAI,gCAAgC,iBAAiB,4CAsD7E,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { FC, PropsWithChildren } from 'react';
9
+ export interface TonConnectBridgeProps extends PropsWithChildren {
10
+ connectorId?: string;
11
+ }
12
+ /**
13
+ * Automatically creates TonConnectUIProvider if TonConnectConnector is found
14
+ * @param children - The children to render
15
+ * @param connectorId - The connector ID to use
16
+ * @returns The TonConnectUIProvider or the children
17
+ */
18
+ export declare const TonConnectBridge: FC<TonConnectBridgeProps>;
19
+ //# sourceMappingURL=tonconnect-bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tonconnect-bridge.d.ts","sourceRoot":"","sources":["../../../src/tonconnect/tonconnect-bridge.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOnD,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAYtD,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,79 @@
1
1
  {
2
2
  "name": "@ton/appkit-react",
3
- "version": "0.0.1-alpha.2",
4
- "description": "",
5
- "main": "index.js",
3
+ "version": "0.0.2",
4
+ "type": "module",
6
5
  "repository": {
7
6
  "type": "git",
8
7
  "url": "https://github.com/ton-connect/kit"
9
8
  },
10
- "keywords": [],
11
- "author": "",
12
- "license": "ISC",
9
+ "files": [
10
+ "dist/**",
11
+ "!dist/**/*.tsbuildinfo",
12
+ "src/**/*.ts",
13
+ "src/**/*.tsx",
14
+ "!src/**/*.test.ts",
15
+ "!src/**/*.test.tsx",
16
+ "!src/**/*.stories.tsx"
17
+ ],
18
+ "main": "./dist/esm/index.js",
19
+ "module": "./dist/esm/index.js",
20
+ "types": "./dist/types/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/types/index.d.ts",
24
+ "default": "./dist/esm/index.js"
25
+ },
26
+ "./styles.css": "./dist/esm/styles/index.css"
27
+ },
28
+ "dependencies": {
29
+ "clsx": "2.1.1",
30
+ "radix-ui": "^1.4.3",
31
+ "rosetta": "1.1.0",
32
+ "@ton/appkit": "0.0.1"
33
+ },
34
+ "devDependencies": {
35
+ "@storybook/addon-docs": "10.2.8",
36
+ "@storybook/react": "10.2.8",
37
+ "@storybook/react-vite": "10.2.8",
38
+ "@storybook/test": "^8.6.15",
39
+ "@tanstack/react-query": "5.90.20",
40
+ "@tonconnect/ui-react": "2.4.1",
41
+ "@types/react": "19.2.8",
42
+ "@types/react-dom": "19.2.3",
43
+ "react": "19.2.3",
44
+ "react-dom": "19.2.3",
45
+ "storybook": "10.2.8",
46
+ "tsup": "^8.5.1",
47
+ "typescript": "^5.9.2",
48
+ "vite": "^7.3.1",
49
+ "vite-plugin-node-polyfills": "^0.25.0"
50
+ },
51
+ "peerDependencies": {
52
+ "@tanstack/react-query": ">=5.0.0",
53
+ "@tonconnect/ui": ">=2.4.1",
54
+ "@tonconnect/ui-react": ">=2.4.1",
55
+ "react": ">=18.0.0",
56
+ "react-dom": ">=18.0.0"
57
+ },
58
+ "peerDependenciesMeta": {
59
+ "@tonconnect/ui": {
60
+ "optional": true
61
+ },
62
+ "@tonconnect/ui-react": {
63
+ "optional": true
64
+ }
65
+ },
66
+ "sideEffects": [
67
+ "*.css"
68
+ ],
13
69
  "scripts": {
14
- "test": "echo \"Error: no test specified\" && exit 1"
70
+ "build": "pnpm run build:esm+types && pnpm run copy:css",
71
+ "build:esm+types": "tsc --project tsconfig.build.json --outDir dist/esm --declarationDir dist/types",
72
+ "copy:css": "rsync -zarv --include='*/' --include='*.css' --exclude='*' src/ dist/esm/",
73
+ "dev": "tsup --watch",
74
+ "clean": "git clean -xdf .turbo dist node_modules",
75
+ "typecheck": "tsc --noEmit",
76
+ "storybook": "storybook dev -p 6006",
77
+ "build-storybook": "storybook build"
15
78
  }
16
79
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import type { FC, ComponentProps } from 'react';
10
+ import clsx from 'clsx';
11
+
12
+ import styles from './block.module.css';
13
+
14
+ export interface BlockProps extends ComponentProps<'div'> {
15
+ direction?: 'row' | 'column';
16
+ }
17
+
18
+ export const Block: FC<BlockProps> = ({ className, direction = 'column', ...props }) => {
19
+ return <div className={clsx(styles.block, direction === 'row' && styles.row, className)} {...props} />;
20
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ export * from './block';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import type { FC, ComponentProps } from 'react';
10
+ import clsx from 'clsx';
11
+
12
+ import styles from './button.module.css';
13
+
14
+ export const Button: FC<ComponentProps<'button'>> = ({ className, ...props }) => {
15
+ return <button className={clsx(styles.button, className)} {...props} />;
16
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ export { Button } from './button';