@ton/appkit-react 0.0.1-alpha.1 → 0.0.1

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 (498) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +199 -3
  3. package/dist/components/block/block.d.ts +13 -0
  4. package/dist/components/block/block.d.ts.map +1 -0
  5. package/dist/components/block/block.js +18 -0
  6. package/dist/components/block/block.js.map +1 -0
  7. package/dist/components/block/block.mjs +11 -0
  8. package/dist/components/block/block.mjs.map +1 -0
  9. package/dist/components/block/block.module.css +13 -0
  10. package/dist/components/block/block.module.css.map +1 -0
  11. package/dist/components/block/block.stories.d.ts +15 -0
  12. package/dist/components/block/block.stories.d.ts.map +1 -0
  13. package/dist/components/block/block.stories.js +45 -0
  14. package/dist/components/block/block.stories.js.map +1 -0
  15. package/dist/components/block/block.stories.mjs +39 -0
  16. package/dist/components/block/block.stories.mjs.map +1 -0
  17. package/dist/components/block/index.d.ts +9 -0
  18. package/dist/components/block/index.d.ts.map +1 -0
  19. package/dist/components/block/index.js +14 -0
  20. package/dist/components/block/index.js.map +1 -0
  21. package/dist/components/block/index.mjs +3 -0
  22. package/dist/components/block/index.mjs.map +1 -0
  23. package/dist/components/button/button.d.ts +10 -0
  24. package/dist/components/button/button.d.ts.map +1 -0
  25. package/dist/components/button/button.js +18 -0
  26. package/dist/components/button/button.js.map +1 -0
  27. package/dist/components/button/button.mjs +11 -0
  28. package/dist/components/button/button.mjs.map +1 -0
  29. package/dist/components/button/button.module.css +33 -0
  30. package/dist/components/button/button.module.css.map +1 -0
  31. package/dist/components/button/button.stories.d.ts +16 -0
  32. package/dist/components/button/button.stories.d.ts.map +1 -0
  33. package/dist/components/button/button.stories.js +53 -0
  34. package/dist/components/button/button.stories.js.map +1 -0
  35. package/dist/components/button/button.stories.mjs +46 -0
  36. package/dist/components/button/button.stories.mjs.map +1 -0
  37. package/dist/components/button/index.d.ts +9 -0
  38. package/dist/components/button/index.d.ts.map +1 -0
  39. package/dist/components/button/index.js +12 -0
  40. package/dist/components/button/index.js.map +1 -0
  41. package/dist/components/button/index.mjs +3 -0
  42. package/dist/components/button/index.mjs.map +1 -0
  43. package/dist/components/circle-icon/circle-icon.d.ts +16 -0
  44. package/dist/components/circle-icon/circle-icon.d.ts.map +1 -0
  45. package/dist/components/circle-icon/circle-icon.js +22 -0
  46. package/dist/components/circle-icon/circle-icon.js.map +1 -0
  47. package/dist/components/circle-icon/circle-icon.mjs +15 -0
  48. package/dist/components/circle-icon/circle-icon.mjs.map +1 -0
  49. package/dist/components/circle-icon/circle-icon.module.css +31 -0
  50. package/dist/components/circle-icon/circle-icon.module.css.map +1 -0
  51. package/dist/components/circle-icon/circle-icon.stories.d.ts +18 -0
  52. package/dist/components/circle-icon/circle-icon.stories.d.ts.map +1 -0
  53. package/dist/components/circle-icon/circle-icon.stories.js +62 -0
  54. package/dist/components/circle-icon/circle-icon.stories.js.map +1 -0
  55. package/dist/components/circle-icon/circle-icon.stories.mjs +53 -0
  56. package/dist/components/circle-icon/circle-icon.stories.mjs.map +1 -0
  57. package/dist/components/circle-icon/index.d.ts +9 -0
  58. package/dist/components/circle-icon/index.d.ts.map +1 -0
  59. package/dist/components/circle-icon/index.js +14 -0
  60. package/dist/components/circle-icon/index.js.map +1 -0
  61. package/dist/components/circle-icon/index.mjs +3 -0
  62. package/dist/components/circle-icon/index.mjs.map +1 -0
  63. package/dist/components/ton-icon/index.d.ts +9 -0
  64. package/dist/components/ton-icon/index.d.ts.map +1 -0
  65. package/dist/components/ton-icon/index.js +16 -0
  66. package/dist/components/ton-icon/index.js.map +1 -0
  67. package/dist/components/ton-icon/index.mjs +3 -0
  68. package/dist/components/ton-icon/index.mjs.map +1 -0
  69. package/dist/components/ton-icon/ton-icon.d.ts +14 -0
  70. package/dist/components/ton-icon/ton-icon.d.ts.map +1 -0
  71. package/dist/components/ton-icon/ton-icon.js +39 -0
  72. package/dist/components/ton-icon/ton-icon.js.map +1 -0
  73. package/dist/components/ton-icon/ton-icon.mjs +36 -0
  74. package/dist/components/ton-icon/ton-icon.mjs.map +1 -0
  75. package/dist/components/ton-icon/ton-icon.stories.d.ts +20 -0
  76. package/dist/components/ton-icon/ton-icon.stories.d.ts.map +1 -0
  77. package/dist/components/ton-icon/ton-icon.stories.js +71 -0
  78. package/dist/components/ton-icon/ton-icon.stories.js.map +1 -0
  79. package/dist/components/ton-icon/ton-icon.stories.mjs +60 -0
  80. package/dist/components/ton-icon/ton-icon.stories.mjs.map +1 -0
  81. package/dist/features/balances/components/balance-badge/balance-badge.d.ts +21 -0
  82. package/dist/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
  83. package/dist/features/balances/components/balance-badge/balance-badge.js +41 -0
  84. package/dist/features/balances/components/balance-badge/balance-badge.js.map +1 -0
  85. package/dist/features/balances/components/balance-badge/balance-badge.mjs +34 -0
  86. package/dist/features/balances/components/balance-badge/balance-badge.mjs.map +1 -0
  87. package/dist/features/balances/components/balance-badge/balance-badge.module.css +19 -0
  88. package/dist/features/balances/components/balance-badge/balance-badge.module.css.map +1 -0
  89. package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts +16 -0
  90. package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +1 -0
  91. package/dist/features/balances/components/balance-badge/balance-badge.stories.js +59 -0
  92. package/dist/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
  93. package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs +51 -0
  94. package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs.map +1 -0
  95. package/dist/features/balances/components/balance-badge/index.d.ts +9 -0
  96. package/dist/features/balances/components/balance-badge/index.d.ts.map +1 -0
  97. package/dist/features/balances/components/balance-badge/index.js +12 -0
  98. package/dist/features/balances/components/balance-badge/index.js.map +1 -0
  99. package/dist/features/balances/components/balance-badge/index.mjs +3 -0
  100. package/dist/features/balances/components/balance-badge/index.mjs.map +1 -0
  101. package/dist/features/balances/components/currency-item/currency-item.d.ts +17 -0
  102. package/dist/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
  103. package/dist/features/balances/components/currency-item/currency-item.js +44 -0
  104. package/dist/features/balances/components/currency-item/currency-item.js.map +1 -0
  105. package/dist/features/balances/components/currency-item/currency-item.mjs +37 -0
  106. package/dist/features/balances/components/currency-item/currency-item.mjs.map +1 -0
  107. package/dist/features/balances/components/currency-item/currency-item.module.css +69 -0
  108. package/dist/features/balances/components/currency-item/currency-item.module.css.map +1 -0
  109. package/dist/features/balances/components/currency-item/currency-item.stories.d.ts +19 -0
  110. package/dist/features/balances/components/currency-item/currency-item.stories.d.ts.map +1 -0
  111. package/dist/features/balances/components/currency-item/currency-item.stories.js +89 -0
  112. package/dist/features/balances/components/currency-item/currency-item.stories.js.map +1 -0
  113. package/dist/features/balances/components/currency-item/currency-item.stories.mjs +79 -0
  114. package/dist/features/balances/components/currency-item/currency-item.stories.mjs.map +1 -0
  115. package/dist/features/balances/components/currency-item/index.d.ts +9 -0
  116. package/dist/features/balances/components/currency-item/index.d.ts.map +1 -0
  117. package/dist/features/balances/components/currency-item/index.js +14 -0
  118. package/dist/features/balances/components/currency-item/index.js.map +1 -0
  119. package/dist/features/balances/components/currency-item/index.mjs +3 -0
  120. package/dist/features/balances/components/currency-item/index.mjs.map +1 -0
  121. package/dist/features/balances/components/send-jetton-button/index.d.ts +9 -0
  122. package/dist/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
  123. package/dist/features/balances/components/send-jetton-button/index.js +14 -0
  124. package/dist/features/balances/components/send-jetton-button/index.js.map +1 -0
  125. package/dist/features/balances/components/send-jetton-button/index.mjs +3 -0
  126. package/dist/features/balances/components/send-jetton-button/index.mjs.map +1 -0
  127. package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts +21 -0
  128. package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
  129. package/dist/features/balances/components/send-jetton-button/send-jetton-button.js +56 -0
  130. package/dist/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
  131. package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs +54 -0
  132. package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs.map +1 -0
  133. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +22 -0
  134. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +1 -0
  135. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js +58 -0
  136. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +1 -0
  137. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs +49 -0
  138. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs.map +1 -0
  139. package/dist/features/balances/components/send-ton-button/index.d.ts +9 -0
  140. package/dist/features/balances/components/send-ton-button/index.d.ts.map +1 -0
  141. package/dist/features/balances/components/send-ton-button/index.js +14 -0
  142. package/dist/features/balances/components/send-ton-button/index.js.map +1 -0
  143. package/dist/features/balances/components/send-ton-button/index.mjs +3 -0
  144. package/dist/features/balances/components/send-ton-button/index.mjs.map +1 -0
  145. package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts +16 -0
  146. package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
  147. package/dist/features/balances/components/send-ton-button/send-ton-button.js +33 -0
  148. package/dist/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
  149. package/dist/features/balances/components/send-ton-button/send-ton-button.mjs +31 -0
  150. package/dist/features/balances/components/send-ton-button/send-ton-button.mjs.map +1 -0
  151. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +21 -0
  152. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +1 -0
  153. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js +52 -0
  154. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js.map +1 -0
  155. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs +44 -0
  156. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs.map +1 -0
  157. package/dist/features/balances/hooks/use-balance-by-address.d.ts +16 -0
  158. package/dist/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
  159. package/dist/features/balances/hooks/use-balance-by-address.js +14 -0
  160. package/dist/features/balances/hooks/use-balance-by-address.js.map +1 -0
  161. package/dist/features/balances/hooks/use-balance-by-address.mjs +12 -0
  162. package/dist/features/balances/hooks/use-balance-by-address.mjs.map +1 -0
  163. package/dist/features/balances/hooks/use-balance.d.ts +16 -0
  164. package/dist/features/balances/hooks/use-balance.d.ts.map +1 -0
  165. package/dist/features/balances/hooks/use-balance.js +13 -0
  166. package/dist/features/balances/hooks/use-balance.js.map +1 -0
  167. package/dist/features/balances/hooks/use-balance.mjs +11 -0
  168. package/dist/features/balances/hooks/use-balance.mjs.map +1 -0
  169. package/dist/features/balances/index.d.ts +14 -0
  170. package/dist/features/balances/index.d.ts.map +1 -0
  171. package/dist/features/balances/index.js +49 -0
  172. package/dist/features/balances/index.js.map +1 -0
  173. package/dist/features/balances/index.mjs +8 -0
  174. package/dist/features/balances/index.mjs.map +1 -0
  175. package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts +16 -0
  176. package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
  177. package/dist/features/jettons/hooks/use-jetton-balance-by-address.js +14 -0
  178. package/dist/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
  179. package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs +12 -0
  180. package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs.map +1 -0
  181. package/dist/features/jettons/hooks/use-jetton-info.d.ts +16 -0
  182. package/dist/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
  183. package/dist/features/jettons/hooks/use-jetton-info.js +14 -0
  184. package/dist/features/jettons/hooks/use-jetton-info.js.map +1 -0
  185. package/dist/features/jettons/hooks/use-jetton-info.mjs +12 -0
  186. package/dist/features/jettons/hooks/use-jetton-info.mjs.map +1 -0
  187. package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts +16 -0
  188. package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
  189. package/dist/features/jettons/hooks/use-jetton-wallet-address.js +14 -0
  190. package/dist/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
  191. package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs +12 -0
  192. package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs.map +1 -0
  193. package/dist/features/jettons/hooks/use-jettons-by-address.d.ts +16 -0
  194. package/dist/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
  195. package/dist/features/jettons/hooks/use-jettons-by-address.js +14 -0
  196. package/dist/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
  197. package/dist/features/jettons/hooks/use-jettons-by-address.mjs +12 -0
  198. package/dist/features/jettons/hooks/use-jettons-by-address.mjs.map +1 -0
  199. package/dist/features/jettons/hooks/use-jettons.d.ts +16 -0
  200. package/dist/features/jettons/hooks/use-jettons.d.ts.map +1 -0
  201. package/dist/features/jettons/hooks/use-jettons.js +13 -0
  202. package/dist/features/jettons/hooks/use-jettons.js.map +1 -0
  203. package/dist/features/jettons/hooks/use-jettons.mjs +11 -0
  204. package/dist/features/jettons/hooks/use-jettons.mjs.map +1 -0
  205. package/dist/features/jettons/hooks/use-transfer-jetton.d.ts +14 -0
  206. package/dist/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
  207. package/dist/features/jettons/hooks/use-transfer-jetton.js +14 -0
  208. package/dist/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
  209. package/dist/features/jettons/hooks/use-transfer-jetton.mjs +12 -0
  210. package/dist/features/jettons/hooks/use-transfer-jetton.mjs.map +1 -0
  211. package/dist/features/jettons/index.d.ts +14 -0
  212. package/dist/features/jettons/index.d.ts.map +1 -0
  213. package/dist/features/jettons/index.js +49 -0
  214. package/dist/features/jettons/index.js.map +1 -0
  215. package/dist/features/jettons/index.mjs +8 -0
  216. package/dist/features/jettons/index.mjs.map +1 -0
  217. package/dist/features/network/hooks/use-network.d.ts +14 -0
  218. package/dist/features/network/hooks/use-network.d.ts.map +1 -0
  219. package/dist/features/network/hooks/use-network.js +13 -0
  220. package/dist/features/network/hooks/use-network.js.map +1 -0
  221. package/dist/features/network/hooks/use-network.mjs +11 -0
  222. package/dist/features/network/hooks/use-network.mjs.map +1 -0
  223. package/dist/features/network/hooks/use-networks.d.ts +14 -0
  224. package/dist/features/network/hooks/use-networks.d.ts.map +1 -0
  225. package/dist/features/network/hooks/use-networks.js +23 -0
  226. package/dist/features/network/hooks/use-networks.js.map +1 -0
  227. package/dist/features/network/hooks/use-networks.mjs +21 -0
  228. package/dist/features/network/hooks/use-networks.mjs.map +1 -0
  229. package/dist/features/network/index.d.ts +10 -0
  230. package/dist/features/network/index.d.ts.map +1 -0
  231. package/dist/features/network/index.js +17 -0
  232. package/dist/features/network/index.js.map +1 -0
  233. package/dist/features/network/index.mjs +4 -0
  234. package/dist/features/network/index.mjs.map +1 -0
  235. package/dist/features/nft/components/nft-item/index.d.ts +9 -0
  236. package/dist/features/nft/components/nft-item/index.d.ts.map +1 -0
  237. package/dist/features/nft/components/nft-item/index.js +14 -0
  238. package/dist/features/nft/components/nft-item/index.js.map +1 -0
  239. package/dist/features/nft/components/nft-item/index.mjs +3 -0
  240. package/dist/features/nft/components/nft-item/index.mjs.map +1 -0
  241. package/dist/features/nft/components/nft-item/nft-item.d.ts +14 -0
  242. package/dist/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
  243. package/dist/features/nft/components/nft-item/nft-item.js +43 -0
  244. package/dist/features/nft/components/nft-item/nft-item.js.map +1 -0
  245. package/dist/features/nft/components/nft-item/nft-item.mjs +36 -0
  246. package/dist/features/nft/components/nft-item/nft-item.mjs.map +1 -0
  247. package/dist/features/nft/components/nft-item/nft-item.module.css +65 -0
  248. package/dist/features/nft/components/nft-item/nft-item.module.css.map +1 -0
  249. package/dist/features/nft/components/nft-item/nft-item.stories.d.ts +25 -0
  250. package/dist/features/nft/components/nft-item/nft-item.stories.d.ts.map +1 -0
  251. package/dist/features/nft/components/nft-item/nft-item.stories.js +124 -0
  252. package/dist/features/nft/components/nft-item/nft-item.stories.js.map +1 -0
  253. package/dist/features/nft/components/nft-item/nft-item.stories.mjs +110 -0
  254. package/dist/features/nft/components/nft-item/nft-item.stories.mjs.map +1 -0
  255. package/dist/features/nft/hooks/use-nft.d.ts +16 -0
  256. package/dist/features/nft/hooks/use-nft.d.ts.map +1 -0
  257. package/dist/features/nft/hooks/use-nft.js +14 -0
  258. package/dist/features/nft/hooks/use-nft.js.map +1 -0
  259. package/dist/features/nft/hooks/use-nft.mjs +12 -0
  260. package/dist/features/nft/hooks/use-nft.mjs.map +1 -0
  261. package/dist/features/nft/hooks/use-nfts-by-address.d.ts +16 -0
  262. package/dist/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
  263. package/dist/features/nft/hooks/use-nfts-by-address.js +14 -0
  264. package/dist/features/nft/hooks/use-nfts-by-address.js.map +1 -0
  265. package/dist/features/nft/hooks/use-nfts-by-address.mjs +12 -0
  266. package/dist/features/nft/hooks/use-nfts-by-address.mjs.map +1 -0
  267. package/dist/features/nft/hooks/use-nfts.d.ts +16 -0
  268. package/dist/features/nft/hooks/use-nfts.d.ts.map +1 -0
  269. package/dist/features/nft/hooks/use-nfts.js +13 -0
  270. package/dist/features/nft/hooks/use-nfts.js.map +1 -0
  271. package/dist/features/nft/hooks/use-nfts.mjs +11 -0
  272. package/dist/features/nft/hooks/use-nfts.mjs.map +1 -0
  273. package/dist/features/nft/hooks/use-transfer-nft.d.ts +14 -0
  274. package/dist/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
  275. package/dist/features/nft/hooks/use-transfer-nft.js +14 -0
  276. package/dist/features/nft/hooks/use-transfer-nft.js.map +1 -0
  277. package/dist/features/nft/hooks/use-transfer-nft.mjs +12 -0
  278. package/dist/features/nft/hooks/use-transfer-nft.mjs.map +1 -0
  279. package/dist/features/nft/index.d.ts +13 -0
  280. package/dist/features/nft/index.d.ts.map +1 -0
  281. package/dist/features/nft/index.js +42 -0
  282. package/dist/features/nft/index.js.map +1 -0
  283. package/dist/features/nft/index.mjs +7 -0
  284. package/dist/features/nft/index.mjs.map +1 -0
  285. package/dist/features/signing/hooks/use-sign-binary.d.ts +25 -0
  286. package/dist/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
  287. package/dist/features/signing/hooks/use-sign-binary.js +14 -0
  288. package/dist/features/signing/hooks/use-sign-binary.js.map +1 -0
  289. package/dist/features/signing/hooks/use-sign-binary.mjs +12 -0
  290. package/dist/features/signing/hooks/use-sign-binary.mjs.map +1 -0
  291. package/dist/features/signing/hooks/use-sign-cell.d.ts +26 -0
  292. package/dist/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
  293. package/dist/features/signing/hooks/use-sign-cell.js +14 -0
  294. package/dist/features/signing/hooks/use-sign-cell.js.map +1 -0
  295. package/dist/features/signing/hooks/use-sign-cell.mjs +12 -0
  296. package/dist/features/signing/hooks/use-sign-cell.mjs.map +1 -0
  297. package/dist/features/signing/hooks/use-sign-text.d.ts +25 -0
  298. package/dist/features/signing/hooks/use-sign-text.d.ts.map +1 -0
  299. package/dist/features/signing/hooks/use-sign-text.js +14 -0
  300. package/dist/features/signing/hooks/use-sign-text.js.map +1 -0
  301. package/dist/features/signing/hooks/use-sign-text.mjs +12 -0
  302. package/dist/features/signing/hooks/use-sign-text.mjs.map +1 -0
  303. package/dist/features/signing/index.d.ts +11 -0
  304. package/dist/features/signing/index.d.ts.map +1 -0
  305. package/dist/features/signing/index.js +28 -0
  306. package/dist/features/signing/index.js.map +1 -0
  307. package/dist/features/signing/index.mjs +5 -0
  308. package/dist/features/signing/index.mjs.map +1 -0
  309. package/dist/features/swap/hooks/use-build-swap-transaction.d.ts +13 -0
  310. package/dist/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
  311. package/dist/features/swap/hooks/use-build-swap-transaction.js +14 -0
  312. package/dist/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
  313. package/dist/features/swap/hooks/use-build-swap-transaction.mjs +12 -0
  314. package/dist/features/swap/hooks/use-build-swap-transaction.mjs.map +1 -0
  315. package/dist/features/swap/hooks/use-swap-quote.d.ts +13 -0
  316. package/dist/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
  317. package/dist/features/swap/hooks/use-swap-quote.js +14 -0
  318. package/dist/features/swap/hooks/use-swap-quote.js.map +1 -0
  319. package/dist/features/swap/hooks/use-swap-quote.mjs +12 -0
  320. package/dist/features/swap/hooks/use-swap-quote.mjs.map +1 -0
  321. package/dist/features/swap/index.d.ts +10 -0
  322. package/dist/features/swap/index.d.ts.map +1 -0
  323. package/dist/features/swap/index.js +21 -0
  324. package/dist/features/swap/index.js.map +1 -0
  325. package/dist/features/swap/index.mjs +4 -0
  326. package/dist/features/swap/index.mjs.map +1 -0
  327. package/dist/features/transaction/components/transaction/index.d.ts +10 -0
  328. package/dist/features/transaction/components/transaction/index.d.ts.map +1 -0
  329. package/dist/features/transaction/components/transaction/index.js +12 -0
  330. package/dist/features/transaction/components/transaction/index.js.map +1 -0
  331. package/dist/features/transaction/components/transaction/index.mjs +3 -0
  332. package/dist/features/transaction/components/transaction/index.mjs.map +1 -0
  333. package/dist/features/transaction/components/transaction/transaction.d.ts +30 -0
  334. package/dist/features/transaction/components/transaction/transaction.d.ts.map +1 -0
  335. package/dist/features/transaction/components/transaction/transaction.js +49 -0
  336. package/dist/features/transaction/components/transaction/transaction.js.map +1 -0
  337. package/dist/features/transaction/components/transaction/transaction.mjs +47 -0
  338. package/dist/features/transaction/components/transaction/transaction.mjs.map +1 -0
  339. package/dist/features/transaction/components/transaction/transaction.stories.d.ts +23 -0
  340. package/dist/features/transaction/components/transaction/transaction.stories.d.ts.map +1 -0
  341. package/dist/features/transaction/components/transaction/transaction.stories.js +64 -0
  342. package/dist/features/transaction/components/transaction/transaction.stories.js.map +1 -0
  343. package/dist/features/transaction/components/transaction/transaction.stories.mjs +54 -0
  344. package/dist/features/transaction/components/transaction/transaction.stories.mjs.map +1 -0
  345. package/dist/features/transaction/components/transaction-provider/index.d.ts +10 -0
  346. package/dist/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
  347. package/dist/features/transaction/components/transaction-provider/index.js +20 -0
  348. package/dist/features/transaction/components/transaction-provider/index.js.map +1 -0
  349. package/dist/features/transaction/components/transaction-provider/index.mjs +3 -0
  350. package/dist/features/transaction/components/transaction-provider/index.mjs.map +1 -0
  351. package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts +36 -0
  352. package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
  353. package/dist/features/transaction/components/transaction-provider/transaction-provider.js +76 -0
  354. package/dist/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
  355. package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs +72 -0
  356. package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs.map +1 -0
  357. package/dist/features/transaction/hooks/use-send-transaction.d.ts +14 -0
  358. package/dist/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
  359. package/dist/features/transaction/hooks/use-send-transaction.js +14 -0
  360. package/dist/features/transaction/hooks/use-send-transaction.js.map +1 -0
  361. package/dist/features/transaction/hooks/use-send-transaction.mjs +12 -0
  362. package/dist/features/transaction/hooks/use-send-transaction.mjs.map +1 -0
  363. package/dist/features/transaction/hooks/use-transfer-ton.d.ts +14 -0
  364. package/dist/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
  365. package/dist/features/transaction/hooks/use-transfer-ton.js +14 -0
  366. package/dist/features/transaction/hooks/use-transfer-ton.js.map +1 -0
  367. package/dist/features/transaction/hooks/use-transfer-ton.mjs +12 -0
  368. package/dist/features/transaction/hooks/use-transfer-ton.mjs.map +1 -0
  369. package/dist/features/transaction/index.d.ts +11 -0
  370. package/dist/features/transaction/index.d.ts.map +1 -0
  371. package/dist/features/transaction/index.js +28 -0
  372. package/dist/features/transaction/index.js.map +1 -0
  373. package/dist/features/transaction/index.mjs +5 -0
  374. package/dist/features/transaction/index.mjs.map +1 -0
  375. package/dist/features/wallets/components/connect-button/index.d.ts +9 -0
  376. package/dist/features/wallets/components/connect-button/index.d.ts.map +1 -0
  377. package/dist/features/wallets/components/connect-button/index.js +12 -0
  378. package/dist/features/wallets/components/connect-button/index.js.map +1 -0
  379. package/dist/features/wallets/components/connect-button/index.mjs +3 -0
  380. package/dist/features/wallets/components/connect-button/index.mjs.map +1 -0
  381. package/dist/features/wallets/hooks/use-address.d.ts +13 -0
  382. package/dist/features/wallets/hooks/use-address.d.ts.map +1 -0
  383. package/dist/features/wallets/hooks/use-address.js +13 -0
  384. package/dist/features/wallets/hooks/use-address.js.map +1 -0
  385. package/dist/features/wallets/hooks/use-address.mjs +11 -0
  386. package/dist/features/wallets/hooks/use-address.mjs.map +1 -0
  387. package/dist/features/wallets/hooks/use-connect.d.ts +14 -0
  388. package/dist/features/wallets/hooks/use-connect.d.ts.map +1 -0
  389. package/dist/features/wallets/hooks/use-connect.js +14 -0
  390. package/dist/features/wallets/hooks/use-connect.js.map +1 -0
  391. package/dist/features/wallets/hooks/use-connect.mjs +12 -0
  392. package/dist/features/wallets/hooks/use-connect.mjs.map +1 -0
  393. package/dist/features/wallets/hooks/use-connected-wallets.d.ts +11 -0
  394. package/dist/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
  395. package/dist/features/wallets/hooks/use-connected-wallets.js +23 -0
  396. package/dist/features/wallets/hooks/use-connected-wallets.js.map +1 -0
  397. package/dist/features/wallets/hooks/use-connected-wallets.mjs +21 -0
  398. package/dist/features/wallets/hooks/use-connected-wallets.mjs.map +1 -0
  399. package/dist/features/wallets/hooks/use-connector-by-id.d.ts +10 -0
  400. package/dist/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
  401. package/dist/features/wallets/hooks/use-connector-by-id.js +23 -0
  402. package/dist/features/wallets/hooks/use-connector-by-id.js.map +1 -0
  403. package/dist/features/wallets/hooks/use-connector-by-id.mjs +21 -0
  404. package/dist/features/wallets/hooks/use-connector-by-id.mjs.map +1 -0
  405. package/dist/features/wallets/hooks/use-connectors.d.ts +11 -0
  406. package/dist/features/wallets/hooks/use-connectors.d.ts.map +1 -0
  407. package/dist/features/wallets/hooks/use-connectors.js +23 -0
  408. package/dist/features/wallets/hooks/use-connectors.js.map +1 -0
  409. package/dist/features/wallets/hooks/use-connectors.mjs +21 -0
  410. package/dist/features/wallets/hooks/use-connectors.mjs.map +1 -0
  411. package/dist/features/wallets/hooks/use-disconnect.d.ts +14 -0
  412. package/dist/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
  413. package/dist/features/wallets/hooks/use-disconnect.js +14 -0
  414. package/dist/features/wallets/hooks/use-disconnect.js.map +1 -0
  415. package/dist/features/wallets/hooks/use-disconnect.mjs +12 -0
  416. package/dist/features/wallets/hooks/use-disconnect.mjs.map +1 -0
  417. package/dist/features/wallets/hooks/use-selected-wallet.d.ts +14 -0
  418. package/dist/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
  419. package/dist/features/wallets/hooks/use-selected-wallet.js +30 -0
  420. package/dist/features/wallets/hooks/use-selected-wallet.js.map +1 -0
  421. package/dist/features/wallets/hooks/use-selected-wallet.mjs +28 -0
  422. package/dist/features/wallets/hooks/use-selected-wallet.mjs.map +1 -0
  423. package/dist/features/wallets/index.d.ts +16 -0
  424. package/dist/features/wallets/index.d.ts.map +1 -0
  425. package/dist/features/wallets/index.js +63 -0
  426. package/dist/features/wallets/index.js.map +1 -0
  427. package/dist/features/wallets/index.mjs +10 -0
  428. package/dist/features/wallets/index.mjs.map +1 -0
  429. package/dist/global.d.js +4 -0
  430. package/dist/global.d.js.map +1 -0
  431. package/dist/global.d.mjs +3 -0
  432. package/dist/global.d.mjs.map +1 -0
  433. package/dist/hooks/use-app-kit-theme.d.ts +10 -0
  434. package/dist/hooks/use-app-kit-theme.d.ts.map +1 -0
  435. package/dist/hooks/use-app-kit-theme.js +16 -0
  436. package/dist/hooks/use-app-kit-theme.js.map +1 -0
  437. package/dist/hooks/use-app-kit-theme.mjs +14 -0
  438. package/dist/hooks/use-app-kit-theme.mjs.map +1 -0
  439. package/dist/hooks/use-app-kit.d.ts +9 -0
  440. package/dist/hooks/use-app-kit.d.ts.map +1 -0
  441. package/dist/hooks/use-app-kit.js +16 -0
  442. package/dist/hooks/use-app-kit.js.map +1 -0
  443. package/dist/hooks/use-app-kit.mjs +14 -0
  444. package/dist/hooks/use-app-kit.mjs.map +1 -0
  445. package/dist/hooks/use-i18n.d.ts +9 -0
  446. package/dist/hooks/use-i18n.d.ts.map +1 -0
  447. package/dist/hooks/use-i18n.js +16 -0
  448. package/dist/hooks/use-i18n.js.map +1 -0
  449. package/dist/hooks/use-i18n.mjs +14 -0
  450. package/dist/hooks/use-i18n.mjs.map +1 -0
  451. package/dist/index.d.ts +26 -0
  452. package/dist/index.d.ts.map +1 -0
  453. package/dist/index.js +123 -0
  454. package/dist/index.js.map +1 -0
  455. package/dist/index.mjs +20 -0
  456. package/dist/index.mjs.map +1 -0
  457. package/dist/libs/i18n.d.ts +34 -0
  458. package/dist/libs/i18n.d.ts.map +1 -0
  459. package/dist/libs/i18n.js +22 -0
  460. package/dist/libs/i18n.js.map +1 -0
  461. package/dist/libs/i18n.mjs +11 -0
  462. package/dist/libs/i18n.mjs.map +1 -0
  463. package/dist/libs/query.d.ts +26 -0
  464. package/dist/libs/query.d.ts.map +1 -0
  465. package/dist/libs/query.js +20 -0
  466. package/dist/libs/query.js.map +1 -0
  467. package/dist/libs/query.mjs +15 -0
  468. package/dist/libs/query.mjs.map +1 -0
  469. package/dist/locales/en.d.ts +29 -0
  470. package/dist/locales/en.d.ts.map +1 -0
  471. package/dist/locales/en.js +30 -0
  472. package/dist/locales/en.js.map +1 -0
  473. package/dist/locales/en.mjs +28 -0
  474. package/dist/locales/en.mjs.map +1 -0
  475. package/dist/providers/app-kit-provider.d.ts +15 -0
  476. package/dist/providers/app-kit-provider.d.ts.map +1 -0
  477. package/dist/providers/app-kit-provider.js +16 -0
  478. package/dist/providers/app-kit-provider.js.map +1 -0
  479. package/dist/providers/app-kit-provider.mjs +13 -0
  480. package/dist/providers/app-kit-provider.mjs.map +1 -0
  481. package/dist/providers/i18n-provider.d.ts +22 -0
  482. package/dist/providers/i18n-provider.d.ts.map +1 -0
  483. package/dist/providers/i18n-provider.js +55 -0
  484. package/dist/providers/i18n-provider.js.map +1 -0
  485. package/dist/providers/i18n-provider.mjs +52 -0
  486. package/dist/providers/i18n-provider.mjs.map +1 -0
  487. package/dist/styles/index.css +73 -0
  488. package/dist/styles/index.css.map +1 -0
  489. package/dist/styles/typography.module.css +79 -0
  490. package/dist/styles/typography.module.css.map +1 -0
  491. package/dist/tonconnect/tonconnect-bridge.d.ts +19 -0
  492. package/dist/tonconnect/tonconnect-bridge.d.ts.map +1 -0
  493. package/dist/tonconnect/tonconnect-bridge.js +23 -0
  494. package/dist/tonconnect/tonconnect-bridge.js.map +1 -0
  495. package/dist/tonconnect/tonconnect-bridge.mjs +21 -0
  496. package/dist/tonconnect/tonconnect-bridge.mjs.map +1 -0
  497. package/package.json +68 -9
  498. package/index.js +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 TonTech
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,13 +1,209 @@
1
1
  # @ton/appkit-react
