@ape.swap/bonds-sdk 1.0.60 → 1.0.62

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 (435) hide show
  1. package/dist/components/bonds/Bonds.js +3 -2
  2. package/dist/components/uikit/Button/Button.d.ts +4 -0
  3. package/dist/components/uikit/Button/Button.js +91 -0
  4. package/dist/components/uikit/Button/IconButton.d.ts +4 -0
  5. package/dist/components/uikit/Button/IconButton.js +33 -0
  6. package/dist/components/uikit/Button/index.d.ts +2 -0
  7. package/dist/components/uikit/Button/index.js +2 -0
  8. package/dist/components/uikit/Button/styles.d.ts +3 -0
  9. package/dist/components/uikit/Button/styles.js +30 -0
  10. package/dist/components/uikit/Button/types.d.ts +46 -0
  11. package/dist/components/uikit/Button/types.js +37 -0
  12. package/dist/components/uikit/Checkbox/index.d.ts +4 -0
  13. package/dist/components/uikit/Checkbox/index.js +46 -0
  14. package/dist/components/uikit/Checkbox/types.d.ts +11 -0
  15. package/dist/components/uikit/Checkbox/types.js +5 -0
  16. package/dist/components/uikit/Dropdown/Dropdown.d.ts +4 -0
  17. package/dist/components/uikit/Dropdown/Dropdown.js +58 -0
  18. package/dist/components/uikit/Dropdown/DropdownItem.d.ts +4 -0
  19. package/dist/components/uikit/Dropdown/DropdownItem.js +47 -0
  20. package/dist/components/uikit/Dropdown/index.d.ts +3 -0
  21. package/dist/components/uikit/Dropdown/index.js +2 -0
  22. package/dist/components/uikit/Dropdown/styles.d.ts +4 -0
  23. package/dist/components/uikit/Dropdown/styles.js +16 -0
  24. package/dist/components/uikit/Dropdown/types.d.ts +58 -0
  25. package/dist/components/uikit/Dropdown/types.js +22 -0
  26. package/dist/components/uikit/Flex/index.d.ts +3 -0
  27. package/dist/components/uikit/Flex/index.js +29 -0
  28. package/dist/components/uikit/Input/Input.d.ts +4 -0
  29. package/dist/components/uikit/Input/Input.js +72 -0
  30. package/dist/components/uikit/Input/NumericInput.d.ts +10 -0
  31. package/dist/components/uikit/Input/NumericInput.js +35 -0
  32. package/dist/components/uikit/Input/StyledInput.d.ts +11 -0
  33. package/dist/components/uikit/Input/StyledInput.js +37 -0
  34. package/dist/components/uikit/Input/index.d.ts +3 -0
  35. package/dist/components/uikit/Input/index.js +3 -0
  36. package/dist/components/uikit/Link/index.d.ts +9 -0
  37. package/dist/components/uikit/Link/index.js +29 -0
  38. package/dist/components/uikit/Modal/ModalFooter.d.ts +4 -0
  39. package/dist/components/uikit/Modal/ModalFooter.js +32 -0
  40. package/dist/components/uikit/Modal/ModalHeader.d.ts +4 -0
  41. package/dist/components/uikit/Modal/ModalHeader.js +31 -0
  42. package/dist/components/uikit/Modal/index.d.ts +4 -0
  43. package/dist/components/uikit/Modal/index.js +55 -0
  44. package/dist/components/uikit/Modal/styles.d.ts +3 -0
  45. package/dist/components/uikit/Modal/styles.js +62 -0
  46. package/dist/components/uikit/Modal/types.d.ts +17 -0
  47. package/dist/components/uikit/Modal/types.js +1 -0
  48. package/dist/components/uikit/Select/Select.d.ts +4 -0
  49. package/dist/components/uikit/Select/Select.js +61 -0
  50. package/dist/components/uikit/Select/SelectItem.d.ts +4 -0
  51. package/dist/components/uikit/Select/SelectItem.js +40 -0
  52. package/dist/components/uikit/Select/index.d.ts +2 -0
  53. package/dist/components/uikit/Select/index.js +2 -0
  54. package/dist/components/uikit/Select/styles.d.ts +4 -0
  55. package/dist/components/uikit/Select/styles.js +50 -0
  56. package/dist/components/uikit/Select/types.d.ts +55 -0
  57. package/dist/components/uikit/Select/types.js +37 -0
  58. package/dist/components/uikit/Skeleton/index.d.ts +4 -0
  59. package/dist/components/uikit/Skeleton/index.js +31 -0
  60. package/dist/components/uikit/Skeleton/styles.d.ts +5 -0
  61. package/dist/components/uikit/Skeleton/styles.js +40 -0
  62. package/dist/components/uikit/Skeleton/types.d.ts +18 -0
  63. package/dist/components/uikit/Skeleton/types.js +10 -0
  64. package/dist/components/uikit/Spinner/apeSpinner.json +2764 -0
  65. package/dist/components/uikit/Spinner/index.d.ts +5 -0
  66. package/dist/components/uikit/Spinner/index.js +20 -0
  67. package/dist/components/uikit/Svg/Icons/AbondFullLogo.d.ts +4 -0
  68. package/dist/components/uikit/Svg/Icons/AbondFullLogo.js +27 -0
  69. package/dist/components/uikit/Svg/Icons/AbondSmallLogo.d.ts +4 -0
  70. package/dist/components/uikit/Svg/Icons/AbondSmallLogo.js +17 -0
  71. package/dist/components/uikit/Svg/Icons/AccountMonkey.d.ts +4 -0
  72. package/dist/components/uikit/Svg/Icons/AccountMonkey.js +27 -0
  73. package/dist/components/uikit/Svg/Icons/ApebondLogo.d.ts +4 -0
  74. package/dist/components/uikit/Svg/Icons/ApebondLogo.js +28 -0
  75. package/dist/components/uikit/Svg/Icons/ApeswapSmallLogo.d.ts +4 -0
  76. package/dist/components/uikit/Svg/Icons/ApeswapSmallLogo.js +17 -0
  77. package/dist/components/uikit/Svg/Icons/Arrow.d.ts +4 -0
  78. package/dist/components/uikit/Svg/Icons/Arrow.js +27 -0
  79. package/dist/components/uikit/Svg/Icons/Audit.d.ts +4 -0
  80. package/dist/components/uikit/Svg/Icons/Audit.js +27 -0
  81. package/dist/components/uikit/Svg/Icons/BananaIcon.d.ts +4 -0
  82. package/dist/components/uikit/Svg/Icons/BananaIcon.js +17 -0
  83. package/dist/components/uikit/Svg/Icons/BillsM1.d.ts +4 -0
  84. package/dist/components/uikit/Svg/Icons/BillsM1.js +27 -0
  85. package/dist/components/uikit/Svg/Icons/BillsM2.d.ts +4 -0
  86. package/dist/components/uikit/Svg/Icons/BillsM2.js +28 -0
  87. package/dist/components/uikit/Svg/Icons/BillsM3.d.ts +4 -0
  88. package/dist/components/uikit/Svg/Icons/BillsM3.js +27 -0
  89. package/dist/components/uikit/Svg/Icons/Bridge.d.ts +4 -0
  90. package/dist/components/uikit/Svg/Icons/Bridge.js +27 -0
  91. package/dist/components/uikit/Svg/Icons/Bubble.d.ts +4 -0
  92. package/dist/components/uikit/Svg/Icons/Bubble.js +27 -0
  93. package/dist/components/uikit/Svg/Icons/Calculator.d.ts +4 -0
  94. package/dist/components/uikit/Svg/Icons/Calculator.js +27 -0
  95. package/dist/components/uikit/Svg/Icons/Calendar.d.ts +4 -0
  96. package/dist/components/uikit/Svg/Icons/Calendar.js +16 -0
  97. package/dist/components/uikit/Svg/Icons/Cancelled.d.ts +4 -0
  98. package/dist/components/uikit/Svg/Icons/Cancelled.js +27 -0
  99. package/dist/components/uikit/Svg/Icons/Card.d.ts +4 -0
  100. package/dist/components/uikit/Svg/Icons/Card.js +27 -0
  101. package/dist/components/uikit/Svg/Icons/Caret.d.ts +4 -0
  102. package/dist/components/uikit/Svg/Icons/Caret.js +27 -0
  103. package/dist/components/uikit/Svg/Icons/Chain.d.ts +4 -0
  104. package/dist/components/uikit/Svg/Icons/Chain.js +20 -0
  105. package/dist/components/uikit/Svg/Icons/Chart.d.ts +4 -0
  106. package/dist/components/uikit/Svg/Icons/Chart.js +27 -0
  107. package/dist/components/uikit/Svg/Icons/Chat.d.ts +4 -0
  108. package/dist/components/uikit/Svg/Icons/Chat.js +27 -0
  109. package/dist/components/uikit/Svg/Icons/Close.d.ts +4 -0
  110. package/dist/components/uikit/Svg/Icons/Close.js +20 -0
  111. package/dist/components/uikit/Svg/Icons/Cog.d.ts +4 -0
  112. package/dist/components/uikit/Svg/Icons/Cog.js +27 -0
  113. package/dist/components/uikit/Svg/Icons/Collapse.d.ts +4 -0
  114. package/dist/components/uikit/Svg/Icons/Collapse.js +27 -0
  115. package/dist/components/uikit/Svg/Icons/Copy.d.ts +4 -0
  116. package/dist/components/uikit/Svg/Icons/Copy.js +27 -0
  117. package/dist/components/uikit/Svg/Icons/Discord.d.ts +4 -0
  118. package/dist/components/uikit/Svg/Icons/Discord.js +27 -0
  119. package/dist/components/uikit/Svg/Icons/DiscordNew.d.ts +4 -0
  120. package/dist/components/uikit/Svg/Icons/DiscordNew.js +27 -0
  121. package/dist/components/uikit/Svg/Icons/Docs.d.ts +4 -0
  122. package/dist/components/uikit/Svg/Icons/Docs.js +27 -0
  123. package/dist/components/uikit/Svg/Icons/DocsV2.d.ts +4 -0
  124. package/dist/components/uikit/Svg/Icons/DocsV2.js +27 -0
  125. package/dist/components/uikit/Svg/Icons/Ellipse.d.ts +4 -0
  126. package/dist/components/uikit/Svg/Icons/Ellipse.js +27 -0
  127. package/dist/components/uikit/Svg/Icons/Error.d.ts +4 -0
  128. package/dist/components/uikit/Svg/Icons/Error.js +27 -0
  129. package/dist/components/uikit/Svg/Icons/Expand.d.ts +4 -0
  130. package/dist/components/uikit/Svg/Icons/Expand.js +27 -0
  131. package/dist/components/uikit/Svg/Icons/Explorer.d.ts +4 -0
  132. package/dist/components/uikit/Svg/Icons/Explorer.js +27 -0
  133. package/dist/components/uikit/Svg/Icons/External.d.ts +4 -0
  134. package/dist/components/uikit/Svg/Icons/External.js +27 -0
  135. package/dist/components/uikit/Svg/Icons/Farm.d.ts +4 -0
  136. package/dist/components/uikit/Svg/Icons/Farm.js +27 -0
  137. package/dist/components/uikit/Svg/Icons/Fav.d.ts +4 -0
  138. package/dist/components/uikit/Svg/Icons/Fav.js +27 -0
  139. package/dist/components/uikit/Svg/Icons/FilledURL.d.ts +4 -0
  140. package/dist/components/uikit/Svg/Icons/FilledURL.js +27 -0
  141. package/dist/components/uikit/Svg/Icons/Fire.d.ts +4 -0
  142. package/dist/components/uikit/Svg/Icons/Fire.js +17 -0
  143. package/dist/components/uikit/Svg/Icons/Frame.d.ts +4 -0
  144. package/dist/components/uikit/Svg/Icons/Frame.js +27 -0
  145. package/dist/components/uikit/Svg/Icons/FullLogo.d.ts +4 -0
  146. package/dist/components/uikit/Svg/Icons/FullLogo.js +17 -0
  147. package/dist/components/uikit/Svg/Icons/Gnana.d.ts +4 -0
  148. package/dist/components/uikit/Svg/Icons/Gnana.js +27 -0
  149. package/dist/components/uikit/Svg/Icons/GreenShield.d.ts +4 -0
  150. package/dist/components/uikit/Svg/Icons/GreenShield.js +17 -0
  151. package/dist/components/uikit/Svg/Icons/Hamburger.d.ts +4 -0
  152. package/dist/components/uikit/Svg/Icons/Hamburger.js +27 -0
  153. package/dist/components/uikit/Svg/Icons/HamburgerClosed.d.ts +4 -0
  154. package/dist/components/uikit/Svg/Icons/HamburgerClosed.js +27 -0
  155. package/dist/components/uikit/Svg/Icons/Home.d.ts +4 -0
  156. package/dist/components/uikit/Svg/Icons/Home.js +27 -0
  157. package/dist/components/uikit/Svg/Icons/Info.d.ts +4 -0
  158. package/dist/components/uikit/Svg/Icons/Info.js +27 -0
  159. package/dist/components/uikit/Svg/Icons/InfoSolid.d.ts +4 -0
  160. package/dist/components/uikit/Svg/Icons/InfoSolid.js +27 -0
  161. package/dist/components/uikit/Svg/Icons/Insight.d.ts +4 -0
  162. package/dist/components/uikit/Svg/Icons/Insight.js +27 -0
  163. package/dist/components/uikit/Svg/Icons/Instagram.d.ts +4 -0
  164. package/dist/components/uikit/Svg/Icons/Instagram.js +27 -0
  165. package/dist/components/uikit/Svg/Icons/Island.d.ts +4 -0
  166. package/dist/components/uikit/Svg/Icons/Island.js +27 -0
  167. package/dist/components/uikit/Svg/Icons/Language.d.ts +4 -0
  168. package/dist/components/uikit/Svg/Icons/Language.js +16 -0
  169. package/dist/components/uikit/Svg/Icons/LanguageIcon.d.ts +4 -0
  170. package/dist/components/uikit/Svg/Icons/LanguageIcon.js +27 -0
  171. package/dist/components/uikit/Svg/Icons/LineChart.d.ts +4 -0
  172. package/dist/components/uikit/Svg/Icons/LineChart.js +17 -0
  173. package/dist/components/uikit/Svg/Icons/LiquidityIcon.d.ts +4 -0
  174. package/dist/components/uikit/Svg/Icons/LiquidityIcon.js +27 -0
  175. package/dist/components/uikit/Svg/Icons/Logout.d.ts +4 -0
  176. package/dist/components/uikit/Svg/Icons/Logout.js +27 -0
  177. package/dist/components/uikit/Svg/Icons/Medium.d.ts +4 -0
  178. package/dist/components/uikit/Svg/Icons/Medium.js +27 -0
  179. package/dist/components/uikit/Svg/Icons/MenuSettings.d.ts +4 -0
  180. package/dist/components/uikit/Svg/Icons/MenuSettings.js +27 -0
  181. package/dist/components/uikit/Svg/Icons/Message.d.ts +4 -0
  182. package/dist/components/uikit/Svg/Icons/Message.js +20 -0
  183. package/dist/components/uikit/Svg/Icons/Migrate.d.ts +4 -0
  184. package/dist/components/uikit/Svg/Icons/Migrate.js +27 -0
  185. package/dist/components/uikit/Svg/Icons/Moon.d.ts +4 -0
  186. package/dist/components/uikit/Svg/Icons/Moon.js +27 -0
  187. package/dist/components/uikit/Svg/Icons/More.d.ts +4 -0
  188. package/dist/components/uikit/Svg/Icons/More.js +27 -0
  189. package/dist/components/uikit/Svg/Icons/NFA.d.ts +4 -0
  190. package/dist/components/uikit/Svg/Icons/NFA.js +27 -0
  191. package/dist/components/uikit/Svg/Icons/NavCaret.d.ts +4 -0
  192. package/dist/components/uikit/Svg/Icons/NavCaret.js +27 -0
  193. package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.d.ts +4 -0
  194. package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.js +27 -0
  195. package/dist/components/uikit/Svg/Icons/Play.d.ts +4 -0
  196. package/dist/components/uikit/Svg/Icons/Play.js +16 -0
  197. package/dist/components/uikit/Svg/Icons/Pool.d.ts +4 -0
  198. package/dist/components/uikit/Svg/Icons/Pool.js +27 -0
  199. package/dist/components/uikit/Svg/Icons/Positions.d.ts +4 -0
  200. package/dist/components/uikit/Svg/Icons/Positions.js +27 -0
  201. package/dist/components/uikit/Svg/Icons/ProfileDark.d.ts +4 -0
  202. package/dist/components/uikit/Svg/Icons/ProfileDark.js +17 -0
  203. package/dist/components/uikit/Svg/Icons/ProfileIcon.d.ts +7 -0
  204. package/dist/components/uikit/Svg/Icons/ProfileIcon.js +16 -0
  205. package/dist/components/uikit/Svg/Icons/ProfileLight.d.ts +4 -0
  206. package/dist/components/uikit/Svg/Icons/ProfileLight.js +17 -0
  207. package/dist/components/uikit/Svg/Icons/Question.d.ts +4 -0
  208. package/dist/components/uikit/Svg/Icons/Question.js +17 -0
  209. package/dist/components/uikit/Svg/Icons/QuestionCircle.d.ts +4 -0
  210. package/dist/components/uikit/Svg/Icons/QuestionCircle.js +27 -0
  211. package/dist/components/uikit/Svg/Icons/QuestionFill.d.ts +4 -0
  212. package/dist/components/uikit/Svg/Icons/QuestionFill.js +27 -0
  213. package/dist/components/uikit/Svg/Icons/Quiz.d.ts +4 -0
  214. package/dist/components/uikit/Svg/Icons/Quiz.js +27 -0
  215. package/dist/components/uikit/Svg/Icons/Receipt.d.ts +4 -0
  216. package/dist/components/uikit/Svg/Icons/Receipt.js +27 -0
  217. package/dist/components/uikit/Svg/Icons/Reddit.d.ts +4 -0
  218. package/dist/components/uikit/Svg/Icons/Reddit.js +27 -0
  219. package/dist/components/uikit/Svg/Icons/Rocket.d.ts +4 -0
  220. package/dist/components/uikit/Svg/Icons/Rocket.js +27 -0
  221. package/dist/components/uikit/Svg/Icons/ScrollTop.d.ts +4 -0
  222. package/dist/components/uikit/Svg/Icons/ScrollTop.js +27 -0
  223. package/dist/components/uikit/Svg/Icons/Search.d.ts +4 -0
  224. package/dist/components/uikit/Svg/Icons/Search.js +27 -0
  225. package/dist/components/uikit/Svg/Icons/Send.d.ts +4 -0
  226. package/dist/components/uikit/Svg/Icons/Send.js +27 -0
  227. package/dist/components/uikit/Svg/Icons/Settings.d.ts +4 -0
  228. package/dist/components/uikit/Svg/Icons/Settings.js +27 -0
  229. package/dist/components/uikit/Svg/Icons/Share.d.ts +4 -0
  230. package/dist/components/uikit/Svg/Icons/Share.js +27 -0
  231. package/dist/components/uikit/Svg/Icons/Success.d.ts +4 -0
  232. package/dist/components/uikit/Svg/Icons/Success.js +27 -0
  233. package/dist/components/uikit/Svg/Icons/SuccessOutline.d.ts +4 -0
  234. package/dist/components/uikit/Svg/Icons/SuccessOutline.js +27 -0
  235. package/dist/components/uikit/Svg/Icons/SwapArrows.d.ts +4 -0
  236. package/dist/components/uikit/Svg/Icons/SwapArrows.js +27 -0
  237. package/dist/components/uikit/Svg/Icons/SwitchArrows.d.ts +4 -0
  238. package/dist/components/uikit/Svg/Icons/SwitchArrows.js +27 -0
  239. package/dist/components/uikit/Svg/Icons/Tag.d.ts +4 -0
  240. package/dist/components/uikit/Svg/Icons/Tag.js +16 -0
  241. package/dist/components/uikit/Svg/Icons/Telegram.d.ts +4 -0
  242. package/dist/components/uikit/Svg/Icons/Telegram.js +27 -0
  243. package/dist/components/uikit/Svg/Icons/TelegramNew.d.ts +4 -0
  244. package/dist/components/uikit/Svg/Icons/TelegramNew.js +27 -0
  245. package/dist/components/uikit/Svg/Icons/TextLogo.d.ts +4 -0
  246. package/dist/components/uikit/Svg/Icons/TextLogo.js +17 -0
  247. package/dist/components/uikit/Svg/Icons/TickShield.d.ts +4 -0
  248. package/dist/components/uikit/Svg/Icons/TickShield.js +27 -0
  249. package/dist/components/uikit/Svg/Icons/Trade.d.ts +4 -0
  250. package/dist/components/uikit/Svg/Icons/Trade.js +27 -0
  251. package/dist/components/uikit/Svg/Icons/Trash.d.ts +4 -0
  252. package/dist/components/uikit/Svg/Icons/Trash.js +27 -0
  253. package/dist/components/uikit/Svg/Icons/Twitter.d.ts +4 -0
  254. package/dist/components/uikit/Svg/Icons/Twitter.js +27 -0
  255. package/dist/components/uikit/Svg/Icons/URL.d.ts +4 -0
  256. package/dist/components/uikit/Svg/Icons/URL.js +27 -0
  257. package/dist/components/uikit/Svg/Icons/Vaults.d.ts +4 -0
  258. package/dist/components/uikit/Svg/Icons/Vaults.js +27 -0
  259. package/dist/components/uikit/Svg/Icons/Verified.d.ts +4 -0
  260. package/dist/components/uikit/Svg/Icons/Verified.js +17 -0
  261. package/dist/components/uikit/Svg/Icons/Wallet.d.ts +4 -0
  262. package/dist/components/uikit/Svg/Icons/Wallet.js +27 -0
  263. package/dist/components/uikit/Svg/Icons/Warning.d.ts +4 -0
  264. package/dist/components/uikit/Svg/Icons/Warning.js +27 -0
  265. package/dist/components/uikit/Svg/Icons/Watch.d.ts +4 -0
  266. package/dist/components/uikit/Svg/Icons/Watch.js +27 -0
  267. package/dist/components/uikit/Svg/Icons/Website.d.ts +4 -0
  268. package/dist/components/uikit/Svg/Icons/Website.js +27 -0
  269. package/dist/components/uikit/Svg/Icons/WebsiteNew.d.ts +4 -0
  270. package/dist/components/uikit/Svg/Icons/WebsiteNew.js +27 -0
  271. package/dist/components/uikit/Svg/Icons/WhitepaperNew.d.ts +4 -0
  272. package/dist/components/uikit/Svg/Icons/WhitepaperNew.js +27 -0
  273. package/dist/components/uikit/Svg/Icons/XNew.d.ts +4 -0
  274. package/dist/components/uikit/Svg/Icons/XNew.js +27 -0
  275. package/dist/components/uikit/Svg/Icons/YellowQuestionMark.d.ts +4 -0
  276. package/dist/components/uikit/Svg/Icons/YellowQuestionMark.js +17 -0
  277. package/dist/components/uikit/Svg/Icons/ZapArrow.d.ts +4 -0
  278. package/dist/components/uikit/Svg/Icons/ZapArrow.js +27 -0
  279. package/dist/components/uikit/Svg/Icons/ZapIcon.d.ts +4 -0
  280. package/dist/components/uikit/Svg/Icons/ZapIcon.js +27 -0
  281. package/dist/components/uikit/Svg/Icons/index.d.ts +107 -0
  282. package/dist/components/uikit/Svg/Icons/index.js +109 -0
  283. package/dist/components/uikit/Svg/Icons/polygonNew.d.ts +4 -0
  284. package/dist/components/uikit/Svg/Icons/polygonNew.js +27 -0
  285. package/dist/components/uikit/Svg/Icons/types.d.ts +16 -0
  286. package/dist/components/uikit/Svg/Icons/types.js +1 -0
  287. package/dist/components/uikit/Svg/index.d.ts +4 -0
  288. package/dist/components/uikit/Svg/index.js +341 -0
  289. package/dist/components/uikit/Svg/styles.d.ts +4 -0
  290. package/dist/components/uikit/Svg/styles.js +16 -0
  291. package/dist/components/uikit/Svg/tokens/ABOND.d.ts +4 -0
  292. package/dist/components/uikit/Svg/tokens/ABOND.js +17 -0
  293. package/dist/components/uikit/Svg/tokens/ARBITRUM.d.ts +4 -0
  294. package/dist/components/uikit/Svg/tokens/ARBITRUM.js +17 -0
  295. package/dist/components/uikit/Svg/tokens/AVAX.d.ts +4 -0
  296. package/dist/components/uikit/Svg/tokens/AVAX.js +17 -0
  297. package/dist/components/uikit/Svg/tokens/BANANA.d.ts +4 -0
  298. package/dist/components/uikit/Svg/tokens/BANANA.js +17 -0
  299. package/dist/components/uikit/Svg/tokens/BASE.d.ts +4 -0
  300. package/dist/components/uikit/Svg/tokens/BASE.js +17 -0
  301. package/dist/components/uikit/Svg/tokens/BNB.d.ts +4 -0
  302. package/dist/components/uikit/Svg/tokens/BNB.js +17 -0
  303. package/dist/components/uikit/Svg/tokens/BSC.d.ts +4 -0
  304. package/dist/components/uikit/Svg/tokens/BSC.js +17 -0
  305. package/dist/components/uikit/Svg/tokens/CELO.d.ts +4 -0
  306. package/dist/components/uikit/Svg/tokens/CELO.js +16 -0
  307. package/dist/components/uikit/Svg/tokens/CRONOS.d.ts +4 -0
  308. package/dist/components/uikit/Svg/tokens/CRONOS.js +17 -0
  309. package/dist/components/uikit/Svg/tokens/ETH.d.ts +4 -0
  310. package/dist/components/uikit/Svg/tokens/ETH.js +17 -0
  311. package/dist/components/uikit/Svg/tokens/FANTOM.d.ts +4 -0
  312. package/dist/components/uikit/Svg/tokens/FANTOM.js +17 -0
  313. package/dist/components/uikit/Svg/tokens/GNANA.d.ts +4 -0
  314. package/dist/components/uikit/Svg/tokens/GNANA.js +17 -0
  315. package/dist/components/uikit/Svg/tokens/GNOSIS.d.ts +4 -0
  316. package/dist/components/uikit/Svg/tokens/GNOSIS.js +17 -0
  317. package/dist/components/uikit/Svg/tokens/INEVM.d.ts +4 -0
  318. package/dist/components/uikit/Svg/tokens/INEVM.js +17 -0
  319. package/dist/components/uikit/Svg/tokens/IOTA.d.ts +4 -0
  320. package/dist/components/uikit/Svg/tokens/IOTA.js +17 -0
  321. package/dist/components/uikit/Svg/tokens/LIGHTLINK.d.ts +4 -0
  322. package/dist/components/uikit/Svg/tokens/LIGHTLINK.js +17 -0
  323. package/dist/components/uikit/Svg/tokens/LINEA.d.ts +4 -0
  324. package/dist/components/uikit/Svg/tokens/LINEA.js +17 -0
  325. package/dist/components/uikit/Svg/tokens/OKX.d.ts +4 -0
  326. package/dist/components/uikit/Svg/tokens/OKX.js +16 -0
  327. package/dist/components/uikit/Svg/tokens/OPTIMISM.d.ts +4 -0
  328. package/dist/components/uikit/Svg/tokens/OPTIMISM.js +19 -0
  329. package/dist/components/uikit/Svg/tokens/POLYGON.d.ts +4 -0
  330. package/dist/components/uikit/Svg/tokens/POLYGON.js +17 -0
  331. package/dist/components/uikit/Svg/tokens/POLYGONZK.d.ts +4 -0
  332. package/dist/components/uikit/Svg/tokens/POLYGONZK.js +17 -0
  333. package/dist/components/uikit/Svg/tokens/TLOS.d.ts +4 -0
  334. package/dist/components/uikit/Svg/tokens/TLOS.js +17 -0
  335. package/dist/components/uikit/Svg/tokens/index.d.ts +22 -0
  336. package/dist/components/uikit/Svg/tokens/index.js +22 -0
  337. package/dist/components/uikit/Svg/types.d.ts +168 -0
  338. package/dist/components/uikit/Svg/types.js +162 -0
  339. package/dist/components/uikit/Svg/walletIcons/BinanceChain.d.ts +4 -0
  340. package/dist/components/uikit/Svg/walletIcons/BinanceChain.js +17 -0
  341. package/dist/components/uikit/Svg/walletIcons/Bitkeep.d.ts +4 -0
  342. package/dist/components/uikit/Svg/walletIcons/Bitkeep.js +17 -0
  343. package/dist/components/uikit/Svg/walletIcons/Brave.d.ts +4 -0
  344. package/dist/components/uikit/Svg/walletIcons/Brave.js +17 -0
  345. package/dist/components/uikit/Svg/walletIcons/Coinbase.d.ts +4 -0
  346. package/dist/components/uikit/Svg/walletIcons/Coinbase.js +17 -0
  347. package/dist/components/uikit/Svg/walletIcons/MadWallet.d.ts +4 -0
  348. package/dist/components/uikit/Svg/walletIcons/MadWallet.js +17 -0
  349. package/dist/components/uikit/Svg/walletIcons/MathWallet.d.ts +4 -0
  350. package/dist/components/uikit/Svg/walletIcons/MathWallet.js +17 -0
  351. package/dist/components/uikit/Svg/walletIcons/Metamask.d.ts +4 -0
  352. package/dist/components/uikit/Svg/walletIcons/Metamask.js +17 -0
  353. package/dist/components/uikit/Svg/walletIcons/Nabox.d.ts +4 -0
  354. package/dist/components/uikit/Svg/walletIcons/Nabox.js +17 -0
  355. package/dist/components/uikit/Svg/walletIcons/OKX.d.ts +4 -0
  356. package/dist/components/uikit/Svg/walletIcons/OKX.js +17 -0
  357. package/dist/components/uikit/Svg/walletIcons/OntoWallet.d.ts +4 -0
  358. package/dist/components/uikit/Svg/walletIcons/OntoWallet.js +17 -0
  359. package/dist/components/uikit/Svg/walletIcons/SafePalWallet.d.ts +4 -0
  360. package/dist/components/uikit/Svg/walletIcons/SafePalWallet.js +17 -0
  361. package/dist/components/uikit/Svg/walletIcons/SocialLogin.d.ts +4 -0
  362. package/dist/components/uikit/Svg/walletIcons/SocialLogin.js +17 -0
  363. package/dist/components/uikit/Svg/walletIcons/TokenPocket.d.ts +4 -0
  364. package/dist/components/uikit/Svg/walletIcons/TokenPocket.js +17 -0
  365. package/dist/components/uikit/Svg/walletIcons/TorusWallet.d.ts +4 -0
  366. package/dist/components/uikit/Svg/walletIcons/TorusWallet.js +17 -0
  367. package/dist/components/uikit/Svg/walletIcons/TrustWallet.d.ts +4 -0
  368. package/dist/components/uikit/Svg/walletIcons/TrustWallet.js +17 -0
  369. package/dist/components/uikit/Svg/walletIcons/Unstoppable.d.ts +4 -0
  370. package/dist/components/uikit/Svg/walletIcons/Unstoppable.js +17 -0
  371. package/dist/components/uikit/Svg/walletIcons/WalletConnect.d.ts +4 -0
  372. package/dist/components/uikit/Svg/walletIcons/WalletConnect.js +17 -0
  373. package/dist/components/uikit/Svg/walletIcons/WalletImage.d.ts +3 -0
  374. package/dist/components/uikit/Svg/walletIcons/WalletImage.js +16 -0
  375. package/dist/components/uikit/Svg/walletIcons/index.d.ts +18 -0
  376. package/dist/components/uikit/Svg/walletIcons/index.js +18 -0
  377. package/dist/components/uikit/SwiperDots/index.d.ts +6 -0
  378. package/dist/components/uikit/SwiperDots/index.js +14 -0
  379. package/dist/components/uikit/Tabs/Tab.d.ts +4 -0
  380. package/dist/components/uikit/Tabs/Tab.js +34 -0
  381. package/dist/components/uikit/Tabs/TabPanel.d.ts +4 -0
  382. package/dist/components/uikit/Tabs/TabPanel.js +29 -0
  383. package/dist/components/uikit/Tabs/Tabs.d.ts +4 -0
  384. package/dist/components/uikit/Tabs/Tabs.js +67 -0
  385. package/dist/components/uikit/Tabs/index.d.ts +2 -0
  386. package/dist/components/uikit/Tabs/index.js +2 -0
  387. package/dist/components/uikit/Tabs/styles.d.ts +3 -0
  388. package/dist/components/uikit/Tabs/styles.js +40 -0
  389. package/dist/components/uikit/Tabs/types.d.ts +54 -0
  390. package/dist/components/uikit/Tabs/types.js +22 -0
  391. package/dist/components/uikit/Tag/ListTag.d.ts +4 -0
  392. package/dist/components/uikit/Tag/ListTag.js +20 -0
  393. package/dist/components/uikit/Tag/Tag.d.ts +4 -0
  394. package/dist/components/uikit/Tag/Tag.js +42 -0
  395. package/dist/components/uikit/Tag/index.d.ts +3 -0
  396. package/dist/components/uikit/Tag/index.js +2 -0
  397. package/dist/components/uikit/Tag/styles.d.ts +5 -0
  398. package/dist/components/uikit/Tag/styles.js +44 -0
  399. package/dist/components/uikit/Tag/types.d.ts +48 -0
  400. package/dist/components/uikit/Tag/types.js +34 -0
  401. package/dist/components/uikit/Text/index.d.ts +4 -0
  402. package/dist/components/uikit/Text/index.js +35 -0
  403. package/dist/components/uikit/Text/types.d.ts +23 -0
  404. package/dist/components/uikit/Text/types.js +13 -0
  405. package/dist/components/uikit/Toggle/index.d.ts +4 -0
  406. package/dist/components/uikit/Toggle/index.js +63 -0
  407. package/dist/components/uikit/Toggle/styles.d.ts +3 -0
  408. package/dist/components/uikit/Toggle/styles.js +39 -0
  409. package/dist/components/uikit/Toggle/types.d.ts +31 -0
  410. package/dist/components/uikit/Toggle/types.js +17 -0
  411. package/dist/components/uikit/Tooltip/index.d.ts +4 -0
  412. package/dist/components/uikit/Tooltip/index.js +66 -0
  413. package/dist/components/uikit/Tooltip/styles.d.ts +4 -0
  414. package/dist/components/uikit/Tooltip/styles.js +60 -0
  415. package/dist/components/uikit/Tooltip/types.d.ts +17 -0
  416. package/dist/components/uikit/Tooltip/types.js +8 -0
  417. package/dist/components/uikit/TutorialModal/index.d.ts +4 -0
  418. package/dist/components/uikit/TutorialModal/index.js +52 -0
  419. package/dist/components/uikit/TutorialModal/styles.d.ts +8 -0
  420. package/dist/components/uikit/TutorialModal/styles.js +86 -0
  421. package/dist/components/uikit/TutorialModal/types.d.ts +22 -0
  422. package/dist/components/uikit/TutorialModal/types.js +1 -0
  423. package/dist/components/uikit/TutorialModal/useTutorialModal.d.ts +6 -0
  424. package/dist/components/uikit/TutorialModal/useTutorialModal.js +20 -0
  425. package/dist/components/uikit/index.d.ts +18 -0
  426. package/dist/components/uikit/index.js +20 -0
  427. package/dist/contexts/ModalContext.d.ts +14 -0
  428. package/dist/contexts/ModalContext.js +78 -0
  429. package/dist/hooks/useIsAbond.d.ts +3 -0
  430. package/dist/hooks/useIsAbond.js +10 -0
  431. package/dist/hooks/useModal.d.ts +3 -0
  432. package/dist/hooks/useModal.js +39 -0
  433. package/dist/utils/numbers.d.ts +5 -0
  434. package/dist/utils/numbers.js +111 -0
  435. package/package.json +7 -1
