@ape.swap/bonds-sdk 1.0.779 → 1.1.0-seedify

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 (455) hide show
  1. package/dist/components/AccordionText/index.d.ts +9 -0
  2. package/dist/components/BondRows/BondRow.d.ts +3 -2
  3. package/dist/components/BondRows/BondRowHeader.d.ts +2 -3
  4. package/dist/components/BondRows/BondRowsByChain.d.ts +3 -3
  5. package/dist/components/BondRows/BondRowsWithTitle.d.ts +3 -3
  6. package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -0
  7. package/dist/components/SlippageModal/index.d.ts +3 -0
  8. package/dist/components/TokenInfoAndName/index.d.ts +3 -2
  9. package/dist/components/TokenSelectorModal/TokenRow.d.ts +8 -0
  10. package/dist/components/TokenSelectorModal/index.d.ts +11 -0
  11. package/dist/components/TokenSelectorPanel/index.d.ts +15 -0
  12. package/dist/components/uikit-sdk/Modal/index.d.ts +1 -1
  13. package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
  14. package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
  15. package/dist/components/uikit-sdk/TokenImage/index.d.ts +3 -2
  16. package/dist/components/uikit-sdk/index.d.ts +1 -0
  17. package/dist/config/abi/types/Banana.d.ts +103 -126
  18. package/dist/config/abi/types/Bond.d.ts +176 -221
  19. package/dist/config/abi/types/BondNft.d.ts +160 -207
  20. package/dist/config/abi/types/EnsPublicResolver.d.ts +129 -205
  21. package/dist/config/abi/types/EnsRegistrar.d.ts +62 -82
  22. package/dist/config/abi/types/Erc20.d.ts +40 -52
  23. package/dist/config/abi/types/Erc20_bytes32.d.ts +11 -11
  24. package/dist/config/abi/types/JungleChef.d.ts +64 -79
  25. package/dist/config/abi/types/LaunchBonds.d.ts +299 -355
  26. package/dist/config/abi/types/LensContract.d.ts +58 -77
  27. package/dist/config/abi/types/LockVeAbond.d.ts +328 -434
  28. package/dist/config/abi/types/MigrationBond.d.ts +268 -330
  29. package/dist/config/abi/types/MigrationFveAbond.d.ts +83 -89
  30. package/dist/config/abi/types/MiniComplexRewarder.d.ts +99 -145
  31. package/dist/config/abi/types/Multicallv2.d.ts +35 -46
  32. package/dist/config/abi/types/Multicallv3.d.ts +14 -14
  33. package/dist/config/abi/types/NonFungibleApes.d.ts +130 -170
  34. package/dist/config/abi/types/NonFungibleBananas.d.ts +135 -172
  35. package/dist/config/abi/types/PriceGetter.d.ts +218 -255
  36. package/dist/config/abi/types/PriceGetterLinea.d.ts +254 -287
  37. package/dist/config/abi/types/PriceGetterV2.d.ts +239 -276
  38. package/dist/config/abi/types/SousChef.d.ts +140 -177
  39. package/dist/config/abi/types/Treasury.d.ts +66 -69
  40. package/dist/config/abi/types/Weth.d.ts +53 -68
  41. package/dist/config/abi/types/Zap.d.ts +97 -141
  42. package/dist/config/abi/types/common.d.ts +3 -3
  43. package/dist/config/abi/types/factories/Banana__factory.d.ts +3 -3
  44. package/dist/config/abi/types/factories/BondNft__factory.d.ts +3 -3
  45. package/dist/config/abi/types/factories/Bond__factory.d.ts +3 -3
  46. package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +3 -3
  47. package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +3 -3
  48. package/dist/config/abi/types/factories/Erc20__factory.d.ts +3 -3
  49. package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +3 -3
  50. package/dist/config/abi/types/factories/JungleChef__factory.d.ts +3 -3
  51. package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +3 -3
  52. package/dist/config/abi/types/factories/LensContract__factory.d.ts +3 -3
  53. package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +3 -3
  54. package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +3 -3
  55. package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +3 -3
  56. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +3 -3
  57. package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +3 -3
  58. package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +3 -3
  59. package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +3 -3
  60. package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +3 -3
  61. package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +3 -3
  62. package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +3 -3
  63. package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +3 -3
  64. package/dist/config/abi/types/factories/SousChef__factory.d.ts +3 -3
  65. package/dist/config/abi/types/factories/Treasury__factory.d.ts +3 -3
  66. package/dist/config/abi/types/factories/Weth__factory.d.ts +3 -3
  67. package/dist/config/abi/types/factories/Zap__factory.d.ts +3 -3
  68. package/dist/config/abi/types/factories/index.d.ts +25 -25
  69. package/dist/config/abi/types/index.d.ts +51 -51
  70. package/dist/config/constants/addresses.d.ts +0 -8
  71. package/dist/config/constants/queryKeys.d.ts +10 -2
  72. package/dist/config/constants/tokens.d.ts +3 -6
  73. package/dist/config/constants/zapInputTokens.d.ts +2 -0
  74. package/dist/hooks/useTokenFromZapList.d.ts +3 -0
  75. package/dist/hooks/useTopThreeTags.d.ts +2 -2
  76. package/dist/main.d.ts +7 -0
  77. package/dist/main.js +73492 -0
  78. package/dist/providers/index.d.ts +0 -3
  79. package/dist/scss/AccordionText.scss +11 -0
  80. package/dist/scss/BondMenu.scss +2 -2
  81. package/dist/scss/BondModal.scss +305 -234
  82. package/dist/scss/BondRow.scss +5 -5
  83. package/dist/scss/BondRowHeader.scss +7 -7
  84. package/dist/scss/Bonds.scss +2 -1
  85. package/dist/scss/TokenInfoName.scss +60 -0
  86. package/dist/scss/YourBonds.scss +19 -14
  87. package/dist/scss/YourBondsModal.scss +3 -3
  88. package/dist/scss/index.scss +12 -0
  89. package/dist/state/allowance/useAllowance.d.ts +15 -0
  90. package/dist/state/balance/useCurrencyBalance.d.ts +4 -0
  91. package/dist/state/bonds/useBondNFTData.d.ts +5 -0
  92. package/dist/state/bonds/useBondsData.d.ts +4 -0
  93. package/dist/state/bonds/useBondsList.d.ts +4 -0
  94. package/dist/state/bonds/useHotBonds.d.ts +3 -0
  95. package/dist/state/bonds/useUserBonds.d.ts +5 -0
  96. package/dist/state/price/useCurrencyPrice.d.ts +3 -0
  97. package/dist/state/slippage/useSlippage.d.ts +1 -0
  98. package/dist/state/tokenPrices/useTokenPrices.d.ts +29 -0
  99. package/dist/state/zap/getChainParam.d.ts +12 -0
  100. package/dist/state/zap/useSoulZapBondQuote.d.ts +4 -0
  101. package/dist/state/zap/useSoulZapTokenQuote.d.ts +3 -0
  102. package/dist/types/bonds.d.ts +4 -41
  103. package/dist/types/yourbonds.d.ts +54 -69
  104. package/dist/utils/displayHelpers.d.ts +13 -0
  105. package/dist/utils/getNativeTicker.d.ts +3 -0
  106. package/dist/utils/index.d.ts +1 -1
  107. package/dist/views/BondModal/BondModal.d.ts +7 -6
  108. package/dist/views/BondModal/helper.d.ts +6 -6
  109. package/dist/views/BondModal/index.d.ts +2 -2
  110. package/dist/views/Bonds/Bonds.d.ts +7 -10
  111. package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
  112. package/dist/views/Bonds/index.d.ts +4 -0
  113. package/dist/views/Bonds/utils.d.ts +14 -0
  114. package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
  115. package/dist/views/FullBondsView/index.d.ts +3 -0
  116. package/dist/views/YourBonds/YourBonds.d.ts +1 -11
  117. package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
  118. package/dist/views/YourBonds/fetchBillsUser.d.ts +4 -5
  119. package/dist/views/YourBonds/index.d.ts +3 -0
  120. package/dist/views/YourBondsModal/YourBondsModal.d.ts +4 -5
  121. package/dist/views/ZapModal/index.d.ts +14 -0
  122. package/dist/views/ZapModal/styles.d.ts +2 -0
  123. package/package.json +24 -24
  124. package/dist/components/BondMenu/BondMenu.js +0 -40
  125. package/dist/components/BondMenu/useChainFilterOption.js +0 -30
  126. package/dist/components/BondRows/BondRow.js +0 -81
  127. package/dist/components/BondRows/BondRowHeader.js +0 -12
  128. package/dist/components/BondRows/BondRowsByChain.js +0 -13
  129. package/dist/components/BondRows/BondRowsWithTitle.js +0 -20
  130. package/dist/components/BondRows/ChainTitle.js +0 -18
  131. package/dist/components/MenuSelect/MenuSelect.js +0 -36
  132. package/dist/components/MenuSelect/RecommendationSelector.js +0 -32
  133. package/dist/components/MenuSelect/types.js +0 -1
  134. package/dist/components/NetworkFilter/index.js +0 -66
  135. package/dist/components/ProgressBar/ProgressBar.js +0 -10
  136. package/dist/components/ProgressBar/ProgressBarWrapper.js +0 -9
  137. package/dist/components/ProgressBar/styles.js +0 -82
  138. package/dist/components/TokenInfoAndName/index.js +0 -61
  139. package/dist/components/Tooltip/ButtonsRow.js +0 -21
  140. package/dist/components/Tooltip/Tooltip.js +0 -13
  141. package/dist/components/Tooltip/styles.js +0 -44
  142. package/dist/components/uikit-sdk/Button/Button.js +0 -91
  143. package/dist/components/uikit-sdk/Button/IconButton.js +0 -33
  144. package/dist/components/uikit-sdk/Button/index.js +0 -2
  145. package/dist/components/uikit-sdk/Button/styles.js +0 -30
  146. package/dist/components/uikit-sdk/Button/types.js +0 -37
  147. package/dist/components/uikit-sdk/Checkbox/index.js +0 -46
  148. package/dist/components/uikit-sdk/Checkbox/types.js +0 -5
  149. package/dist/components/uikit-sdk/Flex/index.js +0 -29
  150. package/dist/components/uikit-sdk/Input/Input.js +0 -72
  151. package/dist/components/uikit-sdk/Input/NumericInput.js +0 -35
  152. package/dist/components/uikit-sdk/Input/StyledInput.js +0 -26
  153. package/dist/components/uikit-sdk/Input/index.js +0 -3
  154. package/dist/components/uikit-sdk/Modal/ModalFooter.js +0 -21
  155. package/dist/components/uikit-sdk/Modal/ModalHeader.js +0 -31
  156. package/dist/components/uikit-sdk/Modal/index.js +0 -46
  157. package/dist/components/uikit-sdk/Modal/styles.js +0 -62
  158. package/dist/components/uikit-sdk/Modal/types.js +0 -1
  159. package/dist/components/uikit-sdk/Select/Select.js +0 -61
  160. package/dist/components/uikit-sdk/Select/SelectItem.js +0 -40
  161. package/dist/components/uikit-sdk/Select/index.js +0 -2
  162. package/dist/components/uikit-sdk/Select/styles.js +0 -50
  163. package/dist/components/uikit-sdk/Select/types.js +0 -37
  164. package/dist/components/uikit-sdk/Skeleton/index.js +0 -31
  165. package/dist/components/uikit-sdk/Skeleton/styles.js +0 -40
  166. package/dist/components/uikit-sdk/Skeleton/types.js +0 -10
  167. package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +0 -16
  168. package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +0 -6
  169. package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +0 -16
  170. package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +0 -6
  171. package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +0 -17
  172. package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +0 -6
  173. package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +0 -16
  174. package/dist/components/uikit-sdk/Svg/Icons/Audit.js +0 -16
  175. package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +0 -6
  176. package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +0 -16
  177. package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +0 -17
  178. package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +0 -16
  179. package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +0 -16
  180. package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +0 -16
  181. package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +0 -16
  182. package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +0 -5
  183. package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +0 -16
  184. package/dist/components/uikit-sdk/Svg/Icons/Card.js +0 -16
  185. package/dist/components/uikit-sdk/Svg/Icons/Caret.js +0 -16
  186. package/dist/components/uikit-sdk/Svg/Icons/Chain.js +0 -9
  187. package/dist/components/uikit-sdk/Svg/Icons/Chart.js +0 -16
  188. package/dist/components/uikit-sdk/Svg/Icons/Chat.js +0 -16
  189. package/dist/components/uikit-sdk/Svg/Icons/Close.js +0 -9
  190. package/dist/components/uikit-sdk/Svg/Icons/Cog.js +0 -16
  191. package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +0 -16
  192. package/dist/components/uikit-sdk/Svg/Icons/Copy.js +0 -16
  193. package/dist/components/uikit-sdk/Svg/Icons/Discord.js +0 -16
  194. package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +0 -16
  195. package/dist/components/uikit-sdk/Svg/Icons/Docs.js +0 -16
  196. package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +0 -16
  197. package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +0 -16
  198. package/dist/components/uikit-sdk/Svg/Icons/Error.js +0 -16
  199. package/dist/components/uikit-sdk/Svg/Icons/Expand.js +0 -16
  200. package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +0 -16
  201. package/dist/components/uikit-sdk/Svg/Icons/External.js +0 -16
  202. package/dist/components/uikit-sdk/Svg/Icons/Farm.js +0 -16
  203. package/dist/components/uikit-sdk/Svg/Icons/Fav.js +0 -16
  204. package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +0 -16
  205. package/dist/components/uikit-sdk/Svg/Icons/Fire.js +0 -6
  206. package/dist/components/uikit-sdk/Svg/Icons/Frame.js +0 -16
  207. package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +0 -6
  208. package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +0 -16
  209. package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +0 -6
  210. package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +0 -16
  211. package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +0 -16
  212. package/dist/components/uikit-sdk/Svg/Icons/Home.js +0 -16
  213. package/dist/components/uikit-sdk/Svg/Icons/Hot.js +0 -6
  214. package/dist/components/uikit-sdk/Svg/Icons/Info.js +0 -16
  215. package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +0 -16
  216. package/dist/components/uikit-sdk/Svg/Icons/Insight.js +0 -16
  217. package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +0 -16
  218. package/dist/components/uikit-sdk/Svg/Icons/Island.js +0 -16
  219. package/dist/components/uikit-sdk/Svg/Icons/Language.js +0 -16
  220. package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +0 -16
  221. package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +0 -6
  222. package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +0 -16
  223. package/dist/components/uikit-sdk/Svg/Icons/Logout.js +0 -16
  224. package/dist/components/uikit-sdk/Svg/Icons/Medium.js +0 -16
  225. package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +0 -16
  226. package/dist/components/uikit-sdk/Svg/Icons/Message.js +0 -9
  227. package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +0 -16
  228. package/dist/components/uikit-sdk/Svg/Icons/Moon.js +0 -16
  229. package/dist/components/uikit-sdk/Svg/Icons/More.js +0 -16
  230. package/dist/components/uikit-sdk/Svg/Icons/NFA.js +0 -16
  231. package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +0 -16
  232. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +0 -16
  233. package/dist/components/uikit-sdk/Svg/Icons/Play.js +0 -5
  234. package/dist/components/uikit-sdk/Svg/Icons/Pool.js +0 -16
  235. package/dist/components/uikit-sdk/Svg/Icons/Positions.js +0 -16
  236. package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +0 -6
  237. package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js +0 -16
  238. package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +0 -6
  239. package/dist/components/uikit-sdk/Svg/Icons/Question.js +0 -6
  240. package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +0 -16
  241. package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +0 -16
  242. package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +0 -16
  243. package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +0 -16
  244. package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +0 -16
  245. package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +0 -16
  246. package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +0 -16
  247. package/dist/components/uikit-sdk/Svg/Icons/Search.js +0 -16
  248. package/dist/components/uikit-sdk/Svg/Icons/Send.js +0 -16
  249. package/dist/components/uikit-sdk/Svg/Icons/Settings.js +0 -16
  250. package/dist/components/uikit-sdk/Svg/Icons/Share.js +0 -16
  251. package/dist/components/uikit-sdk/Svg/Icons/Sort.js +0 -16
  252. package/dist/components/uikit-sdk/Svg/Icons/Success.js +0 -16
  253. package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +0 -16
  254. package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +0 -16
  255. package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +0 -16
  256. package/dist/components/uikit-sdk/Svg/Icons/Tag.js +0 -5
  257. package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +0 -16
  258. package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +0 -16
  259. package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +0 -6
  260. package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +0 -16
  261. package/dist/components/uikit-sdk/Svg/Icons/Trade.js +0 -16
  262. package/dist/components/uikit-sdk/Svg/Icons/Trash.js +0 -16
  263. package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +0 -16
  264. package/dist/components/uikit-sdk/Svg/Icons/URL.js +0 -16
  265. package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +0 -16
  266. package/dist/components/uikit-sdk/Svg/Icons/Verified.js +0 -6
  267. package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +0 -16
  268. package/dist/components/uikit-sdk/Svg/Icons/Warning.js +0 -16
  269. package/dist/components/uikit-sdk/Svg/Icons/Watch.js +0 -16
  270. package/dist/components/uikit-sdk/Svg/Icons/Website.js +0 -16
  271. package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +0 -16
  272. package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +0 -16
  273. package/dist/components/uikit-sdk/Svg/Icons/XNew.js +0 -16
  274. package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +0 -6
  275. package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +0 -16
  276. package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +0 -16
  277. package/dist/components/uikit-sdk/Svg/Icons/index.js +0 -112
  278. package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +0 -16
  279. package/dist/components/uikit-sdk/Svg/Icons/types.js +0 -1
  280. package/dist/components/uikit-sdk/Svg/index.js +0 -347
  281. package/dist/components/uikit-sdk/Svg/styles.js +0 -16
  282. package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +0 -6
  283. package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +0 -6
  284. package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +0 -6
  285. package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +0 -6
  286. package/dist/components/uikit-sdk/Svg/tokens/BASE.js +0 -6
  287. package/dist/components/uikit-sdk/Svg/tokens/BNB.js +0 -6
  288. package/dist/components/uikit-sdk/Svg/tokens/BSC.js +0 -6
  289. package/dist/components/uikit-sdk/Svg/tokens/CELO.js +0 -5
  290. package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +0 -6
  291. package/dist/components/uikit-sdk/Svg/tokens/ETH.js +0 -6
  292. package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +0 -6
  293. package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +0 -6
  294. package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +0 -6
  295. package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +0 -6
  296. package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +0 -6
  297. package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +0 -6
  298. package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +0 -6
  299. package/dist/components/uikit-sdk/Svg/tokens/OKX.js +0 -5
  300. package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +0 -8
  301. package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +0 -6
  302. package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +0 -6
  303. package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +0 -6
  304. package/dist/components/uikit-sdk/Svg/tokens/index.js +0 -22
  305. package/dist/components/uikit-sdk/Svg/types.js +0 -165
  306. package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +0 -6
  307. package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +0 -6
  308. package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +0 -6
  309. package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +0 -6
  310. package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +0 -6
  311. package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +0 -6
  312. package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +0 -6
  313. package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +0 -6
  314. package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +0 -6
  315. package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +0 -6
  316. package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +0 -6
  317. package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +0 -6
  318. package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +0 -6
  319. package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +0 -6
  320. package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +0 -6
  321. package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +0 -6
  322. package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +0 -6
  323. package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +0 -5
  324. package/dist/components/uikit-sdk/Svg/walletIcons/index.js +0 -18
  325. package/dist/components/uikit-sdk/Tag/ListTag.js +0 -20
  326. package/dist/components/uikit-sdk/Tag/Tag.js +0 -42
  327. package/dist/components/uikit-sdk/Tag/index.js +0 -2
  328. package/dist/components/uikit-sdk/Tag/styles.js +0 -44
  329. package/dist/components/uikit-sdk/Tag/types.js +0 -34
  330. package/dist/components/uikit-sdk/Text/index.js +0 -35
  331. package/dist/components/uikit-sdk/Text/types.js +0 -13
  332. package/dist/components/uikit-sdk/TokenImage/index.js +0 -18
  333. package/dist/components/uikit-sdk/TooltipBubble/index.js +0 -66
  334. package/dist/components/uikit-sdk/TooltipBubble/styles.js +0 -60
  335. package/dist/components/uikit-sdk/TooltipBubble/types.js +0 -8
  336. package/dist/components/uikit-sdk/index.js +0 -12
  337. package/dist/config/abi/bond.json +0 -450
  338. package/dist/config/abi/erc20.json +0 -117
  339. package/dist/config/abi/multicallv2.json +0 -143
  340. package/dist/config/abi/types/Banana.js +0 -1
  341. package/dist/config/abi/types/Bond.js +0 -1
  342. package/dist/config/abi/types/BondNft.js +0 -1
  343. package/dist/config/abi/types/EnsPublicResolver.js +0 -1
  344. package/dist/config/abi/types/EnsRegistrar.js +0 -1
  345. package/dist/config/abi/types/Erc20.js +0 -1
  346. package/dist/config/abi/types/Erc20_bytes32.js +0 -1
  347. package/dist/config/abi/types/JungleChef.js +0 -1
  348. package/dist/config/abi/types/LaunchBonds.js +0 -1
  349. package/dist/config/abi/types/LensContract.js +0 -1
  350. package/dist/config/abi/types/LockVeAbond.js +0 -1
  351. package/dist/config/abi/types/MigrationBond.js +0 -1
  352. package/dist/config/abi/types/MigrationFveAbond.js +0 -1
  353. package/dist/config/abi/types/MiniComplexRewarder.js +0 -1
  354. package/dist/config/abi/types/Multicallv2.js +0 -1
  355. package/dist/config/abi/types/Multicallv3.js +0 -1
  356. package/dist/config/abi/types/NonFungibleApes.js +0 -1
  357. package/dist/config/abi/types/NonFungibleBananas.js +0 -1
  358. package/dist/config/abi/types/PriceGetter.js +0 -1
  359. package/dist/config/abi/types/PriceGetterLinea.js +0 -1
  360. package/dist/config/abi/types/PriceGetterV2.js +0 -1
  361. package/dist/config/abi/types/SousChef.js +0 -1
  362. package/dist/config/abi/types/Treasury.js +0 -1
  363. package/dist/config/abi/types/Weth.js +0 -1
  364. package/dist/config/abi/types/Zap.js +0 -1
  365. package/dist/config/abi/types/common.js +0 -1
  366. package/dist/config/abi/types/factories/Banana__factory.js +0 -628
  367. package/dist/config/abi/types/factories/BondNft__factory.js +0 -951
  368. package/dist/config/abi/types/factories/Bond__factory.js +0 -1042
  369. package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +0 -833
  370. package/dist/config/abi/types/factories/EnsRegistrar__factory.js +0 -439
  371. package/dist/config/abi/types/factories/Erc20__factory.js +0 -239
  372. package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +0 -47
  373. package/dist/config/abi/types/factories/JungleChef__factory.js +0 -326
  374. package/dist/config/abi/types/factories/LaunchBonds__factory.js +0 -2031
  375. package/dist/config/abi/types/factories/LensContract__factory.js +0 -338
  376. package/dist/config/abi/types/factories/LockVeAbond__factory.js +0 -2215
  377. package/dist/config/abi/types/factories/MigrationBond__factory.js +0 -1656
  378. package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +0 -346
  379. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +0 -586
  380. package/dist/config/abi/types/factories/Multicallv2__factory.js +0 -160
  381. package/dist/config/abi/types/factories/Multicallv3__factory.js +0 -109
  382. package/dist/config/abi/types/factories/NonFungibleApes__factory.js +0 -810
  383. package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +0 -756
  384. package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +0 -1465
  385. package/dist/config/abi/types/factories/PriceGetterV2__factory.js +0 -1364
  386. package/dist/config/abi/types/factories/PriceGetter__factory.js +0 -1326
  387. package/dist/config/abi/types/factories/SousChef__factory.js +0 -666
  388. package/dist/config/abi/types/factories/Treasury__factory.js +0 -309
  389. package/dist/config/abi/types/factories/Weth__factory.js +0 -296
  390. package/dist/config/abi/types/factories/Zap__factory.js +0 -889
  391. package/dist/config/abi/types/factories/index.js +0 -28
  392. package/dist/config/abi/types/index.js +0 -26
  393. package/dist/config/constants/addresses.js +0 -116
  394. package/dist/config/constants/api.js +0 -6
  395. package/dist/config/constants/chains.js +0 -436
  396. package/dist/config/constants/lifiRouting.js +0 -6
  397. package/dist/config/constants/lists.js +0 -21
  398. package/dist/config/constants/meta.js +0 -92
  399. package/dist/config/constants/misc.js +0 -4
  400. package/dist/config/constants/networks.js +0 -44
  401. package/dist/config/constants/products.js +0 -58
  402. package/dist/config/constants/queryKeys.js +0 -24
  403. package/dist/config/constants/tokens.js +0 -452
  404. package/dist/config/constants/tutorials.js +0 -80
  405. package/dist/config/localization/languages.js +0 -83
  406. package/dist/config/localization/translations.json +0 -918
  407. package/dist/contexts/Localization/Provider.js +0 -134
  408. package/dist/contexts/Localization/helpers.js +0 -63
  409. package/dist/contexts/Localization/index.js +0 -2
  410. package/dist/contexts/Localization/types.js +0 -1
  411. package/dist/contexts/Localization/useTranslation.js +0 -10
  412. package/dist/contexts/ModalContext.js +0 -67
  413. package/dist/contexts/RefreshContext.js +0 -78
  414. package/dist/enum/apeswaplists.d.ts +0 -418
  415. package/dist/enum/apeswaplists.js +0 -152
  416. package/dist/enum/tooltips.js +0 -13
  417. package/dist/hooks/useCookie.js +0 -29
  418. package/dist/hooks/useIsAbond.js +0 -10
  419. package/dist/hooks/useModal.js +0 -39
  420. package/dist/hooks/usePendingVesting.js +0 -13
  421. package/dist/hooks/useRefresh.js +0 -7
  422. package/dist/hooks/useTimer.js +0 -13
  423. package/dist/hooks/useTopThreeTags.js +0 -25
  424. package/dist/index.d.ts +0 -5
  425. package/dist/index.js +0 -6
  426. package/dist/providers/index.js +0 -12
  427. package/dist/theme/base.js +0 -123
  428. package/dist/theme/colors.js +0 -93
  429. package/dist/theme/components.js +0 -338
  430. package/dist/theme/display.js +0 -2
  431. package/dist/theme/index.js +0 -15
  432. package/dist/theme/types.js +0 -1
  433. package/dist/types/bonds.js +0 -1
  434. package/dist/types/yourbonds.js +0 -1
  435. package/dist/utils/convertToTokenValue.js +0 -24
  436. package/dist/utils/formatNumber.js +0 -34
  437. package/dist/utils/formatNumbers.js +0 -148
  438. package/dist/utils/getBalanceNumber.js +0 -18
  439. package/dist/utils/getTimePeriods.js +0 -44
  440. package/dist/utils/index.js +0 -127
  441. package/dist/utils/localStorageHelpers.js +0 -47
  442. package/dist/utils/multicall.js +0 -90
  443. package/dist/utils/numbers.js +0 -111
  444. package/dist/utils/roundNumber.js +0 -14
  445. package/dist/utils/track.js +0 -17
  446. package/dist/views/BondModal/BondModal.js +0 -277
  447. package/dist/views/BondModal/helper.js +0 -54
  448. package/dist/views/BondModal/index.js +0 -18
  449. package/dist/views/Bonds/Bonds.js +0 -174
  450. package/dist/views/YourBonds/YourBonds.js +0 -276
  451. package/dist/views/YourBonds/fetchBillsUser.js +0 -235
  452. package/dist/views/YourBonds/getBillNftData.js +0 -109
  453. package/dist/views/YourBondsModal/YourBondsModal.js +0 -173
  454. package/dist/views/YourBondsModal/styles.js +0 -12
  455. /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
