@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,67 @@
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
+ import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
24
+ import React, { useEffect, useRef, useState, useCallback } from 'react';
25
+ import { Box } from 'theme-ui';
26
+ import { Button } from '../Button';
27
+ import { variants, tabPadding, sizes, fontSizes } from './types';
28
+ import styles from './styles';
29
+ var isBrowser = typeof window === 'object';
30
+ var Tabs = function (_a) {
31
+ var _b = _a.activeTab, activeTab = _b === void 0 ? 0 : _b, children = _a.children, _c = _a.variant, variant = _c === void 0 ? variants.CENTERED : _c, _d = _a.size, size = _d === void 0 ? sizes.MEDIUM : _d, props = __rest(_a, ["activeTab", "children", "variant", "size"]);
32
+ var _e = useState(), label = _e[0], setLabel = _e[1];
33
+ var activeRef = useRef(null);
34
+ var _f = useState({}), activeStyle = _f[0], setActiveStyle = _f[1];
35
+ var getActiveStyles = useCallback(function () {
36
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
37
+ return {
38
+ width: ((_c = (_b = (_a = activeRef === null || activeRef === void 0 ? void 0 : activeRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.width) || 'fit-content',
39
+ lineHeight: '17px',
40
+ left: (activeRef === null || activeRef === void 0 ? void 0 : activeRef.current)
41
+ ? ((_f = (_e = (_d = activeRef === null || activeRef === void 0 ? void 0 : activeRef.current) === null || _d === void 0 ? void 0 : _d.getBoundingClientRect) === null || _e === void 0 ? void 0 : _e.call(_d)) === null || _f === void 0 ? void 0 : _f.x) -
42
+ ((_k = (_j = (_h = (_g = activeRef === null || activeRef === void 0 ? void 0 : activeRef.current) === null || _g === void 0 ? void 0 : _g.parentNode) === null || _h === void 0 ? void 0 : _h.getBoundingClientRect) === null || _j === void 0 ? void 0 : _j.call(_h)) === null || _k === void 0 ? void 0 : _k.x)
43
+ : 0,
44
+ };
45
+ }, [activeRef]);
46
+ useEffect(function () {
47
+ React.Children.forEach(children, function (child) {
48
+ var _a, _b;
49
+ if (((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.index) === activeTab) {
50
+ setLabel((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.label);
51
+ }
52
+ });
53
+ if (size) {
54
+ setActiveStyle(getActiveStyles());
55
+ }
56
+ }, [activeTab, children, getActiveStyles, size]);
57
+ return (_jsx(Box, __assign({}, props, { sx: __assign(__assign({}, styles.tabs), { justifyContent: variant === variants.CENTERED ? 'center' : null }) }, { children: _jsxs(Box, __assign({ sx: __assign(__assign({}, styles.tabUnderlay), { width: variant === variants.FULLWIDTH ? '100%' : undefined, justifyContent: variant === variants.FULLWIDTH ? 'space-between' : 'center' }) }, { children: [React.Children.map(children, function (child) {
58
+ var _a, _b;
59
+ return React.cloneElement(child, __assign(__assign({}, child === null || child === void 0 ? void 0 : child.props), { sx: !isBrowser && ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.index) === activeTab
60
+ ? {
61
+ background: 'yellow',
62
+ color: 'primaryBright',
63
+ }
64
+ : undefined, ref: ((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.index) === activeTab ? activeRef : undefined }));
65
+ }), activeTab >= 0 && (_jsx(Button, __assign({ sx: __assign(__assign(__assign({ px: tabPadding[size].x, py: tabPadding[size].y, fontSize: fontSizes[size] }, styles.tabButton), activeStyle), { display: isBrowser ? undefined : 'none' }) }, { children: label })))] })) })));
66
+ };
67
+ export default Tabs;
@@ -0,0 +1,2 @@
1
+ export { default as Tabs } from './Tabs';
2
+ export { default as Tab } from './Tab';
@@ -0,0 +1,2 @@
1
+ export { default as Tabs } from './Tabs';
2
+ export { default as Tab } from './Tab';
@@ -0,0 +1,3 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ declare const styles: Record<string, ThemeUIStyleObject>;
3
+ export default styles;
@@ -0,0 +1,40 @@
1
+ var styles = {
2
+ tabs: {
3
+ overflow: 'hidden',
4
+ display: 'flex',
5
+ borderRadius: '10px',
6
+ background: 'transparent',
7
+ },
8
+ tabUnderlay: {
9
+ position: 'relative',
10
+ display: 'flex',
11
+ background: 'lvl1',
12
+ borderRadius: '10px',
13
+ padding: 0,
14
+ margin: 0,
15
+ },
16
+ tabButton: {
17
+ position: 'absolute',
18
+ border: 0,
19
+ top: 0,
20
+ height: '100%',
21
+ transition: 'left 0.2s linear',
22
+ textTransform: 'none',
23
+ '&:hover': {
24
+ filter: 'none',
25
+ },
26
+ },
27
+ tab: {
28
+ borderRadius: '10px',
29
+ px: '36px',
30
+ py: '9px',
31
+ background: 'white3',
32
+ color: 'primaryButtonDisable',
33
+ textAlign: 'center',
34
+ border: 0,
35
+ '&:hover': {
36
+ filter: '20%',
37
+ },
38
+ },
39
+ };
40
+ export default styles;
@@ -0,0 +1,54 @@
1
+ import { ReactNode } from 'react';
2
+ import { BoxProps } from 'theme-ui';
3
+ export declare enum sizes {
4
+ SMALL = "sm",
5
+ MEDIUM = "md",
6
+ LARGE = "lg"
7
+ }
8
+ export declare const tabPadding: {
9
+ sm: {
10
+ x: number;
11
+ y: number;
12
+ };
13
+ md: {
14
+ x: number;
15
+ y: number;
16
+ };
17
+ lg: {
18
+ x: number;
19
+ y: number;
20
+ };
21
+ };
22
+ export declare const fontSizes: {
23
+ sm: number;
24
+ md: number;
25
+ lg: number;
26
+ };
27
+ export declare enum variants {
28
+ CENTERED = "centered",
29
+ FULLWIDTH = "fullWidth"
30
+ }
31
+ export type variantProps = `${variants}`;
32
+ export type sizeProps = `${sizes}`;
33
+ export interface TabProps extends Omit<BoxProps, 'onClick'> {
34
+ index: number;
35
+ activeTab?: number;
36
+ label: string;
37
+ onClick: (activeTab: number) => void;
38
+ size: sizeProps;
39
+ variant: variantProps;
40
+ disabled?: boolean;
41
+ }
42
+ export interface TabsProps {
43
+ activeTab: number;
44
+ variant?: variantProps;
45
+ children?: ReactNode;
46
+ size?: sizeProps;
47
+ sx?: any;
48
+ }
49
+ export interface TabPanelProps {
50
+ index: number;
51
+ activeTab: number;
52
+ children?: ReactNode;
53
+ sx?: any;
54
+ }
@@ -0,0 +1,22 @@
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 tabPadding = (_a = {},
9
+ _a[sizes.SMALL] = { x: 9, y: 2 },
10
+ _a[sizes.MEDIUM] = { x: 15, y: 3 },
11
+ _a[sizes.LARGE] = { x: 16, y: 6 },
12
+ _a);
13
+ export var fontSizes = (_b = {},
14
+ _b[sizes.SMALL] = 0,
15
+ _b[sizes.MEDIUM] = 1,
16
+ _b[sizes.LARGE] = 2,
17
+ _b);
18
+ export var variants;
19
+ (function (variants) {
20
+ variants["CENTERED"] = "centered";
21
+ variants["FULLWIDTH"] = "fullWidth";
22
+ })(variants || (variants = {}));
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ListTagProps } from './types';
3
+ declare const ListTag: React.FC<ListTagProps>;
4
+ export default ListTag;
@@ -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, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
+ import { styles } from './styles';
14
+ import { lpTags } from './types';
15
+ import Flex from '../Flex';
16
+ var ListTag = function (_a) {
17
+ var variant = _a.variant, _b = _a.text, text = _b === void 0 ? '' : _b, styleCustom = _a.styleCustom;
18
+ return (_jsx(Flex, __assign({ variant: variant, sx: __assign(__assign({}, styles.listTagCont({ variant: variant })), styleCustom) }, { children: text ? (_jsx(Flex, __assign({ sx: styles.tagText({ variant: variant }) }, { children: text }))) : (_jsxs(Flex, __assign({ sx: styles.tagText({ variant: variant }) }, { children: [variant.toUpperCase().replace('_', ' '), " ", lpTags.includes(variant) && 'LP'] }))) })));
19
+ };
20
+ export default ListTag;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TagProps } from './types';
3
+ declare const Tag: React.FC<TagProps>;
4
+ export default Tag;
@@ -0,0 +1,42 @@
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
+ import { jsxs as _jsxs } from "theme-ui/jsx-runtime";
24
+ import React from 'react';
25
+ import { StyledTag } from './styles';
26
+ var Tag = function (_a) {
27
+ var startIcon = _a.startIcon, endIcon = _a.endIcon, children = _a.children, props = __rest(_a, ["startIcon", "endIcon", "children"]);
28
+ return (_jsxs(StyledTag, __assign({}, props, { children: [React.isValidElement(startIcon) &&
29
+ React.cloneElement(startIcon, {
30
+ //@ts-ignore
31
+ mr: '0.5rem',
32
+ }), children, React.isValidElement(endIcon) &&
33
+ React.cloneElement(endIcon, {
34
+ //@ts-ignore
35
+ ml: '0.5rem',
36
+ })] })));
37
+ };
38
+ Tag.defaultProps = {
39
+ variant: 'primary',
40
+ outline: false,
41
+ };
42
+ export default Tag;
@@ -0,0 +1,3 @@
1
+ export { default as Tag } from './Tag';
2
+ export { default as ListTag } from './ListTag';
3
+ export type { TagProps, Variants as TagVariants } from './types';
@@ -0,0 +1,2 @@
1
+ export { default as Tag } from './Tag';
2
+ export { default as ListTag } from './ListTag';
@@ -0,0 +1,5 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ export declare const StyledTag: any;
3
+ export declare const styles: Record<'listTagCont' | 'tagText', (props: {
4
+ variant?: any;
5
+ }) => ThemeUIStyleObject>;
@@ -0,0 +1,44 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import styled from '@emotion/styled';
6
+ var getThemeTextColor = function (_a) {
7
+ var outline = _a.outline, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b;
8
+ return (outline ? variant : '#ffffff');
9
+ };
10
+ export var StyledTag = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 16px;\n color: ", ";\n display: inline-flex;\n font-size: 14px;\n font-weight: 300;\n height: 28px;\n line-height: 1.5;\n padding: 0 8px;\n white-space: nowrap;\n\n svg {\n fill: ", ";\n }\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 16px;\n color: ", ";\n display: inline-flex;\n font-size: 14px;\n font-weight: 300;\n height: 28px;\n line-height: 1.5;\n padding: 0 8px;\n white-space: nowrap;\n\n svg {\n fill: ", ";\n }\n"])), function (_a) {
11
+ var outline = _a.outline, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b;
12
+ return (outline ? 'transparent' : variant);
13
+ }, function (_a) {
14
+ var _b = _a.variant, variant = _b === void 0 ? 'primary' : _b;
15
+ return variant;
16
+ }, getThemeTextColor, getThemeTextColor);
17
+ export var styles = {
18
+ listTagCont: function (_a) {
19
+ var _b = _a.variant, variant = _b === void 0 ? 'ape' : _b;
20
+ return ({
21
+ alignItems: 'center',
22
+ background: function (theme) { var _a, _b, _c, _d, _e; return (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.listTagBg) === null || _b === void 0 ? void 0 : _b[variant]) !== null && _c !== void 0 ? _c : (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _d === void 0 ? void 0 : _d.listTagBg) === null || _e === void 0 ? void 0 : _e.default; },
23
+ borderRadius: '3px',
24
+ display: 'inline-flex',
25
+ height: '15px',
26
+ padding: '0 5px',
27
+ });
28
+ },
29
+ tagText: function (_a) {
30
+ var _b = _a.variant, variant = _b === void 0 ? 'ape' : _b;
31
+ return ({
32
+ color: function (theme) {
33
+ var _a, _b, _c, _d, _e;
34
+ return ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.listTagTextColor) === null || _b === void 0 ? void 0 : _b[variant])
35
+ ? (_d = (_c = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _c === void 0 ? void 0 : _c.listTagTextColor) === null || _d === void 0 ? void 0 : _d[variant]
36
+ : (_e = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _e === void 0 ? void 0 : _e.primaryBright;
37
+ },
38
+ fontSize: '10px',
39
+ fontWeight: 600,
40
+ lineHeight: '15px',
41
+ });
42
+ },
43
+ };
44
+ var templateObject_1;
@@ -0,0 +1,48 @@
1
+ import { ReactNode } from 'react';
2
+ import { SpaceProps } from 'styled-system';
3
+ import { ThemeUIStyleObject } from 'theme-ui';
4
+ export declare const variants: {
5
+ readonly PRIMARY: "primary";
6
+ readonly SUCCESS: "success";
7
+ readonly BINANCE: "binance";
8
+ readonly ERROR: "error";
9
+ readonly SECONDARY: "secondary";
10
+ readonly TEXTDISABLED: "textDisabled";
11
+ readonly TEXTSUBTLE: "textSubtle";
12
+ };
13
+ export type Variants = (typeof variants)[keyof typeof variants];
14
+ export interface TagProps extends SpaceProps {
15
+ variant?: Variants;
16
+ startIcon?: ReactNode;
17
+ endIcon?: ReactNode;
18
+ children?: ReactNode;
19
+ outline?: boolean;
20
+ }
21
+ export declare const listTagVariants: {
22
+ readonly APE: "ape";
23
+ readonly UNI: "uni";
24
+ readonly ARK: "ark";
25
+ readonly NEW: "new";
26
+ readonly HOT: "hot";
27
+ readonly AUTO: "auto";
28
+ readonly MAX: "max";
29
+ readonly yield: "yield";
30
+ readonly BETA: "beta";
31
+ readonly LIQUIDITY: "liquidity";
32
+ readonly RESERVE: "reserve";
33
+ readonly LAUNCH: "launch";
34
+ readonly bondLp: "bondLp";
35
+ readonly migration: "migration";
36
+ readonly CEX_FUND: "cex_fund";
37
+ readonly QuickswapV2: "QuickSwap v2";
38
+ readonly PancakeSwapV2: "PancakeSwap v2";
39
+ readonly expired: "expired";
40
+ readonly permalock: "permalock";
41
+ };
42
+ export type ListTagVariants = (typeof listTagVariants)[keyof typeof listTagVariants];
43
+ export interface ListTagProps extends SpaceProps {
44
+ variant: ListTagVariants;
45
+ text?: string;
46
+ styleCustom?: ThemeUIStyleObject;
47
+ }
48
+ export declare const lpTags: string[];
@@ -0,0 +1,34 @@
1
+ var _a;
2
+ import { LiquidityDex } from '@ape.swap/apeswap-lists';
3
+ export var variants = {
4
+ PRIMARY: 'primary',
5
+ SUCCESS: 'success',
6
+ BINANCE: 'binance',
7
+ ERROR: 'error',
8
+ SECONDARY: 'secondary',
9
+ TEXTDISABLED: 'textDisabled',
10
+ TEXTSUBTLE: 'textSubtle',
11
+ };
12
+ export var listTagVariants = (_a = {
13
+ APE: 'ape',
14
+ UNI: 'uni',
15
+ ARK: 'ark',
16
+ NEW: 'new',
17
+ HOT: 'hot',
18
+ AUTO: 'auto',
19
+ MAX: 'max',
20
+ yield: 'yield',
21
+ BETA: 'beta',
22
+ LIQUIDITY: 'liquidity',
23
+ RESERVE: 'reserve',
24
+ LAUNCH: 'launch',
25
+ bondLp: 'bondLp',
26
+ migration: 'migration',
27
+ CEX_FUND: 'cex_fund'
28
+ },
29
+ _a[LiquidityDex.QuickswapV2] = 'QuickSwap v2',
30
+ _a[LiquidityDex.PancakeSwapV2] = 'PancakeSwap v2',
31
+ _a.expired = 'expired',
32
+ _a.permalock = 'permalock',
33
+ _a);
34
+ export var lpTags = ['ape', 'uni', 'ark'];
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TextProps } from './types';
3
+ declare const Text: ({ variant, weight, size, children, color, ...props }: TextProps | any) => React.JSX.Element;
4
+ export default Text;
@@ -0,0 +1,35 @@
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
+ import { jsx as _jsx } from "theme-ui/jsx-runtime";
24
+ import { Text as ThemeUIText } from 'theme-ui';
25
+ import { variants } from './types';
26
+ var Text = function (_a) {
27
+ var _b = _a.variant, variant = _b === void 0 ? variants.NORMAL : _b, _c = _a.weight, weight = _c === void 0 ? variants.NORMAL : _c, size = _a.size, children = _a.children, _d = _a.color, color = _d === void 0 ? 'text' : _d, props = __rest(_a, ["variant", "weight", "size", "children", "color"]);
28
+ return (_jsx(ThemeUIText, __assign({}, props, { sx: {
29
+ variant: variant === variants.LINK ? "flex.".concat(variant) : "text.".concat(variant),
30
+ color: color,
31
+ fontWeight: weight,
32
+ fontSize: size,
33
+ } }, { children: children })));
34
+ };
35
+ export default Text;
@@ -0,0 +1,23 @@
1
+ import { TextProps as ThemeUITextProps } from 'theme-ui';
2
+ export declare enum variants {
3
+ SMALL = "sm",
4
+ NORMAL = "md",
5
+ LARGE = "lg",
6
+ LINK = "link"
7
+ }
8
+ export declare enum weights {
9
+ LIGHT = "light",
10
+ NORMAL = "normal",
11
+ BOLD = "bold"
12
+ }
13
+ type variantProps = `${variants}`;
14
+ type weightProps = `${weights}` | number;
15
+ type sizeProps = string;
16
+ export interface TextProps extends Omit<ThemeUITextProps, 'sx'> {
17
+ variant?: variantProps;
18
+ weight?: weightProps;
19
+ color?: string;
20
+ size?: sizeProps;
21
+ [key: string]: any;
22
+ }
23
+ export {};
@@ -0,0 +1,13 @@
1
+ export var variants;
2
+ (function (variants) {
3
+ variants["SMALL"] = "sm";
4
+ variants["NORMAL"] = "md";
5
+ variants["LARGE"] = "lg";
6
+ variants["LINK"] = "link";
7
+ })(variants || (variants = {}));
8
+ export var weights;
9
+ (function (weights) {
10
+ weights["LIGHT"] = "light";
11
+ weights["NORMAL"] = "normal";
12
+ weights["BOLD"] = "bold";
13
+ })(weights || (weights = {}));
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ToggleProps } from './types';
3
+ declare const Toggle: React.FC<ToggleProps>;
4
+ export default Toggle;
@@ -0,0 +1,63 @@
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
+ import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
24
+ import { useState, useEffect, useRef, useCallback } from 'react';
25
+ import { Box } from 'theme-ui';
26
+ import { Button } from '../Button';
27
+ import { sizes, togglePadding, fontSizes } from './types';
28
+ import styles from './styles';
29
+ import Text from '../Text';
30
+ var isBrowser = typeof window === 'object';
31
+ var Toggle = function (_a) {
32
+ var checked = _a.checked, labels = _a.labels, _b = _a.size, size = _b === void 0 ? sizes.MEDIUM : _b, className = _a.className, props = __rest(_a, ["checked", "labels", "size", "className"]);
33
+ var inputRef = useRef(null);
34
+ var leftRef = useRef(null);
35
+ var rightRef = useRef(null);
36
+ var _c = useState(checked), isChecked = _c[0], setIsChecked = _c[1];
37
+ var _d = useState({}), activeStyle = _d[0], setActiveStyle = _d[1];
38
+ var getActiveStyles = useCallback(function () {
39
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
40
+ return isBrowser
41
+ ? {
42
+ width: ((_d = (_c = (_b = (_a = (isChecked && size ? rightRef : leftRef)) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect) === null || _c === void 0 ? void 0 : _c.call(_b)) === null || _d === void 0 ? void 0 : _d.width) || 'fit-content',
43
+ left: isChecked && (rightRef === null || rightRef === void 0 ? void 0 : rightRef.current)
44
+ ? ((_g = (_f = (_e = rightRef === null || rightRef === void 0 ? void 0 : rightRef.current) === null || _e === void 0 ? void 0 : _e.getBoundingClientRect) === null || _f === void 0 ? void 0 : _f.call(_e)) === null || _g === void 0 ? void 0 : _g.x) -
45
+ ((_l = (_k = (_j = (_h = rightRef === null || rightRef === void 0 ? void 0 : rightRef.current) === null || _h === void 0 ? void 0 : _h.parentNode) === null || _j === void 0 ? void 0 : _j.getBoundingClientRect) === null || _k === void 0 ? void 0 : _k.call(_j)) === null || _l === void 0 ? void 0 : _l.x)
46
+ : 0,
47
+ }
48
+ : {
49
+ right: isChecked ? 0 : undefined,
50
+ left: isChecked ? undefined : 0,
51
+ };
52
+ }, [isChecked, size]);
53
+ useEffect(function () {
54
+ setActiveStyle(function () { return getActiveStyles(); });
55
+ }, [getActiveStyles]);
56
+ var handleClick = function () {
57
+ var _a;
58
+ setIsChecked(!isChecked);
59
+ (_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) === null || _a === void 0 ? void 0 : _a.click();
60
+ };
61
+ return (_jsxs(Box, __assign({ className: className, sx: styles.container }, { children: [_jsx(Box, __assign({ ref: leftRef, sx: __assign(__assign({}, styles.switch), { background: 'white3', color: 'primaryButtonDisable', px: togglePadding[size].x, py: togglePadding[size].y, fontSize: fontSizes[size] }), onClick: handleClick }, { children: _jsx(Text, __assign({ variant: "sm", sx: { fontSize: fontSizes[size] }, weight: "bold" }, { children: labels[0] })) })), _jsx(Box, __assign({ ref: rightRef, sx: __assign(__assign({}, styles.switch), { background: 'white3', color: 'primaryButtonDisable', px: togglePadding[size].x, py: togglePadding[size].y, fontSize: fontSizes[size] }), onClick: handleClick }, { children: _jsx(Text, __assign({ variant: "sm", sx: { fontSize: fontSizes[size] }, weight: "bold" }, { children: labels[1] })) })), _jsx(Button, __assign({ sx: __assign(__assign(__assign({}, styles.button), activeStyle), { fontSize: fontSizes[size], px: togglePadding[size].x, py: togglePadding[size].y }) }, { children: isChecked ? labels[1] : labels[0] })), _jsx("input", __assign({ type: "checkbox", ref: inputRef, checked: isChecked, "aria-hidden": "true", tabIndex: -1 }, props, { sx: styles.input }))] })));
62
+ };
63
+ export default Toggle;
@@ -0,0 +1,3 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ declare const styles: Record<string, ThemeUIStyleObject>;
3
+ export default styles;
@@ -0,0 +1,39 @@
1
+ var styles = {
2
+ container: {
3
+ display: 'flex',
4
+ borderRadius: '10px',
5
+ background: 'white3',
6
+ width: 'fit-content',
7
+ position: 'relative',
8
+ justifyItems: 'center',
9
+ },
10
+ switch: {
11
+ borderRadius: '10px',
12
+ px: '14px',
13
+ py: '9px',
14
+ cursor: 'pointer',
15
+ '&:hover': {
16
+ filter: '20%',
17
+ },
18
+ },
19
+ button: {
20
+ position: 'absolute',
21
+ border: 0,
22
+ top: 0,
23
+ height: '100%',
24
+ transition: 'left 0.2s linear',
25
+ textTransform: 'none',
26
+ '&:hover': {
27
+ filter: 'none',
28
+ },
29
+ },
30
+ input: {
31
+ bottom: 0,
32
+ left: 0,
33
+ position: 'absolute',
34
+ opacity: 0,
35
+ pointerEvents: 'none',
36
+ width: '100%',
37
+ },
38
+ };
39
+ export default styles;
@@ -0,0 +1,31 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export declare enum sizes {
3
+ SMALL = "sm",
4
+ MEDIUM = "md",
5
+ LARGE = "lg"
6
+ }
7
+ export declare const togglePadding: {
8
+ sm: {
9
+ x: number;
10
+ y: number;
11
+ };
12
+ md: {
13
+ x: number;
14
+ y: number;
15
+ };
16
+ lg: {
17
+ x: number;
18
+ y: number;
19
+ };
20
+ };
21
+ export declare const fontSizes: {
22
+ sm: number;
23
+ md: number;
24
+ lg: number;
25
+ };
26
+ export type sizeProps = `${sizes}`;
27
+ export interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
28
+ checked?: boolean;
29
+ labels: [string, string];
30
+ size?: sizeProps;
31
+ }