2
2
 
3
- > TON AppKit React React bindings for TON AppKit
3
+ React components and hooks for AppKit.
4
4
 
5
- This package is under active development. Stay tuned for updates.
5
+ ## Overview
6
+
7
+ - [Initialization](#initialization)
8
+ - [Basic Usage](#basic-usage)
9
+ - [Swap](#swap)
10
+ - [Creating a Swap Provider](./docs/creating-swap-provider.md): Implement your own swap provider for any DEX or protocol.
11
+ - [Hooks](./docs/hooks.md): React hooks for wallet connection, state, and data fetching.
12
+ - [Components](./docs/components.md): UI components for AppKit.
6
13
 
7
14
  ## Installation
8
15
 
9
16
  ```bash
10
- npm install @ton/appkit-react
17
+ npm install @ton/appkit-react @tanstack/react-query @tonconnect/ui-react @ton/core @ton/crypto
18
+ ```
19
+
20
+ ## Dependencies
21
+
22
+ `@ton/appkit-react` requires the following peer dependencies:
23
+
24
+ - `react` (>= 18.0.0)
25
+ - `react-dom` (>= 18.0.0)
26
+ - `@tanstack/react-query` (>= 5.0.0)
27
+ - `@tonconnect/ui-react` (>= 2.4.1)
28
+
29
+ ## Initialization
30
+
31
+ Initialize `QueryClient` and `AppKit`, then wrap your application in `QueryClientProvider` and `AppKitProvider`.
32
+
33
+ > [!NOTE]
34
+ > Don't forget to import styles from `@ton/appkit-react/styles.css`.
35
+
36
+ ```tsx
37
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
38
+ import { AppKit, Network, TonConnectConnector } from '@ton/appkit';
39
+ import { AppKitProvider } from '@ton/appkit-react';
40
+ import type { FC } from 'react';
41
+
42
+ // Import styles
43
+ import '@ton/appkit-react/styles.css';
44
+
45
+ // Initialize QueryClient
46
+ const queryClient = new QueryClient({
47
+ defaultOptions: {
48
+ queries: {
49
+ refetchOnWindowFocus: false,
50
+ },
51
+ },
52
+ });
53
+
54
+ // Initialize AppKit
55
+ const appKit = new AppKit({
56
+ networks: {
57
+ [Network.mainnet().chainId]: {
58
+ apiClient: {
59
+ url: 'https://toncenter.com',
60
+ key: 'your-key',
61
+ },
62
+ },
63
+ // Optional: add testnet
64
+ // [Network.testnet().chainId]: {
65
+ // apiClient: {
66
+ // url: 'https://testnet.toncenter.com',
67
+ // key: 'your-key',
68
+ // },
69
+ // },
70
+ },
71
+ connectors: [
72
+ new TonConnectConnector({
73
+ tonConnectOptions: {
74
+ manifestUrl: 'https://tonconnect-sdk-demo-dapp.vercel.app/tonconnect-manifest.json',
75
+ },
76
+ }),
77
+ ],
78
+ });
79
+
80
+ export const App: FC = () => {
81
+ return (
82
+ <QueryClientProvider client={queryClient}>
83
+ <AppKitProvider appKit={appKit}>{/* <AppContent /> */}</AppKitProvider>
84
+ </QueryClientProvider>
85
+ );
86
+ };
87
+ ```
88
+ [Read more about TanStack Query](https://tanstack.com/query/latest/docs/framework/react/overview)
89
+
90
+ ### TonConnect Configuration
91
+
92
+ When using `TonConnectConnector`, you can pass `tonConnectOptions` which accepts standard [TonConnectUI options](https://github.com/ton-connect/sdk/tree/main/packages/ui-react#parameters), including `manifestUrl`, `uiOptions`, etc.
93
+
94
+ ## Basic Usage
95
+
96
+ ### Connect Wallet
97
+
98
+ Use `TonConnectButton` to allow users to connect their wallets. It handles the connection flow and UI.
99
+
100
+ ```tsx
101
+ import { TonConnectButton } from '@ton/appkit-react';
102
+
103
+ export const Header = () => {
104
+ return (
105
+ <header>
106
+ <TonConnectButton />
107
+ </header>
108
+ );
109
+ };
110
+ ```
111
+
112
+ ### Get Wallet Address
113
+
114
+ Use `useAddress` to get the currently connected wallet address.
115
+
116
+ ```tsx
117
+ import { useAddress } from '@ton/appkit-react';
118
+
119
+ export const AddressBlock = () => {
120
+ const address = useAddress();
121
+
122
+ if (!address) {
123
+ return <div>Wallet not connected</div>;
124
+ }
125
+
126
+ return <div>Address: {address}</div>;
127
+ };
128
+ ```
129
+
130
+ ### Get Balance
131
+
132
+ Use `useBalance` to fetch the TON balance of the connected wallet.
133
+
134
+ ```tsx
135
+ import { useBalance } from '@ton/appkit-react';
136
+
137
+ export const Balance = () => {
138
+ const { data: balance, isLoading } = useBalance();
139
+
140
+ if (isLoading) {
141
+ return <div>Loading...</div>;
142
+ }
143
+
144
+ return <div>Balance: {balance?.toString()} TON</div>;
145
+ };
146
+ ```
147
+
148
+ > See [Hooks Documentation](./docs/hooks.md) for all available hooks and [Components Documentation](./docs/components.md) for UI components.
149
+
150
+ ## Swap
151
+
152
+ AppKit uses a provider-based architecture for swaps. Any DEX or protocol can implement a swap provider by extending the `SwapProvider` class — AppKit handles routing, hooks, and transaction building through a unified interface.
153
+
154
+ `OmnistonSwapProvider` is an available provider. You can use it, replace it, or run multiple providers side by side. To implement your own, see [Creating a Swap Provider](./docs/creating-swap-provider.md).
155
+
156
+ ### Installation
157
+
158
+ ```bash
159
+ npm install @ston-fi/omniston-sdk
160
+ ```
161
+
162
+ ### Setup
163
+
164
+ Initialize `AppKit` with `OmnistonSwapProvider`:
165
+
166
+ ```ts
167
+ // Initialize AppKit with swap provider
168
+ const appKit = new AppKit({
169
+ networks: {
170
+ [Network.mainnet().chainId]: {
171
+ apiClient: {
172
+ url: 'https://toncenter.com',
173
+ key: 'your-key',
174
+ },
175
+ },
176
+ },
177
+ providers: [
178
+ new OmnistonSwapProvider({
179
+ // Optional configuration
180
+ apiUrl: 'https://api.ston.fi',
181
+ defaultSlippageBps: 100, // 1%
182
+ }),
183
+ ],
184
+ });
185
+ ```
186
+
187
+ ### Hooks
188
+
189
+ Use `useSwapQuote` to get a quote and `useBuildSwapTransaction` to build the transaction.
190
+
191
+ See [Swap Hooks](./docs/hooks.md#swap) for usage examples.
192
+
193
+ ## Migration from TonConnect UI
194
+
195
+ `AppKitProvider` automatically bridges TonConnect if a `TonConnectConnector` is configured, so `@tonconnect/ui-react` hooks (like `useTonAddress`, `useTonWallet`, etc.) work out of the box inside `AppKitProvider`.
196
+
197
+ You can use standard TonConnect hooks in your components:
198
+
199
+ ```tsx
200
+ import { useTonAddress } from '@tonconnect/ui-react';
201
+
202
+ export const AppContent: FC = () => {
203
+ const address = useTonAddress();
204
+
205
+ return <p>Address: {address}</p>;
206
+ };
11
207
  ```
12
208
 
13
209
  ## License
@@ -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
+ import type { FC, ComponentProps } from 'react';
9
+ export interface BlockProps extends ComponentProps<'div'> {
10
+ direction?: 'row' | 'column';
11
+ }
12
+ export declare const Block: FC<BlockProps>;
13
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/components/block/block.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKhD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,KAAK,CAAC;IACrD,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAChC;AAED,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAEhC,CAAC"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var clsx = require('clsx');
5
+ var styles = require('./block.module.css');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var clsx__default = /*#__PURE__*/_interopDefault(clsx);
10
+ var styles__default = /*#__PURE__*/_interopDefault(styles);
11
+
12
+ const Block = ({ className, direction = "column", ...props }) => {
13
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx__default.default(styles__default.default.block, direction === "row" && styles__default.default.row, className), ...props });
14
+ };
15
+
16
+ exports.Block = Block;
17
+ //# sourceMappingURL=block.js.map
18
+ //# sourceMappingURL=block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/block/block.tsx"],"names":["jsx","clsx","styles"],"mappings":";;;;;;;;;;;AAiBO,MAAM,KAAA,GAAwB,CAAC,EAAE,SAAA,EAAW,YAAY,QAAA,EAAU,GAAG,OAAM,KAAM;AACpF,EAAA,uBAAOA,cAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAWC,qBAAA,CAAKC,uBAAA,CAAO,KAAA,EAAO,SAAA,KAAc,KAAA,IAASA,uBAAA,CAAO,GAAA,EAAK,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AACxG","file":"block.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './block.module.css';\n\nexport interface BlockProps extends ComponentProps<'div'> {\n direction?: 'row' | 'column';\n}\n\nexport const Block: FC<BlockProps> = ({ className, direction = 'column', ...props }) => {\n return <div className={clsx(styles.block, direction === 'row' && styles.row, className)} {...props} />;\n};\n"]}
@@ -0,0 +1,11 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+ import styles from './block.module.css';
4
+
5
+ const Block = ({ className, direction = "column", ...props }) => {
6
+ return /* @__PURE__ */ jsx("div", { className: clsx(styles.block, direction === "row" && styles.row, className), ...props });
7
+ };
8
+
9
+ export { Block };
10
+ //# sourceMappingURL=block.mjs.map
11
+ //# sourceMappingURL=block.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/block/block.tsx"],"names":[],"mappings":";;;;AAiBO,MAAM,KAAA,GAAwB,CAAC,EAAE,SAAA,EAAW,YAAY,QAAA,EAAU,GAAG,OAAM,KAAM;AACpF,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,IAAA,CAAK,MAAA,CAAO,KAAA,EAAO,SAAA,KAAc,KAAA,IAAS,MAAA,CAAO,GAAA,EAAK,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AACxG","file":"block.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './block.module.css';\n\nexport interface BlockProps extends ComponentProps<'div'> {\n direction?: 'row' | 'column';\n}\n\nexport const Block: FC<BlockProps> = ({ className, direction = 'column', ...props }) => {\n return <div className={clsx(styles.block, direction === 'row' && styles.row, className)} {...props} />;\n};\n"]}
@@ -0,0 +1,13 @@
1
+ .block {
2
+ display: flex;
3
+ flex-direction: column;
4
+ box-sizing: border-box;
5
+ padding: 16px;
6
+ border-radius: var(--ta-border-radius-l);
7
+ background-color: var(--ta-color-block);
8
+ }
9
+ .row {
10
+ flex-direction: row;
11
+ align-items: center;
12
+ }
13
+ /*# sourceMappingURL=block.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/block/block.module.css"],"sourcesContent":[".block {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n padding: 16px;\n border-radius: var(--ta-border-radius-l);\n background-color: var(--ta-color-block);\n}\n\n.row {\n flex-direction: row;\n align-items: center;\n}\n"],"mappings":"AAAA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,cAAY;AACZ,WAAS;AACT,iBAAe,IAAI;AACnB,oBAAkB,IAAI;AACxB;AAEA,CAAC;AACC,kBAAgB;AAChB,eAAa;AACf;","names":[]}
@@ -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 { Meta, StoryObj } from '@storybook/react';
9
+ import { Block } from './block';
10
+ declare const meta: Meta<typeof Block>;
11
+ export default meta;
12
+ type Story = StoryObj<typeof Block>;
13
+ export declare const Column: Story;
14
+ export declare const Row: Story;
15
+ //# sourceMappingURL=block.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.stories.d.ts","sourceRoot":"","sources":["../../../src/components/block/block.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAU5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,MAAM,EAAE,KAWpB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAWjB,CAAC"}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var block = require('./block');
7
+
8
+ const meta = {
9
+ title: "Private/Components/Block",
10
+ component: block.Block,
11
+ tags: ["autodocs"],
12
+ argTypes: {
13
+ direction: {
14
+ control: "radio",
15
+ options: ["row", "column"]
16
+ }
17
+ }
18
+ };
19
+ var block_stories_default = meta;
20
+ const Column = {
21
+ args: {
22
+ direction: "column",
23
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
24
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 1" }),
25
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 2" }),
26
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 3" })
27
+ ] })
28
+ }
29
+ };
30
+ const Row = {
31
+ args: {
32
+ direction: "row",
33
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
34
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 1" }),
35
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 2" }),
36
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 3" })
37
+ ] })
38
+ }
39
+ };
40
+
41
+ exports.Column = Column;
42
+ exports.Row = Row;
43
+ exports.default = block_stories_default;
44
+ //# sourceMappingURL=block.stories.js.map
45
+ //# sourceMappingURL=block.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/block/block.stories.tsx"],"names":["Block","jsxs","Fragment","jsx"],"mappings":";;;;;;;AAYA,MAAM,IAAA,GAA2B;AAAA,EAC7B,KAAA,EAAO,0BAAA;AAAA,EACP,SAAA,EAAWA,WAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,QAAA,EAAU;AAAA,IACN,SAAA,EAAW;AAAA,MACP,OAAA,EAAS,OAAA;AAAA,MACT,OAAA,EAAS,CAAC,KAAA,EAAO,QAAQ;AAAA;AAC7B;AAER,CAAA;AAEA,IAAO,qBAAA,GAAQ;AAIR,MAAM,MAAA,GAAgB;AAAA,EACzB,IAAA,EAAM;AAAA,IACF,SAAA,EAAW,QAAA;AAAA,IACX,0BACIC,eAAA,CAAAC,mBAAA,EAAA,EACI,QAAA,EAAA;AAAA,sBAAAC,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,YAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7EA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7EA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM;AAAA,KAAA,EACjF;AAAA;AAGZ;AAEO,MAAM,GAAA,GAAa;AAAA,EACtB,IAAA,EAAM;AAAA,IACF,SAAA,EAAW,KAAA;AAAA,IACX,0BACIF,eAAA,CAAAC,mBAAA,EAAA,EACI,QAAA,EAAA;AAAA,sBAAAC,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,YAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7EA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7EA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM;AAAA,KAAA,EACjF;AAAA;AAGZ","file":"block.stories.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { Meta, StoryObj } from '@storybook/react';\n\nimport { Block } from './block';\n\nconst meta: Meta<typeof Block> = {\n title: 'Private/Components/Block',\n component: Block,\n tags: ['autodocs'],\n argTypes: {\n direction: {\n control: 'radio',\n options: ['row', 'column'],\n },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof Block>;\n\nexport const Column: Story = {\n args: {\n direction: 'column',\n children: (\n <>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 1</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 2</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 3</div>\n </>\n ),\n },\n};\n\nexport const Row: Story = {\n args: {\n direction: 'row',\n children: (\n <>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 1</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 2</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 3</div>\n </>\n ),\n },\n};\n"]}
@@ -0,0 +1,39 @@
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { Block } from './block';
3
+
4
+ const meta = {
5
+ title: "Private/Components/Block",
6
+ component: Block,
7
+ tags: ["autodocs"],
8
+ argTypes: {
9
+ direction: {
10
+ control: "radio",
11
+ options: ["row", "column"]
12
+ }
13
+ }
14
+ };
15
+ var block_stories_default = meta;
16
+ const Column = {
17
+ args: {
18
+ direction: "column",
19
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
20
+ /* @__PURE__ */ jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 1" }),
21
+ /* @__PURE__ */ jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 2" }),
22
+ /* @__PURE__ */ jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 3" })
23
+ ] })
24
+ }
25
+ };
26
+ const Row = {
27
+ args: {
28
+ direction: "row",
29
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ /* @__PURE__ */ jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 1" }),
31
+ /* @__PURE__ */ jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 2" }),
32
+ /* @__PURE__ */ jsx("div", { style: { padding: "8px", background: "#0098EB", color: "white" }, children: "Item 3" })
33
+ ] })
34
+ }
35
+ };
36
+
37
+ export { Column, Row, block_stories_default as default };
38
+ //# sourceMappingURL=block.stories.mjs.map
39
+ //# sourceMappingURL=block.stories.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/block/block.stories.tsx"],"names":[],"mappings":";;;AAYA,MAAM,IAAA,GAA2B;AAAA,EAC7B,KAAA,EAAO,0BAAA;AAAA,EACP,SAAA,EAAW,KAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,QAAA,EAAU;AAAA,IACN,SAAA,EAAW;AAAA,MACP,OAAA,EAAS,OAAA;AAAA,MACT,OAAA,EAAS,CAAC,KAAA,EAAO,QAAQ;AAAA;AAC7B;AAER,CAAA;AAEA,IAAO,qBAAA,GAAQ;AAIR,MAAM,MAAA,GAAgB;AAAA,EACzB,IAAA,EAAM;AAAA,IACF,SAAA,EAAW,QAAA;AAAA,IACX,0BACI,IAAA,CAAA,QAAA,EAAA,EACI,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,YAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7E,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7E,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM;AAAA,KAAA,EACjF;AAAA;AAGZ;AAEO,MAAM,GAAA,GAAa;AAAA,EACtB,IAAA,EAAM;AAAA,IACF,SAAA,EAAW,KAAA;AAAA,IACX,0BACI,IAAA,CAAA,QAAA,EAAA,EACI,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,YAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7E,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM,CAAA;AAAA,sBAC7E,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,OAAA,EAAS,KAAA,EAAO,UAAA,EAAY,SAAA,EAAW,KAAA,EAAO,OAAA,EAAQ,EAAG,QAAA,EAAA,QAAA,EAAM;AAAA,KAAA,EACjF;AAAA;AAGZ","file":"block.stories.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { Meta, StoryObj } from '@storybook/react';\n\nimport { Block } from './block';\n\nconst meta: Meta<typeof Block> = {\n title: 'Private/Components/Block',\n component: Block,\n tags: ['autodocs'],\n argTypes: {\n direction: {\n control: 'radio',\n options: ['row', 'column'],\n },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof Block>;\n\nexport const Column: Story = {\n args: {\n direction: 'column',\n children: (\n <>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 1</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 2</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 3</div>\n </>\n ),\n },\n};\n\nexport const Row: Story = {\n args: {\n direction: 'row',\n children: (\n <>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 1</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 2</div>\n <div style={{ padding: '8px', background: '#0098EB', color: 'white' }}>Item 3</div>\n </>\n ),\n },\n};\n"]}
@@ -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 * from './block';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var block = require('./block');
4
+
5
+
6
+
7
+ Object.keys(block).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return block[k]; }
11
+ });
12
+ });
13
+ //# sourceMappingURL=index.js.map
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
@@ -0,0 +1,3 @@
1
+ export * from './block';
2
+ //# sourceMappingURL=index.mjs.map
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
@@ -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 { FC, ComponentProps } from 'react';
9
+ export declare const Button: FC<ComponentProps<'button'>>;
10
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKhD,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,CAE/C,CAAC"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var clsx = require('clsx');
5
+ var styles = require('./button.module.css');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var clsx__default = /*#__PURE__*/_interopDefault(clsx);
10
+ var styles__default = /*#__PURE__*/_interopDefault(styles);
11
+
12
+ const Button = ({ className, ...props }) => {
13
+ return /* @__PURE__ */ jsxRuntime.jsx("button", { className: clsx__default.default(styles__default.default.button, className), ...props });
14
+ };
15
+
16
+ exports.Button = Button;
17
+ //# sourceMappingURL=button.js.map
18
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/button/button.tsx"],"names":["jsx","clsx","styles"],"mappings":";;;;;;;;;;;AAaO,MAAM,SAAuC,CAAC,EAAE,SAAA,EAAW,GAAG,OAAM,KAAM;AAC7E,EAAA,uBAAOA,cAAA,CAAC,YAAO,SAAA,EAAWC,qBAAA,CAAKC,wBAAO,MAAA,EAAQ,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AACzE","file":"button.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './button.module.css';\n\nexport const Button: FC<ComponentProps<'button'>> = ({ className, ...props }) => {\n return <button className={clsx(styles.button, className)} {...props} />;\n};\n"]}
@@ -0,0 +1,11 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+ import styles from './button.module.css';
4
+
5
+ const Button = ({ className, ...props }) => {
6
+ return /* @__PURE__ */ jsx("button", { className: clsx(styles.button, className), ...props });
7
+ };
8
+
9
+ export { Button };
10
+ //# sourceMappingURL=button.mjs.map
11
+ //# sourceMappingURL=button.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":";;;;AAaO,MAAM,SAAuC,CAAC,EAAE,SAAA,EAAW,GAAG,OAAM,KAAM;AAC7E,EAAA,uBAAO,GAAA,CAAC,YAAO,SAAA,EAAW,IAAA,CAAK,OAAO,MAAA,EAAQ,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AACzE","file":"button.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './button.module.css';\n\nexport const Button: FC<ComponentProps<'button'>> = ({ className, ...props }) => {\n return <button className={clsx(styles.button, className)} {...props} />;\n};\n"]}
@@ -0,0 +1,33 @@
1
+ .button {
2
+ composes: bodyMedium from "../../styles/typography.module.css";
3
+ appearance: none;
4
+ border: none;
5
+ outline: none;
6
+ cursor: pointer;
7
+ box-sizing: border-box;
8
+ padding: 8px 16px;
9
+ border-radius: 20px;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ gap: 8px;
14
+ background-color: var(--ta-color-primary);
15
+ color: var(--ta-color-primary-foreground);
16
+ transition: transform 0.125s ease-in-out, background-color 0.2s ease;
17
+ will-change: transform;
18
+ }
19
+ .button:hover {
20
+ transform: scale(1.02);
21
+ }
22
+ .button:active {
23
+ transform: scale(0.98);
24
+ }
25
+ .button:disabled {
26
+ opacity: 0.5;
27
+ cursor: not-allowed;
28
+ }
29
+ .button:disabled:hover,
30
+ .button:disabled:active {
31
+ transform: none;
32
+ }
33
+ /*# sourceMappingURL=button.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/button/button.module.css"],"sourcesContent":[".button {\n composes: bodyMedium from \"../../styles/typography.module.css\";\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n padding: 8px 16px;\n border-radius: 20px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n\n background-color: var(--ta-color-primary); \n color: var(--ta-color-primary-foreground);\n transition: transform 0.125s ease-in-out, background-color 0.2s ease;\n will-change: transform;\n}\n\n.button:hover {\n transform: scale(1.02);\n}\n\n.button:active {\n transform: scale(0.98);\n}\n\n.button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.button:disabled:hover,\n.button:disabled:active {\n transform: none;\n}\n"],"mappings":"AAAA,CAAC;AACC,YAAU,WAAW,KAAK;AAC1B,cAAY;AACZ,UAAQ;AACR,WAAS;AACT,UAAQ;AACR,cAAY;AACZ,WAAS,IAAI;AACb,iBAAe;AAEf,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,OAAK;AAEL,oBAAkB,IAAI;AACtB,SAAO,IAAI;AACX,cAAY,UAAU,OAAO,WAAW,EAAE,iBAAiB,KAAK;AAChE,eAAa;AACf;AAEA,CArBC,MAqBM;AACL,aAAW,MAAM;AACnB;AAEA,CAzBC,MAyBM;AACL,aAAW,MAAM;AACnB;AAEA,CA7BC,MA6BM;AACL,WAAS;AACT,UAAQ;AACV;AAEA,CAlCC,MAkCM,SAAS;AAChB,CAnCC,MAmCM,SAAS;AACd,aAAW;AACb;","names":[]}
@@ -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
+ import type { Meta, StoryObj } from '@storybook/react';
9
+ import { Button } from './button';
10
+ declare const meta: Meta<typeof Button>;
11
+ export default meta;
12
+ type Story = StoryObj<typeof Button>;
13
+ export declare const Default: Story;
14
+ export declare const Disabled: Story;
15
+ export declare const WithIcon: Story;
16
+ //# sourceMappingURL=button.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAS7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC"}
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var button = require('./button');
7
+
8
+ const meta = {
9
+ title: "Public/Components/Button",
10
+ component: button.Button,
11
+ tags: ["autodocs"],
12
+ argTypes: {
13
+ disabled: {
14
+ control: "boolean"
15
+ }
16
+ }
17
+ };
18
+ var button_stories_default = meta;
19
+ const Default = {
20
+ args: {
21
+ children: "Click me"
22
+ }
23
+ };
24
+ const Disabled = {
25
+ args: {
26
+ children: "Disabled Button",
27
+ disabled: true
28
+ }
29
+ };
30
+ const WithIcon = {
31
+ args: {
32
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
33
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsx(
34
+ "path",
35
+ {
36
+ d: "M12 5V19M5 12H19",
37
+ stroke: "currentColor",
38
+ strokeWidth: "2",
39
+ strokeLinecap: "round",
40
+ strokeLinejoin: "round"
41
+ }
42
+ ) }),
43
+ "Add Item"
44
+ ] })
45
+ }
46
+ };
47
+
48
+ exports.Default = Default;
49
+ exports.Disabled = Disabled;
50
+ exports.WithIcon = WithIcon;
51
+ exports.default = button_stories_default;
52
+ //# sourceMappingURL=button.stories.js.map
53
+ //# sourceMappingURL=button.stories.js.map