@@ -2,12 +2,13 @@
2
2
  import React from 'react';
3
3
  import '../../scss/BondModal.scss';
4
4
  export interface BondModalProps {
5
- account: string;
6
- isActive: boolean;
7
- isOpen: boolean;
8
- onClose: () => void;
9
- bondAddress: string | null;
10
- accountChainId: number;
5
+ onDismiss?: () => void;
6
+ bondAddress?: string;
7
+ bondChain?: number;
8
+ variant?: 'standard' | 'alt';
9
+ accordionTitle?: string;
10
+ accordionBody?: string;
11
+ accordionVisible?: boolean;
11
12
  }
12
13
  declare const BondModal: React.FC<BondModalProps>;
13
14
  export default BondModal;
@@ -1,10 +1,10 @@
1
- import { BondsDataResponse } from "../../types/bonds";
1
+ import { BondsData } from '../../types/bonds';
2
2
  declare function formatNumber(input: string): string;
3
3
  declare function formatUSDNumber(input: string): string;
4
4
  declare const youSpend: (inputValue: string) => string;
5
- declare const youSpendUSD: (bond: BondsDataResponse, inputValue: string) => string;
6
- declare const youGet: (bond: BondsDataResponse, inputValue: string) => string;
7
- declare const youGetUSD: (bond: BondsDataResponse, inputValue: string) => string;
8
- declare const premium: (bond: BondsDataResponse, inputValue: string) => string;
9
- declare const getPremiumColor: (bond: BondsDataResponse, inputValue: string) => string;
5
+ declare const youSpendUSD: (bond: BondsData, inputValue: string) => string;
6
+ declare const youGet: (bond: BondsData, inputValue: string) => number;
7
+ declare const youGetUSD: (bond: BondsData, inputValue: string) => string;
8
+ declare const premium: (bond: BondsData, inputValue: string) => string;
9
+ declare const getPremiumColor: (bond: BondsData, inputValue: string) => string;
10
10
  export { formatNumber, formatUSDNumber, youSpend, youSpendUSD, youGet, youGetUSD, premium, getPremiumColor };
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { BondModalProps } from "./BondModal";
1
+ import React from 'react';
2
+ import { BondModalProps } from './BondModal';
3
3
  declare const BondModalWithProviders: React.FC<BondModalProps>;
