@ape.swap/bonds-sdk 1.0.778 → 1.0.779
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.
- package/dist/components/BondMenu/BondMenu.js +2 -13
- package/dist/components/BondRows/BondRow.d.ts +0 -1
- package/dist/components/BondRows/BondRow.js +2 -13
- package/dist/components/BondRows/BondRowHeader.js +1 -12
- package/dist/components/BondRows/BondRowsByChain.d.ts +2 -3
- package/dist/components/BondRows/BondRowsByChain.js +2 -13
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +1 -2
- package/dist/components/BondRows/BondRowsWithTitle.js +2 -13
- package/dist/components/BondRows/ChainTitle.d.ts +1 -1
- package/dist/components/BondRows/ChainTitle.js +2 -13
- package/dist/components/MenuSelect/MenuSelect.d.ts +5 -1
- package/dist/components/MenuSelect/MenuSelect.js +1 -1
- package/dist/components/MenuSelect/RecommendationSelector.js +5 -16
- package/dist/components/NetworkFilter/index.js +6 -17
- package/dist/components/ProgressBar/ProgressBar.js +2 -13
- package/dist/components/ProgressBar/ProgressBarWrapper.js +1 -12
- package/dist/components/TokenInfoAndName/index.d.ts +1 -1
- package/dist/components/TokenInfoAndName/index.js +6 -17
- package/dist/components/Tooltip/ButtonsRow.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -12
- package/dist/components/uikit-sdk/Button/IconButton.js +1 -1
- package/dist/components/uikit-sdk/Checkbox/index.d.ts +0 -1
- package/dist/components/uikit-sdk/Checkbox/index.js +2 -2
- package/dist/components/uikit-sdk/Flex/index.d.ts +3 -1
- package/dist/components/uikit-sdk/Input/Input.d.ts +7 -2
- package/dist/components/uikit-sdk/Input/Input.js +5 -5
- package/dist/components/uikit-sdk/Input/NumericInput.d.ts +4 -5
- package/dist/components/uikit-sdk/Input/StyledInput.js +1 -12
- package/dist/components/uikit-sdk/Modal/ModalFooter.d.ts +4 -0
- package/dist/components/uikit-sdk/Modal/ModalFooter.js +21 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.d.ts +4 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +31 -0
- package/dist/components/uikit-sdk/Modal/index.d.ts +4 -0
- package/dist/components/uikit-sdk/Modal/index.js +46 -0
- package/dist/components/uikit-sdk/Modal/styles.d.ts +3 -0
- package/dist/components/uikit-sdk/Modal/styles.js +62 -0
- package/dist/components/uikit-sdk/Modal/types.d.ts +17 -0
- package/dist/components/uikit-sdk/Modal/types.js +1 -0
- package/dist/components/uikit-sdk/Select/Select.js +4 -4
- package/dist/components/uikit-sdk/Select/SelectItem.d.ts +0 -1
- package/dist/components/uikit-sdk/Select/SelectItem.js +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Card.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Chain.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Chart.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Chat.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Cog.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Copy.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Docs.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/External.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Farm.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Fav.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Frame.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Home.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Info.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Island.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Logout.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Message.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Moon.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/More.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/NFA.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Play.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Pool.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Positions.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Send.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Settings.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Share.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Trade.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Trash.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Verified.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Warning.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Watch.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/XNew.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +1 -12
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +1 -12
- package/dist/components/uikit-sdk/Svg/index.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +2 -13
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +1 -12
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.d.ts +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +1 -12
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +1 -12
- package/dist/components/uikit-sdk/Tag/ListTag.js +1 -1
- package/dist/components/uikit-sdk/Tag/styles.d.ts +2 -3
- package/dist/components/uikit-sdk/Text/index.js +1 -1
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +1 -1
- package/dist/components/uikit-sdk/TokenImage/index.js +2 -13
- package/dist/components/uikit-sdk/TooltipBubble/index.js +1 -1
- package/dist/components/uikit-sdk/index.d.ts +1 -0
- package/dist/components/uikit-sdk/index.js +1 -0
- package/dist/config/abi/types/factories/Banana__factory.js +2 -1
- package/dist/config/abi/types/factories/BondNft__factory.js +2 -1
- package/dist/config/abi/types/factories/Bond__factory.js +2 -1
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +2 -1
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +2 -1
- package/dist/config/abi/types/factories/Erc20__factory.js +2 -1
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +2 -1
- package/dist/config/abi/types/factories/JungleChef__factory.js +2 -1
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +2 -1
- package/dist/config/abi/types/factories/LensContract__factory.js +2 -1
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +2 -1
- package/dist/config/abi/types/factories/MigrationBond__factory.js +2 -1
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +2 -1
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +2 -1
- package/dist/config/abi/types/factories/Multicallv2__factory.js +2 -1
- package/dist/config/abi/types/factories/Multicallv3__factory.js +2 -1
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +2 -1
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +2 -1
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +2 -1
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +2 -1
- package/dist/config/abi/types/factories/PriceGetter__factory.js +2 -1
- package/dist/config/abi/types/factories/SousChef__factory.js +2 -1
- package/dist/config/abi/types/factories/Treasury__factory.js +2 -1
- package/dist/config/abi/types/factories/Weth__factory.js +2 -1
- package/dist/config/abi/types/factories/Zap__factory.js +2 -1
- package/dist/config/constants/addresses.js +4 -4
- package/dist/config/constants/api.d.ts +4 -4
- package/dist/config/constants/api.js +4 -4
- package/dist/config/constants/lists.d.ts +3 -3
- package/dist/contexts/Localization/Provider.js +3 -3
- package/dist/contexts/Localization/helpers.js +2 -2
- package/dist/contexts/ModalContext.js +3 -14
- package/dist/contexts/RefreshContext.js +3 -14
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/providers/index.d.ts +8 -0
- package/dist/providers/index.js +12 -0
- package/dist/scss/BondModal.scss +1 -1
- package/dist/theme/colors.js +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/multicall.js +2 -2
- package/dist/{components/Modals → views}/BondModal/BondModal.d.ts +2 -2
- package/dist/{components/Modals → views}/BondModal/BondModal.js +37 -36
- package/dist/{components/Modals → views}/BondModal/helper.d.ts +1 -1
- package/dist/{components/Modals → views}/BondModal/helper.js +1 -1
- package/dist/views/BondModal/index.d.ts +4 -0
- package/dist/views/BondModal/index.js +18 -0
- package/dist/{pages → views}/Bonds/Bonds.js +2 -13
- package/dist/{pages → views}/YourBonds/YourBonds.js +11 -22
- package/dist/{pages → views}/YourBonds/fetchBillsUser.js +7 -9
- package/dist/{pages → views}/YourBonds/getBillNftData.js +2 -2
- package/dist/{components/Modals → views}/YourBondsModal/YourBondsModal.d.ts +2 -2
- package/dist/views/YourBondsModal/YourBondsModal.js +173 -0
- package/dist/{components/Modals → views}/YourBondsModal/styles.js +1 -1
- package/package.json +1 -1
- package/dist/components/Modals/YourBondsModal/YourBondsModal.js +0 -184
- /package/dist/{pages → views}/Bonds/Bonds.d.ts +0 -0
- /package/dist/{pages → views}/YourBonds/YourBonds.d.ts +0 -0
- /package/dist/{pages → views}/YourBonds/fetchBillsUser.d.ts +0 -0
- /package/dist/{pages → views}/YourBonds/getBillNftData.d.ts +0 -0
- /package/dist/{components/Modals → views}/YourBondsModal/styles.d.ts +0 -0
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
13
2
|
import { useCallback } from 'react';
|
|
14
3
|
import { Flex, IconButton } from '../uikit-sdk';
|
|
@@ -29,7 +18,7 @@ var BondMenu = function (_a) {
|
|
|
29
18
|
setChainFilterOption(['All Chains']);
|
|
30
19
|
setFilterOption(newOption);
|
|
31
20
|
}, [setChainFilterOption, setFilterOption]);
|
|
32
|
-
return (_jsxs(Flex,
|
|
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: {
|
|
33
22
|
display: ['none', 'none', 'none', 'flex'],
|
|
34
23
|
color: 'textDisabledButton',
|
|
35
24
|
fontSize: '14px',
|
|
@@ -46,6 +35,6 @@ var BondMenu = function (_a) {
|
|
|
46
35
|
setChainFilterOption(['All Chains']);
|
|
47
36
|
setFilterOption(asPath.includes('yourBonds') ? 'CLAIMABLE' : 'ALL');
|
|
48
37
|
onHandleQueryChange('');
|
|
49
|
-
}
|
|
38
|
+
}, children: ["Clear All", _jsx(Flex, { sx: { ml: '7px' }, children: _jsx(IconButton, { icon: "close", color: "textDisabledButton", variant: "transparent" }) })] })] }));
|
|
50
39
|
};
|
|
51
40
|
export default BondMenu;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
13
2
|
import BigNumber from "bignumber.js";
|
|
14
3
|
import { ChainId } from "../../enum/apeswaplists";
|
|
@@ -78,7 +67,7 @@ var BondRow = function (_a) {
|
|
|
78
67
|
var vestingDays = vestingTime(bond.vestingTerm).days;
|
|
79
68
|
return parseFloat((((discount * 365) / vestingDays).toFixed(2)));
|
|
80
69
|
};
|
|
81
|
-
return (_jsxs(Flex,
|
|
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: {
|
|
82
71
|
width: '127px',
|
|
83
72
|
height: '25px',
|
|
84
73
|
flexDirection: 'column',
|
|
@@ -87,6 +76,6 @@ var BondRow = function (_a) {
|
|
|
87
76
|
}, showTooltip: true, toolTip: "".concat(remainingTokensFormat(bond), " ").concat(bond.earnToken.symbol, " (").concat(formatDollar({
|
|
88
77
|
num: remainingTokensUsd(bond).toNumber(),
|
|
89
78
|
isPrice: true,
|
|
90
|
-
}), ")") }) })
|
|
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));
|
|
91
80
|
};
|
|
92
81
|
export default BondRow;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
13
2
|
import { Flex } from 'theme-ui';
|
|
14
3
|
import { Input } from '../uikit-sdk/Input';
|
|
@@ -18,6 +7,6 @@ import '../../scss/BondRowHeader.scss';
|
|
|
18
7
|
import BondMenu from '../BondMenu/BondMenu';
|
|
19
8
|
var BondRowHeader = function (_a) {
|
|
20
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;
|
|
21
|
-
return (_jsxs(Flex,
|
|
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" })] })] })] }));
|
|
22
11
|
};
|
|
23
12
|
export default BondRowHeader;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BondsDataResponse } from '../../types/bonds';
|
|
3
2
|
import '../../scss/BondRowsByChain.scss';
|
|
4
3
|
declare const BondRowsByChain: ({ bonds, hotBonds, hideTitles, chains }: {
|
|
5
4
|
bonds: BondsDataResponse[];
|
|
6
|
-
hotBonds?: string[]
|
|
5
|
+
hotBonds?: string[];
|
|
7
6
|
hideTitles: boolean;
|
|
8
|
-
chains?: number[]
|
|
7
|
+
chains?: number[];
|
|
9
8
|
}) => import("react").JSX.Element;
|
|
10
9
|
export default BondRowsByChain;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
13
2
|
import BondRowsWithTitle from './BondRowsWithTitle';
|
|
14
3
|
import { MAINNET_CHAINS } from '../../config/constants/chains';
|
|
@@ -16,9 +5,9 @@ import '../../scss/BondRowsByChain.scss';
|
|
|
16
5
|
import { Flex } from 'theme-ui';
|
|
17
6
|
var BondRowsByChain = function (_a) {
|
|
18
7
|
var bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles, chains = _a.chains;
|
|
19
|
-
return (_jsx(Flex,
|
|
8
|
+
return (_jsx(Flex, { className: "bondrowsbychain", children: (MAINNET_CHAINS.map(function (chain, index) {
|
|
20
9
|
return ((!chains || chains.length === 0 || chains.includes(chain)) &&
|
|
21
10
|
_jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles }, chain));
|
|
22
|
-
})) }))
|
|
11
|
+
})) }));
|
|
23
12
|
};
|
|
24
13
|
export default BondRowsByChain;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BondsDataResponse } from "../../types/bonds";
|
|
3
2
|
import '../../scss/BondRowsWithTitle.scss';
|
|
4
3
|
declare const BondRowsWithTitle: ({ chain, bonds, hotBonds, hideTitles }: {
|
|
5
4
|
chain: number;
|
|
6
5
|
bonds: BondsDataResponse[];
|
|
7
|
-
hotBonds?: string[]
|
|
6
|
+
hotBonds?: string[];
|
|
8
7
|
hideTitles: boolean;
|
|
9
8
|
}) => import("react").JSX.Element;
|
|
10
9
|
export default BondRowsWithTitle;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
13
2
|
import { AnimatePresence, motion } from "framer-motion";
|
|
14
3
|
import ChainTitle from "./ChainTitle";
|
|
@@ -21,11 +10,11 @@ var BondRowsWithTitle = function (_a) {
|
|
|
21
10
|
var billsFilteredByChain = bonds.filter(function (bill) { return bill.chainId === chain; });
|
|
22
11
|
var key = chain;
|
|
23
12
|
var _b = useState(true), isOpen = _b[0], setIsOpen = _b[1];
|
|
24
|
-
return (_jsx(Flex,
|
|
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: {
|
|
25
14
|
position: 'relative',
|
|
26
15
|
overflow: 'hidden',
|
|
27
16
|
width: '100%',
|
|
28
17
|
marginTop: '0px',
|
|
29
|
-
}
|
|
18
|
+
}, children: billsFilteredByChain === null || billsFilteredByChain === void 0 ? void 0 : billsFilteredByChain.map(function (bill) { return (_jsx(BondRow, { bond: bill, hotBonds: hotBonds }, bill.billAddress)); }) }, key))] }) }, key));
|
|
30
19
|
};
|
|
31
20
|
export default BondRowsWithTitle;
|
|
@@ -1,20 +1,9 @@
|
|
|
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
1
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
13
2
|
import { Flex, Svg } from '../uikit-sdk';
|
|
14
3
|
import { NETWORK_LABEL } from '../../config/constants/chains';
|
|
15
4
|
var ChainTitle = function (_a) {
|
|
16
5
|
var chain = _a.chain, pt = _a.pt, hideTitles = _a.hideTitles, isOpen = _a.isOpen;
|
|
17
|
-
return (_jsxs(Flex,
|
|
6
|
+
return (_jsxs(Flex, { className: "chaintitle", sx: {
|
|
18
7
|
pt: pt,
|
|
19
8
|
pb: '10px',
|
|
20
9
|
color: 'textDisabledButton',
|
|
@@ -24,6 +13,6 @@ var ChainTitle = function (_a) {
|
|
|
24
13
|
textTransform: 'uppercase',
|
|
25
14
|
display: hideTitles ? 'none' : 'flex',
|
|
26
15
|
width: '200px',
|
|
27
|
-
}
|
|
16
|
+
}, children: [NETWORK_LABEL[chain], " Bonds", _jsx(Flex, { sx: { ml: '7px' }, children: _jsx(Svg, { icon: "caret", direction: isOpen ? 'down' : 'up', width: 8, color: "textDisabledButton" }) })] }));
|
|
28
17
|
};
|
|
29
18
|
export default ChainTitle;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Option } from './types';
|
|
3
|
-
declare const MenuSelect: ({ selectedOption, setOption, options, ...props }:
|
|
3
|
+
declare const MenuSelect: ({ selectedOption, setOption, options, ...props }: {
|
|
4
|
+
selectedOption: string;
|
|
5
|
+
setOption: (option: string) => void;
|
|
6
|
+
options: Option[] | undefined;
|
|
7
|
+
} | any) => React.JSX.Element;
|
|
4
8
|
export default MenuSelect;
|
|
@@ -30,7 +30,7 @@ var MenuSelect = function (_a) {
|
|
|
30
30
|
width: '100%',
|
|
31
31
|
paddingRight: '4px',
|
|
32
32
|
} }, props, { children: options === null || options === void 0 ? void 0 : options.map(function (option) {
|
|
33
|
-
return (_jsx(SelectItem,
|
|
33
|
+
return (_jsx(SelectItem, { size: "xsm", value: option.value, children: _jsx(Text, { sx: { fontWeight: 400, pl: '10px' }, children: option.label }) }, option.label));
|
|
34
34
|
}) })));
|
|
35
35
|
};
|
|
36
36
|
export default MenuSelect;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
13
2
|
import { Flex } from '../uikit-sdk';
|
|
14
3
|
var RecommendationSelector = function (_a) {
|
|
@@ -16,7 +5,7 @@ var RecommendationSelector = function (_a) {
|
|
|
16
5
|
var handleClick = function (option) {
|
|
17
6
|
setActiveOption(option);
|
|
18
7
|
};
|
|
19
|
-
return (_jsx(Flex,
|
|
8
|
+
return (_jsx(Flex, { sx: {
|
|
20
9
|
alignItems: 'center',
|
|
21
10
|
color: 'grey',
|
|
22
11
|
fontSize: ['11px'],
|
|
@@ -24,9 +13,9 @@ var RecommendationSelector = function (_a) {
|
|
|
24
13
|
'& > div:last-child': {
|
|
25
14
|
marginRight: '0',
|
|
26
15
|
},
|
|
27
|
-
}
|
|
16
|
+
}, children: options.map(function (option) {
|
|
28
17
|
var isActive = option === activeOption;
|
|
29
|
-
return (_jsx(Flex,
|
|
18
|
+
return (_jsx(Flex, { sx: {
|
|
30
19
|
background: isActive ? 'primaryShade' : 'white2',
|
|
31
20
|
color: isActive ? 'primaryButton' : 'textDisabledButton',
|
|
32
21
|
px: ['6px', '6px', '6px', '10px'],
|
|
@@ -37,7 +26,7 @@ var RecommendationSelector = function (_a) {
|
|
|
37
26
|
lineHeight: '11px',
|
|
38
27
|
alignItems: 'center',
|
|
39
28
|
height: '24px',
|
|
40
|
-
}, onClick: function () { return handleClick(option); }
|
|
41
|
-
}) }))
|
|
29
|
+
}, onClick: function () { return handleClick(option); }, children: option }, option));
|
|
30
|
+
}) }));
|
|
42
31
|
};
|
|
43
32
|
export default RecommendationSelector;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
2
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
3
|
if (ar || !(i in from)) {
|
|
@@ -45,7 +34,7 @@ var NetworkFilter = function (_a) {
|
|
|
45
34
|
}
|
|
46
35
|
setChainFilterOption(newChainFilterOption);
|
|
47
36
|
};
|
|
48
|
-
return (_jsxs(Flex,
|
|
37
|
+
return (_jsxs(Flex, { sx: { width: '100%', position: 'relative' }, children: [_jsxs(Flex, { sx: {
|
|
49
38
|
background: 'white2',
|
|
50
39
|
p: '6px',
|
|
51
40
|
borderRadius: 'normal',
|
|
@@ -53,7 +42,7 @@ var NetworkFilter = function (_a) {
|
|
|
53
42
|
alignItems: 'center',
|
|
54
43
|
width: '100%',
|
|
55
44
|
justifyContent: 'space-between',
|
|
56
|
-
}, onClick: function () { return setIsOpen(!isOpen); }
|
|
45
|
+
}, onClick: function () { return setIsOpen(!isOpen); }, children: [_jsx(Text, { sx: { lineHeight: '22px', fontSize: '14px', fontWeight: 400, px: '10px' }, children: chainFilterOption.includes('All Chains') ? 'All Chains' : "Chains (".concat(chainFilterOption.length, ")") }), _jsx(Flex, { sx: { ml: '5px' }, children: _jsx(Svg, { icon: "caret", direction: isOpen ? 'up' : 'down' }) })] }), isOpen && (_jsx(Flex, { sx: {
|
|
57
46
|
flexDirection: ['column', 'column', 'column'],
|
|
58
47
|
position: 'absolute',
|
|
59
48
|
top: '45px',
|
|
@@ -64,14 +53,14 @@ var NetworkFilter = function (_a) {
|
|
|
64
53
|
borderRadius: 'normal',
|
|
65
54
|
background: 'white2',
|
|
66
55
|
zIndex: 555,
|
|
67
|
-
}
|
|
68
|
-
return (_jsx(Flex,
|
|
56
|
+
}, children: __spreadArray(['All Chains'], MAINNET_CHAINS, true).map(function (chainId) {
|
|
57
|
+
return (_jsx(Flex, { sx: {
|
|
69
58
|
borderRadius: 'normal',
|
|
70
59
|
p: '5px 15px',
|
|
71
60
|
minHeight: '40px',
|
|
72
61
|
cursor: 'pointer',
|
|
73
62
|
'&:hover': { bg: 'white3' },
|
|
74
|
-
}, onClick: function () { return handleCheckbox(chainId.toString()); }
|
|
75
|
-
}) }))
|
|
63
|
+
}, onClick: function () { return handleCheckbox(chainId.toString()); }, children: _jsxs(Flex, { sx: { width: '100%', alignItems: 'center', fontSize: '14px' }, children: [_jsx(Checkbox, { checked: chainFilterOption.includes(chainId.toString()), onChange: function () { return null; } }), chainId === 'All Chains' ? (_jsxs(_Fragment, { children: [_jsx(Flex, { sx: { mx: '8px' }, children: _jsx(Svg, { icon: "AllChains", width: "22px" }) }), _jsx(Text, { sx: { lineHeight: '22px', fontWeight: 400 }, children: "All Chains" })] })) : (_jsxs(_Fragment, { children: [_jsx(Flex, { sx: { mx: '8px', borderRadius: '50px', overflow: 'hidden' }, children: _jsx(Svg, { icon: NETWORK_ICONS[chainId], width: "22px" }) }), _jsx(Text, { sx: { lineHeight: '22px', fontWeight: 400 }, children: NETWORK_LABEL[chainId] })] }))] }) }, chainId));
|
|
64
|
+
}) }))] }));
|
|
76
65
|
};
|
|
77
66
|
export default NetworkFilter;
|
|
@@ -1,21 +1,10 @@
|
|
|
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
1
|
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
13
2
|
import { Box, Flex } from 'theme-ui';
|
|
14
3
|
import '../../scss/ProgressBar.scss';
|
|
15
4
|
var ProgressBar = function (_a) {
|
|
16
5
|
var value = _a.value, _b = _a.color, color = _b === void 0 ? 'text' : _b;
|
|
17
|
-
return (_jsx(Flex,
|
|
6
|
+
return (_jsx(Flex, { sx: { width: ['100px', '100px', '100px', '100%'], alignItems: 'center', flexDirection: 'row', mt: '5px' }, children: _jsx(Box, { className: "progressbar-background", children: _jsx(Box, { className: "progressbar-completed", style: {
|
|
18
7
|
width: "".concat(value <= 3 ? 3 : value, "%")
|
|
19
|
-
} }) })
|
|
8
|
+
} }) }) }));
|
|
20
9
|
};
|
|
21
10
|
export default ProgressBar;
|
|
@@ -1,20 +1,9 @@
|
|
|
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
1
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
13
2
|
import React from 'react';
|
|
14
3
|
import { styles } from './styles';
|
|
15
4
|
import { Flex, Text, TooltipBubble, Skeleton } from '../uikit-sdk';
|
|
16
5
|
var ProgressBarWrapper = function (_a) {
|
|
17
6
|
var title = _a.title, value = _a.value, style = _a.style, showTooltip = _a.showTooltip, toolTipPlacement = _a.toolTipPlacement, toolTipTransform = _a.toolTipTransform, toolTip = _a.toolTip;
|
|
18
|
-
return (_jsxs(Flex,
|
|
7
|
+
return (_jsxs(Flex, { sx: style, children: [_jsx(Flex, { sx: { alignItems: 'center' }, children: _jsx(Text, { sx: styles.titleText, children: "".concat(title) }) }), showTooltip ? (_jsx(Flex, { sx: { alignItems: 'center', width: '100%' }, children: _jsx(TooltipBubble, { placement: toolTipPlacement, transformTip: toolTipTransform, body: _jsx(Flex, { sx: { justifyContent: 'center' }, children: toolTip }), width: "250px", children: _jsx(Flex, { sx: { justifyContent: 'center', alignItems: 'center', width: '127px' }, children: value ? value : _jsx(Skeleton, { sx: styles.skeleton }) }) }) })) : (_jsx(Flex, { sx: { justifyContent: 'center', alignItems: 'center' }, children: value ? value : _jsx(Skeleton, { sx: styles.skeleton }) }))] }));
|
|
19
8
|
};
|
|
20
9
|
export default React.memo(ProgressBarWrapper);
|
|
@@ -3,6 +3,6 @@ import { BondsDataResponse } from '../../types/bonds';
|
|
|
3
3
|
export declare const NETWORK_COLORS: Partial<Record<number, string>>;
|
|
4
4
|
declare const TokenInfoAndName: ({ bill, vestEnds }: {
|
|
5
5
|
bill: BondsDataResponse;
|
|
6
|
-
vestEnds?: string
|
|
6
|
+
vestEnds?: string;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export default TokenInfoAndName;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
var _a;
|
|
13
2
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
14
3
|
import { Flex, ListTag, Svg } from '../../components/uikit-sdk';
|
|
@@ -30,7 +19,7 @@ export var NETWORK_COLORS = (_a = {},
|
|
|
30
19
|
var TokenInfoAndName = function (_a) {
|
|
31
20
|
var _b, _c, _d, _e, _f, _g, _h;
|
|
32
21
|
var bill = _a.bill, vestEnds = _a.vestEnds;
|
|
33
|
-
return (_jsxs(Flex,
|
|
22
|
+
return (_jsxs(Flex, { sx: {
|
|
34
23
|
width: '100%',
|
|
35
24
|
position: 'relative',
|
|
36
25
|
justifyContent: ['space-between', 'space-between', 'space-between', 'flex-start'],
|
|
@@ -41,14 +30,14 @@ var TokenInfoAndName = function (_a) {
|
|
|
41
30
|
pl: '20px',
|
|
42
31
|
overflow: 'hidden',
|
|
43
32
|
borderRadius: '10px'
|
|
44
|
-
}
|
|
33
|
+
}, children: [_jsx(Flex, { sx: {
|
|
45
34
|
position: 'absolute',
|
|
46
35
|
left: '0px',
|
|
47
36
|
top: '0px',
|
|
48
37
|
overflow: 'hidden',
|
|
49
38
|
borderRadius: '10px 0px 8px 0px',
|
|
50
39
|
zIndex: 5,
|
|
51
|
-
}
|
|
40
|
+
}, children: _jsx(Svg, { width: 18, height: 18, icon: (_b = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bill === null || bill === void 0 ? void 0 : bill.chainId]) !== null && _b !== void 0 ? _b : 'question' }) }), _jsx(Flex, { sx: {
|
|
52
41
|
position: 'absolute',
|
|
53
42
|
zIndex: 0,
|
|
54
43
|
left: '0px',
|
|
@@ -56,17 +45,17 @@ var TokenInfoAndName = function (_a) {
|
|
|
56
45
|
height: '100%',
|
|
57
46
|
background: NETWORK_COLORS[bill.chainId],
|
|
58
47
|
filter: 'blur(35px)',
|
|
59
|
-
} }), _jsxs(Flex,
|
|
48
|
+
} }), _jsxs(Flex, { sx: { pl: '6px', width: '100%', maxWidth: '170px', alignItems: 'center' }, children: [_jsx(Index, { symbol: (_c = bill.showcaseTokenName) !== null && _c !== void 0 ? _c : bill.earnToken.symbol, size: 33 }), _jsxs(Flex, { sx: {
|
|
60
49
|
ml: '10px',
|
|
61
50
|
fontSize: '16px',
|
|
62
51
|
fontWeight: 700,
|
|
63
52
|
width: '100%',
|
|
64
53
|
flexDirection: 'column',
|
|
65
|
-
}
|
|
54
|
+
}, children: [(_d = bill.showcaseTokenName) !== null && _d !== void 0 ? _d : bill.earnToken.symbol, vestEnds && (_jsx(Flex, { sx: { fontSize: '12px', fontWeight: 400, opacity: 0.6, lineHeight: '14px' }, children: vestEnds }))] })] }), _jsxs(Flex, { children: [_jsx(Flex, { sx: { width: '25px' } }), _jsx(Flex, { sx: {
|
|
66
55
|
ml: '10px',
|
|
67
56
|
display: ['none', 'none', 'none', 'flex'],
|
|
68
57
|
minWidth: '70px',
|
|
69
58
|
alignItems: 'center',
|
|
70
|
-
}
|
|
59
|
+
}, children: ((_e = bill.tags) === null || _e === void 0 ? void 0 : _e[0]) && (_jsx(Flex, { sx: { marginRight: '10px' }, children: _jsx(ListTag, { variant: ((_f = bill.tags) === null || _f === void 0 ? void 0 : _f[0]) === 'Cex Fund' ? 'cex_fund' : 'liquidity', text: (_h = (_g = bill.tags) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.toUpperCase() }) })) })] })] }));
|
|
71
60
|
};
|
|
72
61
|
export default TokenInfoAndName;
|
|
@@ -16,6 +16,6 @@ import { Link } from 'theme-ui';
|
|
|
16
16
|
var ButtonsRow = function (_a) {
|
|
17
17
|
var projectLink = _a.projectLink, twitter = _a.twitter, bubble = _a.bubble, audit = _a.audit;
|
|
18
18
|
var bubbleURL = "https://app.bubblemaps.io/bsc/token/".concat(bubble);
|
|
19
|
-
return (_jsxs(Flex,
|
|
19
|
+
return (_jsxs(Flex, { sx: { justifyContent: 'center' }, children: [_jsx(Flex, { sx: styles.iconButton, as: Link, href: projectLink, target: "_blank", children: _jsx(Svg, { icon: "URL", width: 18 }) }), _jsx(Flex, { sx: styles.iconButton, as: Link, href: twitter, target: "_blank", children: _jsx(Svg, { icon: "twitter", width: 18, color: "text" }) }), bubble && (_jsx(Flex, { sx: styles.iconButton, as: Link, href: bubbleURL, target: "_blank", children: _jsx(Svg, { icon: "bubble", width: 18, color: "text" }) })), audit && (_jsxs(Flex, { sx: __assign(__assign({}, styles.iconButton), { margin: '0 0 5px 0', '& svg': { marginRight: '5px' } }), as: Link, href: audit, target: "_blank", children: [_jsx(Svg, { icon: "audit", width: 18, color: "text" }), _jsx(Text, { sx: { paddingRight: '5px' }, children: 'Audit' })] }))] }));
|
|
20
20
|
};
|
|
21
21
|
export default ButtonsRow;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
13
2
|
import { styles } from './styles';
|
|
14
3
|
import { BLOCK_EXPLORER } from '../../config/constants/chains';
|
|
@@ -19,6 +8,6 @@ var Tooltip = function (_a) {
|
|
|
19
8
|
var valueTitle = _a.valueTitle, valueContent = _a.valueContent, value2Title = _a.value2Title, value2Content = _a.value2Content, tokenContract = _a.tokenContract, secondURL = _a.secondURL, secondURLTitle = _a.secondURLTitle, projectLink = _a.projectLink, twitter = _a.twitter, audit = _a.audit, thirdURL = _a.thirdURL, thirdURLTitle = _a.thirdURLTitle, chain = _a.chain;
|
|
20
9
|
var explorerLink = BLOCK_EXPLORER[chain];
|
|
21
10
|
var tokenLink = "".concat(explorerLink, "/address/").concat(tokenContract);
|
|
22
|
-
return (_jsxs(Flex,
|
|
11
|
+
return (_jsxs(Flex, { sx: { flexDirection: 'column', flexWrap: 'wrap' }, children: [projectLink && twitter && (_jsx(ButtonsRow, { twitter: twitter, projectLink: projectLink, bubble: tokenContract, audit: audit })), valueTitle && (_jsxs(Flex, { sx: styles.infoRow, children: [_jsxs(Text, { sx: styles.titleText, children: [valueTitle, ": "] }), _jsx(Text, { sx: styles.contentText, children: valueContent })] })), value2Title && (_jsxs(Flex, { sx: styles.infoRow, children: [_jsxs(Text, { sx: styles.titleText, children: [value2Title, ": "] }), _jsx(Text, { sx: styles.contentText, children: value2Content })] })), _jsx(Flex, { sx: { justifyContent: 'center' }, children: _jsxs(Flex, { sx: { width: '144px', flexDirection: 'column' }, children: [_jsx(Flex, { sx: styles.linkRow, children: _jsxs(Link, { href: tokenLink, sx: styles.link, target: "_blank", children: ['View Token Contract', _jsx(Flex, { sx: { ml: '5px' }, children: _jsx(Svg, { icon: "external", color: "text", width: 10 }) })] }) }), secondURL && (_jsx(Flex, { sx: styles.linkRow, children: _jsxs(Link, { href: secondURL, sx: styles.link, target: "_blank", children: [secondURLTitle, _jsx(Flex, { sx: { ml: '5px' }, children: _jsx(Svg, { icon: "external", color: "text", width: 10 }) })] }) })), thirdURL && (_jsx(Flex, { sx: styles.linkRow, children: _jsx(Link, { href: thirdURL, sx: styles.link, target: "_blank", children: thirdURLTitle }) }))] }) })] }));
|
|
23
12
|
};
|
|
24
13
|
export default Tooltip;
|
|
@@ -28,6 +28,6 @@ import { iconButtonVariants as variants } from './types';
|
|
|
28
28
|
import style from './styles';
|
|
29
29
|
var IconButton = function (_a) {
|
|
30
30
|
var _b = _a.icon, icon = _b === void 0 ? icons.DISCORD : _b, _c = _a.color, color = _c === void 0 ? 'white1' : _c, _d = _a.background, background = _d === void 0 ? 'yellow' : _d, _e = _a.variant, variant = _e === void 0 ? variants.PRIMARY : _e, iconWidth = _a.iconWidth, children = _a.children, props = __rest(_a, ["icon", "color", "background", "variant", "iconWidth", "children"]);
|
|
31
|
-
return (_jsx(Button, __assign({}, props, { variant: variant, sx: __assign(__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', position: 'relative', variant: "buttons.".concat(variant), color: 'primaryBright', background: background }, (variant === variants.PRIMARY ? style.primary : {})), (variant === variants.TRANSPARENT ? style.transparent : {}))
|
|
31
|
+
return (_jsx(Button, __assign({}, props, { variant: variant, sx: __assign(__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', position: 'relative', variant: "buttons.".concat(variant), color: 'primaryBright', background: background }, (variant === variants.PRIMARY ? style.primary : {})), (variant === variants.TRANSPARENT ? style.transparent : {})), children: children || (_jsx("span", { sx: { height: iconWidth, width: iconWidth }, children: _jsx(Svg, __assign({ color: color, icon: icon }, props, { width: iconWidth })) })) })));
|
|
32
32
|
};
|
|
33
33
|
export default IconButton;
|
|
@@ -36,11 +36,11 @@ var Checkbox = function (_a) {
|
|
|
36
36
|
var _b = _a.scale, scale = _b === void 0 ? scales.SM : _b, _c = _a.display, display = _c === void 0 ? 'block' : _c, className = _a.className, background = _a.background, props = __rest(_a, ["scale", "display", "className", "background"]);
|
|
37
37
|
var scaleSize = getScale({ scale: scale });
|
|
38
38
|
var svgScale = scale === 'sm' ? 13 : 21;
|
|
39
|
-
return (_jsxs("span",
|
|
39
|
+
return (_jsxs("span", { className: className, sx: {
|
|
40
40
|
display: display,
|
|
41
41
|
width: scaleSize,
|
|
42
42
|
height: scaleSize,
|
|
43
43
|
position: 'relative',
|
|
44
|
-
}
|
|
44
|
+
}, children: [_jsx("input", __assign({ type: "checkbox", sx: { variant: 'checkbox', background: background, borderColor: 'white4' } }, props)), _jsx("svg", { width: svgScale || '13', height: "auto", viewBox: "0 0 13 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M11.8132 0.171594C11.522 -0.0616871 11.0766 -0.046135 10.8025 0.218251L4.25899 6.76569L1.17566 4.46397C0.93585 4.27735 0.576128 4.2618 0.319184 4.43287C-0.00627898 4.63505 -0.0747974 5.0394 0.147888 5.33489L3.35113 9.4873C3.43677 9.59617 3.55668 9.70503 3.67659 9.78279C4.27612 10.156 5.09835 10.0161 5.50946 9.47175L5.56085 9.40954L11.9159 1.01141C12.1215 0.747022 12.0701 0.389324 11.8132 0.171594Z", fill: "#FAFAFA" }) })] }));
|
|
45
45
|
};
|
|
46
46
|
export default Checkbox;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
type variant = 'search' | 'password' | 'text';
|
|
2
2
|
type inputStatus = 'default' | 'error' | 'success';
|
|
3
|
-
declare const Input: ({ variant, width, status, isLoading, ...props }:
|
|
3
|
+
declare const Input: ({ variant, width, status, isLoading, ...props }: {
|
|
4
|
+
variant?: variant;
|
|
5
|
+
width?: string[];
|
|
6
|
+
status?: inputStatus;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
} | any) => import("react").JSX.Element;
|
|
4
9
|
export default Input;
|