@multiversx/sdk-dapp-liquidity 0.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +186 -0
- package/all-networks-EJIVYZ_i.mjs +4 -0
- package/all-networks-NYACMyeN.js +4 -0
- package/api/confirmRate.d.ts +11 -0
- package/api/confirmRate.js +30 -0
- package/api/confirmRate.mjs +29 -0
- package/api/getChains.d.ts +6 -0
- package/api/getChains.js +12 -0
- package/api/getChains.mjs +11 -0
- package/api/getRate.d.ts +10 -0
- package/api/getRate.js +28 -0
- package/api/getRate.mjs +27 -0
- package/api/getTokens.d.ts +7 -0
- package/api/getTokens.js +14 -0
- package/api/getTokens.mjs +13 -0
- package/api/getTokensBalances.d.ts +8 -0
- package/api/getTokensBalances.js +17 -0
- package/api/getTokensBalances.mjs +16 -0
- package/api/getTransactions.d.ts +7 -0
- package/api/getTransactions.js +14 -0
- package/api/getTransactions.mjs +13 -0
- package/api/index.d.ts +7 -0
- package/api/index.js +17 -0
- package/api/index.mjs +16 -0
- package/api/sendTransactions.d.ts +11 -0
- package/api/sendTransactions.js +29 -0
- package/api/sendTransactions.mjs +28 -0
- package/api/tests/confirmRate.spec.d.ts +1 -0
- package/api/tests/confirmRate.spec.js +124 -0
- package/api/tests/confirmRate.spec.mjs +122 -0
- package/api/tests/getChains.spec.d.ts +1 -0
- package/api/tests/getChains.spec.js +37 -0
- package/api/tests/getChains.spec.mjs +35 -0
- package/api/tests/getRate.spec.d.ts +1 -0
- package/api/tests/getRate.spec.js +83 -0
- package/api/tests/getRate.spec.mjs +81 -0
- package/api/tests/getTokens.spec.d.ts +1 -0
- package/api/tests/getTokens.spec.js +60 -0
- package/api/tests/getTokens.spec.mjs +58 -0
- package/api/tests/getTransactions.spec.d.ts +1 -0
- package/api/tests/getTransactions.spec.js +89 -0
- package/api/tests/getTransactions.spec.mjs +87 -0
- package/api/tests/sendTransactions.spec.d.ts +1 -0
- package/api/tests/sendTransactions.spec.js +83 -0
- package/api/tests/sendTransactions.spec.mjs +81 -0
- package/bignumber-B8vjg9qn.js +1334 -0
- package/bignumber-CKZkoo0g.mjs +1334 -0
- package/constants/index.d.ts +1 -0
- package/constants/index.js +5 -0
- package/constants/index.mjs +4 -0
- package/default-BYtXv70Z.mjs +4 -0
- package/default-H3AbmzFV.js +4 -0
- package/dto/Chain.dto.d.ts +16 -0
- package/dto/Chain.dto.js +2 -0
- package/dto/Chain.dto.mjs +1 -0
- package/dto/ConfirmRate.dto.d.ts +11 -0
- package/dto/ConfirmRate.dto.js +2 -0
- package/dto/ConfirmRate.dto.mjs +1 -0
- package/dto/Token.dto.d.ts +14 -0
- package/dto/Token.dto.js +2 -0
- package/dto/Token.dto.mjs +1 -0
- package/dto/TokenBalance.dto.d.ts +4 -0
- package/dto/TokenBalance.dto.js +2 -0
- package/dto/TokenBalance.dto.mjs +1 -0
- package/dto/Transaction.dto.d.ts +14 -0
- package/dto/Transaction.dto.js +2 -0
- package/dto/Transaction.dto.mjs +1 -0
- package/dto/index.d.ts +5 -0
- package/dto/index.js +2 -0
- package/dto/index.mjs +1 -0
- package/helpers/base64Utils.d.ts +3 -0
- package/helpers/base64Utils.js +32 -0
- package/helpers/base64Utils.mjs +31 -0
- package/helpers/decodeLoginToken.d.ts +9 -0
- package/helpers/decodeLoginToken.js +28 -0
- package/helpers/decodeLoginToken.mjs +27 -0
- package/helpers/decodeToken.d.ts +11 -0
- package/helpers/decodeToken.js +40 -0
- package/helpers/decodeToken.mjs +39 -0
- package/helpers/getApiURL.d.ts +1 -0
- package/helpers/getApiURL.js +8 -0
- package/helpers/getApiURL.mjs +7 -0
- package/helpers/getBridgeURL.d.ts +1 -0
- package/helpers/getBridgeURL.js +8 -0
- package/helpers/getBridgeURL.mjs +7 -0
- package/helpers/getMvxApiURL.d.ts +1 -0
- package/helpers/getMvxApiURL.js +8 -0
- package/helpers/getMvxApiURL.mjs +7 -0
- package/helpers/getMvxChainId.d.ts +1 -0
- package/helpers/getMvxChainId.js +8 -0
- package/helpers/getMvxChainId.mjs +7 -0
- package/helpers/getMvxExplorerAddress.d.ts +1 -0
- package/helpers/getMvxExplorerAddress.js +8 -0
- package/helpers/getMvxExplorerAddress.mjs +7 -0
- package/helpers/index.d.ts +9 -0
- package/helpers/index.js +23 -0
- package/helpers/index.mjs +22 -0
- package/helpers/serializeTransaction.d.ts +3 -0
- package/helpers/serializeTransaction.js +9 -0
- package/helpers/serializeTransaction.mjs +8 -0
- package/helpers/tests/base64Utils.spec.d.ts +1 -0
- package/helpers/tests/base64Utils.spec.js +30 -0
- package/helpers/tests/base64Utils.spec.mjs +28 -0
- package/helpers/tests/decodeLoginToken.spec.d.ts +1 -0
- package/helpers/tests/decodeLoginToken.spec.js +35 -0
- package/helpers/tests/decodeLoginToken.spec.mjs +33 -0
- package/helpers/tests/decodeToken.spec.d.ts +1 -0
- package/helpers/tests/decodeToken.spec.js +28 -0
- package/helpers/tests/decodeToken.spec.mjs +26 -0
- package/index-B9WqxUXM.mjs +91 -0
- package/index-BXwpbIDQ.mjs +107 -0
- package/index-CnudU77V.js +329 -0
- package/index-DSnomXRI.mjs +68025 -0
- package/index-DZHiA1sX.js +107 -0
- package/index-cvy2-uZ_.js +67946 -0
- package/index.d.ts +6 -0
- package/index.js +189 -0
- package/index.mjs +185 -0
- package/package.json +107 -0
- package/react-B9sQBOh0.mjs +3040 -0
- package/react-BaXyw3AO.js +3040 -0
- package/react-CNXJSTCv.js +38 -0
- package/react-CSQpf1zk.mjs +38 -0
- package/reactjs/components/AccountAddress/AccountAddress.d.ts +6 -0
- package/reactjs/components/AccountAddress/AccountAddress.js +25 -0
- package/reactjs/components/AccountAddress/AccountAddress.mjs +24 -0
- package/reactjs/components/AccountAddress/index.d.ts +1 -0
- package/reactjs/components/AccountAddress/index.js +5 -0
- package/reactjs/components/AccountAddress/index.mjs +4 -0
- package/reactjs/components/AmountCard/AmountCard.d.ts +6 -0
- package/reactjs/components/AmountCard/AmountCard.js +33 -0
- package/reactjs/components/AmountCard/AmountCard.mjs +32 -0
- package/reactjs/components/AmountCard/index.d.ts +1 -0
- package/reactjs/components/AmountCard/index.js +5 -0
- package/reactjs/components/AmountCard/index.mjs +4 -0
- package/reactjs/components/AmountInput/AmountInput.d.ts +13 -0
- package/reactjs/components/AmountInput/AmountInput.js +61 -0
- package/reactjs/components/AmountInput/AmountInput.mjs +60 -0
- package/reactjs/components/AmountInput/index.d.ts +1 -0
- package/reactjs/components/AmountInput/index.js +5 -0
- package/reactjs/components/AmountInput/index.mjs +4 -0
- package/reactjs/components/BridgeForm/BridgeForm.d.ts +16 -0
- package/reactjs/components/BridgeForm/BridgeForm.js +680 -0
- package/reactjs/components/BridgeForm/BridgeForm.mjs +679 -0
- package/reactjs/components/BridgeForm/index.d.ts +1 -0
- package/reactjs/components/BridgeForm/index.js +5 -0
- package/reactjs/components/BridgeForm/index.mjs +4 -0
- package/reactjs/components/BridgeHistory/BridgeHistory.d.ts +4 -0
- package/reactjs/components/BridgeHistory/BridgeHistory.js +233 -0
- package/reactjs/components/BridgeHistory/BridgeHistory.mjs +232 -0
- package/reactjs/components/BridgeHistory/index.d.ts +1 -0
- package/reactjs/components/BridgeHistory/index.js +5 -0
- package/reactjs/components/BridgeHistory/index.mjs +4 -0
- package/reactjs/components/Connect/BridgeAccountDisplay.d.ts +6 -0
- package/reactjs/components/Connect/BridgeAccountDisplay.js +85 -0
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +84 -0
- package/reactjs/components/Connect/BridgeConnectButton.d.ts +7 -0
- package/reactjs/components/Connect/BridgeConnectButton.js +26 -0
- package/reactjs/components/Connect/BridgeConnectButton.mjs +25 -0
- package/reactjs/components/Connect/CustomConnectButton.d.ts +7 -0
- package/reactjs/components/Connect/CustomConnectButton.js +42 -0
- package/reactjs/components/Connect/CustomConnectButton.mjs +41 -0
- package/reactjs/components/Connect/MvxAccountDisplay.d.ts +9 -0
- package/reactjs/components/Connect/MvxAccountDisplay.js +75 -0
- package/reactjs/components/Connect/MvxAccountDisplay.mjs +74 -0
- package/reactjs/components/Connect/MvxConnectButton.d.ts +11 -0
- package/reactjs/components/Connect/MvxConnectButton.js +43 -0
- package/reactjs/components/Connect/MvxConnectButton.mjs +42 -0
- package/reactjs/components/Connect/SwitchChainButton.d.ts +7 -0
- package/reactjs/components/Connect/SwitchChainButton.js +33 -0
- package/reactjs/components/Connect/SwitchChainButton.mjs +32 -0
- package/reactjs/components/Connect/index.d.ts +6 -0
- package/reactjs/components/Connect/index.js +15 -0
- package/reactjs/components/Connect/index.mjs +14 -0
- package/reactjs/components/CopyButton/CopyButton.d.ts +6 -0
- package/reactjs/components/CopyButton/CopyButton.js +42 -0
- package/reactjs/components/CopyButton/CopyButton.mjs +41 -0
- package/reactjs/components/CopyButton/index.d.ts +1 -0
- package/reactjs/components/CopyButton/index.js +5 -0
- package/reactjs/components/CopyButton/index.mjs +4 -0
- package/reactjs/components/CopyButton/utils/copyToClipboard.d.ts +1 -0
- package/reactjs/components/CopyButton/utils/copyToClipboard.js +38 -0
- package/reactjs/components/CopyButton/utils/copyToClipboard.mjs +37 -0
- package/reactjs/components/CopyButton/utils/index.d.ts +1 -0
- package/reactjs/components/CopyButton/utils/index.js +5 -0
- package/reactjs/components/CopyButton/utils/index.mjs +4 -0
- package/reactjs/components/DisplayAmount/DisplayAmount.d.ts +21 -0
- package/reactjs/components/DisplayAmount/DisplayAmount.js +91 -0
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +90 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.d.ts +7 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +40 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.mjs +39 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.d.ts +0 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.js +2 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.mjs +1 -0
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.d.ts +14 -0
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.js +62 -0
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.mjs +61 -0
- package/reactjs/components/DisplayAmount/components/index.d.ts +0 -0
- package/reactjs/components/DisplayAmount/components/index.js +2 -0
- package/reactjs/components/DisplayAmount/components/index.mjs +1 -0
- package/reactjs/components/DisplayAmount/index.d.ts +1 -0
- package/reactjs/components/DisplayAmount/index.js +5 -0
- package/reactjs/components/DisplayAmount/index.mjs +4 -0
- package/reactjs/components/DisplayAmount/utils/index.d.ts +1 -0
- package/reactjs/components/DisplayAmount/utils/index.js +5 -0
- package/reactjs/components/DisplayAmount/utils/index.mjs +4 -0
- package/reactjs/components/DisplayAmount/utils/truncateAmount.d.ts +1 -0
- package/reactjs/components/DisplayAmount/utils/truncateAmount.js +22 -0
- package/reactjs/components/DisplayAmount/utils/truncateAmount.mjs +21 -0
- package/reactjs/components/SmallLoader/SmallLoader.d.ts +4 -0
- package/reactjs/components/SmallLoader/SmallLoader.js +22 -0
- package/reactjs/components/SmallLoader/SmallLoader.mjs +21 -0
- package/reactjs/components/SmallLoader/index.d.ts +1 -0
- package/reactjs/components/SmallLoader/index.js +5 -0
- package/reactjs/components/SmallLoader/index.mjs +4 -0
- package/reactjs/components/TokenSelector/TokenSelector.d.ts +16 -0
- package/reactjs/components/TokenSelector/TokenSelector.js +158 -0
- package/reactjs/components/TokenSelector/TokenSelector.mjs +157 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.d.ts +8 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +86 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +85 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.d.ts +11 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +45 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +44 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.d.ts +6 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.js +19 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.mjs +18 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.d.ts +3 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.js +7 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.mjs +6 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.d.ts +4 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +33 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +32 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.d.ts +10 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.js +2 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.mjs +1 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.d.ts +10 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.js +2 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.mjs +1 -0
- package/reactjs/components/TokenSelector/components/SelectContainer.d.ts +7 -0
- package/reactjs/components/TokenSelector/components/SelectContainer.js +41 -0
- package/reactjs/components/TokenSelector/components/SelectContainer.mjs +40 -0
- package/reactjs/components/TokenSelector/components/SelectContent.d.ts +10 -0
- package/reactjs/components/TokenSelector/components/SelectContent.js +93 -0
- package/reactjs/components/TokenSelector/components/SelectContent.mjs +92 -0
- package/reactjs/components/TokenSelector/components/SelectedOption.d.ts +5 -0
- package/reactjs/components/TokenSelector/components/SelectedOption.js +29 -0
- package/reactjs/components/TokenSelector/components/SelectedOption.mjs +28 -0
- package/reactjs/components/TokenSelector/components/TokenIcon.d.ts +8 -0
- package/reactjs/components/TokenSelector/components/TokenIcon.js +82 -0
- package/reactjs/components/TokenSelector/components/TokenIcon.mjs +81 -0
- package/reactjs/components/TokenSelector/components/TokenItem.d.ts +7 -0
- package/reactjs/components/TokenSelector/components/TokenItem.js +69 -0
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +68 -0
- package/reactjs/components/TokenSelector/components/TokenList.d.ts +7 -0
- package/reactjs/components/TokenSelector/components/TokenList.js +21 -0
- package/reactjs/components/TokenSelector/components/TokenList.mjs +20 -0
- package/reactjs/components/TokenSelector/components/TokenSymbol.d.ts +9 -0
- package/reactjs/components/TokenSelector/components/TokenSymbol.js +26 -0
- package/reactjs/components/TokenSelector/components/TokenSymbol.mjs +25 -0
- package/reactjs/components/TokenSelector/index.d.ts +1 -0
- package/reactjs/components/TokenSelector/index.js +5 -0
- package/reactjs/components/TokenSelector/index.mjs +4 -0
- package/reactjs/components/TransactionToast/TransactionToast.d.ts +9 -0
- package/reactjs/components/TransactionToast/TransactionToast.js +54 -0
- package/reactjs/components/TransactionToast/TransactionToast.mjs +53 -0
- package/reactjs/components/TransactionToast/TransactionToastContainer.d.ts +3 -0
- package/reactjs/components/TransactionToast/TransactionToastContainer.js +21 -0
- package/reactjs/components/TransactionToast/TransactionToastContainer.mjs +20 -0
- package/reactjs/components/TransactionToast/index.d.ts +2 -0
- package/reactjs/components/TransactionToast/index.js +7 -0
- package/reactjs/components/TransactionToast/index.mjs +6 -0
- package/reactjs/components/TrimAddress/TrimAddress.d.ts +8 -0
- package/reactjs/components/TrimAddress/TrimAddress.js +26 -0
- package/reactjs/components/TrimAddress/TrimAddress.mjs +25 -0
- package/reactjs/components/TrimAddress/index.d.ts +1 -0
- package/reactjs/components/TrimAddress/index.js +5 -0
- package/reactjs/components/TrimAddress/index.mjs +4 -0
- package/reactjs/components/base/MxButton/MxButton.d.ts +13 -0
- package/reactjs/components/base/MxButton/MxButton.js +72 -0
- package/reactjs/components/base/MxButton/MxButton.mjs +71 -0
- package/reactjs/components/base/MxButton/index.d.ts +1 -0
- package/reactjs/components/base/MxButton/index.js +5 -0
- package/reactjs/components/base/MxButton/index.mjs +4 -0
- package/reactjs/components/base/MxCard/MxCard.d.ts +10 -0
- package/reactjs/components/base/MxCard/MxCard.js +55 -0
- package/reactjs/components/base/MxCard/MxCard.mjs +54 -0
- package/reactjs/components/base/MxCard/index.d.ts +1 -0
- package/reactjs/components/base/MxCard/index.js +5 -0
- package/reactjs/components/base/MxCard/index.mjs +4 -0
- package/reactjs/components/base/MxLink/MxLink.d.ts +10 -0
- package/reactjs/components/base/MxLink/MxLink.js +71 -0
- package/reactjs/components/base/MxLink/MxLink.mjs +70 -0
- package/reactjs/components/base/MxLink/index.d.ts +1 -0
- package/reactjs/components/base/MxLink/index.js +5 -0
- package/reactjs/components/base/MxLink/index.mjs +4 -0
- package/reactjs/components/base/MxSearch/MxSearch.d.ts +10 -0
- package/reactjs/components/base/MxSearch/MxSearch.js +70 -0
- package/reactjs/components/base/MxSearch/MxSearch.mjs +69 -0
- package/reactjs/components/base/MxSearch/index.d.ts +1 -0
- package/reactjs/components/base/MxSearch/index.js +5 -0
- package/reactjs/components/base/MxSearch/index.mjs +4 -0
- package/reactjs/components/base/MxSlideover/MxSlideover.d.ts +10 -0
- package/reactjs/components/base/MxSlideover/MxSlideover.js +79 -0
- package/reactjs/components/base/MxSlideover/MxSlideover.mjs +78 -0
- package/reactjs/components/base/MxSlideover/index.d.ts +1 -0
- package/reactjs/components/base/MxSlideover/index.js +5 -0
- package/reactjs/components/base/MxSlideover/index.mjs +4 -0
- package/reactjs/components/base/MxTooltip/MxTooltip.d.ts +23 -0
- package/reactjs/components/base/MxTooltip/MxTooltip.js +163 -0
- package/reactjs/components/base/MxTooltip/MxTooltip.mjs +162 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.d.ts +11 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +34 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs +33 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.d.ts +1 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.js +5 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.mjs +4 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.d.ts +13 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.js +28 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.mjs +27 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.d.ts +1 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.js +5 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.mjs +4 -0
- package/reactjs/components/base/MxTooltip/components/index.d.ts +2 -0
- package/reactjs/components/base/MxTooltip/components/index.js +7 -0
- package/reactjs/components/base/MxTooltip/components/index.mjs +6 -0
- package/reactjs/components/base/MxTooltip/index.d.ts +1 -0
- package/reactjs/components/base/MxTooltip/index.js +5 -0
- package/reactjs/components/base/MxTooltip/index.mjs +4 -0
- package/reactjs/components/base/index.d.ts +6 -0
- package/reactjs/components/base/index.js +15 -0
- package/reactjs/components/base/index.mjs +14 -0
- package/reactjs/components/index.d.ts +13 -0
- package/reactjs/components/index.js +51 -0
- package/reactjs/components/index.mjs +50 -0
- package/reactjs/constants/chains.d.ts +35 -0
- package/reactjs/constants/chains.js +38 -0
- package/reactjs/constants/chains.mjs +37 -0
- package/reactjs/constants/index.d.ts +3 -0
- package/reactjs/constants/index.js +12 -0
- package/reactjs/constants/index.mjs +11 -0
- package/reactjs/context/Web3AppProvider.d.ts +12 -0
- package/reactjs/context/Web3AppProvider.js +29 -0
- package/reactjs/context/Web3AppProvider.mjs +28 -0
- package/reactjs/context/queryClient.d.ts +3 -0
- package/reactjs/context/queryClient.js +12 -0
- package/reactjs/context/queryClient.mjs +11 -0
- package/reactjs/context/useWeb3App.d.ts +1 -0
- package/reactjs/context/useWeb3App.js +13 -0
- package/reactjs/context/useWeb3App.mjs +12 -0
- package/reactjs/hooks/index.d.ts +11 -0
- package/reactjs/hooks/index.js +32 -0
- package/reactjs/hooks/index.mjs +31 -0
- package/reactjs/hooks/useAccount.d.ts +77 -0
- package/reactjs/hooks/useAccount.js +18 -0
- package/reactjs/hooks/useAccount.mjs +17 -0
- package/reactjs/hooks/useBalances.d.ts +10 -0
- package/reactjs/hooks/useBalances.js +7 -0
- package/reactjs/hooks/useBalances.mjs +6 -0
- package/reactjs/hooks/useBridgeFormik.d.ts +98 -0
- package/reactjs/hooks/useBridgeFormik.js +182 -0
- package/reactjs/hooks/useBridgeFormik.mjs +181 -0
- package/reactjs/hooks/useDebounce.d.ts +1 -0
- package/reactjs/hooks/useDebounce.js +14 -0
- package/reactjs/hooks/useDebounce.mjs +13 -0
- package/reactjs/hooks/useFetchBridgeData.d.ts +45 -0
- package/reactjs/hooks/useFetchBridgeData.js +44 -0
- package/reactjs/hooks/useFetchBridgeData.mjs +43 -0
- package/reactjs/hooks/useFetchTokens.d.ts +42 -0
- package/reactjs/hooks/useFetchTokens.js +105 -0
- package/reactjs/hooks/useFetchTokens.mjs +104 -0
- package/reactjs/hooks/useGetChainId.d.ts +1 -0
- package/reactjs/hooks/useGetChainId.js +12 -0
- package/reactjs/hooks/useGetChainId.mjs +11 -0
- package/reactjs/hooks/useResolveTokenChain.d.ts +9 -0
- package/reactjs/hooks/useResolveTokenChain.js +21 -0
- package/reactjs/hooks/useResolveTokenChain.mjs +20 -0
- package/reactjs/hooks/useSendTransactions.d.ts +3 -0
- package/reactjs/hooks/useSendTransactions.js +19 -0
- package/reactjs/hooks/useSendTransactions.mjs +18 -0
- package/reactjs/hooks/useSignTransaction.d.ts +69 -0
- package/reactjs/hooks/useSignTransaction.js +17 -0
- package/reactjs/hooks/useSignTransaction.mjs +16 -0
- package/reactjs/hooks/validation/index.d.ts +4 -0
- package/reactjs/hooks/validation/index.js +11 -0
- package/reactjs/hooks/validation/index.mjs +10 -0
- package/reactjs/hooks/validation/useAmountSchema.d.ts +2 -0
- package/reactjs/hooks/validation/useAmountSchema.js +31 -0
- package/reactjs/hooks/validation/useAmountSchema.mjs +13 -0
- package/reactjs/hooks/validation/useSecondAmountSchema.d.ts +2 -0
- package/reactjs/hooks/validation/useSecondAmountSchema.js +27 -0
- package/reactjs/hooks/validation/useSecondAmountSchema.mjs +9 -0
- package/reactjs/hooks/validation/useTestHasEnoughFunds.d.ts +3 -0
- package/reactjs/hooks/validation/useTestHasEnoughFunds.js +38 -0
- package/reactjs/hooks/validation/useTestHasEnoughFunds.mjs +37 -0
- package/reactjs/hooks/validation/useTestIsConnected.d.ts +3 -0
- package/reactjs/hooks/validation/useTestIsConnected.js +21 -0
- package/reactjs/hooks/validation/useTestIsConnected.mjs +20 -0
- package/reactjs/index.d.ts +10 -0
- package/reactjs/index.js +153 -0
- package/reactjs/index.mjs +149 -0
- package/reactjs/init/index.d.ts +1 -0
- package/reactjs/init/index.js +5 -0
- package/reactjs/init/index.mjs +4 -0
- package/reactjs/init/init.d.ts +48 -0
- package/reactjs/init/init.js +53 -0
- package/reactjs/init/init.mjs +35 -0
- package/reactjs/init/tests/init.spec.d.ts +1 -0
- package/reactjs/init/tests/init.spec.js +108 -0
- package/reactjs/init/tests/init.spec.mjs +106 -0
- package/reactjs/queries/index.d.ts +7 -0
- package/reactjs/queries/index.js +20 -0
- package/reactjs/queries/index.mjs +19 -0
- package/reactjs/queries/useGetAllTokens.query.d.ts +3 -0
- package/reactjs/queries/useGetAllTokens.query.js +31 -0
- package/reactjs/queries/useGetAllTokens.query.mjs +30 -0
- package/reactjs/queries/useGetChains.query.d.ts +3 -0
- package/reactjs/queries/useGetChains.query.js +31 -0
- package/reactjs/queries/useGetChains.query.mjs +30 -0
- package/reactjs/queries/useGetEvmTokensBalances.query.d.ts +22 -0
- package/reactjs/queries/useGetEvmTokensBalances.query.js +78 -0
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +77 -0
- package/reactjs/queries/useGetHistory.query.d.ts +4 -0
- package/reactjs/queries/useGetHistory.query.js +47 -0
- package/reactjs/queries/useGetHistory.query.mjs +46 -0
- package/reactjs/queries/useGetMvxTokensBalances.query.d.ts +23 -0
- package/reactjs/queries/useGetMvxTokensBalances.query.js +60 -0
- package/reactjs/queries/useGetMvxTokensBalances.query.mjs +59 -0
- package/reactjs/queries/useGetRate.mutation.d.ts +6 -0
- package/reactjs/queries/useGetRate.mutation.js +19 -0
- package/reactjs/queries/useGetRate.mutation.mjs +18 -0
- package/reactjs/queries/useGetTokens.query.d.ts +3 -0
- package/reactjs/queries/useGetTokens.query.js +34 -0
- package/reactjs/queries/useGetTokens.query.mjs +33 -0
- package/reactjs/reexports.d.ts +6 -0
- package/reactjs/reexports.js +21 -0
- package/reactjs/reexports.mjs +17 -0
- package/reactjs/utils/delay.d.ts +1 -0
- package/reactjs/utils/delay.js +7 -0
- package/reactjs/utils/delay.mjs +6 -0
- package/reactjs/utils/formatAmount.d.ts +7 -0
- package/reactjs/utils/formatAmount.js +24 -0
- package/reactjs/utils/formatAmount.mjs +23 -0
- package/reactjs/utils/getCleanStringAmount.d.ts +4 -0
- package/reactjs/utils/getCleanStringAmount.js +12 -0
- package/reactjs/utils/getCleanStringAmount.mjs +11 -0
- package/reactjs/utils/getCompletePathname.d.ts +1 -0
- package/reactjs/utils/getCompletePathname.js +6 -0
- package/reactjs/utils/getCompletePathname.mjs +5 -0
- package/reactjs/utils/getInitialTokens.d.ts +8 -0
- package/reactjs/utils/getInitialTokens.js +13 -0
- package/reactjs/utils/getInitialTokens.mjs +12 -0
- package/reactjs/utils/hasEnoughFunds.d.ts +5 -0
- package/reactjs/utils/hasEnoughFunds.js +20 -0
- package/reactjs/utils/hasEnoughFunds.mjs +19 -0
- package/reactjs/utils/index.d.ts +12 -0
- package/reactjs/utils/index.js +27 -0
- package/reactjs/utils/index.mjs +26 -0
- package/reactjs/utils/isStringFloat.d.ts +1 -0
- package/reactjs/utils/isStringFloat.js +22 -0
- package/reactjs/utils/isStringFloat.mjs +21 -0
- package/reactjs/utils/mxClsx.d.ts +3 -0
- package/reactjs/utils/mxClsx.js +21 -0
- package/reactjs/utils/mxClsx.mjs +20 -0
- package/reactjs/utils/pipe.d.ts +7 -0
- package/reactjs/utils/pipe.js +26 -0
- package/reactjs/utils/pipe.mjs +25 -0
- package/reactjs/utils/removeCommas.d.ts +1 -0
- package/reactjs/utils/removeCommas.js +7 -0
- package/reactjs/utils/removeCommas.mjs +6 -0
- package/reactjs/utils/roundAmount.d.ts +1 -0
- package/reactjs/utils/roundAmount.js +41 -0
- package/reactjs/utils/roundAmount.mjs +40 -0
- package/reactjs/utils/testNumber.d.ts +1 -0
- package/reactjs/utils/testNumber.js +5 -0
- package/reactjs/utils/testNumber.mjs +4 -0
- package/store/inMemoryStore.d.ts +12 -0
- package/store/inMemoryStore.js +40 -0
- package/store/inMemoryStore.mjs +39 -0
- package/types/batchTransactions.d.ts +6 -0
- package/types/batchTransactions.js +2 -0
- package/types/batchTransactions.mjs +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +2 -0
- package/types/index.mjs +1 -0
- package/types/rate.d.ts +11 -0
- package/types/rate.js +2 -0
- package/types/rate.mjs +1 -0
- package/types/token.d.ts +12 -0
- package/types/token.js +2 -0
- package/types/token.mjs +1 -0
- package/types/transaction.d.ts +14 -0
- package/types/transaction.js +2 -0
- package/types/transaction.mjs +1 -0
- package/useBalances-Bxtc4GNK.js +199 -0
- package/useBalances-DA3zEruz.mjs +199 -0
- package/w3m-modal-DCcF1qEB.js +356 -0
- package/w3m-modal-DK3G5GJp.mjs +356 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const TrimAddress = ({
|
|
6
|
+
address,
|
|
7
|
+
startLength = 4,
|
|
8
|
+
endLength = 5,
|
|
9
|
+
className = ""
|
|
10
|
+
}) => {
|
|
11
|
+
if (!address) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
className: `liq-truncate liq-text-left liq-text-neutral-100 uppercase liq-flex liq-gap-1 ${className}`,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: address.slice(0, startLength) }),
|
|
20
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "..." }),
|
|
21
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: address.slice(-endLength) })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
exports.TrimAddress = TrimAddress;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const TrimAddress = ({
|
|
3
|
+
address,
|
|
4
|
+
startLength = 4,
|
|
5
|
+
endLength = 5,
|
|
6
|
+
className = ""
|
|
7
|
+
}) => {
|
|
8
|
+
if (!address) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return /* @__PURE__ */ jsxs(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: `liq-truncate liq-text-left liq-text-neutral-100 uppercase liq-flex liq-gap-1 ${className}`,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsx("span", { children: address.slice(0, startLength) }),
|
|
17
|
+
/* @__PURE__ */ jsx("span", { children: "..." }),
|
|
18
|
+
/* @__PURE__ */ jsx("span", { children: address.slice(-endLength) })
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
TrimAddress
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TrimAddress';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const reactjs_components_TrimAddress_TrimAddress = require("./TrimAddress.js");
|
|
5
|
+
exports.TrimAddress = reactjs_components_TrimAddress_TrimAddress.TrimAddress;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
|
|
3
|
+
export type MxButtonSizeType = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type MxButtonVariantType = 'primary' | 'primary-300' | 'primary-50' | 'success' | 'danger' | 'danger-600' | 'neutral-400' | 'neutral-600' | 'neutral-700' | 'neutral-750' | 'neutral-800' | 'neutral-850' | 'link-neutral-100' | 'link-neutral-200' | 'link-neutral-300' | 'link-neutral-400' | 'link-neutral-500' | 'link-primary-300' | 'transparent' | 'translucent';
|
|
5
|
+
interface MxButtonType extends HTMLProps<HTMLButtonElement> {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
isProcessing?: boolean;
|
|
8
|
+
btnSize?: MxButtonSizeType;
|
|
9
|
+
variant?: MxButtonVariantType;
|
|
10
|
+
type?: HTMLButtonElement['type'];
|
|
11
|
+
}
|
|
12
|
+
export declare const MxButton: ({ children, disabled, isLoading, isProcessing, className, btnSize, type, variant, ...rest }: MxButtonType) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const reactjs_utils_mxClsx = require("../../../utils/mxClsx.js");
|
|
6
|
+
const MxButton = ({
|
|
7
|
+
children,
|
|
8
|
+
disabled,
|
|
9
|
+
isLoading,
|
|
10
|
+
isProcessing,
|
|
11
|
+
className = "",
|
|
12
|
+
btnSize = "md",
|
|
13
|
+
type = "button",
|
|
14
|
+
variant = "transparent",
|
|
15
|
+
...rest
|
|
16
|
+
}) => {
|
|
17
|
+
const disabledText = isLoading ? "Loading..." : isProcessing ? "Processing..." : void 0;
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19
|
+
"button",
|
|
20
|
+
{
|
|
21
|
+
...rest,
|
|
22
|
+
type,
|
|
23
|
+
disabled: disabled || isLoading || isProcessing,
|
|
24
|
+
className: reactjs_utils_mxClsx.mxClsx(
|
|
25
|
+
// base style
|
|
26
|
+
"focus-primary liq-rounded-xl liq-font-semibold liq-transition-colors liq-duration-200 disabled:liq-opacity-50",
|
|
27
|
+
// normal btn
|
|
28
|
+
{
|
|
29
|
+
"liq-bg-primary liq-text-primary-50 hover:enabled:liq-bg-primary-700/80": variant === "primary",
|
|
30
|
+
"liq-bg-primary-300 liq-text-primary-950 hover:enabled:liq-bg-primary-200": variant === "primary-300",
|
|
31
|
+
"liq-bg-primary-50 liq-text-primary-950 hover:enabled:liq-bg-primary-200": variant === "primary-50",
|
|
32
|
+
"liq-bg-success-700 liq-text-success-50 hover:enabled:liq-bg-success-600": variant === "success",
|
|
33
|
+
"liq-bg-danger liq-text-danger-50 hover:enabled:liq-bg-danger-300": variant === "danger",
|
|
34
|
+
"liq-bg-danger-600 liq-text-danger-50 hover:enabled:liq-bg-danger-500": variant === "danger-600",
|
|
35
|
+
"liq-bg-neutral-400 liq-text-neutral-50 hover:enabled:liq-bg-neutral-300": variant === "neutral-400",
|
|
36
|
+
"liq-bg-neutral-600 liq-text-neutral-50 hover:enabled:liq-bg-neutral-500": variant === "neutral-600",
|
|
37
|
+
"liq-bg-neutral-700 liq-text-neutral-50 hover:enabled:liq-bg-neutral-600": variant === "neutral-700",
|
|
38
|
+
"liq-bg-neutral-750 liq-text-neutral-50 hover:enabled:liq-bg-neutral-650": variant === "neutral-750",
|
|
39
|
+
"liq-bg-neutral-800 liq-text-neutral-50 hover:enabled:liq-bg-neutral-700": variant === "neutral-800",
|
|
40
|
+
"liq-bg-neutral-850 liq-text-neutral-50 hover:enabled:liq-bg-neutral-750": variant === "neutral-850",
|
|
41
|
+
"liq-bg-white/5 liq-text-neutral-50 hover:enabled:liq-bg-white/10": variant === "translucent"
|
|
42
|
+
},
|
|
43
|
+
// link btn
|
|
44
|
+
{
|
|
45
|
+
"liq-text-neutral-100 hover:enabled:liq-text-white": variant === "link-neutral-100",
|
|
46
|
+
"liq-text-neutral-200 hover:enabled:liq-text-white": variant === "link-neutral-200",
|
|
47
|
+
"liq-text-neutral-300 hover:enabled:liq-text-white": variant === "link-neutral-300",
|
|
48
|
+
"liq-text-neutral-400 hover:enabled:liq-text-white": variant === "link-neutral-400",
|
|
49
|
+
"liq-text-neutral-500 hover:enabled:liq-text-white": variant === "link-neutral-500",
|
|
50
|
+
"liq-text-primary-300 hover:enabled:liq-text-white": variant === "link-primary-300"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"liq-border liq-border-neutral-750 liq-bg-transparent hover:enabled:liq-bg-neutral-800": variant === "transparent"
|
|
54
|
+
},
|
|
55
|
+
// size
|
|
56
|
+
{
|
|
57
|
+
"liq-px-2 liq-py-1 liq-text-xs": btnSize === "xs",
|
|
58
|
+
"liq-px-2 liq-py-1": btnSize === "sm",
|
|
59
|
+
"liq-px-4 liq-py-2": btnSize === "md",
|
|
60
|
+
"liq-px-8 liq-py-3": btnSize === "lg"
|
|
61
|
+
},
|
|
62
|
+
// external
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
children: [
|
|
66
|
+
disabledText && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "liq-animate-pulse", children: disabledText }),
|
|
67
|
+
!disabledText && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
exports.MxButton = MxButton;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { mxClsx } from "../../../utils/mxClsx.mjs";
|
|
3
|
+
const MxButton = ({
|
|
4
|
+
children,
|
|
5
|
+
disabled,
|
|
6
|
+
isLoading,
|
|
7
|
+
isProcessing,
|
|
8
|
+
className = "",
|
|
9
|
+
btnSize = "md",
|
|
10
|
+
type = "button",
|
|
11
|
+
variant = "transparent",
|
|
12
|
+
...rest
|
|
13
|
+
}) => {
|
|
14
|
+
const disabledText = isLoading ? "Loading..." : isProcessing ? "Processing..." : void 0;
|
|
15
|
+
return /* @__PURE__ */ jsxs(
|
|
16
|
+
"button",
|
|
17
|
+
{
|
|
18
|
+
...rest,
|
|
19
|
+
type,
|
|
20
|
+
disabled: disabled || isLoading || isProcessing,
|
|
21
|
+
className: mxClsx(
|
|
22
|
+
// base style
|
|
23
|
+
"focus-primary liq-rounded-xl liq-font-semibold liq-transition-colors liq-duration-200 disabled:liq-opacity-50",
|
|
24
|
+
// normal btn
|
|
25
|
+
{
|
|
26
|
+
"liq-bg-primary liq-text-primary-50 hover:enabled:liq-bg-primary-700/80": variant === "primary",
|
|
27
|
+
"liq-bg-primary-300 liq-text-primary-950 hover:enabled:liq-bg-primary-200": variant === "primary-300",
|
|
28
|
+
"liq-bg-primary-50 liq-text-primary-950 hover:enabled:liq-bg-primary-200": variant === "primary-50",
|
|
29
|
+
"liq-bg-success-700 liq-text-success-50 hover:enabled:liq-bg-success-600": variant === "success",
|
|
30
|
+
"liq-bg-danger liq-text-danger-50 hover:enabled:liq-bg-danger-300": variant === "danger",
|
|
31
|
+
"liq-bg-danger-600 liq-text-danger-50 hover:enabled:liq-bg-danger-500": variant === "danger-600",
|
|
32
|
+
"liq-bg-neutral-400 liq-text-neutral-50 hover:enabled:liq-bg-neutral-300": variant === "neutral-400",
|
|
33
|
+
"liq-bg-neutral-600 liq-text-neutral-50 hover:enabled:liq-bg-neutral-500": variant === "neutral-600",
|
|
34
|
+
"liq-bg-neutral-700 liq-text-neutral-50 hover:enabled:liq-bg-neutral-600": variant === "neutral-700",
|
|
35
|
+
"liq-bg-neutral-750 liq-text-neutral-50 hover:enabled:liq-bg-neutral-650": variant === "neutral-750",
|
|
36
|
+
"liq-bg-neutral-800 liq-text-neutral-50 hover:enabled:liq-bg-neutral-700": variant === "neutral-800",
|
|
37
|
+
"liq-bg-neutral-850 liq-text-neutral-50 hover:enabled:liq-bg-neutral-750": variant === "neutral-850",
|
|
38
|
+
"liq-bg-white/5 liq-text-neutral-50 hover:enabled:liq-bg-white/10": variant === "translucent"
|
|
39
|
+
},
|
|
40
|
+
// link btn
|
|
41
|
+
{
|
|
42
|
+
"liq-text-neutral-100 hover:enabled:liq-text-white": variant === "link-neutral-100",
|
|
43
|
+
"liq-text-neutral-200 hover:enabled:liq-text-white": variant === "link-neutral-200",
|
|
44
|
+
"liq-text-neutral-300 hover:enabled:liq-text-white": variant === "link-neutral-300",
|
|
45
|
+
"liq-text-neutral-400 hover:enabled:liq-text-white": variant === "link-neutral-400",
|
|
46
|
+
"liq-text-neutral-500 hover:enabled:liq-text-white": variant === "link-neutral-500",
|
|
47
|
+
"liq-text-primary-300 hover:enabled:liq-text-white": variant === "link-primary-300"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"liq-border liq-border-neutral-750 liq-bg-transparent hover:enabled:liq-bg-neutral-800": variant === "transparent"
|
|
51
|
+
},
|
|
52
|
+
// size
|
|
53
|
+
{
|
|
54
|
+
"liq-px-2 liq-py-1 liq-text-xs": btnSize === "xs",
|
|
55
|
+
"liq-px-2 liq-py-1": btnSize === "sm",
|
|
56
|
+
"liq-px-4 liq-py-2": btnSize === "md",
|
|
57
|
+
"liq-px-8 liq-py-3": btnSize === "lg"
|
|
58
|
+
},
|
|
59
|
+
// external
|
|
60
|
+
className
|
|
61
|
+
),
|
|
62
|
+
children: [
|
|
63
|
+
disabledText && /* @__PURE__ */ jsx("span", { className: "liq-animate-pulse", children: disabledText }),
|
|
64
|
+
!disabledText && /* @__PURE__ */ jsx(Fragment, { children })
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
MxButton
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MxButton';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
|
|
3
|
+
export type MxCardSizeType = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type MxCardVariantType = 'primary' | 'primary-300' | 'neutral-650' | 'neutral-750' | 'neutral-800' | 'neutral-850' | 'neutral-900' | 'transparent' | 'warning' | 'danger';
|
|
5
|
+
interface MxCardType extends HTMLProps<HTMLDivElement> {
|
|
6
|
+
cardSize?: MxCardSizeType;
|
|
7
|
+
variant?: MxCardVariantType;
|
|
8
|
+
}
|
|
9
|
+
export declare const MxCard: import('react').ForwardRefExoticComponent<Omit<MxCardType, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const require$$0 = require("react");
|
|
6
|
+
const reactjs_utils_mxClsx = require("../../../utils/mxClsx.js");
|
|
7
|
+
const MxCard = require$$0.forwardRef(
|
|
8
|
+
(props, ref) => {
|
|
9
|
+
const {
|
|
10
|
+
children,
|
|
11
|
+
cardSize = "md",
|
|
12
|
+
className = "",
|
|
13
|
+
variant = "neutral-850",
|
|
14
|
+
...rest
|
|
15
|
+
} = props;
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
...rest,
|
|
21
|
+
className: reactjs_utils_mxClsx.mxClsx(
|
|
22
|
+
`liq-rounded-2xl liq-transition-colors liq-duration-200`,
|
|
23
|
+
{
|
|
24
|
+
"liq-bg-primary": variant === "primary",
|
|
25
|
+
"liq-bg-primary-300 liq-bg-opacity-5": variant === "primary-300"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"liq-bg-neutral-650/50": variant === "neutral-650",
|
|
29
|
+
"liq-bg-neutral-750/50": variant === "neutral-750",
|
|
30
|
+
"liq-bg-neutral-800/50": variant === "neutral-800",
|
|
31
|
+
"liq-bg-neutral-850/50": variant === "neutral-850",
|
|
32
|
+
"liq-bg-neutral-900/50": variant === "neutral-900"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"liq-border liq-border-neutral-750 liq-bg-transparent": variant === "transparent"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"liq-bg-warning liq-bg-opacity-5": variant === "warning",
|
|
39
|
+
"liq-bg-danger liq-bg-opacity-5": variant === "danger"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"liq-p-1": cardSize === "xs",
|
|
43
|
+
"liq-px-4 liq-py-1": cardSize === "sm",
|
|
44
|
+
"liq-p-4": cardSize === "md",
|
|
45
|
+
"liq-p-5 lg:liq-p-6": cardSize === "lg",
|
|
46
|
+
"liq-p-5 md:liq-p-10": cardSize === "xl"
|
|
47
|
+
},
|
|
48
|
+
className
|
|
49
|
+
),
|
|
50
|
+
children
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
exports.MxCard = MxCard;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { mxClsx } from "../../../utils/mxClsx.mjs";
|
|
4
|
+
const MxCard = forwardRef(
|
|
5
|
+
(props, ref) => {
|
|
6
|
+
const {
|
|
7
|
+
children,
|
|
8
|
+
cardSize = "md",
|
|
9
|
+
className = "",
|
|
10
|
+
variant = "neutral-850",
|
|
11
|
+
...rest
|
|
12
|
+
} = props;
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
ref,
|
|
17
|
+
...rest,
|
|
18
|
+
className: mxClsx(
|
|
19
|
+
`liq-rounded-2xl liq-transition-colors liq-duration-200`,
|
|
20
|
+
{
|
|
21
|
+
"liq-bg-primary": variant === "primary",
|
|
22
|
+
"liq-bg-primary-300 liq-bg-opacity-5": variant === "primary-300"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"liq-bg-neutral-650/50": variant === "neutral-650",
|
|
26
|
+
"liq-bg-neutral-750/50": variant === "neutral-750",
|
|
27
|
+
"liq-bg-neutral-800/50": variant === "neutral-800",
|
|
28
|
+
"liq-bg-neutral-850/50": variant === "neutral-850",
|
|
29
|
+
"liq-bg-neutral-900/50": variant === "neutral-900"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"liq-border liq-border-neutral-750 liq-bg-transparent": variant === "transparent"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"liq-bg-warning liq-bg-opacity-5": variant === "warning",
|
|
36
|
+
"liq-bg-danger liq-bg-opacity-5": variant === "danger"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"liq-p-1": cardSize === "xs",
|
|
40
|
+
"liq-px-4 liq-py-1": cardSize === "sm",
|
|
41
|
+
"liq-p-4": cardSize === "md",
|
|
42
|
+
"liq-p-5 lg:liq-p-6": cardSize === "lg",
|
|
43
|
+
"liq-p-5 md:liq-p-10": cardSize === "xl"
|
|
44
|
+
},
|
|
45
|
+
className
|
|
46
|
+
),
|
|
47
|
+
children
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
export {
|
|
53
|
+
MxCard
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MxCard';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LinkProps } from 'react-router-dom';
|
|
2
|
+
|
|
3
|
+
export type MxLinkVariantType = 'primary-300' | 'green-300' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-750' | 'button-neutral-50' | 'button-neutral-600' | 'button-neutral-700' | 'button-neutral-750' | 'button-neutral-800' | 'button-neutral-850' | 'button-primary' | 'button-primary-300' | 'button-translucent';
|
|
4
|
+
interface MxLinkType extends LinkProps {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
showExternalIcon?: boolean;
|
|
7
|
+
variant?: MxLinkVariantType;
|
|
8
|
+
}
|
|
9
|
+
export declare const MxLink: import('react').ForwardRefExoticComponent<MxLinkType & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const faArrowUpRightFromSquare = require("@fortawesome/free-solid-svg-icons/faArrowUpRightFromSquare");
|
|
6
|
+
const reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
7
|
+
const require$$0 = require("react");
|
|
8
|
+
const reactRouterDom = require("react-router-dom");
|
|
9
|
+
const reactjs_utils_mxClsx = require("../../../utils/mxClsx.js");
|
|
10
|
+
const MxLink = require$$0.forwardRef(
|
|
11
|
+
(props, ref) => {
|
|
12
|
+
const {
|
|
13
|
+
disabled,
|
|
14
|
+
children,
|
|
15
|
+
className,
|
|
16
|
+
showExternalIcon = true,
|
|
17
|
+
variant = "neutral-100",
|
|
18
|
+
...rest
|
|
19
|
+
} = props;
|
|
20
|
+
const isExternal = Boolean(rest.target);
|
|
21
|
+
const rel = isExternal ? "noopener noreferrer nofollow" : void 0;
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23
|
+
reactRouterDom.Link,
|
|
24
|
+
{
|
|
25
|
+
ref,
|
|
26
|
+
...rest,
|
|
27
|
+
...rel ? { rel } : {},
|
|
28
|
+
className: reactjs_utils_mxClsx.mxClsx(
|
|
29
|
+
"focus-primary liq-rounded-xl liq-font-semibold liq-no-underline liq-transition-colors liq-duration-200",
|
|
30
|
+
{
|
|
31
|
+
"liq-text-primary-300 hover:liq-text-primary-200": variant === "primary-300",
|
|
32
|
+
"liq-text-green-300 hover:liq-text-green-200": variant === "green-300",
|
|
33
|
+
"liq-text-neutral-100 hover:liq-text-white": variant === "neutral-100",
|
|
34
|
+
"liq-text-neutral-200 hover:liq-text-white": variant === "neutral-200",
|
|
35
|
+
"liq-text-neutral-300 hover:liq-text-white": variant === "neutral-300",
|
|
36
|
+
"liq-text-neutral-400 hover:liq-text-white": variant === "neutral-400",
|
|
37
|
+
"liq-text-neutral-500 hover:liq-text-white": variant === "neutral-500",
|
|
38
|
+
"liq-text-neutral-750 hover:liq-text-white": variant === "neutral-750"
|
|
39
|
+
},
|
|
40
|
+
// button
|
|
41
|
+
{
|
|
42
|
+
"liq-bg-neutral-600 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-500": variant === "button-neutral-600",
|
|
43
|
+
"liq-bg-neutral-700 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-[#3B3D48] hover:liq-bg-opacity-80": variant === "button-neutral-700",
|
|
44
|
+
"liq-bg-neutral-750 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-650": variant === "button-neutral-750",
|
|
45
|
+
"liq-bg-neutral-800 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-700": variant === "button-neutral-800",
|
|
46
|
+
"liq-bg-neutral-850 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-800": variant === "button-neutral-850",
|
|
47
|
+
"liq-bg-primary liq-px-4 liq-py-2 liq-text-center hover:liq-bg-[#1E65E7] hover:liq-bg-opacity-80": variant === "button-primary",
|
|
48
|
+
"liq-bg-primary-300 liq-px-4 liq-py-2 liq-text-center liq-text-black hover:liq-bg-primary-200": variant === "button-primary-300",
|
|
49
|
+
"liq-bg-neutral-50 liq-px-4 liq-py-2 liq-text-center liq-text-black hover:liq-bg-opacity-80": variant === "button-neutral-50",
|
|
50
|
+
"liq-bg-white/5 liq-px-4 liq-py-2 liq-text-center liq-text-neutral-50 hover:liq-bg-white/10": variant === "button-translucent"
|
|
51
|
+
},
|
|
52
|
+
{ "liq-flex liq-items-center": isExternal && showExternalIcon },
|
|
53
|
+
{ "liq-pointer-events-none liq-opacity-50": disabled },
|
|
54
|
+
className
|
|
55
|
+
),
|
|
56
|
+
children: [
|
|
57
|
+
children,
|
|
58
|
+
isExternal && showExternalIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
|
+
reactFontawesome.FontAwesomeIcon,
|
|
60
|
+
{
|
|
61
|
+
size: "sm",
|
|
62
|
+
icon: faArrowUpRightFromSquare.faArrowUpRightFromSquare,
|
|
63
|
+
className: "liq-ml-1"
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
exports.MxLink = MxLink;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons/faArrowUpRightFromSquare";
|
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { Link } from "react-router-dom";
|
|
6
|
+
import { mxClsx } from "../../../utils/mxClsx.mjs";
|
|
7
|
+
const MxLink = forwardRef(
|
|
8
|
+
(props, ref) => {
|
|
9
|
+
const {
|
|
10
|
+
disabled,
|
|
11
|
+
children,
|
|
12
|
+
className,
|
|
13
|
+
showExternalIcon = true,
|
|
14
|
+
variant = "neutral-100",
|
|
15
|
+
...rest
|
|
16
|
+
} = props;
|
|
17
|
+
const isExternal = Boolean(rest.target);
|
|
18
|
+
const rel = isExternal ? "noopener noreferrer nofollow" : void 0;
|
|
19
|
+
return /* @__PURE__ */ jsxs(
|
|
20
|
+
Link,
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
...rest,
|
|
24
|
+
...rel ? { rel } : {},
|
|
25
|
+
className: mxClsx(
|
|
26
|
+
"focus-primary liq-rounded-xl liq-font-semibold liq-no-underline liq-transition-colors liq-duration-200",
|
|
27
|
+
{
|
|
28
|
+
"liq-text-primary-300 hover:liq-text-primary-200": variant === "primary-300",
|
|
29
|
+
"liq-text-green-300 hover:liq-text-green-200": variant === "green-300",
|
|
30
|
+
"liq-text-neutral-100 hover:liq-text-white": variant === "neutral-100",
|
|
31
|
+
"liq-text-neutral-200 hover:liq-text-white": variant === "neutral-200",
|
|
32
|
+
"liq-text-neutral-300 hover:liq-text-white": variant === "neutral-300",
|
|
33
|
+
"liq-text-neutral-400 hover:liq-text-white": variant === "neutral-400",
|
|
34
|
+
"liq-text-neutral-500 hover:liq-text-white": variant === "neutral-500",
|
|
35
|
+
"liq-text-neutral-750 hover:liq-text-white": variant === "neutral-750"
|
|
36
|
+
},
|
|
37
|
+
// button
|
|
38
|
+
{
|
|
39
|
+
"liq-bg-neutral-600 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-500": variant === "button-neutral-600",
|
|
40
|
+
"liq-bg-neutral-700 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-[#3B3D48] hover:liq-bg-opacity-80": variant === "button-neutral-700",
|
|
41
|
+
"liq-bg-neutral-750 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-650": variant === "button-neutral-750",
|
|
42
|
+
"liq-bg-neutral-800 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-700": variant === "button-neutral-800",
|
|
43
|
+
"liq-bg-neutral-850 liq-px-4 liq-py-2 liq-text-center hover:liq-bg-neutral-800": variant === "button-neutral-850",
|
|
44
|
+
"liq-bg-primary liq-px-4 liq-py-2 liq-text-center hover:liq-bg-[#1E65E7] hover:liq-bg-opacity-80": variant === "button-primary",
|
|
45
|
+
"liq-bg-primary-300 liq-px-4 liq-py-2 liq-text-center liq-text-black hover:liq-bg-primary-200": variant === "button-primary-300",
|
|
46
|
+
"liq-bg-neutral-50 liq-px-4 liq-py-2 liq-text-center liq-text-black hover:liq-bg-opacity-80": variant === "button-neutral-50",
|
|
47
|
+
"liq-bg-white/5 liq-px-4 liq-py-2 liq-text-center liq-text-neutral-50 hover:liq-bg-white/10": variant === "button-translucent"
|
|
48
|
+
},
|
|
49
|
+
{ "liq-flex liq-items-center": isExternal && showExternalIcon },
|
|
50
|
+
{ "liq-pointer-events-none liq-opacity-50": disabled },
|
|
51
|
+
className
|
|
52
|
+
),
|
|
53
|
+
children: [
|
|
54
|
+
children,
|
|
55
|
+
isExternal && showExternalIcon && /* @__PURE__ */ jsx(
|
|
56
|
+
FontAwesomeIcon,
|
|
57
|
+
{
|
|
58
|
+
size: "sm",
|
|
59
|
+
icon: faArrowUpRightFromSquare,
|
|
60
|
+
className: "liq-ml-1"
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
export {
|
|
69
|
+
MxLink
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MxLink';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface MxSearchProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
iconsClassName?: string;
|
|
4
|
+
inputClassName?: string;
|
|
5
|
+
containerClassName?: string;
|
|
6
|
+
inputDefaultValue?: string;
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const MxSearch: import('react').ForwardRefExoticComponent<MxSearchProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const faClose = require("@fortawesome/free-solid-svg-icons/faClose");
|
|
6
|
+
const faSearch = require("@fortawesome/free-solid-svg-icons/faSearch");
|
|
7
|
+
const reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
8
|
+
const require$$0 = require("react");
|
|
9
|
+
const reactjs_hooks_useDebounce = require("../../../hooks/useDebounce.js");
|
|
10
|
+
const reactjs_utils_mxClsx = require("../../../utils/mxClsx.js");
|
|
11
|
+
const MxSearch = require$$0.forwardRef(
|
|
12
|
+
(props, ref) => {
|
|
13
|
+
const {
|
|
14
|
+
iconsClassName = "",
|
|
15
|
+
inputClassName = "",
|
|
16
|
+
containerClassName = "",
|
|
17
|
+
placeholder = "Search by name or symbol",
|
|
18
|
+
inputDefaultValue = "",
|
|
19
|
+
onChange
|
|
20
|
+
} = props;
|
|
21
|
+
const [inputValue, setInputValue] = require$$0.useState(inputDefaultValue);
|
|
22
|
+
const onDebounceInputChange = reactjs_hooks_useDebounce.useDebounce(inputValue, 200);
|
|
23
|
+
const onClear = () => setInputValue("");
|
|
24
|
+
require$$0.useEffect(() => onChange(onDebounceInputChange), [onDebounceInputChange]);
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: `liq-relative liq-flex liq-flex-1 liq-items-center ${containerClassName}`,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
+
reactFontawesome.FontAwesomeIcon,
|
|
32
|
+
{
|
|
33
|
+
icon: faSearch.faSearch,
|
|
34
|
+
className: reactjs_utils_mxClsx.mxClsx(
|
|
35
|
+
"liq-pointer-events-none liq-absolute liq-inset-4 liq-top-1/3 liq-h-4 liq-w-4 liq-items-center liq-text-neutral-300",
|
|
36
|
+
iconsClassName
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
"input",
|
|
42
|
+
{
|
|
43
|
+
value: inputValue,
|
|
44
|
+
onChange: (val) => setInputValue(val.target.value),
|
|
45
|
+
placeholder,
|
|
46
|
+
className: reactjs_utils_mxClsx.mxClsx(
|
|
47
|
+
"focus-primary liq-text-medium placeholder:liq-font-medium liq-flex liq-w-full liq-gap-2 liq-rounded-xl liq-border liq-border-neutral-800 liq-bg-neutral-900 liq-px-11 liq-py-2 placeholder:liq-text-neutral-300",
|
|
48
|
+
inputClassName
|
|
49
|
+
),
|
|
50
|
+
tabIndex: 1,
|
|
51
|
+
ref
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
Boolean(inputValue) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
55
|
+
reactFontawesome.FontAwesomeIcon,
|
|
56
|
+
{
|
|
57
|
+
icon: faClose.faClose,
|
|
58
|
+
onClick: onClear,
|
|
59
|
+
className: reactjs_utils_mxClsx.mxClsx(
|
|
60
|
+
"liq-absolute liq-inset-4 liq-left-auto liq-top-1/3 liq-h-4 liq-w-4 liq-cursor-pointer liq-items-center liq-text-neutral-300 liq-transition-colors liq-duration-200 hover:liq-text-neutral-400",
|
|
61
|
+
iconsClassName
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
exports.MxSearch = MxSearch;
|