4
4
  export default BondModalWithProviders;
@@ -1,17 +1,14 @@
1
1
  /** @jsxImportSource theme-ui */
2
2
  import React from 'react';
3
3
  import '../../scss/Bonds.scss';
4
- declare global {
5
- interface Window {
6
- ethereum?: any;
7
- }
8
- }
9
- interface BondsProps {
10
- account: string;
11
- accountChainId: number;
12
- isActive: boolean;
13
- bondAddress: string | null;
4
+ export interface BondsProps {
14
5
  chains?: number[];
15
6
  }
7
+ type SortableKeys = 'discount' | 'arr' | 'terms' | 'tokensRemaining';
8
+ type SortDirection = 'asc' | 'desc';
9
+ export interface SortOptions {
10
+ key: SortableKeys;
11
+ direction: SortDirection;
12
+ }
16
13
  declare const Bonds: React.FC<BondsProps>;
17
14
  export default Bonds;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ /** CheckURL purpose is to open the buy bond modal ONLY IF a user has opened the site with a custom URL */
3
+ declare const CheckUrl: () => React.JSX.Element | null;
4
+ export default CheckUrl;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BondsProps } from './Bonds';
3
+ declare const BondsWithProviders: React.FC<BondsProps>;
4
+ export default BondsWithProviders;
@@ -0,0 +1,14 @@
1
+ import { BondsData } from '../../types/bonds';
2
+ import { SortOptions } from './Bonds';
3
+ export declare const isBondSoldOut: (bill: BondsData) => boolean;
4
+ export declare const sortBonds: (sortConfig?: SortOptions, bonds?: BondsData[]) => BondsData[];
5
+ export declare const calculateARR: (bond: BondsData) => number;
6
+ export declare const vestingTime: (vestingTerm: number) => {
7
+ years: number;
8
+ months: number;
9
+ days: number;
10
+ hours: number;
11
+ minutes: number;
12
+ seconds: number;
13
+ };
14
+ export declare const remainingPercentage: (bond: BondsData) => number;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare enum BondsViewOptions {
3
+ BONDSMARKET = "Bonds Market",
4
+ YOURBONDS = "Your Bonds"
5
+ }
6
+ declare const FullBondsView: () => React.JSX.Element;
7
+ export default FullBondsView;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const FullBondsViewWithProviders: () => React.JSX.Element;
3
+ export default FullBondsViewWithProviders;
@@ -1,15 +1,5 @@
1
1
  /** @jsxImportSource theme-ui */