@@ -0,0 +1,17 @@
1
+ var _a, _b;
2
+ export var sizes;
3
+ (function (sizes) {
4
+ sizes["SMALL"] = "sm";
5
+ sizes["MEDIUM"] = "md";
6
+ sizes["LARGE"] = "lg";
7
+ })(sizes || (sizes = {}));
8
+ export var togglePadding = (_a = {},
9
+ _a[sizes.SMALL] = { x: 4, y: 2 },
10
+ _a[sizes.MEDIUM] = { x: 6, y: 3 },
11
+ _a[sizes.LARGE] = { x: 8, y: 4 },
12
+ _a);
13
+ export var fontSizes = (_b = {},
14
+ _b[sizes.SMALL] = 0,
15
+ _b[sizes.MEDIUM] = 1,
16
+ _b[sizes.LARGE] = 2,
17
+ _b);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TooltipProps } from './types';
3
+ declare const TooltipBubble: React.FC<TooltipProps>;
4
+ export default TooltipBubble;
@@ -0,0 +1,66 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ var _a;
24
+ import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
25
+ import { Box } from 'theme-ui';
26
+ import { placements } from './types';
27
+ import style, { container } from './styles';
28
+ var placementStyles = (_a = {},
29
+ _a[placements.BOTTOMLEFT] = {
30
+ top: 'calc(100% + 15px)',
31
+ left: 0,
32
+ },
33
+ _a[placements.BOTTOMRIGHT] = {
34
+ top: 'calc(100% + 15px)',
35
+ right: 0,
36
+ },
37
+ _a[placements.TOPLEFT] = {
38
+ bottom: 'calc(100% + 15px)',
39
+ left: 0,
40
+ },
41
+ _a[placements.TOPRIGHT] = {
42
+ bottom: 'calc(100% + 15px)',
43
+ right: 0,
44
+ },
45
+ _a[placements.ONLYCONTAINERRIGHT] = {
46
+ top: 'calc(100% + 15px)',
47
+ right: 0,
48
+ },
49
+ _a);
50
+ var TooltipBubble = function (_a) {
51
+ var width = _a.width, _b = _a.placement, placement = _b === void 0 ? placements.BOTTOMRIGHT : _b, body = _a.body, backgroundColor = _a.backgroundColor, hideTooltip = _a.hideTooltip, children = _a.children, transformTip = _a.transformTip, props = __rest(_a, ["width", "placement", "body", "backgroundColor", "hideTooltip", "children", "transformTip"]);
52
+ var backgroundColorStyle = backgroundColor
53
+ ? {
54
+ backgroundColor: backgroundColor,
55
+ '&:before': {
56
+ borderBottomColor: placement === placements.BOTTOMLEFT || placement === placements.BOTTOMRIGHT ? backgroundColor : undefined,
57
+ borderTopColor: placement === placements.TOPLEFT || placement === placements.TOPRIGHT ? backgroundColor : undefined,
58
+ },
59
+ }
60
+ : {};
61
+ var handleClick = function (event) {
62
+ event.stopPropagation();
63
+ };
64
+ return (_jsxs(Box, __assign({ sx: container(hideTooltip), onClick: handleClick }, { children: [_jsx(Box, __assign({ sx: __assign({ position: 'absolute' }, (placementStyles[placement] || {})) }, { children: _jsx(Box, __assign({ sx: __assign(__assign(__assign(__assign({ position: 'relative' }, style.default), style[placement]), backgroundColorStyle), { width: width, transform: transformTip }) }, props, { children: body })) })), children] })));
65
+ };
66
+ export default TooltipBubble;
@@ -0,0 +1,4 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ export declare const container: (hide?: boolean) => ThemeUIStyleObject;
3
+ declare const styles: Record<string, ThemeUIStyleObject>;
4
+ export default styles;
@@ -0,0 +1,60 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var baseStyle = {
13
+ p: 9,
14
+ borderRadius: 'normal',
15
+ background: 'white2',
16
+ width: 'max-content',
17
+ zIndex: 'modal',
18
+ boxShadow: "0px 0px 30px rgb(200,200,200, .4)",
19
+ };
20
+ var baseDirectionArrow = {
21
+ content: '""',
22
+ display: 'block',
23
+ width: 0,
24
+ border: '12px solid transparent',
25
+ };
26
+ var topArrow = __assign(__assign({ bottom: 0 }, baseDirectionArrow), { borderBottom: 0, borderTopWidth: '15px', borderTopStyle: 'solid', transform: 'translate(-50%, calc(100%))' });
27
+ var bottomArrow = __assign(__assign({ top: 0 }, baseDirectionArrow), { borderTop: 0, borderBottomWidth: '15px', borderBottomStyle: 'solid', transform: 'translate(-50%, calc(-100%))' });
28
+ export var container = function (hide) { return ({
29
+ position: 'relative',
30
+ display: 'inline-block',
31
+ '& > div:first-of-type': {
32
+ display: 'none',
33
+ },
34
+ '&:hover > div:first-of-type': {
35
+ display: hide ? 'none' : 'block',
36
+ },
37
+ }); };
38
+ var styles = {
39
+ default: __assign({ color: 'text', fontSize: 0, lineHeight: '18px', fontWeight: 'normal' }, baseStyle),
40
+ bottomRight: {
41
+ '&::before': __assign(__assign({ position: 'absolute' }, bottomArrow), { right: '3%', borderBottomColor: 'white2' }),
42
+ },
43
+ bottomLeft: {
44
+ '&::before': __assign(__assign({ position: 'absolute' }, bottomArrow), { left: 'calc(3% + 15px)', borderBottomColor: 'white2' }),
45
+ },
46
+ topRight: {
47
+ '&::before': __assign(__assign({ position: 'absolute' }, topArrow), { right: '3%', borderTopColor: 'white2' }),
48
+ },
49
+ topLeft: {
50
+ '&::before': __assign(__assign({ position: 'absolute' }, topArrow), { left: 'calc(3% + 15px)', borderTopColor: 'white2' }),
51
+ },
52
+ onlyContainerRight: {
53
+ '&::before': {
54
+ position: 'absolute',
55
+ right: '3%',
56
+ borderBottomColor: 'white2',
57
+ },
58
+ },
59
+ };
60
+ export default styles;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ import { BoxProps } from 'theme-ui';
3
+ export declare enum placements {
4
+ TOPRIGHT = "topRight",
5
+ TOPLEFT = "topLeft",
6
+ BOTTOMRIGHT = "bottomRight",
7
+ BOTTOMLEFT = "bottomLeft",
8
+ ONLYCONTAINERRIGHT = "onlyContainerRight"
9
+ }
10
+ export type placementProps = `${placements}`;
11
+ export interface TooltipProps extends BoxProps {
12
+ width?: string;
13
+ placement?: placementProps;
14
+ body: ReactNode;
15
+ hideTooltip?: boolean;
16
+ transformTip?: string;
17
+ }
@@ -0,0 +1,8 @@
1
+ export var placements;
2
+ (function (placements) {
3
+ placements["TOPRIGHT"] = "topRight";
4
+ placements["TOPLEFT"] = "topLeft";
5
+ placements["BOTTOMRIGHT"] = "bottomRight";
6
+ placements["BOTTOMLEFT"] = "bottomLeft";
7
+ placements["ONLYCONTAINERRIGHT"] = "onlyContainerRight";
8
+ })(placements || (placements = {}));
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TModalProps } from './types';
3
+ declare const TutorialModal: React.FC<TModalProps>;
4
+ export default TutorialModal;
@@ -0,0 +1,52 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
20
+ };
21
+ import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
22
+ import { useState } from 'react';
23
+ import { Box } from 'theme-ui';
24
+ import { styles, dynamicStyles } from './styles';
25
+ import { Button, Flex, Modal, Text } from '../../uikit';
26
+ import { useIsAbond } from '../../../hooks/useIsAbond';
27
+ var Circle = function (_a) {
28
+ var index = _a.index, goToStep = _a.goToStep, isActive = _a.isActive;
29
+ return (_jsx(Flex, { sx: dynamicStyles.allCircle({ isActive: isActive }), onClick: goToStep }, "circle-".concat(index)));
30
+ };
31
+ var TutorialModal = function (_a) {
32
+ var type = _a.type, title = _a.title, description = _a.description, children = _a.children, onDismiss = _a.onDismiss, t = _a.t, isConnected = _a.isConnected;
33
+ var _b = useState(0), step = _b[0], setStep = _b[1];
34
+ var slideNumber = isConnected ? step + 1 : step;
35
+ var isAbond = useIsAbond();
36
+ var handleNext = function () {
37
+ setStep(step + 1);
38
+ };
39
+ var renderChildren = function () {
40
+ return children === null || children === void 0 ? void 0 : children.map(function (element, i) { return (_jsx(Flex, { children: step === i && (_jsx(Flex, __assign({ sx: { width: '100%', flexWrap: 'wrap', mt: ['15px', '15px', '15px', '30px'] } }, { children: element }))) }, i)); });
41
+ };
42
+ var renderDots = function () {
43
+ return __spreadArray([], Array(children === null || children === void 0 ? void 0 : children.length), true).map(function (_, index) { return (_jsx(Circle, { index: index, goToStep: function () { return setStep(index); }, isActive: index === step }, index)); });
44
+ };
45
+ return (_jsx(Modal, __assign({ zIndex: 101, onDismiss: onDismiss, sx: {
46
+ width: ['280px', '280px', '280px', '873px'],
47
+ minWidth: ['280px', '280px', '280px', '873px'],
48
+ height: ['', '', '', '500px'],
49
+ overflow: 'visible',
50
+ } }, { children: _jsxs(Flex, __assign({ className: "tutorial-modal", sx: styles.modalCon }, { children: [_jsx(Flex, __assign({ width: 22, onClick: onDismiss, sx: { cursor: 'pointer', position: 'absolute', right: '20px' } }, { children: _jsx(Text, { children: "x" }) })), _jsxs(Flex, __assign({ sx: styles.contentBody }, { children: [_jsx(Box, { sx: dynamicStyles.showApe({ slideNumber: slideNumber, type: type, isAbond: isAbond }) }), _jsxs(Flex, __assign({ sx: __assign(__assign({}, styles.rightCon), { maxWidth: ['', '', '', '55%'] }) }, { children: [_jsxs(Flex, __assign({ sx: styles.right }, { children: [_jsxs(Flex, __assign({ sx: styles.modalHeader }, { children: [_jsx(Text, __assign({ sx: styles.title }, { children: t("".concat(title)) })), _jsx(Text, __assign({ sx: styles.description }, { children: t("".concat(description)) }))] })), renderChildren()] })), _jsxs(Flex, __assign({ sx: __assign(__assign({}, styles.modalFooter), { alignItems: ['center', 'center', 'center', 'flex-start'] }) }, { children: [_jsx(Flex, __assign({ sx: styles.circles }, { children: renderDots() })), _jsx(Button, __assign({ onClick: step >= ((children === null || children === void 0 ? void 0 : children.length) || 0) - 1 ? onDismiss : handleNext, sx: styles.readyBtn }, { children: step >= ((children === null || children === void 0 ? void 0 : children.length) || 0) - 1 ? t("I'm Ready") : t('Next') }))] }))] }))] }))] })) })));
51
+ };
52
+ export default TutorialModal;
@@ -0,0 +1,8 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ export declare const dynamicStyles: Record<'showApe' | 'allCircle', (props: {
3
+ slideNumber?: number;
4
+ type?: string;
5
+ isActive?: boolean;
6
+ isAbond?: boolean;
7
+ }) => ThemeUIStyleObject>;
8
+ export declare const styles: Record<'modalCon' | 'contentBody' | 'rightCon' | 'right' | 'modalHeader' | 'title' | 'description' | 'circles' | 'readyBtn' | 'modalFooter', ThemeUIStyleObject>;
@@ -0,0 +1,86 @@
1
+ export var dynamicStyles = {
2
+ showApe: function (_a) {
3
+ var slideNumber = _a.slideNumber, type = _a.type, isAbond = _a.isAbond;
4
+ return ({
5
+ alignSelf: ['center', 'center', ''],
6
+ width: ['200px', '200px', '200px', '340px'],
7
+ height: ['200px', '200px', '200px', '340px'],
8
+ background: isAbond
9
+ ? "url(images/tutorial-modals/abond/".concat(type, "-").concat(slideNumber, ".svg)")
10
+ : "url(images/tutorial-modals/".concat(type, "-").concat(slideNumber, ".svg)"),
11
+ backgroundRepeat: 'no-repeat',
12
+ backgroundPosition: 'center',
13
+ backgroundSize: 'cover',
14
+ });
15
+ },
16
+ allCircle: function (_a) {
17
+ var isActive = _a.isActive;
18
+ return ({
19
+ width: '8px',
20
+ height: '8px',
21
+ background: isActive ? 'home.title' : 'white4',
22
+ borderRadius: '50%',
23
+ mr: '10px',
24
+ cursor: 'pointer',
25
+ '&.last-child': {
26
+ mr: 0,
27
+ },
28
+ });
29
+ },
30
+ };
31
+ export var styles = {
32
+ modalCon: {
33
+ height: '100%',
34
+ },
35
+ contentBody: {
36
+ flexDirection: ['column', 'column', 'column', 'row'],
37
+ width: '100%',
38
+ alignItems: 'center',
39
+ height: '100%',
40
+ justifyContent: ['', '', '', 'space-between'],
41
+ },
42
+ rightCon: {
43
+ width: '100%',
44
+ flexDirection: 'column',
45
+ flex: 1,
46
+ mr: ['', '', '', '10px'],
47
+ },
48
+ right: {
49
+ flexDirection: 'column',
50
+ height: '100%',
51
+ minHeight: '270px',
52
+ },
53
+ modalHeader: {
54
+ flexDirection: ['column'],
55
+ },
56
+ title: {
57
+ fontWeight: 700,
58
+ fontSize: ['18px', '18px', '18px', '24px'],
59
+ lineHeight: ['22px', '22px', '22px', '36px'],
60
+ textTransform: ['capitalize', 'capitalize', 'capitalize', 'uppercase'],
61
+ mt: ['10px'],
62
+ },
63
+ description: {
64
+ fontWeight: 400,
65
+ fontSize: '12px',
66
+ lineHeight: '18px',
67
+ textTransform: 'none',
68
+ opacity: 0.5,
69
+ mt: ['7px', '7px', '7px', 0],
70
+ },
71
+ circles: {
72
+ justifyContent: 'space-between',
73
+ alignItems: 'center',
74
+ padding: ['8px', '8px', '8px', '8px 8px 8px 0px'],
75
+ },
76
+ readyBtn: {
77
+ mt: '10px',
78
+ textTransform: 'uppercase',
79
+ height: '40px',
80
+ width: ['100%', '100%', '100%', '240px'],
81
+ },
82
+ modalFooter: {
83
+ flexDirection: 'column',
84
+ justifyContent: 'center',
85
+ },
86
+ };
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export type ActionHandler = () => void;
3
+ export interface TModalProps {
4
+ t: (key: string) => string;
5
+ onDismiss: ActionHandler;
6
+ type: string;
7
+ title: string;
8
+ description?: string;
9
+ children: React.ReactNode[];
10
+ isConnected: boolean;
11
+ width?: string;
12
+ }
13
+ export interface CountProps {
14
+ index: number;
15
+ goToStep: ActionHandler;
16
+ isActive: boolean;
17
+ }
18
+ export interface ShowApeType {
19
+ slideNumber?: number;
20
+ type?: string;
21
+ isAbond?: boolean;
22
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { TModalProps } from './types';
2
+ interface ReturnType {
3
+ onPresentTutorialModal: () => void;
4
+ }
5
+ declare const useTutorialModal: ({ type, children, title, description, onDismiss, t, isConnected, width, }: TModalProps) => ReturnType;
6
+ export default useTutorialModal;
@@ -0,0 +1,20 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "theme-ui/jsx-runtime";
13
+ import useModal from '../../../hooks/useModal';
14
+ import TutorialModal from '.';
15
+ var useTutorialModal = function (_a) {
16
+ var type = _a.type, children = _a.children, title = _a.title, description = _a.description, onDismiss = _a.onDismiss, t = _a.t, isConnected = _a.isConnected, width = _a.width;
17
+ var onPresentTutorialModal = useModal(_jsx(TutorialModal, __assign({ type: type, title: title, description: description, onDismiss: onDismiss, t: t, isConnected: isConnected, width: width }, { children: children })), true, false, 'TutorialModal')[0];
18
+ return { onPresentTutorialModal: onPresentTutorialModal };
19
+ };
20
+ export default useTutorialModal;
@@ -0,0 +1,18 @@
1
+ export { default as Svg } from './Svg';
2
+ export { default as Flex } from './Flex';
3
+ export { default as Text } from './Text';
4
+ export { default as Skeleton } from './Skeleton';
5
+ export { default as Modal } from './Modal';
6
+ export { default as CheckBox } from './Checkbox';
7
+ export { default as Tooltip } from './Tooltip';
8
+ export { default as TutorialModal } from './TutorialModal';
9
+ export { default as Spinner } from './Spinner';
10
+ export { default as Link } from './Link';
11
+ export { default as Toggle } from './Toggle';
12
+ export { default as SwiperDots } from './SwiperDots';
13
+ export { Button, IconButton } from './Button';
14
+ export { Select, SelectItem } from './Select';
15
+ export { NumericInput, Input, StyledInput } from './Input';
16
+ export { Tabs, Tab } from './Tabs';
17
+ export { Tag, ListTag } from './Tag';
18
+ export { Dropdown, DropdownItem } from './Dropdown';
@@ -0,0 +1,20 @@
1
+ // Defaults
2
+ export { default as Svg } from './Svg';
3
+ export { default as Flex } from './Flex';
4
+ export { default as Text } from './Text';
5
+ export { default as Skeleton } from './Skeleton';
6
+ export { default as Modal } from './Modal';
7
+ export { default as CheckBox } from './Checkbox';
8
+ export { default as Tooltip } from './Tooltip';
9
+ export { default as TutorialModal } from './TutorialModal';
10
+ export { default as Spinner } from './Spinner';
11
+ export { default as Link } from './Link';
12
+ export { default as Toggle } from './Toggle';
13
+ export { default as SwiperDots } from './SwiperDots';
14
+ // Exports
15
+ export { Button, IconButton } from './Button';
16
+ export { Select, SelectItem } from './Select';
17
+ export { NumericInput, Input, StyledInput } from './Input';
18
+ export { Tabs, Tab } from './Tabs';
19
+ export { Tag, ListTag } from './Tag';
20
+ export { Dropdown, DropdownItem } from './Dropdown';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface ModalsContext {
3
+ nodeId: string[];
4
+ modalNode: React.ReactNode[];
5
+ setModalNode: React.Dispatch<React.SetStateAction<React.ReactNode[]>>;
6
+ onPresent: (node: React.ReactNode, newNodeId: string, clearModalStack: boolean) => void;
7
+ handleClose: () => void;
8
+ setCloseOnOverlayClick: React.Dispatch<React.SetStateAction<boolean>>;
9
+ }
10
+ export declare const Context: React.Context<ModalsContext>;
11
+ declare const ModalProvider: ({ children }: {
12
+ children: React.ReactNode;
13
+ }) => React.JSX.Element;
14
+ export default ModalProvider;
@@ -0,0 +1,78 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
20
+ };
21
+ import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
22
+ import { Flex } from '../components/uikit';
23
+ import React, { createContext, useState } from 'react';
24
+ export var Context = createContext({
25
+ nodeId: [],
26
+ modalNode: [],
27
+ setModalNode: function () { return null; },
28
+ onPresent: function () { return null; },
29
+ handleClose: function () { return null; },
30
+ setCloseOnOverlayClick: function () { return true; },
31
+ });
32
+ var ModalProvider = function (_a) {
33
+ var children = _a.children;
34
+ var _b = useState([]), nodeId = _b[0], setNodeId = _b[1];
35
+ var _c = useState([]), modalNode = _c[0], setModalNode = _c[1];
36
+ var _d = useState(true), closeOnOverlayClick = _d[0], setCloseOnOverlayClick = _d[1];
37
+ var handlePresent = function (node, newNodeId, clearModalStack) {
38
+ if (clearModalStack) {
39
+ setModalNode([node]);
40
+ setNodeId([newNodeId]);
41
+ }
42
+ else {
43
+ setModalNode(function (prev) { return __spreadArray(__spreadArray([], prev, true), [node], false); });
44
+ setNodeId(function (prev) { return __spreadArray(__spreadArray([], prev, true), [newNodeId], false); });
45
+ }
46
+ };
47
+ var handleDismiss = function () {
48
+ var _a, _b;
49
+ if (modalNode.length > 0) {
50
+ if (React.isValidElement(modalNode[modalNode.length - 1])) {
51
+ // @ts-ignore
52
+ (_b = (_a = modalNode[modalNode.length - 1].props).onDismiss) === null || _b === void 0 ? void 0 : _b.call(_a);
53
+ }
54
+ }
55
+ setModalNode(modalNode.slice(0, modalNode.length - 1));
56
+ setNodeId(nodeId.slice(0, nodeId.length - 1));
57
+ };
58
+ var handleOverlayDismiss = function () {
59
+ if (closeOnOverlayClick) {
60
+ handleDismiss();
61
+ }
62
+ };
63
+ return (_jsxs(Context.Provider, __assign({ value: {
64
+ nodeId: nodeId,
65
+ modalNode: modalNode,
66
+ setModalNode: setModalNode,
67
+ onPresent: handlePresent,
68
+ handleClose: handleDismiss,
69
+ setCloseOnOverlayClick: setCloseOnOverlayClick,
70
+ } }, { children: [modalNode.map(function (modal, i) {
71
+ return (_jsxs(Flex, { children: [_jsx(Flex, { onClick: handleOverlayDismiss }), React.isValidElement(modal) &&
72
+ React.cloneElement(modal, {
73
+ // @ts-ignore
74
+ onDismiss: handleDismiss,
75
+ })] }, nodeId[i]));
76
+ }), children] })));
77
+ };
78
+ export default ModalProvider;
@@ -0,0 +1,3 @@
1
+ export declare const useIsAbond: () => boolean;
2
+ export declare const apeSiteName: () => string;
3
+ export declare const isAbond: () => boolean;
@@ -0,0 +1,10 @@
1
+ //TODO: remove this hooks
2
+ export var useIsAbond = function () {
3
+ return isAbond();
4
+ };
5
+ export var apeSiteName = function () {
6
+ return 'ApeBond';
7
+ };
8
+ export var isAbond = function () {
9
+ return true;
10
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const useModal: (modal: React.ReactNode, closeOnOverlayClick?: boolean, updateOnPropsChange?: boolean, modalId?: string, clearModalStack?: boolean) => [() => void, () => void];
3
+ export default useModal;
@@ -0,0 +1,39 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
10
+ import { useCallback, useContext, useEffect } from 'react';
11
+ import get from 'lodash/get';
12
+ import { Context } from '../contexts/ModalContext';
13
+ var useModal = function (modal, closeOnOverlayClick, updateOnPropsChange, modalId, clearModalStack) {
14
+ if (closeOnOverlayClick === void 0) { closeOnOverlayClick = true; }
15
+ if (updateOnPropsChange === void 0) { updateOnPropsChange = false; }
16
+ if (modalId === void 0) { modalId = 'defaultNodeId'; }
17
+ if (clearModalStack === void 0) { clearModalStack = false; }
18
+ // Clear modal stack will not update props if the parent modal gets unmounted
19
+ var _a = useContext(Context), nodeId = _a.nodeId, modalNode = _a.modalNode, setModalNode = _a.setModalNode, onPresent = _a.onPresent, handleClose = _a.handleClose, setCloseOnOverlayClick = _a.setCloseOnOverlayClick;
20
+ var onPresentCallback = useCallback(function () {
21
+ onPresent(modal, modalId, clearModalStack);
22
+ }, [modal, modalId, clearModalStack, onPresent]);
23
+ var nodeIdIndex = nodeId.indexOf(modalId);
24
+ useEffect(function () {
25
+ // NodeId is needed in case there are 2 useModal hooks on the same page and one has updateOnPropsChange
26
+ if (updateOnPropsChange) {
27
+ var modalProps = get(modal, 'props');
28
+ var oldModalProps = get(modalNode[nodeIdIndex], 'props');
29
+ if (modalProps && oldModalProps && JSON.stringify(modalProps) !== JSON.stringify(oldModalProps)) {
30
+ setModalNode(function (prev) { return __spreadArray(__spreadArray([], prev.filter(function (_, i) { return i !== nodeIdIndex; }), true), [modal], false); });
31
+ }
32
+ }
33
+ }, [updateOnPropsChange, nodeId, modalId, modal, nodeIdIndex, modalNode, setModalNode]);
34
+ useEffect(function () {
35
+ setCloseOnOverlayClick(closeOnOverlayClick);
36
+ }, [closeOnOverlayClick, setCloseOnOverlayClick]);
37
+ return [onPresentCallback, handleClose];
38
+ };
39
+ export default useModal;
@@ -0,0 +1,5 @@
1
+ export declare const isNumber: (s: string) => boolean;
2
+ export declare const floorFormatter: (n: number) => string;
3
+ export declare const volumeFormatter: (n: number) => string;
4
+ export declare const quantityFormatter: (n: number) => string;
5
+ export declare const roundWholePercentage: (n: number) => string;