@wheelx/widget 0.0.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/LICENSE +21 -0
- package/README.md +531 -0
- package/dist/WheelxBridgeSwapWidget.d.ts +6 -0
- package/dist/WheelxBridgeSwapWidget.d.ts.map +1 -0
- package/dist/WheelxBridgeSwapWidget.js +13 -0
- package/dist/WheelxBridgeSwapWidget.js.map +1 -0
- package/dist/WheelxWidgetProvider.d.ts +3 -0
- package/dist/WheelxWidgetProvider.d.ts.map +1 -0
- package/dist/WheelxWidgetProvider.js +9 -0
- package/dist/WheelxWidgetProvider.js.map +1 -0
- package/dist/config.d.ts +120 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +120 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/SelectTokenModal/AllChainsIcon.d.ts +2 -0
- package/dist/internal/SelectTokenModal/AllChainsIcon.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/AllChainsIcon.js +11 -0
- package/dist/internal/SelectTokenModal/AllChainsIcon.js.map +1 -0
- package/dist/internal/SelectTokenModal/DesktopContent.d.ts +33 -0
- package/dist/internal/SelectTokenModal/DesktopContent.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/DesktopContent.js +99 -0
- package/dist/internal/SelectTokenModal/DesktopContent.js.map +1 -0
- package/dist/internal/SelectTokenModal/FavoriteButton.d.ts +7 -0
- package/dist/internal/SelectTokenModal/FavoriteButton.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/FavoriteButton.js +25 -0
- package/dist/internal/SelectTokenModal/FavoriteButton.js.map +1 -0
- package/dist/internal/SelectTokenModal/FavoritesContext.d.ts +22 -0
- package/dist/internal/SelectTokenModal/FavoritesContext.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/FavoritesContext.js +125 -0
- package/dist/internal/SelectTokenModal/FavoritesContext.js.map +1 -0
- package/dist/internal/SelectTokenModal/MobileContent.d.ts +35 -0
- package/dist/internal/SelectTokenModal/MobileContent.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/MobileContent.js +150 -0
- package/dist/internal/SelectTokenModal/MobileContent.js.map +1 -0
- package/dist/internal/SelectTokenModal/Network.d.ts +13 -0
- package/dist/internal/SelectTokenModal/Network.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/Network.js +112 -0
- package/dist/internal/SelectTokenModal/Network.js.map +1 -0
- package/dist/internal/SelectTokenModal/SearchHistoryContext.d.ts +30 -0
- package/dist/internal/SelectTokenModal/SearchHistoryContext.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/SearchHistoryContext.js +144 -0
- package/dist/internal/SelectTokenModal/SearchHistoryContext.js.map +1 -0
- package/dist/internal/SelectTokenModal/SearchInput.d.ts +8 -0
- package/dist/internal/SelectTokenModal/SearchInput.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/SearchInput.js +34 -0
- package/dist/internal/SelectTokenModal/SearchInput.js.map +1 -0
- package/dist/internal/SelectTokenModal/TokenAndAddress.d.ts +11 -0
- package/dist/internal/SelectTokenModal/TokenAndAddress.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/TokenAndAddress.js +138 -0
- package/dist/internal/SelectTokenModal/TokenAndAddress.js.map +1 -0
- package/dist/internal/SelectTokenModal/TokenFavoriteButton.d.ts +7 -0
- package/dist/internal/SelectTokenModal/TokenFavoriteButton.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/TokenFavoriteButton.js +27 -0
- package/dist/internal/SelectTokenModal/TokenFavoriteButton.js.map +1 -0
- package/dist/internal/SelectTokenModal/TokenFavoritesContext.d.ts +30 -0
- package/dist/internal/SelectTokenModal/TokenFavoritesContext.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/TokenFavoritesContext.js +144 -0
- package/dist/internal/SelectTokenModal/TokenFavoritesContext.js.map +1 -0
- package/dist/internal/SelectTokenModal/TokenList.d.ts +16 -0
- package/dist/internal/SelectTokenModal/TokenList.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/TokenList.js +258 -0
- package/dist/internal/SelectTokenModal/TokenList.js.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/index.d.ts +4 -0
- package/dist/internal/SelectTokenModal/hooks/index.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/index.js +4 -0
- package/dist/internal/SelectTokenModal/hooks/index.js.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/useChainsAndTokensForSelect.d.ts +22 -0
- package/dist/internal/SelectTokenModal/hooks/useChainsAndTokensForSelect.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/useChainsAndTokensForSelect.js +180 -0
- package/dist/internal/SelectTokenModal/hooks/useChainsAndTokensForSelect.js.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/useSearchTokens.d.ts +12 -0
- package/dist/internal/SelectTokenModal/hooks/useSearchTokens.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/useSearchTokens.js +71 -0
- package/dist/internal/SelectTokenModal/hooks/useSearchTokens.js.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/useUserHasSelectedFromNetwork.d.ts +7 -0
- package/dist/internal/SelectTokenModal/hooks/useUserHasSelectedFromNetwork.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/hooks/useUserHasSelectedFromNetwork.js +6 -0
- package/dist/internal/SelectTokenModal/hooks/useUserHasSelectedFromNetwork.js.map +1 -0
- package/dist/internal/SelectTokenModal/index.d.ts +10 -0
- package/dist/internal/SelectTokenModal/index.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/index.js +274 -0
- package/dist/internal/SelectTokenModal/index.js.map +1 -0
- package/dist/internal/SelectTokenModal/storageUtils.d.ts +55 -0
- package/dist/internal/SelectTokenModal/storageUtils.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/storageUtils.js +216 -0
- package/dist/internal/SelectTokenModal/storageUtils.js.map +1 -0
- package/dist/internal/SelectTokenModal/utils.d.ts +16 -0
- package/dist/internal/SelectTokenModal/utils.d.ts.map +1 -0
- package/dist/internal/SelectTokenModal/utils.js +399 -0
- package/dist/internal/SelectTokenModal/utils.js.map +1 -0
- package/dist/internal/SwapAndBridge/DifferentAddressDialog.d.ts +13 -0
- package/dist/internal/SwapAndBridge/DifferentAddressDialog.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/DifferentAddressDialog.js +127 -0
- package/dist/internal/SwapAndBridge/DifferentAddressDialog.js.map +1 -0
- package/dist/internal/SwapAndBridge/FormBody.d.ts +10 -0
- package/dist/internal/SwapAndBridge/FormBody.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/FormBody.js +471 -0
- package/dist/internal/SwapAndBridge/FormBody.js.map +1 -0
- package/dist/internal/SwapAndBridge/FormButton.d.ts +19 -0
- package/dist/internal/SwapAndBridge/FormButton.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/FormButton.js +373 -0
- package/dist/internal/SwapAndBridge/FormButton.js.map +1 -0
- package/dist/internal/SwapAndBridge/FormTop.d.ts +11 -0
- package/dist/internal/SwapAndBridge/FormTop.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/FormTop.js +35 -0
- package/dist/internal/SwapAndBridge/FormTop.js.map +1 -0
- package/dist/internal/SwapAndBridge/MainForm.d.ts +26 -0
- package/dist/internal/SwapAndBridge/MainForm.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/MainForm.js +445 -0
- package/dist/internal/SwapAndBridge/MainForm.js.map +1 -0
- package/dist/internal/SwapAndBridge/SlippageSettings.d.ts +3 -0
- package/dist/internal/SwapAndBridge/SlippageSettings.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/SlippageSettings.js +121 -0
- package/dist/internal/SwapAndBridge/SlippageSettings.js.map +1 -0
- package/dist/internal/SwapAndBridge/Timer.d.ts +8 -0
- package/dist/internal/SwapAndBridge/Timer.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/Timer.js +53 -0
- package/dist/internal/SwapAndBridge/Timer.js.map +1 -0
- package/dist/internal/SwapAndBridge/TipsContent.d.ts +18 -0
- package/dist/internal/SwapAndBridge/TipsContent.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/TipsContent.js +217 -0
- package/dist/internal/SwapAndBridge/TipsContent.js.map +1 -0
- package/dist/internal/SwapAndBridge/TokenInfoCom.d.ts +7 -0
- package/dist/internal/SwapAndBridge/TokenInfoCom.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/TokenInfoCom.js +28 -0
- package/dist/internal/SwapAndBridge/TokenInfoCom.js.map +1 -0
- package/dist/internal/SwapAndBridge/TokenSelectAndInput.d.ts +18 -0
- package/dist/internal/SwapAndBridge/TokenSelectAndInput.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/TokenSelectAndInput.js +257 -0
- package/dist/internal/SwapAndBridge/TokenSelectAndInput.js.map +1 -0
- package/dist/internal/SwapAndBridge/TxInfo.d.ts +25 -0
- package/dist/internal/SwapAndBridge/TxInfo.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/TxInfo.js +101 -0
- package/dist/internal/SwapAndBridge/TxInfo.js.map +1 -0
- package/dist/internal/SwapAndBridge/TxState.d.ts +8 -0
- package/dist/internal/SwapAndBridge/TxState.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/TxState.js +371 -0
- package/dist/internal/SwapAndBridge/TxState.js.map +1 -0
- package/dist/internal/SwapAndBridge/animations/Failure.d.ts +3 -0
- package/dist/internal/SwapAndBridge/animations/Failure.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/animations/Failure.js +12 -0
- package/dist/internal/SwapAndBridge/animations/Failure.js.map +1 -0
- package/dist/internal/SwapAndBridge/animations/Success.d.ts +3 -0
- package/dist/internal/SwapAndBridge/animations/Success.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/animations/Success.js +12 -0
- package/dist/internal/SwapAndBridge/animations/Success.js.map +1 -0
- package/dist/internal/SwapAndBridge/animations/Wheel.d.ts +3 -0
- package/dist/internal/SwapAndBridge/animations/Wheel.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/animations/Wheel.js +12 -0
- package/dist/internal/SwapAndBridge/animations/Wheel.js.map +1 -0
- package/dist/internal/SwapAndBridge/animations/index.d.ts +4 -0
- package/dist/internal/SwapAndBridge/animations/index.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/animations/index.js +4 -0
- package/dist/internal/SwapAndBridge/animations/index.js.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/index.d.ts +5 -0
- package/dist/internal/SwapAndBridge/hooks/index.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/index.js +5 -0
- package/dist/internal/SwapAndBridge/hooks/index.js.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useGuardChain.d.ts +5 -0
- package/dist/internal/SwapAndBridge/hooks/useGuardChain.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useGuardChain.js +48 -0
- package/dist/internal/SwapAndBridge/hooks/useGuardChain.js.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useRefreshLoading.d.ts +5 -0
- package/dist/internal/SwapAndBridge/hooks/useRefreshLoading.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useRefreshLoading.js +41 -0
- package/dist/internal/SwapAndBridge/hooks/useRefreshLoading.js.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useRetryAbleTransactionReceipt.d.ts +818 -0
- package/dist/internal/SwapAndBridge/hooks/useRetryAbleTransactionReceipt.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useRetryAbleTransactionReceipt.js +69 -0
- package/dist/internal/SwapAndBridge/hooks/useRetryAbleTransactionReceipt.js.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useSwapAndBridgeContextStore.d.ts +52 -0
- package/dist/internal/SwapAndBridge/hooks/useSwapAndBridgeContextStore.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useSwapAndBridgeContextStore.js +454 -0
- package/dist/internal/SwapAndBridge/hooks/useSwapAndBridgeContextStore.js.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useTokenBalance.d.ts +13 -0
- package/dist/internal/SwapAndBridge/hooks/useTokenBalance.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useTokenBalance.js +11 -0
- package/dist/internal/SwapAndBridge/hooks/useTokenBalance.js.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useTxStateContextStore.d.ts +18 -0
- package/dist/internal/SwapAndBridge/hooks/useTxStateContextStore.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/hooks/useTxStateContextStore.js +22 -0
- package/dist/internal/SwapAndBridge/hooks/useTxStateContextStore.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/consts.d.ts +4 -0
- package/dist/internal/SwapAndBridge/utils/consts.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/consts.js +4 -0
- package/dist/internal/SwapAndBridge/utils/consts.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/debounce.d.ts +2 -0
- package/dist/internal/SwapAndBridge/utils/debounce.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/debounce.js +14 -0
- package/dist/internal/SwapAndBridge/utils/debounce.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/defaultData.d.ts +9 -0
- package/dist/internal/SwapAndBridge/utils/defaultData.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/defaultData.js +71 -0
- package/dist/internal/SwapAndBridge/utils/defaultData.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/getErc20Approval.d.ts +17 -0
- package/dist/internal/SwapAndBridge/utils/getErc20Approval.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/getErc20Approval.js +57 -0
- package/dist/internal/SwapAndBridge/utils/getErc20Approval.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/index.d.ts +16 -0
- package/dist/internal/SwapAndBridge/utils/index.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/index.js +140 -0
- package/dist/internal/SwapAndBridge/utils/index.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/retry.d.ts +2 -0
- package/dist/internal/SwapAndBridge/utils/retry.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/retry.js +33 -0
- package/dist/internal/SwapAndBridge/utils/retry.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/slippage.d.ts +3 -0
- package/dist/internal/SwapAndBridge/utils/slippage.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/slippage.js +14 -0
- package/dist/internal/SwapAndBridge/utils/slippage.js.map +1 -0
- package/dist/internal/SwapAndBridge/utils/twoApprove.d.ts +47 -0
- package/dist/internal/SwapAndBridge/utils/twoApprove.d.ts.map +1 -0
- package/dist/internal/SwapAndBridge/utils/twoApprove.js +131 -0
- package/dist/internal/SwapAndBridge/utils/twoApprove.js.map +1 -0
- package/dist/internal/WidgetDataBootstrap.d.ts +3 -0
- package/dist/internal/WidgetDataBootstrap.d.ts.map +1 -0
- package/dist/internal/WidgetDataBootstrap.js +42 -0
- package/dist/internal/WidgetDataBootstrap.js.map +1 -0
- package/dist/internal/api/consts.d.ts +2 -0
- package/dist/internal/api/consts.d.ts.map +1 -0
- package/dist/internal/api/consts.js +8 -0
- package/dist/internal/api/consts.js.map +1 -0
- package/dist/internal/api/index.d.ts +8 -0
- package/dist/internal/api/index.d.ts.map +1 -0
- package/dist/internal/api/index.js +8 -0
- package/dist/internal/api/index.js.map +1 -0
- package/dist/internal/api/normalizeAssetUrl.d.ts +2 -0
- package/dist/internal/api/normalizeAssetUrl.d.ts.map +1 -0
- package/dist/internal/api/normalizeAssetUrl.js +15 -0
- package/dist/internal/api/normalizeAssetUrl.js.map +1 -0
- package/dist/internal/api/useChainsAndTokens.d.ts +61 -0
- package/dist/internal/api/useChainsAndTokens.d.ts.map +1 -0
- package/dist/internal/api/useChainsAndTokens.js +117 -0
- package/dist/internal/api/useChainsAndTokens.js.map +1 -0
- package/dist/internal/api/useGetQuote.d.ts +50 -0
- package/dist/internal/api/useGetQuote.d.ts.map +1 -0
- package/dist/internal/api/useGetQuote.js +41 -0
- package/dist/internal/api/useGetQuote.js.map +1 -0
- package/dist/internal/api/useHyperliquid.d.ts +8 -0
- package/dist/internal/api/useHyperliquid.d.ts.map +1 -0
- package/dist/internal/api/useHyperliquid.js +40 -0
- package/dist/internal/api/useHyperliquid.js.map +1 -0
- package/dist/internal/api/useIntervalGetOrderDetail.d.ts +602 -0
- package/dist/internal/api/useIntervalGetOrderDetail.d.ts.map +1 -0
- package/dist/internal/api/useIntervalGetOrderDetail.js +70 -0
- package/dist/internal/api/useIntervalGetOrderDetail.js.map +1 -0
- package/dist/internal/api/useTokenBalance.d.ts +55 -0
- package/dist/internal/api/useTokenBalance.d.ts.map +1 -0
- package/dist/internal/api/useTokenBalance.js +29 -0
- package/dist/internal/api/useTokenBalance.js.map +1 -0
- package/dist/internal/api/useTokenInfo.d.ts +53 -0
- package/dist/internal/api/useTokenInfo.d.ts.map +1 -0
- package/dist/internal/api/useTokenInfo.js +38 -0
- package/dist/internal/api/useTokenInfo.js.map +1 -0
- package/dist/internal/api/useUsdPrice.d.ts +13 -0
- package/dist/internal/api/useUsdPrice.d.ts.map +1 -0
- package/dist/internal/api/useUsdPrice.js +18 -0
- package/dist/internal/api/useUsdPrice.js.map +1 -0
- package/dist/internal/assets/icons/ai.svg +7 -0
- package/dist/internal/assets/icons/all2.svg +6 -0
- package/dist/internal/assets/icons/arrow-down.svg +4 -0
- package/dist/internal/assets/icons/arrow-fill-right.svg +5 -0
- package/dist/internal/assets/icons/arrow-right.svg +6 -0
- package/dist/internal/assets/icons/back.svg +5 -0
- package/dist/internal/assets/icons/close.svg +9 -0
- package/dist/internal/assets/icons/date.svg +9 -0
- package/dist/internal/assets/icons/ding.svg +1 -0
- package/dist/internal/assets/icons/info.svg +7 -0
- package/dist/internal/assets/icons/liked.svg +6 -0
- package/dist/internal/assets/icons/link.svg +8 -0
- package/dist/internal/assets/icons/metamask.svg +36 -0
- package/dist/internal/assets/icons/money.svg +14 -0
- package/dist/internal/assets/icons/plus.svg +5 -0
- package/dist/internal/assets/icons/router.svg +10 -0
- package/dist/internal/assets/icons/search-history.svg +6 -0
- package/dist/internal/assets/icons/search.svg +6 -0
- package/dist/internal/assets/icons/settings.svg +7 -0
- package/dist/internal/assets/icons/stab.svg +6 -0
- package/dist/internal/assets/icons/stock.svg +12 -0
- package/dist/internal/assets/icons/switch.svg +6 -0
- package/dist/internal/assets/icons/time.svg +12 -0
- package/dist/internal/assets/icons/wallet.svg +8 -0
- package/dist/internal/assets/images/ai_bot.gif +0 -0
- package/dist/internal/assets/images/default-token-icon.png +0 -0
- package/dist/internal/assets/images/error.png +0 -0
- package/dist/internal/assets/images/gas.png +0 -0
- package/dist/internal/assets/images/jth.png +0 -0
- package/dist/internal/assets/images/loader.png +0 -0
- package/dist/internal/assets/images/nabox.svg +1 -0
- package/dist/internal/assets/images/networks/1.png +0 -0
- package/dist/internal/assets/images/networks/42161.png +0 -0
- package/dist/internal/assets/images/networks/56.png +0 -0
- package/dist/internal/assets/images/networks/8453.png +0 -0
- package/dist/internal/assets/images/no_data.png +0 -0
- package/dist/internal/assets/images/success-sprites.png +0 -0
- package/dist/internal/assets/images/switch.png +0 -0
- package/dist/internal/assets/images/tokens/eth.png +0 -0
- package/dist/internal/assets/images/verified.png +0 -0
- package/dist/internal/assets/images/wheel-sprites.png +0 -0
- package/dist/internal/commons/TokenAmountHeading.d.ts +11 -0
- package/dist/internal/commons/TokenAmountHeading.d.ts.map +1 -0
- package/dist/internal/commons/TokenAmountHeading.js +20 -0
- package/dist/internal/commons/TokenAmountHeading.js.map +1 -0
- package/dist/internal/commons/TokenAmountText.d.ts +11 -0
- package/dist/internal/commons/TokenAmountText.d.ts.map +1 -0
- package/dist/internal/commons/TokenAmountText.js +20 -0
- package/dist/internal/commons/TokenAmountText.js.map +1 -0
- package/dist/internal/commons/TokenIconWithNetworkLogo.d.ts +15 -0
- package/dist/internal/commons/TokenIconWithNetworkLogo.d.ts.map +1 -0
- package/dist/internal/commons/TokenIconWithNetworkLogo.js +28 -0
- package/dist/internal/commons/TokenIconWithNetworkLogo.js.map +1 -0
- package/dist/internal/commons/index.d.ts +4 -0
- package/dist/internal/commons/index.d.ts.map +1 -0
- package/dist/internal/commons/index.js +4 -0
- package/dist/internal/commons/index.js.map +1 -0
- package/dist/internal/commons/utils.d.ts +29 -0
- package/dist/internal/commons/utils.d.ts.map +1 -0
- package/dist/internal/commons/utils.js +100 -0
- package/dist/internal/commons/utils.js.map +1 -0
- package/dist/internal/consts/chainsCatalog.d.ts +8 -0
- package/dist/internal/consts/chainsCatalog.d.ts.map +1 -0
- package/dist/internal/consts/chainsCatalog.js +116 -0
- package/dist/internal/consts/chainsCatalog.js.map +1 -0
- package/dist/internal/consts/chainsInfo.d.ts +2 -0
- package/dist/internal/consts/chainsInfo.d.ts.map +1 -0
- package/dist/internal/consts/chainsInfo.js +3 -0
- package/dist/internal/consts/chainsInfo.js.map +1 -0
- package/dist/internal/consts/giwa.d.ts +46 -0
- package/dist/internal/consts/giwa.d.ts.map +1 -0
- package/dist/internal/consts/giwa.js +30 -0
- package/dist/internal/consts/giwa.js.map +1 -0
- package/dist/internal/consts/hyperevm.d.ts +46 -0
- package/dist/internal/consts/hyperevm.d.ts.map +1 -0
- package/dist/internal/consts/hyperevm.js +30 -0
- package/dist/internal/consts/hyperevm.js.map +1 -0
- package/dist/internal/consts/index.d.ts +2 -0
- package/dist/internal/consts/index.d.ts.map +1 -0
- package/dist/internal/consts/index.js +2 -0
- package/dist/internal/consts/index.js.map +1 -0
- package/dist/internal/consts/katana.d.ts +46 -0
- package/dist/internal/consts/katana.d.ts.map +1 -0
- package/dist/internal/consts/katana.js +30 -0
- package/dist/internal/consts/katana.js.map +1 -0
- package/dist/internal/consts/mainnet.d.ts +50 -0
- package/dist/internal/consts/mainnet.d.ts.map +1 -0
- package/dist/internal/consts/mainnet.js +39 -0
- package/dist/internal/consts/mainnet.js.map +1 -0
- package/dist/internal/consts/megaeth.d.ts +46 -0
- package/dist/internal/consts/megaeth.d.ts.map +1 -0
- package/dist/internal/consts/megaeth.js +30 -0
- package/dist/internal/consts/megaeth.js.map +1 -0
- package/dist/internal/consts/metis.d.ts +47 -0
- package/dist/internal/consts/metis.d.ts.map +1 -0
- package/dist/internal/consts/metis.js +43 -0
- package/dist/internal/consts/metis.js.map +1 -0
- package/dist/internal/consts/monad.d.ts +51 -0
- package/dist/internal/consts/monad.d.ts.map +1 -0
- package/dist/internal/consts/monad.js +36 -0
- package/dist/internal/consts/monad.js.map +1 -0
- package/dist/internal/consts/plasma.d.ts +46 -0
- package/dist/internal/consts/plasma.d.ts.map +1 -0
- package/dist/internal/consts/plasma.js +30 -0
- package/dist/internal/consts/plasma.js.map +1 -0
- package/dist/internal/consts/polygonZkEvm.d.ts +46 -0
- package/dist/internal/consts/polygonZkEvm.d.ts.map +1 -0
- package/dist/internal/consts/polygonZkEvm.js +25 -0
- package/dist/internal/consts/polygonZkEvm.js.map +1 -0
- package/dist/internal/consts/rari.d.ts +46 -0
- package/dist/internal/consts/rari.d.ts.map +1 -0
- package/dist/internal/consts/rari.js +30 -0
- package/dist/internal/consts/rari.js.map +1 -0
- package/dist/internal/consts/stable.d.ts +46 -0
- package/dist/internal/consts/stable.d.ts.map +1 -0
- package/dist/internal/consts/stable.js +30 -0
- package/dist/internal/consts/stable.js.map +1 -0
- package/dist/internal/consts/stabletestnet.d.ts +46 -0
- package/dist/internal/consts/stabletestnet.d.ts.map +1 -0
- package/dist/internal/consts/stabletestnet.js +30 -0
- package/dist/internal/consts/stabletestnet.js.map +1 -0
- package/dist/internal/consts/tempo.d.ts +41 -0
- package/dist/internal/consts/tempo.d.ts.map +1 -0
- package/dist/internal/consts/tempo.js +30 -0
- package/dist/internal/consts/tempo.js.map +1 -0
- package/dist/internal/providers/ClientProviders.d.ts +4 -0
- package/dist/internal/providers/ClientProviders.d.ts.map +1 -0
- package/dist/internal/providers/ClientProviders.js +25 -0
- package/dist/internal/providers/ClientProviders.js.map +1 -0
- package/dist/internal/providers/nabox.d.ts +6 -0
- package/dist/internal/providers/nabox.d.ts.map +1 -0
- package/dist/internal/providers/nabox.js +59 -0
- package/dist/internal/providers/nabox.js.map +1 -0
- package/dist/internal/providers/wagmi.d.ts +3 -0
- package/dist/internal/providers/wagmi.d.ts.map +1 -0
- package/dist/internal/providers/wagmi.js +89 -0
- package/dist/internal/providers/wagmi.js.map +1 -0
- package/dist/internal/stores/index.d.ts +3 -0
- package/dist/internal/stores/index.d.ts.map +1 -0
- package/dist/internal/stores/index.js +3 -0
- package/dist/internal/stores/index.js.map +1 -0
- package/dist/internal/stores/useChainsStore.d.ts +15 -0
- package/dist/internal/stores/useChainsStore.d.ts.map +1 -0
- package/dist/internal/stores/useChainsStore.js +12 -0
- package/dist/internal/stores/useChainsStore.js.map +1 -0
- package/dist/internal/stores/useDifferentAddressStore.d.ts +9 -0
- package/dist/internal/stores/useDifferentAddressStore.d.ts.map +1 -0
- package/dist/internal/stores/useDifferentAddressStore.js +8 -0
- package/dist/internal/stores/useDifferentAddressStore.js.map +1 -0
- package/dist/internal/ui/BoxWithBg.d.ts +4 -0
- package/dist/internal/ui/BoxWithBg.d.ts.map +1 -0
- package/dist/internal/ui/BoxWithBg.js +6 -0
- package/dist/internal/ui/BoxWithBg.js.map +1 -0
- package/dist/internal/ui/WidgetAnimationsGlobalStyle.d.ts +2 -0
- package/dist/internal/ui/WidgetAnimationsGlobalStyle.d.ts.map +1 -0
- package/dist/internal/ui/WidgetAnimationsGlobalStyle.js +312 -0
- package/dist/internal/ui/WidgetAnimationsGlobalStyle.js.map +1 -0
- package/dist/internal/ui/color-mode.d.ts +22 -0
- package/dist/internal/ui/color-mode.d.ts.map +1 -0
- package/dist/internal/ui/color-mode.js +44 -0
- package/dist/internal/ui/color-mode.js.map +1 -0
- package/dist/internal/ui/componentRecipes/button.d.ts +123 -0
- package/dist/internal/ui/componentRecipes/button.d.ts.map +1 -0
- package/dist/internal/ui/componentRecipes/button.js +101 -0
- package/dist/internal/ui/componentRecipes/button.js.map +1 -0
- package/dist/internal/ui/componentRecipes/heading.d.ts +53 -0
- package/dist/internal/ui/componentRecipes/heading.d.ts.map +1 -0
- package/dist/internal/ui/componentRecipes/heading.js +54 -0
- package/dist/internal/ui/componentRecipes/heading.js.map +1 -0
- package/dist/internal/ui/componentRecipes/index.d.ts +4 -0
- package/dist/internal/ui/componentRecipes/index.d.ts.map +1 -0
- package/dist/internal/ui/componentRecipes/index.js +4 -0
- package/dist/internal/ui/componentRecipes/index.js.map +1 -0
- package/dist/internal/ui/componentRecipes/text.d.ts +4 -0
- package/dist/internal/ui/componentRecipes/text.d.ts.map +1 -0
- package/dist/internal/ui/componentRecipes/text.js +59 -0
- package/dist/internal/ui/componentRecipes/text.js.map +1 -0
- package/dist/internal/ui/index.d.ts +2 -0
- package/dist/internal/ui/index.d.ts.map +1 -0
- package/dist/internal/ui/index.js +2 -0
- package/dist/internal/ui/index.js.map +1 -0
- package/dist/internal/ui/provider.d.ts +5 -0
- package/dist/internal/ui/provider.d.ts.map +1 -0
- package/dist/internal/ui/provider.js +9 -0
- package/dist/internal/ui/provider.js.map +1 -0
- package/dist/internal/ui/theme.d.ts +2 -0
- package/dist/internal/ui/theme.d.ts.map +1 -0
- package/dist/internal/ui/theme.js +53 -0
- package/dist/internal/ui/theme.js.map +1 -0
- package/dist/internal/ui/toaster.d.ts +8 -0
- package/dist/internal/ui/toaster.d.ts.map +1 -0
- package/dist/internal/ui/toaster.js +19 -0
- package/dist/internal/ui/toaster.js.map +1 -0
- package/dist/internal/ui/tooltip.d.ts +17 -0
- package/dist/internal/ui/tooltip.d.ts.map +1 -0
- package/dist/internal/ui/tooltip.js +17 -0
- package/dist/internal/ui/tooltip.js.map +1 -0
- package/dist/internal/utils/address.d.ts +2 -0
- package/dist/internal/utils/address.d.ts.map +1 -0
- package/dist/internal/utils/address.js +9 -0
- package/dist/internal/utils/address.js.map +1 -0
- package/dist/internal/utils/consts.d.ts +2 -0
- package/dist/internal/utils/consts.d.ts.map +1 -0
- package/dist/internal/utils/consts.js +2 -0
- package/dist/internal/utils/consts.js.map +1 -0
- package/dist/internal/utils/format.d.ts +12 -0
- package/dist/internal/utils/format.d.ts.map +1 -0
- package/dist/internal/utils/format.js +72 -0
- package/dist/internal/utils/format.js.map +1 -0
- package/dist/internal/utils/getAssetSrc.d.ts +6 -0
- package/dist/internal/utils/getAssetSrc.d.ts.map +1 -0
- package/dist/internal/utils/getAssetSrc.js +4 -0
- package/dist/internal/utils/getAssetSrc.js.map +1 -0
- package/dist/internal/utils/getTxLink.d.ts +4 -0
- package/dist/internal/utils/getTxLink.d.ts.map +1 -0
- package/dist/internal/utils/getTxLink.js +17 -0
- package/dist/internal/utils/getTxLink.js.map +1 -0
- package/dist/internal/utils/index.d.ts +16 -0
- package/dist/internal/utils/index.d.ts.map +1 -0
- package/dist/internal/utils/index.js +33 -0
- package/dist/internal/utils/index.js.map +1 -0
- package/dist/internal/utils/localstorage.d.ts +14 -0
- package/dist/internal/utils/localstorage.d.ts.map +1 -0
- package/dist/internal/utils/localstorage.js +54 -0
- package/dist/internal/utils/localstorage.js.map +1 -0
- package/dist/internal/utils/logger.d.ts +8 -0
- package/dist/internal/utils/logger.d.ts.map +1 -0
- package/dist/internal/utils/logger.js +34 -0
- package/dist/internal/utils/logger.js.map +1 -0
- package/dist/internal/utils/shortLinkRegex.d.ts +8 -0
- package/dist/internal/utils/shortLinkRegex.d.ts.map +1 -0
- package/dist/internal/utils/shortLinkRegex.js +18 -0
- package/dist/internal/utils/shortLinkRegex.js.map +1 -0
- package/package.json +81 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { create } from 'zustand';
|
|
2
|
+
export const useDifferentAddressStore = create((set) => ({
|
|
3
|
+
differentAddress: undefined,
|
|
4
|
+
setDifferentAddress: (differentAddress) => set({ differentAddress }),
|
|
5
|
+
isDepositPlatformToken: false,
|
|
6
|
+
setIsDepositPlatformToken: (isDepositPlatformToken) => set({ isDepositPlatformToken })
|
|
7
|
+
}));
|
|
8
|
+
//# sourceMappingURL=useDifferentAddressStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDifferentAddressStore.js","sourceRoot":"","sources":["../../../src/internal/stores/useDifferentAddressStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAQhC,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAuB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAC7E,gBAAgB,EAAE,SAAS;IAC3B,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACpE,sBAAsB,EAAE,KAAK;IAC7B,yBAAyB,EAAE,CAAC,sBAAsB,EAAE,EAAE,CACpD,GAAG,CAAC,EAAE,sBAAsB,EAAE,CAAC;CAClC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoxWithBg.d.ts","sourceRoot":"","sources":["../../../src/internal/ui/BoxWithBg.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEzC,eAAO,MAAM,SAAS,GAAI,wBAGvB,iBAAiB,CAAC,QAAQ,CAAC,4CAM7B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '@chakra-ui/react';
|
|
3
|
+
export const BoxWithBg = ({ children, ...props }) => {
|
|
4
|
+
return (_jsx(Box, { w: '100%', bg: '#F5F6FF', borderRadius: '16px', p: 3, ...props, children: children }));
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=BoxWithBg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoxWithBg.js","sourceRoot":"","sources":["../../../src/internal/ui/BoxWithBg.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,kBAAkB,CAAA;AAGhD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,GAAG,KAAK,EACoB,EAAE,EAAE;IAChC,OAAO,CACL,KAAC,GAAG,IAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,KAAM,KAAK,YACjE,QAAQ,GACL,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetAnimationsGlobalStyle.d.ts","sourceRoot":"","sources":["../../../src/internal/ui/WidgetAnimationsGlobalStyle.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,2BAA2B,+CAgTvC,CAAA"}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Global, css } from '@emotion/react';
|
|
4
|
+
import wheelSprites from '../assets/images/wheel-sprites.png';
|
|
5
|
+
import successSprites from '../assets/images/success-sprites.png';
|
|
6
|
+
import errorImage from '../assets/images/error.png';
|
|
7
|
+
import { getAssetSrc } from '../utils/getAssetSrc';
|
|
8
|
+
const wheelSpriteUrl = getAssetSrc(wheelSprites);
|
|
9
|
+
const successSpriteUrl = getAssetSrc(successSprites);
|
|
10
|
+
const errorImageUrl = getAssetSrc(errorImage);
|
|
11
|
+
export const WidgetAnimationsGlobalStyle = () => (_jsx(Global, { styles: css `
|
|
12
|
+
.animation-wheel {
|
|
13
|
+
width: 280px;
|
|
14
|
+
height: 280px;
|
|
15
|
+
background-image: url(${wheelSpriteUrl});
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
animation-name: keyframes-wheel;
|
|
18
|
+
animation-duration: 5s;
|
|
19
|
+
animation-delay: 0s;
|
|
20
|
+
animation-iteration-count: infinite;
|
|
21
|
+
animation-fill-mode: forwards;
|
|
22
|
+
animation-timing-function: steps(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.animation-success {
|
|
26
|
+
width: 280px;
|
|
27
|
+
height: 280px;
|
|
28
|
+
background-image: url(${successSpriteUrl});
|
|
29
|
+
background-repeat: no-repeat;
|
|
30
|
+
animation-name: keyframes-success;
|
|
31
|
+
animation-duration: 2s;
|
|
32
|
+
animation-delay: 0s;
|
|
33
|
+
animation-iteration-count: 1;
|
|
34
|
+
animation-fill-mode: forwards;
|
|
35
|
+
animation-timing-function: steps(1);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.animation-loading {
|
|
39
|
+
animation-duration: 1s;
|
|
40
|
+
animation-iteration-count: 1;
|
|
41
|
+
animation-timing-function: ease-in-out;
|
|
42
|
+
transform-origin: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.failure {
|
|
46
|
+
width: 280px;
|
|
47
|
+
height: 280px;
|
|
48
|
+
background: url(${errorImageUrl}) no-repeat center center/126px 126px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes keyframes-loading {
|
|
52
|
+
0% {
|
|
53
|
+
transform: rotate(0deg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
100% {
|
|
57
|
+
transform: rotate(-360deg);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes keyframes-wheel {
|
|
62
|
+
0% {
|
|
63
|
+
width: 280px;
|
|
64
|
+
height: 280px;
|
|
65
|
+
background-image: url(${wheelSpriteUrl});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
3.13% {
|
|
69
|
+
background-position: -280px 0px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
6.25% {
|
|
73
|
+
background-position: -560px 0px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
9.38% {
|
|
77
|
+
background-position: -840px 0px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
12.5% {
|
|
81
|
+
background-position: -1120px 0px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
15.63% {
|
|
85
|
+
background-position: -1400px 0px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
18.75% {
|
|
89
|
+
background-position: -1680px 0px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
21.88% {
|
|
93
|
+
background-position: -1960px 0px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
25% {
|
|
97
|
+
background-position: -2240px 0px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
28.13% {
|
|
101
|
+
background-position: -2520px 0px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
31.25% {
|
|
105
|
+
background-position: -2800px 0px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
34.38% {
|
|
109
|
+
background-position: -3080px 0px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
37.5% {
|
|
113
|
+
background-position: -3360px 0px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
40.63% {
|
|
117
|
+
background-position: -3640px 0px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
43.75% {
|
|
121
|
+
background-position: -3920px 0px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
46.88% {
|
|
125
|
+
background-position: -4200px 0px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
50% {
|
|
129
|
+
background-position: -4480px 0px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
53.13% {
|
|
133
|
+
background-position: -4760px 0px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
56.25% {
|
|
137
|
+
background-position: -5040px 0px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
59.38% {
|
|
141
|
+
background-position: -5320px 0px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
62.5% {
|
|
145
|
+
background-position: -5600px 0px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
65.63% {
|
|
149
|
+
background-position: -5880px 0px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
68.75% {
|
|
153
|
+
background-position: -6160px 0px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
71.88% {
|
|
157
|
+
background-position: -6440px 0px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
75% {
|
|
161
|
+
background-position: -6720px 0px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
78.13% {
|
|
165
|
+
background-position: -7000px 0px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
81.25% {
|
|
169
|
+
background-position: -7280px 0px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
84.38% {
|
|
173
|
+
background-position: -7560px 0px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
87.5% {
|
|
177
|
+
background-position: -7840px 0px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
90.63% {
|
|
181
|
+
background-position: -8120px 0px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
93.75% {
|
|
185
|
+
background-position: -8400px 0px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
96.88%,
|
|
189
|
+
100% {
|
|
190
|
+
background-position: -8680px 0px;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@keyframes keyframes-success {
|
|
195
|
+
0% {
|
|
196
|
+
width: 280px;
|
|
197
|
+
height: 280px;
|
|
198
|
+
background-image: url(${successSpriteUrl});
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
3.85% {
|
|
202
|
+
background-position: -280px 0px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
7.69% {
|
|
206
|
+
background-position: -560px 0px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
11.54% {
|
|
210
|
+
background-position: -840px 0px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
15.38% {
|
|
214
|
+
background-position: -1120px 0px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
19.23% {
|
|
218
|
+
background-position: -1400px 0px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
23.08% {
|
|
222
|
+
background-position: -1680px 0px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
26.92% {
|
|
226
|
+
background-position: -1960px 0px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
30.77% {
|
|
230
|
+
background-position: -2240px 0px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
34.62% {
|
|
234
|
+
background-position: -2520px 0px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
38.46% {
|
|
238
|
+
background-position: -2800px 0px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
42.31% {
|
|
242
|
+
background-position: -3080px 0px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
46.15% {
|
|
246
|
+
background-position: -3360px 0px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
50% {
|
|
250
|
+
background-position: -3640px 0px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
53.85% {
|
|
254
|
+
background-position: -3920px 0px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
57.69% {
|
|
258
|
+
background-position: -4200px 0px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
61.54% {
|
|
262
|
+
background-position: -4480px 0px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
65.38% {
|
|
266
|
+
background-position: -4760px 0px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
69.23% {
|
|
270
|
+
background-position: -5040px 0px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
73.08% {
|
|
274
|
+
background-position: -5320px 0px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
76.92% {
|
|
278
|
+
background-position: -5600px 0px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
80.77% {
|
|
282
|
+
background-position: -5880px 0px;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
84.62% {
|
|
286
|
+
background-position: -6160px 0px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
88.46% {
|
|
290
|
+
background-position: -6440px 0px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
92.31% {
|
|
294
|
+
background-position: -6720px 0px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
100% {
|
|
298
|
+
background-position: -7000px 0px;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@keyframes svg_loader {
|
|
303
|
+
0% {
|
|
304
|
+
stroke-dasharray: 0, 101;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
100% {
|
|
308
|
+
stroke-dasharray: 65, 101;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
` }));
|
|
312
|
+
//# sourceMappingURL=WidgetAnimationsGlobalStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetAnimationsGlobalStyle.js","sourceRoot":"","sources":["../../../src/internal/ui/WidgetAnimationsGlobalStyle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,YAAY,MAAM,oCAAoC,CAAA;AAC7D,OAAO,cAAc,MAAM,sCAAsC,CAAA;AACjE,OAAO,UAAU,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,MAAM,cAAc,GAAG,WAAW,CAAC,YAAY,CAAC,CAAA;AAChD,MAAM,gBAAgB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAA;AACpD,MAAM,aAAa,GAAG,WAAW,CAAC,UAAU,CAAC,CAAA;AAE7C,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,EAAE,CAAC,CAC/C,KAAC,MAAM,IACL,MAAM,EAAE,GAAG,CAAA;;;;gCAIiB,cAAc;;;;;;;;;;;;;gCAad,gBAAgB;;;;;;;;;;;;;;;;;;;;0BAoBtB,aAAa;;;;;;;;;;;;;;;;;kCAiBL,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAqId,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiH7C,GACD,CACH,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IconButtonProps, SpanProps } from '@chakra-ui/react';
|
|
2
|
+
import type { ThemeProviderProps } from 'next-themes';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface ColorModeProviderProps extends ThemeProviderProps {
|
|
5
|
+
}
|
|
6
|
+
export declare function ColorModeProvider(props: ColorModeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type ColorMode = 'light' | 'dark';
|
|
8
|
+
export interface UseColorModeReturn {
|
|
9
|
+
colorMode: ColorMode;
|
|
10
|
+
setColorMode: (colorMode: ColorMode) => void;
|
|
11
|
+
toggleColorMode: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function useColorMode(): UseColorModeReturn;
|
|
14
|
+
export declare function useColorModeValue<T>(light: T, dark: T): T;
|
|
15
|
+
export declare function ColorModeIcon(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
interface ColorModeButtonProps extends Omit<IconButtonProps, 'aria-label'> {
|
|
17
|
+
}
|
|
18
|
+
export declare const ColorModeButton: React.ForwardRefExoticComponent<ColorModeButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export declare const LightMode: React.ForwardRefExoticComponent<SpanProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
export declare const DarkMode: React.ForwardRefExoticComponent<SpanProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=color-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-mode.d.ts","sourceRoot":"","sources":["../../../src/internal/ui/color-mode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;CAAG;AAErE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAI9D;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAA;IAC5C,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,wBAAgB,YAAY,IAAI,kBAAkB,CAUjD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAGrD;AAED,wBAAgB,aAAa,4CAG5B;AAGD,UAAU,oBAAqB,SAAQ,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC;CAAG;AAE7E,eAAO,MAAM,eAAe,gGAyB1B,CAAA;AAEF,eAAO,MAAM,SAAS,mFAcrB,CAAA;AAED,eAAO,MAAM,QAAQ,mFAcpB,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { ClientOnly, IconButton, Skeleton, Span } from '@chakra-ui/react';
|
|
4
|
+
import { ThemeProvider, useTheme } from 'next-themes';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { LuMoon, LuSun } from 'react-icons/lu';
|
|
7
|
+
export function ColorModeProvider(props) {
|
|
8
|
+
return (_jsx(ThemeProvider, { attribute: "class", disableTransitionOnChange: true, ...props }));
|
|
9
|
+
}
|
|
10
|
+
export function useColorMode() {
|
|
11
|
+
const { resolvedTheme, setTheme } = useTheme();
|
|
12
|
+
const toggleColorMode = () => {
|
|
13
|
+
setTheme(resolvedTheme === 'dark' ? 'light' : 'dark');
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
colorMode: resolvedTheme,
|
|
17
|
+
setColorMode: setTheme,
|
|
18
|
+
toggleColorMode
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function useColorModeValue(light, dark) {
|
|
22
|
+
const { colorMode } = useColorMode();
|
|
23
|
+
return colorMode === 'dark' ? dark : light;
|
|
24
|
+
}
|
|
25
|
+
export function ColorModeIcon() {
|
|
26
|
+
const { colorMode } = useColorMode();
|
|
27
|
+
return colorMode === 'dark' ? _jsx(LuMoon, {}) : _jsx(LuSun, {});
|
|
28
|
+
}
|
|
29
|
+
export const ColorModeButton = React.forwardRef(function ColorModeButton(props, ref) {
|
|
30
|
+
const { toggleColorMode } = useColorMode();
|
|
31
|
+
return (_jsx(ClientOnly, { fallback: _jsx(Skeleton, { boxSize: "8" }), children: _jsx(IconButton, { onClick: toggleColorMode, variant: "ghost", "aria-label": "Toggle color mode", size: "sm", ref: ref, ...props, css: {
|
|
32
|
+
_icon: {
|
|
33
|
+
width: '5',
|
|
34
|
+
height: '5'
|
|
35
|
+
}
|
|
36
|
+
}, children: _jsx(ColorModeIcon, {}) }) }));
|
|
37
|
+
});
|
|
38
|
+
export const LightMode = React.forwardRef(function LightMode(props, ref) {
|
|
39
|
+
return (_jsx(Span, { color: "fg", display: "contents", className: "chakra-theme light", colorPalette: "gray", colorScheme: "light", ref: ref, ...props }));
|
|
40
|
+
});
|
|
41
|
+
export const DarkMode = React.forwardRef(function DarkMode(props, ref) {
|
|
42
|
+
return (_jsx(Span, { color: "fg", display: "contents", className: "chakra-theme dark", colorPalette: "gray", colorScheme: "dark", ref: ref, ...props }));
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=color-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-mode.js","sourceRoot":"","sources":["../../../src/internal/ui/color-mode.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export declare const buttonRecipe: import("@chakra-ui/react").RecipeDefinition<{
|
|
2
|
+
colorPalette: {
|
|
3
|
+
lightBlue: {
|
|
4
|
+
bg: "rgb(90 127 242)";
|
|
5
|
+
color: "white";
|
|
6
|
+
_hover: {
|
|
7
|
+
bg: "color-mix(in srgb, rgb(90 127 242) 90%, transparent)";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
blue: {
|
|
11
|
+
bg: "rgba(0,82,255,1)";
|
|
12
|
+
color: "white";
|
|
13
|
+
_hover: {
|
|
14
|
+
bg: "color-mix(in srgb, rgba(0,82,255,1) 90%, transparent)";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
red: {
|
|
18
|
+
bg: "rgba(255,4,33,1)";
|
|
19
|
+
color: "white";
|
|
20
|
+
_hover: {
|
|
21
|
+
bg: "color-mix(in srgb, rgba(255,4,33,1) 90%, transparent)";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
lightCyan: {
|
|
25
|
+
bg: "#067eb7";
|
|
26
|
+
color: "white";
|
|
27
|
+
_hover: {
|
|
28
|
+
bg: "color-mix(in srgb, #067eb7 90%, transparent)";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
black: {
|
|
32
|
+
bg: "blackAlpha.900";
|
|
33
|
+
color: "white";
|
|
34
|
+
_hover: {
|
|
35
|
+
bg: "color-mix(in srgb, var(--chakra-colors-black-alpha-900) 90%, transparent)";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
pink: {
|
|
39
|
+
bg: "#f50cb4";
|
|
40
|
+
color: "white";
|
|
41
|
+
_hover: {
|
|
42
|
+
bg: "color-mix(in srgb, #f50cb4 90%, transparent)";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
green: {
|
|
46
|
+
bg: "#09cd6e";
|
|
47
|
+
color: "white";
|
|
48
|
+
_hover: {
|
|
49
|
+
bg: "color-mix(in srgb, #09cd6e 90%, transparent)";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
orange: {
|
|
53
|
+
bg: "#f25d00";
|
|
54
|
+
color: "white";
|
|
55
|
+
_hover: {
|
|
56
|
+
bg: "color-mix(in srgb, #f25d00 90%, transparent)";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
teal: {
|
|
60
|
+
bg: "#98fbe5";
|
|
61
|
+
color: "blackAlpha.900";
|
|
62
|
+
_hover: {
|
|
63
|
+
bg: "color-mix(in srgb, #98fbe5 90%, transparent)";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
purple: {
|
|
67
|
+
bg: "#8143FF";
|
|
68
|
+
color: "white";
|
|
69
|
+
_hover: {
|
|
70
|
+
bg: "color-mix(in srgb, #8143FF 90%, transparent)";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
yellow900: {
|
|
74
|
+
bg: "#F6FF09";
|
|
75
|
+
color: "#083286";
|
|
76
|
+
_hover: {
|
|
77
|
+
bg: "color-mix(in srgb, #F6FF09 90%, transparent)";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
green800: {
|
|
81
|
+
bg: "#00AB00";
|
|
82
|
+
color: "white";
|
|
83
|
+
_hover: {
|
|
84
|
+
bg: "color-mix(in srgb, #00AB00 90%, transparent)";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
blue600: {
|
|
88
|
+
bg: "#02FEFF";
|
|
89
|
+
color: "#5E7290";
|
|
90
|
+
_hover: {
|
|
91
|
+
bg: "color-mix(in srgb, #02FEFF 90%, transparent)";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
blue900: {
|
|
95
|
+
bg: "#02132f";
|
|
96
|
+
color: "#fff";
|
|
97
|
+
_hover: {
|
|
98
|
+
bg: "color-mix(in srgb, #02132f 90%, transparent)";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
blue1000: {
|
|
102
|
+
bg: "#081e1b";
|
|
103
|
+
color: "#fff";
|
|
104
|
+
_hover: {
|
|
105
|
+
bg: "color-mix(in srgb, #081e1b 90%, transparent)";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
wheel: {
|
|
109
|
+
bg: "linear-gradient(90deg, #4BBAFF 0%, #8143FF 100%)";
|
|
110
|
+
color: "white";
|
|
111
|
+
border: "none";
|
|
112
|
+
_hover: {
|
|
113
|
+
bg: "linear-gradient(90deg, #4BBAFF 0%, #8143FF 100%)";
|
|
114
|
+
opacity: number;
|
|
115
|
+
};
|
|
116
|
+
_disabled: {
|
|
117
|
+
bg: "linear-gradient(264.36deg, #B49BA4 0.54%, #869AA6 108.37%)";
|
|
118
|
+
opacity: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}>;
|
|
123
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/internal/ui/componentRecipes/button.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkGvB,CAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { defineRecipe } from '@chakra-ui/react';
|
|
2
|
+
export const buttonRecipe = defineRecipe({
|
|
3
|
+
base: {
|
|
4
|
+
borderRadius: '8px'
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
colorPalette: {
|
|
8
|
+
lightBlue: {
|
|
9
|
+
bg: 'rgb(90 127 242)',
|
|
10
|
+
color: 'white',
|
|
11
|
+
_hover: { bg: 'color-mix(in srgb, rgb(90 127 242) 90%, transparent)' }
|
|
12
|
+
},
|
|
13
|
+
blue: {
|
|
14
|
+
bg: 'rgba(0,82,255,1)',
|
|
15
|
+
color: 'white',
|
|
16
|
+
_hover: { bg: 'color-mix(in srgb, rgba(0,82,255,1) 90%, transparent)' }
|
|
17
|
+
},
|
|
18
|
+
red: {
|
|
19
|
+
bg: 'rgba(255,4,33,1)',
|
|
20
|
+
color: 'white',
|
|
21
|
+
_hover: { bg: 'color-mix(in srgb, rgba(255,4,33,1) 90%, transparent)' }
|
|
22
|
+
},
|
|
23
|
+
lightCyan: {
|
|
24
|
+
bg: '#067eb7',
|
|
25
|
+
color: 'white',
|
|
26
|
+
_hover: { bg: 'color-mix(in srgb, #067eb7 90%, transparent)' }
|
|
27
|
+
},
|
|
28
|
+
black: {
|
|
29
|
+
bg: 'blackAlpha.900',
|
|
30
|
+
color: 'white',
|
|
31
|
+
_hover: {
|
|
32
|
+
bg: 'color-mix(in srgb, var(--chakra-colors-black-alpha-900) 90%, transparent)'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
pink: {
|
|
36
|
+
bg: '#f50cb4',
|
|
37
|
+
color: 'white',
|
|
38
|
+
_hover: { bg: 'color-mix(in srgb, #f50cb4 90%, transparent)' }
|
|
39
|
+
},
|
|
40
|
+
green: {
|
|
41
|
+
bg: '#09cd6e',
|
|
42
|
+
color: 'white',
|
|
43
|
+
_hover: { bg: 'color-mix(in srgb, #09cd6e 90%, transparent)' }
|
|
44
|
+
},
|
|
45
|
+
orange: {
|
|
46
|
+
bg: '#f25d00',
|
|
47
|
+
color: 'white',
|
|
48
|
+
_hover: { bg: 'color-mix(in srgb, #f25d00 90%, transparent)' }
|
|
49
|
+
},
|
|
50
|
+
teal: {
|
|
51
|
+
bg: '#98fbe5',
|
|
52
|
+
color: 'blackAlpha.900',
|
|
53
|
+
_hover: { bg: 'color-mix(in srgb, #98fbe5 90%, transparent)' }
|
|
54
|
+
},
|
|
55
|
+
purple: {
|
|
56
|
+
bg: '#8143FF',
|
|
57
|
+
color: 'white',
|
|
58
|
+
_hover: { bg: 'color-mix(in srgb, #8143FF 90%, transparent)' }
|
|
59
|
+
},
|
|
60
|
+
yellow900: {
|
|
61
|
+
bg: '#F6FF09',
|
|
62
|
+
color: '#083286',
|
|
63
|
+
_hover: { bg: 'color-mix(in srgb, #F6FF09 90%, transparent)' }
|
|
64
|
+
},
|
|
65
|
+
green800: {
|
|
66
|
+
bg: '#00AB00',
|
|
67
|
+
color: 'white',
|
|
68
|
+
_hover: { bg: 'color-mix(in srgb, #00AB00 90%, transparent)' }
|
|
69
|
+
},
|
|
70
|
+
blue600: {
|
|
71
|
+
bg: '#02FEFF',
|
|
72
|
+
color: '#5E7290',
|
|
73
|
+
_hover: { bg: 'color-mix(in srgb, #02FEFF 90%, transparent)' }
|
|
74
|
+
},
|
|
75
|
+
blue900: {
|
|
76
|
+
bg: '#02132f',
|
|
77
|
+
color: '#fff',
|
|
78
|
+
_hover: { bg: 'color-mix(in srgb, #02132f 90%, transparent)' }
|
|
79
|
+
},
|
|
80
|
+
blue1000: {
|
|
81
|
+
bg: '#081e1b',
|
|
82
|
+
color: '#fff',
|
|
83
|
+
_hover: { bg: 'color-mix(in srgb, #081e1b 90%, transparent)' }
|
|
84
|
+
},
|
|
85
|
+
wheel: {
|
|
86
|
+
bg: 'linear-gradient(90deg, #4BBAFF 0%, #8143FF 100%)',
|
|
87
|
+
color: 'white',
|
|
88
|
+
border: 'none',
|
|
89
|
+
_hover: {
|
|
90
|
+
bg: 'linear-gradient(90deg, #4BBAFF 0%, #8143FF 100%)',
|
|
91
|
+
opacity: 0.9
|
|
92
|
+
},
|
|
93
|
+
_disabled: {
|
|
94
|
+
bg: 'linear-gradient(264.36deg, #B49BA4 0.54%, #869AA6 108.37%)',
|
|
95
|
+
opacity: 1
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/internal/ui/componentRecipes/button.ts"],"names":[],"mappings":"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"}
|