2
2
  import React from 'react';
3
3
  import '../../scss/YourBonds.scss';
4
- declare global {
5
- interface Window {
6
- ethereum?: any;
7
- }
8
- }
9
- interface YourBondsProps {
10
- account: string;
11
- accountChainId: number;
12
- isActive: boolean;
13
- }
14
- declare const YourBonds: React.FC<YourBondsProps>;
4
+ declare const YourBonds: () => React.JSX.Element;
15
5
  export default YourBonds;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { UserBill } from '../../../../types/yourbonds';
3
+ declare const UserBondRow: ({ bill }: {
4
+ bill: UserBill;
5
+ }) => React.JSX.Element;
6
+ export default UserBondRow;
@@ -1,6 +1,5 @@
1
- import { ChainId } from '../../enum/apeswaplists';
2
1
  import { UserBill, UserOwnedBillsData } from '../../types/yourbonds';
3
- import { BondsDataResponse } from '../../types/bonds';
2
+ import { BillsConfig, ChainId } from '@ape.swap/apeswap-lists';
4
3
  /**
5
4
  * Fetches user-owned bill NFT data for a given set of owned bills data, chain ID, and bills.
6
5
  * @param ownedBillsData An array of objects containing the ID, bill NFT address, and contract address of the owned bills.
@@ -12,6 +11,6 @@ export declare const fetchUserOwnedBillNftData: (ownedBillsData: {
12
11
  id: string;
13
12
  billNftAddress: string;
14
13
  contractAddress: string;
15
- }[], chainId: ChainId, bills: BondsDataResponse[]) => Promise<any[]>;
16
- export declare const fetchUserOwnedBillsDataAsync: (chainId: ChainId, account: string, bondData: BondsDataResponse[]) => Promise<UserOwnedBillsData[]>;
17
- export declare const fetchUserOwnedBills: (chainId: ChainId, account: string, bonds: BondsDataResponse[]) => Promise<UserBill[]>;
14
+ }[], chainId: ChainId, bills: BillsConfig[]) => Promise<any[]>;
15
+ export declare const fetchUserOwnedBillsDataAsync: (chainId: ChainId, account: string, bondData: BillsConfig[]) => Promise<UserOwnedBillsData[]>;
16
+ export declare const fetchUserOwnedBills: (chainId: ChainId, account: string, bonds: BillsConfig[]) => Promise<UserBill[]>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const YourBondsWithProviders: () => React.JSX.Element;
3
+ export default YourBondsWithProviders;
@@ -2,9 +2,8 @@
2
2
  import React from 'react';
3
3
  import { UserBill } from '../../types/yourbonds';
4
4
  import '../../scss/YourBondsModal.scss';
5
- declare const YourBondsModal: ({ isOpen, onClose, userBill }: {
6
- isOpen: boolean;
7
- onClose: () => void;
8
- userBill: UserBill | undefined;
9
- }) => React.JSX.Element | null;
5
+ declare const YourBondsModal: ({ onDismiss, userBill }: {
6
+ onDismiss?: () => void;
7
+ userBill?: UserBill;
8
+ }) => React.JSX.Element;
10
9
  export default YourBondsModal;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { ChainId, Token } from '@ape.swap/apeswap-lists';
3
+ /**
4
+ * This Modal should be opened within a Providers Context
5
+ * @param chainId this is the chainId of the outputToken
6
+ */
7
+ interface ZapModalProps {
8
+ onDismiss?: () => void;
9
+ outputToken: Token;
10
+ chainId: ChainId;
11
+ account?: string;
12
+ }
13
+ declare const ZapModal: ({ onDismiss, outputToken, account, chainId }: ZapModalProps) => React.JSX.Element;
14
+ export default ZapModal;
@@ -0,0 +1,2 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ export declare const styles: Record<'toPanelContainer' | 'cont' | 'tokensContainer' | 'tokenSymbolText', ThemeUIStyleObject>;
package/package.json CHANGED
@@ -3,33 +3,41 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.779",
7
- "main": "dist/index.js",
8
- "module": "dist/index.es.js",
9
- "types": "dist/index.d.ts",
6
+ "version": "1.1.0-seedify",
7
+ "module": "dist/main.js",
8
+ "type": "module",
9
+ "types": "dist/main.d.ts",
10
10
  "files": [
11
11
  "dist"
12
12
  ],
13
13
  "scripts": {
14
14
  "prepublishOnly": "npm run build",
15
- "build": "npm run clean && tsc && npm run copy",
15
+ "build": "npm run clean && rollup -c && npm run copy",
16
16
  "dev": "vite",
17
- "lint": "eslint",
18
- "start": "react-scripts start",
17
+ "format:write": "prettier --write \"**/*.{js,jsx,ts,tsx,json}\" --config .prettierrc",
18
+ "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json}\" --config .prettierrc",
19
+ "lint": "eslint && tsc --noEmit",
19
20
  "clean": "rimraf dist/",
20
21
  "copy": "copyfiles -u 1 src/**/*.scss dist/"
21
22
  },
22
23
  "peerDependencies": {
24
+ "@tanstack/react-query": "^5.51.5",
23
25
  "axios": "^1.7.2",
24
26
  "ethers": "5.7.2",
25
27
  "react": "^18.3.1",
26
28
  "react-dom": "^17.0.0 || ^18.0.0",
27
- "theme-ui": "^0.16.2"
29
+ "wagmi": "^2.12.5"
28
30
  },
29
31
  "devDependencies": {
30
32
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
31
33
  "@babel/plugin-transform-private-property-in-object": "^7.24.7",
32
34
  "@eslint/js": "^9.10.0",
35
+ "@rainbow-me/rainbowkit": "^2.1.6",
36
+ "@rollup/plugin-commonjs": "^25.0.7",
37
+ "@rollup/plugin-json": "^6.1.0",
38
+ "@rollup/plugin-node-resolve": "^15.2.3",
39
+ "@rollup/plugin-typescript": "^11.1.6",
40
+ "@tanstack/react-query-devtools": "^5.51.24",
33
41
  "@types/lodash": "^4.17.6",
34
42
  "@types/react": "^18.3.3",
35
43
  "@types/react-dom": "^18.3.0",
@@ -50,37 +58,28 @@
50
58
  "eslint-plugin-react": "^7.35.2",
51
59
  "ethers": "5.7.2",
52
60
  "globals": "^15.9.0",
61
+ "prettier": "^3.3.3",
53
62
  "rimraf": "5.0.10",
54
- "sass": "^1.77.7",
55
- "theme-ui": "^0.16.2",
63
+ "rollup": "^4.14.0",
64
+ "rollup-plugin-scss": "^4.0.0",
56
65
  "typescript": "^5.0.0",
57
66
  "typescript-eslint": "^8.5.0",
58
67
  "vite": "^5.4.4",
59
68
  "yalc": "^1.0.0-pre.53"
60
69
  },
61
70
  "dependencies": {
62
- "@ape.swap/apeswap-lists": "^2.0.9",
71
+ "@ape.swap/apeswap-lists": "3.69.2-test.0",
63
72
  "@ape.swap/sdk-core": "^1.0.2",
64
73
  "@emotion/react": "^11.11.4",
65
74
  "@emotion/styled": "^11.11.5",
66
- "@reduxjs/toolkit": "^2.2.6",
67
- "@tanstack/react-query": "^5.51.5",
68
- "@types/node": "^20.14.10",
69
- "@uniswap/token-lists": "^1.0.0-beta.34",
70
- "axios-retry": "^4.4.2",
71
75
  "bignumber.js": "^9.1.2",
72
76
  "framer-motion": "^11.3.2",
73
77
  "lodash": "^4.17.21",
74
- "lottie-react": "^2.4.0",
75
- "next": "^14.2.5",
78
+ "moment": "^2.30.1",
76
79
  "numbro": "^2.5.0",
77
- "react-redux": "^9.1.2",
78
- "react-router-dom": "^6.24.1",
79
- "react-svg": "^16.1.34",
80
80
  "sass": "^1.77.7",
81
81
  "swiper": "^11.1.4",
82
- "theme-ui": "^0.16.2",
83
- "wagmi": "2.12.5"
82
+ "theme-ui": "0.16.2"
84
83
  },
85
84
  "browserslist": {
86
85
  "production": [
@@ -93,5 +92,6 @@
93
92
  "last 1 firefox version",
94
93
  "last 1 safari version"
95
94
  ]
96
- }
95
+ },
96
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
97
97
  }
@@ -1,40 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { useCallback } from 'react';
3
- import { Flex, IconButton } from '../uikit-sdk';
4
- import RecommendationSelector from '../MenuSelect/RecommendationSelector';
5
- import MenuSelect from '../MenuSelect/MenuSelect';
6
- import '../../scss/BondMenu.scss';
7
- import NetworkFilter from '../NetworkFilter';
8
- var BondMenu = function (_a) {
9
- var setChainFilterOption = _a.setChainFilterOption, chainFilterOption = _a.chainFilterOption, filterOptions = _a.filterOptions, filterOption = _a.filterOption, setFilterOption = _a.setFilterOption, onHandleQueryChange = _a.onHandleQueryChange;
10
- var mappedFilters = filterOptions.map(function (filter) {
11
- return {
12
- label: filter.charAt(0).toUpperCase() + filter.slice(1).toLowerCase(),
13
- value: filter,
14
- };
15
- });
16
- var asPath = window.location.pathname + window.location.search;
17
- var handleFilterSelection = useCallback(function (newOption) {
18
- setChainFilterOption(['All Chains']);
19
- setFilterOption(newOption);
20
- }, [setChainFilterOption, setFilterOption]);
21
- return (_jsxs(Flex, { className: "menu-container filters", children: [_jsx(Flex, { className: "filters desktop-rec", sx: { display: ['none', 'none', 'none', 'flex'], mr: '20px' }, children: _jsx(RecommendationSelector, { options: filterOptions, activeOption: filterOption, setActiveOption: handleFilterSelection }) }), _jsx(Flex, { className: "filtesr mobile-rec", sx: { display: ['flex', 'flex', 'flex', 'none'], width: '100%' }, children: _jsx(MenuSelect, { selectedOption: filterOption, setOption: setFilterOption, options: mappedFilters, sx: { background: 'white2' } }) }), _jsx(Flex, { className: "filters network", sx: { width: ['49%', '49%', '49%', 'unset'], minWidth: '120px' }, children: _jsx(NetworkFilter, { chainFilterOption: chainFilterOption, setChainFilterOption: setChainFilterOption }) }), _jsxs(Flex, { className: "filters clear-all", sx: {
22
- display: ['none', 'none', 'none', 'flex'],
23
- color: 'textDisabledButton',
24
- fontSize: '14px',
25
- background: 'white2',
26
- borderRadius: 'normal',
27
- p: '8px 16px',
28
- alignItems: 'center',
29
- justifyContent: 'center',
30
- fontWeight: 500,
31
- ml: '15px',
32
- lineHeight: '13px',
33
- cursor: 'pointer',
34
- }, onClick: function () {
35
- setChainFilterOption(['All Chains']);
36
- setFilterOption(asPath.includes('yourBonds') ? 'CLAIMABLE' : 'ALL');
37
- onHandleQueryChange('');
38
- }, children: ["Clear All", _jsx(Flex, { sx: { ml: '7px' }, children: _jsx(IconButton, { icon: "close", color: "textDisabledButton", variant: "transparent" }) })] })] }));
39
- };
40
- export default BondMenu;
@@ -1,30 +0,0 @@
1
- import { useQuery, useQueryClient } from '@tanstack/react-query';
2
- import { QUERY_KEYS } from '../../config/constants/queryKeys';
3
- import useCookie from '../../hooks/useCookie';
4
- import { useCallback } from 'react';
5
- export default function useChainFilterOption() {
6
- var _a;
7
- var _b = useCookie(QUERY_KEYS.CHAIN_FILTER_OPTION, ['All Chains']), cookie = _b.cookie, updateCookie = _b.updateCookie;
8
- var data = useQuery({
9
- queryKey: ["".concat(QUERY_KEYS.CHAIN_FILTER_OPTION)],
10
- queryFn: function () { return cookie; },
11
- initialData: cookie,
12
- }).data;
13
- var urlParams = typeof window !== 'undefined' ? new URLSearchParams(window.location.search) : null;
14
- var urlChain = (_a = urlParams === null || urlParams === void 0 ? void 0 : urlParams.get('chain')) !== null && _a !== void 0 ? _a : '';
15
- var queryClient = useQueryClient();
16
- var removeURLChain = useCallback(function () {
17
- if (urlChain && urlParams) {
18
- console.log('remove url');
19
- urlParams.delete('chain');
20
- var newUrl = "".concat(window.location.pathname, "?").concat(urlParams.toString());
21
- window.history.replaceState({}, '', newUrl);
22
- }
23
- }, [urlChain, urlParams]);
24
- var setChainFilterOption = useCallback(function (newValue) {
25
- updateCookie(newValue);
26
- queryClient.setQueryData(["".concat(QUERY_KEYS.CHAIN_FILTER_OPTION)], newValue);
27
- removeURLChain();
28
- }, [updateCookie, queryClient, removeURLChain]);
29
- return { data: data, setChainFilterOption: setChainFilterOption };
30
- }
@@ -1,81 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import BigNumber from "bignumber.js";
3
- import { ChainId } from "../../enum/apeswaplists";
4
- import ProgressBar from "../ProgressBar/ProgressBar";
5
- import ProgressBarWrapper from "../ProgressBar/ProgressBarWrapper";
6
- import TokenInfoAndName from "../TokenInfoAndName";
7
- import Tooltip from "../Tooltip/Tooltip";
8
- import { Svg, TooltipBubble } from "../uikit-sdk";
9
- import { formatDollar, formatValue } from "../../utils/formatNumbers";
10
- import getTimePeriods from "../../utils/getTimePeriods";
11
- import { BLOCK_EXPLORER } from "../../config/constants/chains";
12
- import { useEffect, useState } from "react";
13
- import '../../scss/BondRow.scss';
14
- import { Flex } from "theme-ui";
15
- var BondRow = function (_a) {
16
- var _b, _c, _d;
17
- var bond = _a.bond, hotBonds = _a.hotBonds;
18
- // Modal
19
- var _e = useState(false), isModalOpen = _e[0], setIsModalOpen = _e[1];
20
- useEffect(function () {
21
- if (isModalOpen === true) {
22
- if (typeof window !== "undefined") {
23
- var newUrl = "/?bondAddress=".concat(bond.billAddress, "&bondChain=").concat(bond.chainId);
24
- window.history.pushState({ path: newUrl }, '', newUrl);
25
- console.log(isModalOpen);
26
- }
27
- }
28
- }, [isModalOpen]);
29
- useEffect(function () {
30
- var fullUrl = window.location.href;
31
- console.log('URL: ', fullUrl);
32
- }, []);
33
- var rowClick = function (bond) {
34
- setIsModalOpen(true);
35
- };
36
- // Functions for calcuations
37
- var vestingTime = function (vestingTerm) {
38
- return getTimePeriods(vestingTerm !== null && vestingTerm !== void 0 ? vestingTerm : 0, true);
39
- };
40
- var getDiscountColor = function (discount) {
41
- return discount < 0 ? 'discount-negative' : 'discount-positive';
42
- };
43
- var remainingPercentage = function (bond) {
44
- var _a, _b;
45
- var totalMaxPayout = new BigNumber((_a = bond.maxTotalPayout) !== null && _a !== void 0 ? _a : '0').div(new BigNumber(10).pow(bond.earnToken.decimals[bond.chainId]));
46
- var remainingTokens = new BigNumber((_b = bond.tokensRemaining) !== null && _b !== void 0 ? _b : '0');
47
- return remainingTokens.div(totalMaxPayout).times(100).toNumber();
48
- };
49
- var remainingTokensFormat = function (bond) {
50
- var _a;
51
- return formatValue({ num: new BigNumber((_a = bond.tokensRemaining) !== null && _a !== void 0 ? _a : '0') });
52
- };
53
- var remainingTokensUsd = function (bond) {
54
- var _a, _b;
55
- var tokens = new BigNumber((_a = bond.tokensRemaining) !== null && _a !== void 0 ? _a : '0');
56
- return tokens.times((_b = bond.payoutTokenPrice) !== null && _b !== void 0 ? _b : 0);
57
- };
58
- var getBillContractURL = function (bond) {
59
- var _a;
60
- var selectedChain = (_a = bond.chainId) !== null && _a !== void 0 ? _a : ChainId.BSC;
61
- var explorerLink = BLOCK_EXPLORER[selectedChain];
62
- return "".concat(explorerLink, "/address/").concat(bond === null || bond === void 0 ? void 0 : bond.billAddress);
63
- };
64
- var calculateARR = function (bond) {
65
- var _a;
66
- var discount = (_a = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _a !== void 0 ? _a : 0;
67
- var vestingDays = vestingTime(bond.vestingTerm).days;
68
- return parseFloat((((discount * 365) / vestingDays).toFixed(2)));
69
- };
70
- return (_jsxs(Flex, { className: "bonds-container bondrow-container", onClick: function () { return rowClick(bond); }, children: [_jsxs(Flex, { className: "column column-tokens", children: [_jsx(Flex, { className: "column column-tokeninfoname", children: _jsx(TokenInfoAndName, { bill: bond }) }), _jsx(Flex, { className: "column column-tokenicons", children: _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Tooltip, { tokenContract: (bond === null || bond === void 0 ? void 0 : bond.earnToken.address[bond.chainId]) || '', secondURL: getBillContractURL(bond), secondURLTitle: 'View Bond Contract', thirdURL: "https://dashboard.ape.bond/bond/".concat((_b = bond === null || bond === void 0 ? void 0 : bond.billAddress) === null || _b === void 0 ? void 0 : _b.toLowerCase()), thirdURLTitle: 'View Insights', twitter: bond === null || bond === void 0 ? void 0 : bond.twitter, projectLink: bond === null || bond === void 0 ? void 0 : bond.projectLink, audit: bond === null || bond === void 0 ? void 0 : bond.audit, chain: (_c = bond.chainId) !== null && _c !== void 0 ? _c : ChainId.BSC }), width: "205px", placement: "bottomRight", transformTip: "translate(11%, 0%)", children: _jsx(Svg, { icon: "more", width: "20px" }) }) })] }), _jsxs(Flex, { className: "column column-bondinfo", children: [_jsx(Flex, { className: "column column-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)), children: (bond === null || bond === void 0 ? void 0 : bond.discount) !== undefined ? "".concat(bond.discount.toFixed(2), "%") : '-' }), _jsx(Flex, { className: "column column-arr", children: calculateARR(bond) !== undefined ? "".concat(calculateARR(bond), "%") : '-' }), _jsx(Flex, { className: "column column-terms", children: vestingTime(bond.vestingTerm).days ? "".concat(vestingTime(bond.vestingTerm).days, " D") : '-' }), _jsx(Flex, { className: "column column-tokensremaining", children: _jsx(ProgressBarWrapper, { title: '', value: _jsx(ProgressBar, { value: remainingPercentage(bond) }), style: {
71
- width: '127px',
72
- height: '25px',
73
- flexDirection: 'column',
74
- justifyContent: 'center',
75
- display: ['none', 'none', 'none', 'flex'],
76
- }, showTooltip: true, toolTip: "".concat(remainingTokensFormat(bond), " ").concat(bond.earnToken.symbol, " (").concat(formatDollar({
77
- num: remainingTokensUsd(bond).toNumber(),
78
- isPrice: true,
79
- }), ")") }) }), _jsx(Flex, { className: "column column-hotbond", children: _jsx(Flex, { className: "column column-icon", children: (hotBonds === null || hotBonds === void 0 ? void 0 : hotBonds.includes(bond.billAddress.toLowerCase())) && ((_d = bond.discount) !== null && _d !== void 0 ? _d : 0) > 0 && (_jsx(Svg, { icon: "hot", width: "20px" })) }) })] })] }, bond.billAddress));
80
- };
81
- export default BondRow;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { Flex } from 'theme-ui';
3
- import { Input } from '../uikit-sdk/Input';
4
- import { Svg, TooltipBubble } from '../uikit-sdk';
5
- import { TooltipText } from '../../enum/tooltips';
6
- import '../../scss/BondRowHeader.scss';
7
- import BondMenu from '../BondMenu/BondMenu';
8
- var BondRowHeader = function (_a) {
9
- var inputValue = _a.inputValue, setChainFilterOption = _a.setChainFilterOption, chainFilterOption = _a.chainFilterOption, filterOptions = _a.filterOptions, filterOption = _a.filterOption, setFilterOption = _a.setFilterOption, onInputChange = _a.onInputChange, onHandleQueryChange = _a.onHandleQueryChange, onSort = _a.onSort;
10
- return (_jsxs(Flex, { className: "bondrow-header", children: [_jsx(Flex, { className: "bondrow-header filters", children: _jsx(BondMenu, { chainFilterOption: chainFilterOption !== null && chainFilterOption !== void 0 ? chainFilterOption : ['All Chains'], setChainFilterOption: setChainFilterOption, filterOptions: filterOptions, filterOption: filterOption, setFilterOption: setFilterOption, onHandleQueryChange: onHandleQueryChange }) }), _jsxs(Flex, { className: "bondrow-header rows", children: [_jsxs(Flex, { className: "column column-tokens header", children: [_jsx(Flex, { className: "column column-search", sx: { width: '100%', maxWidth: ['200px', '200px', '200px', '340px'] }, children: _jsx(Input, { value: inputValue, onChange: onInputChange, variant: "search", sx: { fontWeight: 400, background: 'white2', height: '30px', fontSize: '14px', color: 'white' }, width: '100%', placeholder: 'Search...' }) }), _jsx(Flex, { className: "column column-tokenicons header" })] }), _jsxs(Flex, { className: "column column-bondinfo header", children: [_jsxs(Flex, { className: "column column-discount header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(18%, -4%)", children: ["DISCOUNT", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('discount'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsxs(Flex, { className: "column column-arr header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(8%, -5%)", children: ["ARR", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('arr'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsxs(Flex, { className: "column column-terms header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomRight", transformTip: "translate(11%, -5%)", children: ["TERMS", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('terms'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsxs(Flex, { className: "column column-tokensremaining header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.TokensRemaining }), width: "230px", placement: "bottomRight", transformTip: "translate(12%, -4%)", children: ["TOKENS REMAINING", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('tokensRemaining'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsx(Flex, { className: "column column-hotbond header" })] })] })] }));
11
- };
12
- export default BondRowHeader;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "theme-ui/jsx-runtime";
2
- import BondRowsWithTitle from './BondRowsWithTitle';
3
- import { MAINNET_CHAINS } from '../../config/constants/chains';
4
- import '../../scss/BondRowsByChain.scss';
5
- import { Flex } from 'theme-ui';
6
- var BondRowsByChain = function (_a) {
7
- var bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles, chains = _a.chains;
8
- return (_jsx(Flex, { className: "bondrowsbychain", children: (MAINNET_CHAINS.map(function (chain, index) {
9
- return ((!chains || chains.length === 0 || chains.includes(chain)) &&
10
- _jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles }, chain));
11
- })) }));
12
- };
13
- export default BondRowsByChain;
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { AnimatePresence, motion } from "framer-motion";
3
- import ChainTitle from "./ChainTitle";
4
- import BondRow from "./BondRow";
5
- import { useState } from "react";
6
- import '../../scss/BondRowsWithTitle.scss';
7
- import { Flex } from "theme-ui";
8
- var BondRowsWithTitle = function (_a) {
9
- var chain = _a.chain, bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles;
10
- var billsFilteredByChain = bonds.filter(function (bill) { return bill.chainId === chain; });
11
- var key = chain;
12
- var _b = useState(true), isOpen = _b[0], setIsOpen = _b[1];
13
- return (_jsx(Flex, { className: "bondrowswithtitle", children: _jsxs(AnimatePresence, { initial: false, children: [_jsx(Flex, { onClick: function () { return setIsOpen(!isOpen); }, children: _jsx(ChainTitle, { chain: chain, pt: '5px', hideTitles: billsFilteredByChain.length > 0 ? false : true, isOpen: isOpen }) }), billsFilteredByChain.length > 0 && isOpen && (_jsx(motion.div, { initial: { height: 0, overflow: 'hidden' }, animate: { height: 'fit-content', overflow: 'hidden', transitionEnd: { overflow: 'visible' } }, exit: { height: 0, overflow: 'hidden' }, sx: {
14
- position: 'relative',
15
- overflow: 'hidden',
16
- width: '100%',
17
- marginTop: '0px',
18
- }, children: billsFilteredByChain === null || billsFilteredByChain === void 0 ? void 0 : billsFilteredByChain.map(function (bill) { return (_jsx(BondRow, { bond: bill, hotBonds: hotBonds }, bill.billAddress)); }) }, key))] }) }, key));
19
- };
20
- export default BondRowsWithTitle;
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { Flex, Svg } from '../uikit-sdk';
3
- import { NETWORK_LABEL } from '../../config/constants/chains';
4
- var ChainTitle = function (_a) {
5
- var chain = _a.chain, pt = _a.pt, hideTitles = _a.hideTitles, isOpen = _a.isOpen;
6
- return (_jsxs(Flex, { className: "chaintitle", sx: {
7
- pt: pt,
8
- pb: '10px',
9
- color: 'textDisabledButton',
10
- fontSize: '13px',
11
- fontWeight: 500,
12
- cursor: 'pointer',
13
- textTransform: 'uppercase',
14
- display: hideTitles ? 'none' : 'flex',
15
- width: '200px',
16
- }, children: [NETWORK_LABEL[chain], " Bonds", _jsx(Flex, { sx: { ml: '7px' }, children: _jsx(Svg, { icon: "caret", direction: isOpen ? 'down' : 'up', width: 8, color: "textDisabledButton" }) })] }));
17
- };
18
- export default ChainTitle;
@@ -1,36 +0,0 @@
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 { Select, SelectItem, Text } from '../uikit-sdk';
25
- var MenuSelect = function (_a) {
26
- var selectedOption = _a.selectedOption, setOption = _a.setOption, options = _a.options, props = __rest(_a, ["selectedOption", "setOption", "options"]);
27
- return (_jsx(Select, __assign({ size: "xsm", onChange: function (e) { return setOption(e.target.value); }, active: selectedOption, sx: {
28
- height: '36px',
29
- display: 'flex',
30
- width: '100%',
31
- paddingRight: '4px',
32
- } }, props, { children: options === null || options === void 0 ? void 0 : options.map(function (option) {
33
- return (_jsx(SelectItem, { size: "xsm", value: option.value, children: _jsx(Text, { sx: { fontWeight: 400, pl: '10px' }, children: option.label }) }, option.label));
34
- }) })));
35
- };
36
- export default MenuSelect;
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx } from "theme-ui/jsx-runtime";
2
- import { Flex } from '../uikit-sdk';
3
- var RecommendationSelector = function (_a) {
4
- var options = _a.options, activeOption = _a.activeOption, setActiveOption = _a.setActiveOption;
5
- var handleClick = function (option) {
6
- setActiveOption(option);
7
- };
8
- return (_jsx(Flex, { sx: {
9
- alignItems: 'center',
10
- color: 'grey',
11
- fontSize: ['11px'],
12
- fontWeight: 500,
13
- '& > div:last-child': {
14
- marginRight: '0',
15
- },
16
- }, children: options.map(function (option) {
17
- var isActive = option === activeOption;
18
- return (_jsx(Flex, { sx: {
19
- background: isActive ? 'primaryShade' : 'white2',
20
- color: isActive ? 'primaryButton' : 'textDisabledButton',
21
- px: ['6px', '6px', '6px', '10px'],
22
- borderRadius: 'small',
23
- mr: ['8px', '8px', '8px', '10px'],
24
- textTransform: 'uppercase',
25
- cursor: 'pointer',
26
- lineHeight: '11px',
27
- alignItems: 'center',
28
- height: '24px',
29
- }, onClick: function () { return handleClick(option); }, children: option }, option));
30
- }) }));
31
- };
32
- export default RecommendationSelector;
@@ -1 +0,0 @@
1
- export {};