@dynamic-labs/sdk-react-core 0.16.0 → 0.16.2
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/CHANGELOG.md +14 -0
- package/package.cjs +20 -0
- package/package.js +15 -0
- package/package.json +8 -8
- package/src/index.cjs +210 -0
- package/src/index.js +99 -0
- package/src/lib/Main.cjs +94 -0
- package/src/lib/Main.js +89 -0
- package/src/lib/app.cjs +11 -0
- package/src/lib/app.js +7 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +54 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +50 -0
- package/src/lib/components/Accordion/components/VerticalAccordion/VerticalAccordion.cjs +10 -0
- package/src/lib/components/Accordion/components/VerticalAccordion/VerticalAccordion.js +6 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +62 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +58 -0
- package/src/lib/components/AnimatePresence/animations/VerticalDrawerAnimation/VerticalDrawerAnimation.cjs +57 -0
- package/src/lib/components/AnimatePresence/animations/VerticalDrawerAnimation/VerticalDrawerAnimation.js +51 -0
- package/src/lib/components/AppOriginTile/AppOriginTile.cjs +10 -0
- package/src/lib/components/AppOriginTile/AppOriginTile.js +6 -0
- package/src/lib/components/Badge/Badge.cjs +10 -0
- package/src/lib/components/Badge/Badge.js +6 -0
- package/src/lib/components/Button/Button.cjs +50 -0
- package/src/lib/components/Button/Button.js +46 -0
- package/src/lib/components/Captcha/Captcha.cjs +21 -0
- package/src/lib/components/Captcha/Captcha.js +13 -0
- package/src/lib/components/Checkbox/Checkbox.cjs +19 -0
- package/src/lib/components/Checkbox/Checkbox.js +15 -0
- package/src/lib/components/CopyButton/CopyButton.cjs +33 -0
- package/src/lib/components/CopyButton/CopyButton.js +29 -0
- package/src/lib/components/Divider/Divider.cjs +33 -0
- package/src/lib/components/Divider/Divider.js +29 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +39 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +35 -0
- package/src/lib/components/EnterTileAnimation/EnterTileAnimation.cjs +16 -0
- package/src/lib/components/EnterTileAnimation/EnterTileAnimation.js +12 -0
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +28 -0
- package/src/lib/components/ErrorContainer/ErrorContainer.js +24 -0
- package/src/lib/components/Icon/Icon.cjs +25 -0
- package/src/lib/components/Icon/Icon.js +21 -0
- package/src/lib/components/IconButton/IconButton.cjs +16 -0
- package/src/lib/components/IconButton/IconButton.js +12 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +47 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +42 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +44 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +40 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +26 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +22 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +28 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.js +24 -0
- package/src/lib/components/InfoItem/InfoItem.cjs +13 -0
- package/src/lib/components/InfoItem/InfoItem.js +9 -0
- package/src/lib/components/Input/Input.cjs +16 -0
- package/src/lib/components/Input/Input.js +12 -0
- package/src/lib/components/ListTile/ListTile.cjs +11 -0
- package/src/lib/components/ListTile/ListTile.js +7 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +25 -0
- package/src/lib/components/LogoutButton/LogoutButton.js +21 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +20 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.js +16 -0
- package/src/lib/components/ModalHeader/ModalHeader.cjs +13 -0
- package/src/lib/components/ModalHeader/ModalHeader.js +9 -0
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs +18 -0
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.js +14 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +52 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.js +48 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +58 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +52 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +68 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +64 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +39 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +35 -0
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.cjs +10 -0
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.js +6 -0
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +28 -0
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +24 -0
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +10 -0
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +6 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +43 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +39 -0
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +20 -0
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +16 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +47 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +43 -0
- package/src/lib/components/OptionsSwitcher/OptionsSwitcher.cjs +34 -0
- package/src/lib/components/OptionsSwitcher/OptionsSwitcher.js +30 -0
- package/src/lib/components/PinField/PinField.cjs +23 -0
- package/src/lib/components/PinField/PinField.js +19 -0
- package/src/lib/components/PinInput/PinInput.cjs +79 -0
- package/src/lib/components/PinInput/PinInput.js +74 -0
- package/src/lib/components/Portal/Portal.cjs +55 -0
- package/src/lib/components/Portal/Portal.js +47 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +18 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +14 -0
- package/src/lib/components/Search/Search.cjs +12 -0
- package/src/lib/components/Search/Search.js +8 -0
- package/src/lib/components/Select/Select.cjs +39 -0
- package/src/lib/components/Select/Select.js +35 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +58 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.js +48 -0
- package/src/lib/components/ShadowDOM/utils.cjs +28 -0
- package/src/lib/components/ShadowDOM/utils.js +24 -0
- package/src/lib/components/Spinner/spinner.cjs +19 -0
- package/src/lib/components/Spinner/spinner.js +15 -0
- package/src/lib/components/StatusDot/StatusDot.cjs +10 -0
- package/src/lib/components/StatusDot/StatusDot.js +6 -0
- package/src/lib/components/Switch/Switch.cjs +10 -0
- package/src/lib/components/Switch/Switch.js +6 -0
- package/src/lib/components/TextButton/TextButton.cjs +14 -0
- package/src/lib/components/TextButton/TextButton.js +10 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +38 -0
- package/src/lib/components/Toolkit/Toolkit.js +34 -0
- package/src/lib/components/Toolkit/components/AuthModeSwitch.cjs +11 -0
- package/src/lib/components/Toolkit/components/AuthModeSwitch.js +7 -0
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.cjs +22 -0
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.js +18 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +22 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +18 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +32 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +28 -0
- package/src/lib/components/Toolkit/components/PrimaryColorInput.cjs +20 -0
- package/src/lib/components/Toolkit/components/PrimaryColorInput.js +16 -0
- package/src/lib/components/Toolkit/components/TemplateSelect.cjs +17 -0
- package/src/lib/components/Toolkit/components/TemplateSelect.js +13 -0
- package/src/lib/components/Toolkit/components/ThemeSwitch.cjs +26 -0
- package/src/lib/components/Toolkit/components/ThemeSwitch.js +22 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +95 -0
- package/src/lib/components/Tooltip/Tooltip.js +91 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +15 -0
- package/src/lib/components/TosAndPp/TosAndPp.js +11 -0
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.cjs +43 -0
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.js +34 -0
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs +40 -0
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.js +31 -0
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.cjs +44 -0
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.js +35 -0
- package/src/lib/components/Typography/Typography.cjs +47 -0
- package/src/lib/components/Typography/Typography.js +43 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +28 -0
- package/src/lib/components/UserAddress/UserAddress.js +24 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +47 -0
- package/src/lib/components/UserProfile/UserProfile.js +43 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +38 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +34 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +31 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +27 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +33 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +29 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +100 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +96 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.cjs +11 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.js +7 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +442 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +437 -0
- package/src/lib/context/DynamicContext/helpers.cjs +55 -0
- package/src/lib/context/DynamicContext/helpers.js +50 -0
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +44 -0
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +40 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +28 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +24 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +44 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +40 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +120 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +116 -0
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +47 -0
- package/src/lib/context/DynamicContext/useDynamicContext.js +43 -0
- package/src/lib/context/DynamicContext/useInternalDynamicContext.cjs +17 -0
- package/src/lib/context/DynamicContext/useInternalDynamicContext.js +13 -0
- package/src/lib/context/DynamicContext/validators.cjs +40 -0
- package/src/lib/context/DynamicContext/validators.js +35 -0
- package/src/lib/context/ErrorContext/ErrorContext.cjs +48 -0
- package/src/lib/context/ErrorContext/ErrorContext.js +42 -0
- package/src/lib/context/FooterAnimationContext/index.cjs +26 -0
- package/src/lib/context/FooterAnimationContext/index.js +20 -0
- package/src/lib/context/MockContext/MockContext.cjs +60 -0
- package/src/lib/context/MockContext/MockContext.js +53 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +52 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +46 -0
- package/src/lib/context/ThemeContext/ThemeContext.cjs +93 -0
- package/src/lib/context/ThemeContext/ThemeContext.js +87 -0
- package/src/lib/context/ThemeContext/themesData.cjs +93 -0
- package/src/lib/context/ThemeContext/themesData.js +87 -0
- package/src/lib/data/api.cjs +356 -0
- package/src/lib/data/api.js +334 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +91 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +87 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +54 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +50 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +33 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +29 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +12 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/NewToWeb3WalletItem/NewToWeb3WalletItem.js +8 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +46 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +42 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +73 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +69 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +88 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +84 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +60 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +56 -0
- package/src/lib/main.global.cjs +8 -0
- package/src/lib/main.global.js +6 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +67 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +63 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +126 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +122 -0
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs +25 -0
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js +21 -0
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.cjs +18 -0
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.js +14 -0
- package/src/lib/shared/utils/functions/chain/getChainIcon.cjs +26 -0
- package/src/lib/shared/utils/functions/chain/getChainIcon.js +22 -0
- package/src/lib/shared/utils/functions/decodeJwt/decodeJwt.cjs +29 -0
- package/src/lib/shared/utils/functions/decodeJwt/decodeJwt.js +25 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +35 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +31 -0
- package/src/lib/shared/utils/functions/storage/getFromLS.cjs +24 -0
- package/src/lib/shared/utils/functions/storage/getFromLS.js +20 -0
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +51 -0
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +47 -0
- package/src/lib/utils/constants/colors.cjs +15 -0
- package/src/lib/utils/constants/colors.js +11 -0
- package/src/lib/utils/functions/classNames/classNames.cjs +30 -0
- package/src/lib/utils/functions/classNames/classNames.js +26 -0
- package/src/lib/utils/functions/createUserProfile/createUserProfile.cjs +27 -0
- package/src/lib/utils/functions/createUserProfile/createUserProfile.js +23 -0
- package/src/lib/utils/functions/generateMessages/index.cjs +44 -0
- package/src/lib/utils/functions/generateMessages/index.js +40 -0
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +23 -0
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +19 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +76 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +72 -0
- package/src/lib/utils/functions/getNetwork/getNetwork.cjs +14 -0
- package/src/lib/utils/functions/getNetwork/getNetwork.js +10 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +30 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +26 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +43 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +39 -0
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +13 -0
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +9 -0
- package/src/lib/utils/functions/parseTheme/parseTheme.cjs +12 -0
- package/src/lib/utils/functions/parseTheme/parseTheme.js +8 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +42 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +38 -0
- package/src/lib/utils/functions/shouldManuallyReconnectOnRefresh/shouldManuallyReconnectOnRefresh.cjs +13 -0
- package/src/lib/utils/functions/shouldManuallyReconnectOnRefresh/shouldManuallyReconnectOnRefresh.js +9 -0
- package/src/lib/utils/functions/storeAuthToken/index.cjs +14 -0
- package/src/lib/utils/functions/storeAuthToken/index.js +10 -0
- package/src/lib/utils/functions/walletListBuilder/index.cjs +144 -0
- package/src/lib/utils/functions/walletListBuilder/index.js +138 -0
- package/src/lib/utils/functions/walletListBuilder/utils/getCalculatedOffset/getCalculatedOffset.cjs +17 -0
- package/src/lib/utils/functions/walletListBuilder/utils/getCalculatedOffset/getCalculatedOffset.js +13 -0
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.cjs +31 -0
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.js +27 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +79 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +75 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +87 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +83 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +50 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +46 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +47 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +43 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.cjs +66 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.js +62 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +52 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +48 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +41 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +37 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs +28 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +24 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +118 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +114 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +48 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +44 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +37 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +33 -0
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.cjs +34 -0
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.js +30 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +135 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +131 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +57 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +53 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +73 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +69 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +30 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +26 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +40 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +36 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +17 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +13 -0
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +36 -0
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +31 -0
- package/src/lib/utils/hooks/useMutation/useMutation.cjs +54 -0
- package/src/lib/utils/hooks/useMutation/useMutation.js +50 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +12 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +8 -0
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +43 -0
- package/src/lib/utils/hooks/usePromise/usePromise.js +39 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +64 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +60 -0
- package/src/lib/utils/hooks/useTransition/useTransition.cjs +73 -0
- package/src/lib/utils/hooks/useTransition/useTransition.js +68 -0
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.cjs +24 -0
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.js +20 -0
- package/src/lib/utils/hooks/useUpdateEffect/useUpdateEffect.cjs +18 -0
- package/src/lib/utils/hooks/useUpdateEffect/useUpdateEffect.js +14 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +20 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +16 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +88 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +84 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +82 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +77 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +171 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +167 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +184 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +180 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +143 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +139 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +143 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +139 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +46 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +42 -0
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +51 -0
- package/src/lib/utils/hooks/useWallets/useWallets.js +47 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +69 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +65 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +55 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +51 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +57 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +53 -0
- package/src/lib/views/CollectUserDataView/UserDataForm/UserDataForm.cjs +68 -0
- package/src/lib/views/CollectUserDataView/UserDataForm/UserDataForm.js +64 -0
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +62 -0
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +58 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +45 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +41 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +53 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +49 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +80 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +76 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +204 -0
- package/src/lib/views/EmailVerification/EmailVerification.js +200 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +55 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +51 -0
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +51 -0
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +47 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +46 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +42 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +102 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +97 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +23 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +18 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +55 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +51 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +67 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +63 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +49 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +45 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +37 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +33 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +48 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +44 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +78 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +74 -0
- package/src/lib/views/QrCodeView/QRCode.cjs +78 -0
- package/src/lib/views/QrCodeView/QRCode.js +70 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +44 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +40 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +57 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +53 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +33 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +29 -0
- package/src/lib/views/WalletList/WalletList.cjs +74 -0
- package/src/lib/views/WalletList/WalletList.js +70 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +61 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +57 -0
- package/src/lib/views/WalletList/data.cjs +51 -0
- package/src/lib/views/WalletList/data.js +44 -0
- package/src/lib/views/WalletNoAccess/WalletNoAccess.cjs +86 -0
- package/src/lib/views/WalletNoAccess/WalletNoAccess.js +82 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +62 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +58 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +129 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.js +125 -0
- package/src/lib/views/viewToComponentMap.cjs +51 -0
- package/src/lib/views/viewToComponentMap.js +47 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +52 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +48 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +52 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +48 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +42 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +38 -0
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +43 -0
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +39 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +64 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +60 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +36 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +32 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +64 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +60 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +28 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +23 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +51 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +46 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.cjs +13 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.js +9 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +59 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +49 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +60 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +52 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs +38 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js +34 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +47 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +43 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.cjs +20 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.js +16 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +13 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +9 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +34 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +30 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +23 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +18 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +50 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +46 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +34 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +30 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +44 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +40 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +35 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +31 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +46 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +42 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +83 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +79 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +25 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +21 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +25 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +21 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +96 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +90 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +40 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +36 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +35 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +31 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +30 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +26 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +55 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +51 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +44 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +40 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +55 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +51 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +58 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +54 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +44 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +40 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +63 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +59 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +70 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +66 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +70 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +66 -0
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +52 -0
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +48 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +51 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +47 -0
- package/src/version.cjs +11 -0
- package/src/version.js +6 -0
- package/package.cjs.js +0 -20
- package/package.es.js +0 -15
- package/src/index.cjs.js +0 -210
- package/src/index.es.js +0 -99
- package/src/lib/Main.cjs.js +0 -94
- package/src/lib/Main.es.js +0 -89
- package/src/lib/app.cjs.js +0 -11
- package/src/lib/app.es.js +0 -7
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +0 -54
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.es.js +0 -50
- package/src/lib/components/Accordion/components/VerticalAccordion/VerticalAccordion.cjs.js +0 -10
- package/src/lib/components/Accordion/components/VerticalAccordion/VerticalAccordion.es.js +0 -6
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs.js +0 -62
- package/src/lib/components/AnimatePresence/AnimatePresence.es.js +0 -58
- package/src/lib/components/AnimatePresence/animations/VerticalDrawerAnimation/VerticalDrawerAnimation.cjs.js +0 -57
- package/src/lib/components/AnimatePresence/animations/VerticalDrawerAnimation/VerticalDrawerAnimation.es.js +0 -51
- package/src/lib/components/AppOriginTile/AppOriginTile.cjs.js +0 -10
- package/src/lib/components/AppOriginTile/AppOriginTile.es.js +0 -6
- package/src/lib/components/Badge/Badge.cjs.js +0 -10
- package/src/lib/components/Badge/Badge.es.js +0 -6
- package/src/lib/components/Button/Button.cjs.js +0 -50
- package/src/lib/components/Button/Button.es.js +0 -46
- package/src/lib/components/Captcha/Captcha.cjs.js +0 -21
- package/src/lib/components/Captcha/Captcha.es.js +0 -13
- package/src/lib/components/Checkbox/Checkbox.cjs.js +0 -19
- package/src/lib/components/Checkbox/Checkbox.es.js +0 -15
- package/src/lib/components/CopyButton/CopyButton.cjs.js +0 -33
- package/src/lib/components/CopyButton/CopyButton.es.js +0 -29
- package/src/lib/components/Divider/Divider.cjs.js +0 -33
- package/src/lib/components/Divider/Divider.es.js +0 -29
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs.js +0 -39
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.es.js +0 -35
- package/src/lib/components/EnterTileAnimation/EnterTileAnimation.cjs.js +0 -16
- package/src/lib/components/EnterTileAnimation/EnterTileAnimation.es.js +0 -12
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs.js +0 -28
- package/src/lib/components/ErrorContainer/ErrorContainer.es.js +0 -24
- package/src/lib/components/Icon/Icon.cjs.js +0 -25
- package/src/lib/components/Icon/Icon.es.js +0 -21
- package/src/lib/components/IconButton/IconButton.cjs.js +0 -16
- package/src/lib/components/IconButton/IconButton.es.js +0 -12
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs.js +0 -47
- package/src/lib/components/IconWithSpinner/IconWithSpinner.es.js +0 -42
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs.js +0 -44
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.es.js +0 -40
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs.js +0 -26
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.es.js +0 -22
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs.js +0 -28
- package/src/lib/components/IconWithStatus/IconWithStatus.es.js +0 -24
- package/src/lib/components/InfoItem/InfoItem.cjs.js +0 -13
- package/src/lib/components/InfoItem/InfoItem.es.js +0 -9
- package/src/lib/components/Input/Input.cjs.js +0 -16
- package/src/lib/components/Input/Input.es.js +0 -12
- package/src/lib/components/ListTile/ListTile.cjs.js +0 -11
- package/src/lib/components/ListTile/ListTile.es.js +0 -7
- package/src/lib/components/LogoutButton/LogoutButton.cjs.js +0 -25
- package/src/lib/components/LogoutButton/LogoutButton.es.js +0 -21
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs.js +0 -20
- package/src/lib/components/MockedQrCode/MockedQrCode.es.js +0 -16
- package/src/lib/components/ModalHeader/ModalHeader.cjs.js +0 -13
- package/src/lib/components/ModalHeader/ModalHeader.es.js +0 -9
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs.js +0 -18
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.es.js +0 -14
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs.js +0 -52
- package/src/lib/components/NetworkPicker/NetworkPicker.es.js +0 -48
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs.js +0 -58
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.es.js +0 -52
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs.js +0 -68
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.es.js +0 -64
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs.js +0 -39
- package/src/lib/components/NetworkPicker/components/Network/Network.es.js +0 -35
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.cjs.js +0 -10
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.es.js +0 -6
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs.js +0 -28
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.es.js +0 -24
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs.js +0 -10
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.es.js +0 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs.js +0 -43
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.es.js +0 -39
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs.js +0 -20
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.es.js +0 -16
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs.js +0 -47
- package/src/lib/components/OTPVerificationView/OTPVerificationView.es.js +0 -43
- package/src/lib/components/OptionsSwitcher/OptionsSwitcher.cjs.js +0 -34
- package/src/lib/components/OptionsSwitcher/OptionsSwitcher.es.js +0 -30
- package/src/lib/components/PinField/PinField.cjs.js +0 -23
- package/src/lib/components/PinField/PinField.es.js +0 -19
- package/src/lib/components/PinInput/PinInput.cjs.js +0 -79
- package/src/lib/components/PinInput/PinInput.es.js +0 -74
- package/src/lib/components/Portal/Portal.cjs.js +0 -55
- package/src/lib/components/Portal/Portal.es.js +0 -47
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs.js +0 -18
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.es.js +0 -14
- package/src/lib/components/Search/Search.cjs.js +0 -12
- package/src/lib/components/Search/Search.es.js +0 -8
- package/src/lib/components/Select/Select.cjs.js +0 -39
- package/src/lib/components/Select/Select.es.js +0 -35
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs.js +0 -58
- package/src/lib/components/ShadowDOM/ShadowDOM.es.js +0 -48
- package/src/lib/components/ShadowDOM/utils.cjs.js +0 -28
- package/src/lib/components/ShadowDOM/utils.es.js +0 -24
- package/src/lib/components/Spinner/spinner.cjs.js +0 -19
- package/src/lib/components/Spinner/spinner.es.js +0 -15
- package/src/lib/components/StatusDot/StatusDot.cjs.js +0 -10
- package/src/lib/components/StatusDot/StatusDot.es.js +0 -6
- package/src/lib/components/Switch/Switch.cjs.js +0 -10
- package/src/lib/components/Switch/Switch.es.js +0 -6
- package/src/lib/components/TextButton/TextButton.cjs.js +0 -14
- package/src/lib/components/TextButton/TextButton.es.js +0 -10
- package/src/lib/components/Toolkit/Toolkit.cjs.js +0 -38
- package/src/lib/components/Toolkit/Toolkit.es.js +0 -34
- package/src/lib/components/Toolkit/components/AuthModeSwitch.cjs.js +0 -11
- package/src/lib/components/Toolkit/components/AuthModeSwitch.es.js +0 -7
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.cjs.js +0 -22
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.es.js +0 -18
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs.js +0 -22
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.es.js +0 -18
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs.js +0 -32
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.es.js +0 -28
- package/src/lib/components/Toolkit/components/PrimaryColorInput.cjs.js +0 -20
- package/src/lib/components/Toolkit/components/PrimaryColorInput.es.js +0 -16
- package/src/lib/components/Toolkit/components/TemplateSelect.cjs.js +0 -17
- package/src/lib/components/Toolkit/components/TemplateSelect.es.js +0 -13
- package/src/lib/components/Toolkit/components/ThemeSwitch.cjs.js +0 -26
- package/src/lib/components/Toolkit/components/ThemeSwitch.es.js +0 -22
- package/src/lib/components/Tooltip/Tooltip.cjs.js +0 -95
- package/src/lib/components/Tooltip/Tooltip.es.js +0 -91
- package/src/lib/components/TosAndPp/TosAndPp.cjs.js +0 -15
- package/src/lib/components/TosAndPp/TosAndPp.es.js +0 -11
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.cjs.js +0 -43
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.es.js +0 -34
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs.js +0 -40
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.es.js +0 -31
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.cjs.js +0 -44
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.es.js +0 -35
- package/src/lib/components/Typography/Typography.cjs.js +0 -47
- package/src/lib/components/Typography/Typography.es.js +0 -43
- package/src/lib/components/UserAddress/UserAddress.cjs.js +0 -28
- package/src/lib/components/UserAddress/UserAddress.es.js +0 -24
- package/src/lib/components/UserProfile/UserProfile.cjs.js +0 -47
- package/src/lib/components/UserProfile/UserProfile.es.js +0 -43
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs.js +0 -38
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.es.js +0 -34
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs.js +0 -31
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.es.js +0 -27
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs.js +0 -33
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.es.js +0 -29
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs.js +0 -100
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.es.js +0 -96
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.cjs.js +0 -11
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.es.js +0 -7
- package/src/lib/context/DynamicContext/DynamicContext.cjs.js +0 -442
- package/src/lib/context/DynamicContext/DynamicContext.es.js +0 -437
- package/src/lib/context/DynamicContext/helpers.cjs.js +0 -55
- package/src/lib/context/DynamicContext/helpers.es.js +0 -50
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs.js +0 -44
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.es.js +0 -40
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs.js +0 -28
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.es.js +0 -24
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs.js +0 -44
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.es.js +0 -40
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs.js +0 -120
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.es.js +0 -116
- package/src/lib/context/DynamicContext/useDynamicContext.cjs.js +0 -47
- package/src/lib/context/DynamicContext/useDynamicContext.es.js +0 -43
- package/src/lib/context/DynamicContext/useInternalDynamicContext.cjs.js +0 -17
- package/src/lib/context/DynamicContext/useInternalDynamicContext.es.js +0 -13
- package/src/lib/context/DynamicContext/validators.cjs.js +0 -40
- package/src/lib/context/DynamicContext/validators.es.js +0 -35
- package/src/lib/context/ErrorContext/ErrorContext.cjs.js +0 -48
- package/src/lib/context/ErrorContext/ErrorContext.es.js +0 -42
- package/src/lib/context/FooterAnimationContext/index.cjs.js +0 -26
- package/src/lib/context/FooterAnimationContext/index.es.js +0 -20
- package/src/lib/context/MockContext/MockContext.cjs.js +0 -60
- package/src/lib/context/MockContext/MockContext.es.js +0 -53
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs.js +0 -52
- package/src/lib/context/QrCodeContext/QrCodeContext.es.js +0 -46
- package/src/lib/context/ThemeContext/ThemeContext.cjs.js +0 -93
- package/src/lib/context/ThemeContext/ThemeContext.es.js +0 -87
- package/src/lib/context/ThemeContext/themesData.cjs.js +0 -93
- package/src/lib/context/ThemeContext/themesData.es.js +0 -87
- package/src/lib/data/api.cjs.js +0 -356
- package/src/lib/data/api.es.js +0 -334
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs.js +0 -91
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.es.js +0 -87
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs.js +0 -54
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.es.js +0 -50
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs.js +0 -33
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.es.js +0 -29
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs.js +0 -12
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/NewToWeb3WalletItem/NewToWeb3WalletItem.es.js +0 -8
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs.js +0 -46
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.es.js +0 -42
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs.js +0 -73
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.es.js +0 -69
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs.js +0 -88
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.es.js +0 -84
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs.js +0 -60
- package/src/lib/layout/DynamicAuthLayout/Header/header.es.js +0 -56
- package/src/lib/main.global.cjs.js +0 -8
- package/src/lib/main.global.es.js +0 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs.js +0 -67
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.es.js +0 -63
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs.js +0 -126
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.es.js +0 -122
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs.js +0 -25
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.es.js +0 -21
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.cjs.js +0 -18
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.es.js +0 -14
- package/src/lib/shared/utils/functions/chain/getChainIcon.cjs.js +0 -26
- package/src/lib/shared/utils/functions/chain/getChainIcon.es.js +0 -22
- package/src/lib/shared/utils/functions/decodeJwt/decodeJwt.cjs.js +0 -29
- package/src/lib/shared/utils/functions/decodeJwt/decodeJwt.es.js +0 -25
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs.js +0 -35
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.es.js +0 -31
- package/src/lib/shared/utils/functions/storage/getFromLS.cjs.js +0 -24
- package/src/lib/shared/utils/functions/storage/getFromLS.es.js +0 -20
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs.js +0 -51
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.es.js +0 -47
- package/src/lib/utils/constants/colors.cjs.js +0 -15
- package/src/lib/utils/constants/colors.es.js +0 -11
- package/src/lib/utils/functions/classNames/classNames.cjs.js +0 -30
- package/src/lib/utils/functions/classNames/classNames.es.js +0 -26
- package/src/lib/utils/functions/createUserProfile/createUserProfile.cjs.js +0 -27
- package/src/lib/utils/functions/createUserProfile/createUserProfile.es.js +0 -23
- package/src/lib/utils/functions/generateMessages/index.cjs.js +0 -44
- package/src/lib/utils/functions/generateMessages/index.es.js +0 -40
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs.js +0 -23
- package/src/lib/utils/functions/getAuthToken/getAuthToken.es.js +0 -19
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs.js +0 -76
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.es.js +0 -72
- package/src/lib/utils/functions/getNetwork/getNetwork.cjs.js +0 -14
- package/src/lib/utils/functions/getNetwork/getNetwork.es.js +0 -10
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs.js +0 -30
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.es.js +0 -26
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs.js +0 -43
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.es.js +0 -39
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs.js +0 -13
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.es.js +0 -9
- package/src/lib/utils/functions/parseTheme/parseTheme.cjs.js +0 -12
- package/src/lib/utils/functions/parseTheme/parseTheme.es.js +0 -8
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs.js +0 -42
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.es.js +0 -38
- package/src/lib/utils/functions/shouldManuallyReconnectOnRefresh/shouldManuallyReconnectOnRefresh.cjs.js +0 -13
- package/src/lib/utils/functions/shouldManuallyReconnectOnRefresh/shouldManuallyReconnectOnRefresh.es.js +0 -9
- package/src/lib/utils/functions/storeAuthToken/index.cjs.js +0 -14
- package/src/lib/utils/functions/storeAuthToken/index.es.js +0 -10
- package/src/lib/utils/functions/walletListBuilder/index.cjs.js +0 -144
- package/src/lib/utils/functions/walletListBuilder/index.es.js +0 -138
- package/src/lib/utils/functions/walletListBuilder/utils/getCalculatedOffset/getCalculatedOffset.cjs.js +0 -17
- package/src/lib/utils/functions/walletListBuilder/utils/getCalculatedOffset/getCalculatedOffset.es.js +0 -13
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.cjs.js +0 -31
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.es.js +0 -27
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs.js +0 -79
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.es.js +0 -75
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs.js +0 -87
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.es.js +0 -83
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs.js +0 -50
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.es.js +0 -46
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs.js +0 -47
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.es.js +0 -43
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.cjs.js +0 -66
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.es.js +0 -62
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs.js +0 -52
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.es.js +0 -48
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs.js +0 -41
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.es.js +0 -37
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs.js +0 -28
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.es.js +0 -24
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs.js +0 -118
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.es.js +0 -114
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs.js +0 -48
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.es.js +0 -44
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs.js +0 -37
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.es.js +0 -33
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.cjs.js +0 -34
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.es.js +0 -30
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs.js +0 -135
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.es.js +0 -131
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs.js +0 -57
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.es.js +0 -53
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs.js +0 -73
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.es.js +0 -69
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs.js +0 -30
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.es.js +0 -26
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs.js +0 -40
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.es.js +0 -36
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs.js +0 -17
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.es.js +0 -13
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs.js +0 -36
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.es.js +0 -31
- package/src/lib/utils/hooks/useMutation/useMutation.cjs.js +0 -54
- package/src/lib/utils/hooks/useMutation/useMutation.es.js +0 -50
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs.js +0 -12
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.es.js +0 -8
- package/src/lib/utils/hooks/usePromise/usePromise.cjs.js +0 -43
- package/src/lib/utils/hooks/usePromise/usePromise.es.js +0 -39
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs.js +0 -64
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.es.js +0 -60
- package/src/lib/utils/hooks/useTransition/useTransition.cjs.js +0 -73
- package/src/lib/utils/hooks/useTransition/useTransition.es.js +0 -68
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.cjs.js +0 -24
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.es.js +0 -20
- package/src/lib/utils/hooks/useUpdateEffect/useUpdateEffect.cjs.js +0 -18
- package/src/lib/utils/hooks/useUpdateEffect/useUpdateEffect.es.js +0 -14
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs.js +0 -20
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.es.js +0 -16
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs.js +0 -88
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.es.js +0 -84
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs.js +0 -82
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.es.js +0 -77
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs.js +0 -171
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.es.js +0 -167
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs.js +0 -184
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.es.js +0 -180
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs.js +0 -143
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.es.js +0 -139
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs.js +0 -143
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.es.js +0 -139
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs.js +0 -46
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.es.js +0 -42
- package/src/lib/utils/hooks/useWallets/useWallets.cjs.js +0 -51
- package/src/lib/utils/hooks/useWallets/useWallets.es.js +0 -47
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs.js +0 -69
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.es.js +0 -65
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs.js +0 -55
- package/src/lib/views/CollectUserDataView/CollectUserDataView.es.js +0 -51
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs.js +0 -57
- package/src/lib/views/CollectUserDataView/UserDataFields/index.es.js +0 -53
- package/src/lib/views/CollectUserDataView/UserDataForm/UserDataForm.cjs.js +0 -68
- package/src/lib/views/CollectUserDataView/UserDataForm/UserDataForm.es.js +0 -64
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs.js +0 -62
- package/src/lib/views/CollectUserDataView/fieldsConfig.es.js +0 -58
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs.js +0 -45
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.es.js +0 -41
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs.js +0 -53
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.es.js +0 -49
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs.js +0 -80
- package/src/lib/views/EmailUpdate/EmailUpdate.es.js +0 -76
- package/src/lib/views/EmailVerification/EmailVerification.cjs.js +0 -204
- package/src/lib/views/EmailVerification/EmailVerification.es.js +0 -200
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs.js +0 -55
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.es.js +0 -51
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs.js +0 -51
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.es.js +0 -47
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs.js +0 -46
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.es.js +0 -42
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs.js +0 -102
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.es.js +0 -97
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs.js +0 -23
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.es.js +0 -18
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs.js +0 -55
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.es.js +0 -51
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs.js +0 -67
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.es.js +0 -63
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs.js +0 -49
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.es.js +0 -45
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs.js +0 -37
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.es.js +0 -33
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs.js +0 -48
- package/src/lib/views/PendingConnectView/PendingConnectView.es.js +0 -44
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs.js +0 -78
- package/src/lib/views/PendingSignatureView/PendingSignatureView.es.js +0 -74
- package/src/lib/views/QrCodeView/QRCode.cjs.js +0 -78
- package/src/lib/views/QrCodeView/QRCode.es.js +0 -70
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs.js +0 -44
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.es.js +0 -40
- package/src/lib/views/QrCodeView/QrCodeView.cjs.js +0 -57
- package/src/lib/views/QrCodeView/QrCodeView.es.js +0 -53
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs.js +0 -33
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.es.js +0 -29
- package/src/lib/views/WalletList/WalletList.cjs.js +0 -74
- package/src/lib/views/WalletList/WalletList.es.js +0 -70
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs.js +0 -61
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.es.js +0 -57
- package/src/lib/views/WalletList/data.cjs.js +0 -51
- package/src/lib/views/WalletList/data.es.js +0 -44
- package/src/lib/views/WalletNoAccess/WalletNoAccess.cjs.js +0 -86
- package/src/lib/views/WalletNoAccess/WalletNoAccess.es.js +0 -82
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs.js +0 -62
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.es.js +0 -58
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs.js +0 -129
- package/src/lib/views/WalletUsedView/WalletUsedView.es.js +0 -125
- package/src/lib/views/viewToComponentMap.cjs.js +0 -51
- package/src/lib/views/viewToComponentMap.es.js +0 -47
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs.js +0 -52
- package/src/lib/widgets/DynamicWidget/DynamicWidget.es.js +0 -48
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs.js +0 -52
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.es.js +0 -48
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs.js +0 -42
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.es.js +0 -38
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs.js +0 -43
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.es.js +0 -39
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs.js +0 -64
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.es.js +0 -60
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs.js +0 -36
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.es.js +0 -32
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs.js +0 -64
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.es.js +0 -60
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs.js +0 -28
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.es.js +0 -23
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs.js +0 -51
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.es.js +0 -46
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.cjs.js +0 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.es.js +0 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs.js +0 -59
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.es.js +0 -49
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs.js +0 -60
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.es.js +0 -52
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs.js +0 -38
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.es.js +0 -34
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs.js +0 -47
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.es.js +0 -43
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.cjs.js +0 -20
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.es.js +0 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs.js +0 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.es.js +0 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs.js +0 -34
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.es.js +0 -30
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs.js +0 -23
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.es.js +0 -18
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs.js +0 -50
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.es.js +0 -46
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs.js +0 -34
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.es.js +0 -30
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs.js +0 -44
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.es.js +0 -40
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs.js +0 -35
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.es.js +0 -31
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs.js +0 -46
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.es.js +0 -42
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs.js +0 -83
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.es.js +0 -79
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs.js +0 -25
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.es.js +0 -21
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs.js +0 -25
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.es.js +0 -21
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs.js +0 -96
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.es.js +0 -90
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs.js +0 -40
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.es.js +0 -36
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs.js +0 -35
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.es.js +0 -31
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs.js +0 -30
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.es.js +0 -26
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs.js +0 -55
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.es.js +0 -51
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs.js +0 -44
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.es.js +0 -40
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs.js +0 -55
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.es.js +0 -51
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs.js +0 -58
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.es.js +0 -54
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs.js +0 -44
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.es.js +0 -40
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs.js +0 -63
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.es.js +0 -59
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs.js +0 -70
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.es.js +0 -66
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs.js +0 -70
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.es.js +0 -66
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs.js +0 -52
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.es.js +0 -48
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs.js +0 -51
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.es.js +0 -47
- package/src/version.cjs.js +0 -11
- package/src/version.es.js +0 -6
- /package/_virtual/{_tslib.cjs.js → _tslib.cjs} +0 -0
- /package/_virtual/{_tslib.es.js → _tslib.js} +0 -0
- /package/_virtual/{style-inject.cjs.js → style-inject.cjs} +0 -0
- /package/_virtual/{style-inject.es.js → style-inject.js} +0 -0
- /package/src/lib/assets/{dynamic-logo.cjs.js → dynamic-logo.cjs} +0 -0
- /package/src/lib/assets/{dynamic-logo.es.js → dynamic-logo.js} +0 -0
- /package/src/lib/assets/{search.cjs.js → search.cjs} +0 -0
- /package/src/lib/assets/{search.es.js → search.js} +0 -0
- /package/src/lib/components/Image/{Image.cjs.js → Image.cjs} +0 -0
- /package/src/lib/components/Image/{Image.es.js → Image.js} +0 -0
- /package/src/lib/components/IsBrowser/{IsBrowser.cjs.js → IsBrowser.cjs} +0 -0
- /package/src/lib/components/IsBrowser/{IsBrowser.es.js → IsBrowser.js} +0 -0
- /package/src/lib/components/Select/utils/getDisplayValue/{getDisplayValue.cjs.js → getDisplayValue.cjs} +0 -0
- /package/src/lib/components/Select/utils/getDisplayValue/{getDisplayValue.es.js → getDisplayValue.js} +0 -0
- /package/src/lib/components/Skeleton/{Skeleton.cjs.js → Skeleton.cjs} +0 -0
- /package/src/lib/components/Skeleton/{Skeleton.es.js → Skeleton.js} +0 -0
- /package/src/lib/config/{ApiEndpoint.cjs.js → ApiEndpoint.cjs} +0 -0
- /package/src/lib/config/{ApiEndpoint.es.js → ApiEndpoint.js} +0 -0
- /package/src/lib/context/CaptchaContext/{CaptchaContext.cjs.js → CaptchaContext.cjs} +0 -0
- /package/src/lib/context/CaptchaContext/{CaptchaContext.es.js → CaptchaContext.js} +0 -0
- /package/src/lib/context/EmailVerificationContext/{EmailVerificationContext.cjs.js → EmailVerificationContext.cjs} +0 -0
- /package/src/lib/context/EmailVerificationContext/{EmailVerificationContext.es.js → EmailVerificationContext.js} +0 -0
- /package/src/lib/context/LoadingContext/{LoadingContext.cjs.js → LoadingContext.cjs} +0 -0
- /package/src/lib/context/LoadingContext/{LoadingContext.es.js → LoadingContext.js} +0 -0
- /package/src/lib/context/ThemeContext/utils/stylesheetBuilder/{stylesheetBuilder.cjs.js → stylesheetBuilder.cjs} +0 -0
- /package/src/lib/context/ThemeContext/utils/stylesheetBuilder/{stylesheetBuilder.es.js → stylesheetBuilder.js} +0 -0
- /package/src/lib/context/ViewContext/{ViewContext.cjs.js → ViewContext.cjs} +0 -0
- /package/src/lib/context/ViewContext/{ViewContext.es.js → ViewContext.js} +0 -0
- /package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/{empty-footer-content.cjs.js → empty-footer-content.cjs} +0 -0
- /package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/{empty-footer-content.es.js → empty-footer-content.js} +0 -0
- /package/src/lib/modals/TransactionConfirmationModal/helpers/{transactionErrorMessage.cjs.js → transactionErrorMessage.cjs} +0 -0
- /package/src/lib/modals/TransactionConfirmationModal/helpers/{transactionErrorMessage.es.js → transactionErrorMessage.js} +0 -0
- /package/src/lib/shared/assets/{add-wallet.cjs.js → add-wallet.cjs} +0 -0
- /package/src/lib/shared/assets/{add-wallet.es.js → add-wallet.js} +0 -0
- /package/src/lib/shared/assets/{add.cjs.js → add.cjs} +0 -0
- /package/src/lib/shared/assets/{add.es.js → add.js} +0 -0
- /package/src/lib/shared/assets/{arrow-down.cjs.js → arrow-down.cjs} +0 -0
- /package/src/lib/shared/assets/{arrow-down.es.js → arrow-down.js} +0 -0
- /package/src/lib/shared/assets/{arrow-right.cjs.js → arrow-right.cjs} +0 -0
- /package/src/lib/shared/assets/{arrow-right.es.js → arrow-right.js} +0 -0
- /package/src/lib/shared/assets/{check-circle.cjs.js → check-circle.cjs} +0 -0
- /package/src/lib/shared/assets/{check-circle.es.js → check-circle.js} +0 -0
- /package/src/lib/shared/assets/{check.cjs.js → check.cjs} +0 -0
- /package/src/lib/shared/assets/{check.es.js → check.js} +0 -0
- /package/src/lib/shared/assets/{chevron-left.cjs.js → chevron-left.cjs} +0 -0
- /package/src/lib/shared/assets/{chevron-left.es.js → chevron-left.js} +0 -0
- /package/src/lib/shared/assets/{close.cjs.js → close.cjs} +0 -0
- /package/src/lib/shared/assets/{close.es.js → close.js} +0 -0
- /package/src/lib/shared/assets/{copy.cjs.js → copy.cjs} +0 -0
- /package/src/lib/shared/assets/{copy.es.js → copy.js} +0 -0
- /package/src/lib/shared/assets/{dynamic-logo.cjs.js → dynamic-logo.cjs} +0 -0
- /package/src/lib/shared/assets/{dynamic-logo.es.js → dynamic-logo.js} +0 -0
- /package/src/lib/shared/assets/{error.cjs.js → error.cjs} +0 -0
- /package/src/lib/shared/assets/{error.es.js → error.js} +0 -0
- /package/src/lib/shared/assets/{externalLink.cjs.js → externalLink.cjs} +0 -0
- /package/src/lib/shared/assets/{externalLink.es.js → externalLink.js} +0 -0
- /package/src/lib/shared/assets/{footer-eye-icon.cjs.js → footer-eye-icon.cjs} +0 -0
- /package/src/lib/shared/assets/{footer-eye-icon.es.js → footer-eye-icon.js} +0 -0
- /package/src/lib/shared/assets/{footer-gas-icon.cjs.js → footer-gas-icon.cjs} +0 -0
- /package/src/lib/shared/assets/{footer-gas-icon.es.js → footer-gas-icon.js} +0 -0
- /package/src/lib/shared/assets/{footer-info-icon.cjs.js → footer-info-icon.cjs} +0 -0
- /package/src/lib/shared/assets/{footer-info-icon.es.js → footer-info-icon.js} +0 -0
- /package/src/lib/shared/assets/{footer-key-icon.cjs.js → footer-key-icon.cjs} +0 -0
- /package/src/lib/shared/assets/{footer-key-icon.es.js → footer-key-icon.js} +0 -0
- /package/src/lib/shared/assets/{link.cjs.js → link.cjs} +0 -0
- /package/src/lib/shared/assets/{link.es.js → link.js} +0 -0
- /package/src/lib/shared/assets/{logout.cjs.js → logout.cjs} +0 -0
- /package/src/lib/shared/assets/{logout.es.js → logout.js} +0 -0
- /package/src/lib/shared/assets/{pencil-alt-icon.cjs.js → pencil-alt-icon.cjs} +0 -0
- /package/src/lib/shared/assets/{pencil-alt-icon.es.js → pencil-alt-icon.js} +0 -0
- /package/src/lib/shared/assets/{pencil.cjs.js → pencil.cjs} +0 -0
- /package/src/lib/shared/assets/{pencil.es.js → pencil.js} +0 -0
- /package/src/lib/shared/assets/{prompt-account-switch.cjs.js → prompt-account-switch.cjs} +0 -0
- /package/src/lib/shared/assets/{prompt-account-switch.es.js → prompt-account-switch.js} +0 -0
- /package/src/lib/shared/assets/{puzzle.cjs.js → puzzle.cjs} +0 -0
- /package/src/lib/shared/assets/{puzzle.es.js → puzzle.js} +0 -0
- /package/src/lib/shared/assets/{sign-circle.cjs.js → sign-circle.cjs} +0 -0
- /package/src/lib/shared/assets/{sign-circle.es.js → sign-circle.js} +0 -0
- /package/src/lib/shared/assets/{spinner.cjs.js → spinner.cjs} +0 -0
- /package/src/lib/shared/assets/{spinner.es.js → spinner.js} +0 -0
- /package/src/lib/shared/assets/{stroke.cjs.js → stroke.cjs} +0 -0
- /package/src/lib/shared/assets/{stroke.es.js → stroke.js} +0 -0
- /package/src/lib/shared/assets/{switch-horizontal.cjs.js → switch-horizontal.cjs} +0 -0
- /package/src/lib/shared/assets/{switch-horizontal.es.js → switch-horizontal.js} +0 -0
- /package/src/lib/shared/assets/{three-dots.cjs.js → three-dots.cjs} +0 -0
- /package/src/lib/shared/assets/{three-dots.es.js → three-dots.js} +0 -0
- /package/src/lib/shared/assets/{tooltip-arrow.cjs.js → tooltip-arrow.cjs} +0 -0
- /package/src/lib/shared/assets/{tooltip-arrow.es.js → tooltip-arrow.js} +0 -0
- /package/src/lib/shared/assets/{unlink.cjs.js → unlink.cjs} +0 -0
- /package/src/lib/shared/assets/{unlink.es.js → unlink.js} +0 -0
- /package/src/lib/shared/assets/{wallet-connect-logo.cjs.js → wallet-connect-logo.cjs} +0 -0
- /package/src/lib/shared/assets/{wallet-connect-logo.es.js → wallet-connect-logo.js} +0 -0
- /package/src/lib/shared/assets/{wallet-outline.cjs.js → wallet-outline.cjs} +0 -0
- /package/src/lib/shared/assets/{wallet-outline.es.js → wallet-outline.js} +0 -0
- /package/src/lib/shared/consts/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/shared/consts/{index.es.js → index.js} +0 -0
- /package/src/lib/shared/{logger.cjs.js → logger.cjs} +0 -0
- /package/src/lib/shared/{logger.es.js → logger.js} +0 -0
- /package/src/lib/shared/utils/functions/capitalize/{capitalize.cjs.js → capitalize.cjs} +0 -0
- /package/src/lib/shared/utils/functions/capitalize/{capitalize.es.js → capitalize.js} +0 -0
- /package/src/lib/shared/utils/functions/debounce/{debounce.cjs.js → debounce.cjs} +0 -0
- /package/src/lib/shared/utils/functions/debounce/{debounce.es.js → debounce.js} +0 -0
- /package/src/lib/shared/utils/functions/detectBrowser/{detectBrowser.cjs.js → detectBrowser.cjs} +0 -0
- /package/src/lib/shared/utils/functions/detectBrowser/{detectBrowser.es.js → detectBrowser.js} +0 -0
- /package/src/lib/shared/utils/functions/getBrowserIcon/{getBrowserIcon.cjs.js → getBrowserIcon.cjs} +0 -0
- /package/src/lib/shared/utils/functions/getBrowserIcon/{getBrowserIcon.es.js → getBrowserIcon.js} +0 -0
- /package/src/lib/shared/utils/functions/getValueByKey/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/shared/utils/functions/getValueByKey/{index.es.js → index.js} +0 -0
- /package/src/lib/shared/utils/functions/isDisplayOrderPriorityForWeb2/{isDisplayOrderPriorityForWeb2.cjs.js → isDisplayOrderPriorityForWeb2.cjs} +0 -0
- /package/src/lib/shared/utils/functions/isDisplayOrderPriorityForWeb2/{isDisplayOrderPriorityForWeb2.es.js → isDisplayOrderPriorityForWeb2.js} +0 -0
- /package/src/lib/shared/utils/functions/isDisplayOrderPriorityForWeb3/{isDisplayOrderPriorityForWeb3.cjs.js → isDisplayOrderPriorityForWeb3.cjs} +0 -0
- /package/src/lib/shared/utils/functions/isDisplayOrderPriorityForWeb3/{isDisplayOrderPriorityForWeb3.es.js → isDisplayOrderPriorityForWeb3.js} +0 -0
- /package/src/lib/shared/utils/functions/isSSR/{isSSR.cjs.js → isSSR.cjs} +0 -0
- /package/src/lib/shared/utils/functions/isSSR/{isSSR.es.js → isSSR.js} +0 -0
- /package/src/lib/shared/utils/functions/isUserLinkingWallet/{isUserLinkingWallet.cjs.js → isUserLinkingWallet.cjs} +0 -0
- /package/src/lib/shared/utils/functions/isUserLinkingWallet/{isUserLinkingWallet.es.js → isUserLinkingWallet.js} +0 -0
- /package/src/lib/shared/utils/functions/lastAuthenticatedAccount/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/shared/utils/functions/lastAuthenticatedAccount/{index.es.js → index.js} +0 -0
- /package/src/lib/shared/utils/functions/shortenWalletAddress/{shortenWalletAddress.cjs.js → shortenWalletAddress.cjs} +0 -0
- /package/src/lib/shared/utils/functions/shortenWalletAddress/{shortenWalletAddress.es.js → shortenWalletAddress.js} +0 -0
- /package/src/lib/shared/utils/functions/storage/{setToLS.cjs.js → setToLS.cjs} +0 -0
- /package/src/lib/shared/utils/functions/storage/{setToLS.es.js → setToLS.js} +0 -0
- /package/src/lib/shared/utils/functions/validateType/{validateType.cjs.js → validateType.cjs} +0 -0
- /package/src/lib/shared/utils/functions/validateType/{validateType.es.js → validateType.js} +0 -0
- /package/src/lib/shared/utils/functions/wallet/{createWallet.cjs.js → createWallet.cjs} +0 -0
- /package/src/lib/shared/utils/functions/wallet/{createWallet.es.js → createWallet.js} +0 -0
- /package/src/lib/shared/utils/hooks/useOnClickOutside/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/shared/utils/hooks/useOnClickOutside/{index.es.js → index.js} +0 -0
- /package/src/lib/shared/utils/hooks/usePreventPageScroll/{usePreventPageScroll.cjs.js → usePreventPageScroll.cjs} +0 -0
- /package/src/lib/shared/utils/hooks/usePreventPageScroll/{usePreventPageScroll.es.js → usePreventPageScroll.js} +0 -0
- /package/src/lib/styles/{index.shadow.cjs.js → index.shadow.cjs} +0 -0
- /package/src/lib/styles/{index.shadow.es.js → index.shadow.js} +0 -0
- /package/src/lib/utils/constants/{localStorage.cjs.js → localStorage.cjs} +0 -0
- /package/src/lib/utils/constants/{localStorage.es.js → localStorage.js} +0 -0
- /package/src/lib/utils/constants/{values.cjs.js → values.cjs} +0 -0
- /package/src/lib/utils/constants/{values.es.js → values.js} +0 -0
- /package/src/lib/utils/functions/animationFrameTimeout/{animationFrameTimeout.cjs.js → animationFrameTimeout.cjs} +0 -0
- /package/src/lib/utils/functions/animationFrameTimeout/{animationFrameTimeout.es.js → animationFrameTimeout.js} +0 -0
- /package/src/lib/utils/functions/authenication/isEmailVerificationRequired/{isEmailVerificationRequired.cjs.js → isEmailVerificationRequired.cjs} +0 -0
- /package/src/lib/utils/functions/authenication/isEmailVerificationRequired/{isEmailVerificationRequired.es.js → isEmailVerificationRequired.js} +0 -0
- /package/src/lib/utils/functions/classNames/utils/{isClassNamesObjectArg.cjs.js → isClassNamesObjectArg.cjs} +0 -0
- /package/src/lib/utils/functions/classNames/utils/{isClassNamesObjectArg.es.js → isClassNamesObjectArg.js} +0 -0
- /package/src/lib/utils/functions/classNames/utils/{isString.cjs.js → isString.cjs} +0 -0
- /package/src/lib/utils/functions/classNames/utils/{isString.es.js → isString.js} +0 -0
- /package/src/lib/utils/functions/convertHexToRGBA/{convertHexToRGBA.cjs.js → convertHexToRGBA.cjs} +0 -0
- /package/src/lib/utils/functions/convertHexToRGBA/{convertHexToRGBA.es.js → convertHexToRGBA.js} +0 -0
- /package/src/lib/utils/functions/getEnabledKYC/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/utils/functions/getEnabledKYC/{index.es.js → index.js} +0 -0
- /package/src/lib/utils/functions/getEnabledOAuthProviders/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/utils/functions/getEnabledOAuthProviders/{index.es.js → index.js} +0 -0
- /package/src/lib/utils/functions/getEnabledProviders/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/utils/functions/getEnabledProviders/{index.es.js → index.js} +0 -0
- /package/src/lib/utils/functions/getSiweStatement/{getSiweStatement.cjs.js → getSiweStatement.cjs} +0 -0
- /package/src/lib/utils/functions/getSiweStatement/{getSiweStatement.es.js → getSiweStatement.js} +0 -0
- /package/src/lib/utils/functions/getSocialNetworkIcon/{getSocialNetworkIcon.cjs.js → getSocialNetworkIcon.cjs} +0 -0
- /package/src/lib/utils/functions/getSocialNetworkIcon/{getSocialNetworkIcon.es.js → getSocialNetworkIcon.js} +0 -0
- /package/src/lib/utils/functions/getWalletProvider/{getWalletProvider.cjs.js → getWalletProvider.cjs} +0 -0
- /package/src/lib/utils/functions/getWalletProvider/{getWalletProvider.es.js → getWalletProvider.js} +0 -0
- /package/src/lib/utils/functions/getWalletVerifiedCredential/{getWalletVerifiedCredential.cjs.js → getWalletVerifiedCredential.cjs} +0 -0
- /package/src/lib/utils/functions/getWalletVerifiedCredential/{getWalletVerifiedCredential.es.js → getWalletVerifiedCredential.js} +0 -0
- /package/src/lib/utils/functions/isEmailProviderEnabled/{isEmailProviderEnabled.cjs.js → isEmailProviderEnabled.cjs} +0 -0
- /package/src/lib/utils/functions/isEmailProviderEnabled/{isEmailProviderEnabled.es.js → isEmailProviderEnabled.js} +0 -0
- /package/src/lib/utils/functions/isProgrammableNetworkSwitchSupported/{isProgrammableNetworkSwitchSupported.cjs.js → isProgrammableNetworkSwitchSupported.cjs} +0 -0
- /package/src/lib/utils/functions/isProgrammableNetworkSwitchSupported/{isProgrammableNetworkSwitchSupported.es.js → isProgrammableNetworkSwitchSupported.js} +0 -0
- /package/src/lib/utils/functions/isSameWalletName/{isSameWalletName.cjs.js → isSameWalletName.cjs} +0 -0
- /package/src/lib/utils/functions/isSameWalletName/{isSameWalletName.es.js → isSameWalletName.js} +0 -0
- /package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/{isSelectedWalletAlreadyConnected.cjs.js → isSelectedWalletAlreadyConnected.cjs} +0 -0
- /package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/{isSelectedWalletAlreadyConnected.es.js → isSelectedWalletAlreadyConnected.js} +0 -0
- /package/src/lib/utils/functions/isSupportedNetwork/{isSupportedNetwork.cjs.js → isSupportedNetwork.cjs} +0 -0
- /package/src/lib/utils/functions/isSupportedNetwork/{isSupportedNetwork.es.js → isSupportedNetwork.js} +0 -0
- /package/src/lib/utils/functions/pixelToRem/{pixelToRem.cjs.js → pixelToRem.cjs} +0 -0
- /package/src/lib/utils/functions/pixelToRem/{pixelToRem.es.js → pixelToRem.js} +0 -0
- /package/src/lib/utils/functions/requiresTwoStepAuthentication/{requiresTwoStepAuthentication.cjs.js → requiresTwoStepAuthentication.cjs} +0 -0
- /package/src/lib/utils/functions/requiresTwoStepAuthentication/{requiresTwoStepAuthentication.es.js → requiresTwoStepAuthentication.js} +0 -0
- /package/src/lib/utils/functions/typeGuard/{isThemeSetting.cjs.js → isThemeSetting.cjs} +0 -0
- /package/src/lib/utils/functions/typeGuard/{isThemeSetting.es.js → isThemeSetting.js} +0 -0
- /package/src/lib/utils/functions/walletFilters/{index.cjs.js → index.cjs} +0 -0
- /package/src/lib/utils/functions/walletFilters/{index.es.js → index.js} +0 -0
- /package/src/lib/utils/functions/walletListBuilder/utils/findLastWalletIndex/{findLastPriorityIndex.cjs.js → findLastPriorityIndex.cjs} +0 -0
- /package/src/lib/utils/functions/walletListBuilder/utils/findLastWalletIndex/{findLastPriorityIndex.es.js → findLastPriorityIndex.js} +0 -0
- /package/src/lib/utils/hooks/authenticationHooks/helpers/{isConnectOnly.cjs.js → isConnectOnly.cjs} +0 -0
- /package/src/lib/utils/hooks/authenticationHooks/helpers/{isConnectOnly.es.js → isConnectOnly.js} +0 -0
- /package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/substates/{useAwaitingAccountSwitch.cjs.js → useAwaitingAccountSwitch.cjs} +0 -0
- /package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/substates/{useAwaitingAccountSwitch.es.js → useAwaitingAccountSwitch.js} +0 -0
- /package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/substates/{useAwaitingSignature.cjs.js → useAwaitingSignature.cjs} +0 -0
- /package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/substates/{useAwaitingSignature.es.js → useAwaitingSignature.js} +0 -0
- /package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/{useSyncPrimaryWallet.cjs.js → useSyncPrimaryWallet.cjs} +0 -0
- /package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/{useSyncPrimaryWallet.es.js → useSyncPrimaryWallet.js} +0 -0
- /package/src/lib/utils/hooks/useClearWalletConnectSessions/{useClearWalletConnectSessions.cjs.js → useClearWalletConnectSessions.cjs} +0 -0
- /package/src/lib/utils/hooks/useClearWalletConnectSessions/{useClearWalletConnectSessions.es.js → useClearWalletConnectSessions.js} +0 -0
- /package/src/lib/utils/hooks/useElementById/{useElementById.cjs.js → useElementById.cjs} +0 -0
- /package/src/lib/utils/hooks/useElementById/{useElementById.es.js → useElementById.js} +0 -0
- /package/src/lib/utils/hooks/useForceUpdate/{useForceUpdate.cjs.js → useForceUpdate.cjs} +0 -0
- /package/src/lib/utils/hooks/useForceUpdate/{useForceUpdate.es.js → useForceUpdate.js} +0 -0
- /package/src/lib/utils/hooks/useHover/{useHover.cjs.js → useHover.cjs} +0 -0
- /package/src/lib/utils/hooks/useHover/{useHover.es.js → useHover.js} +0 -0
- /package/src/lib/utils/hooks/useIsFirstRender/{useIsFirstRender.cjs.js → useIsFirstRender.cjs} +0 -0
- /package/src/lib/utils/hooks/useIsFirstRender/{useIsFirstRender.es.js → useIsFirstRender.js} +0 -0
- /package/src/lib/utils/hooks/useKeyboardEventListener/{useKeyboardEventListener.cjs.js → useKeyboardEventListener.cjs} +0 -0
- /package/src/lib/utils/hooks/useKeyboardEventListener/{useKeyboardEventListener.es.js → useKeyboardEventListener.js} +0 -0
- /package/src/lib/utils/hooks/usePrevious/{usePrevious.cjs.js → usePrevious.cjs} +0 -0
- /package/src/lib/utils/hooks/usePrevious/{usePrevious.es.js → usePrevious.js} +0 -0
- /package/src/lib/utils/hooks/useResizeObserver/{useResizeObserver.cjs.js → useResizeObserver.cjs} +0 -0
- /package/src/lib/utils/hooks/useResizeObserver/{useResizeObserver.es.js → useResizeObserver.js} +0 -0
- /package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/{getMagicLinkApiKeyFromProviders.cjs.js → getMagicLinkApiKeyFromProviders.cjs} +0 -0
- /package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/{getMagicLinkApiKeyFromProviders.es.js → getMagicLinkApiKeyFromProviders.js} +0 -0
- /package/src/lib/views/CollectUserDataView/UserDataFields/utils/getDisplayErrorMessage/{getDisplayErrorMessage.cjs.js → getDisplayErrorMessage.cjs} +0 -0
- /package/src/lib/views/CollectUserDataView/UserDataFields/utils/getDisplayErrorMessage/{getDisplayErrorMessage.es.js → getDisplayErrorMessage.js} +0 -0
- /package/src/lib/widgets/DynamicWidget/components/DynamicWidgetFooter/{DynamicWidgetFooter.cjs.js → DynamicWidgetFooter.cjs} +0 -0
- /package/src/lib/widgets/DynamicWidget/components/DynamicWidgetFooter/{DynamicWidgetFooter.es.js → DynamicWidgetFooter.js} +0 -0
- /package/src/lib/widgets/DynamicWidget/helpers/{helpers.cjs.js → helpers.cjs} +0 -0
- /package/src/lib/widgets/DynamicWidget/helpers/{helpers.es.js → helpers.js} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var ThemeContext = require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
7
|
+
var Switch = require('../../Switch/Switch.cjs');
|
|
8
|
+
|
|
9
|
+
const BrandStyleSwitch = () => {
|
|
10
|
+
const { changeBrandStyle, theme } = ThemeContext.useThemeContext();
|
|
11
|
+
return (jsxRuntime.jsx(Switch.Switch, { firstButton: {
|
|
12
|
+
active: theme.brandStyle === 'bold',
|
|
13
|
+
handleButtonClick: () => changeBrandStyle('bold'),
|
|
14
|
+
name: 'Bold',
|
|
15
|
+
}, secondButton: {
|
|
16
|
+
active: theme.brandStyle === 'subtle',
|
|
17
|
+
handleButtonClick: () => changeBrandStyle('subtle'),
|
|
18
|
+
name: 'Subtle',
|
|
19
|
+
} }));
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.BrandStyleSwitch = BrandStyleSwitch;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
|
|
3
|
+
import { Switch } from '../../Switch/Switch.js';
|
|
4
|
+
|
|
5
|
+
const BrandStyleSwitch = () => {
|
|
6
|
+
const { changeBrandStyle, theme } = useThemeContext();
|
|
7
|
+
return (jsx(Switch, { firstButton: {
|
|
8
|
+
active: theme.brandStyle === 'bold',
|
|
9
|
+
handleButtonClick: () => changeBrandStyle('bold'),
|
|
10
|
+
name: 'Bold',
|
|
11
|
+
}, secondButton: {
|
|
12
|
+
active: theme.brandStyle === 'subtle',
|
|
13
|
+
handleButtonClick: () => changeBrandStyle('subtle'),
|
|
14
|
+
name: 'Subtle',
|
|
15
|
+
} }));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { BrandStyleSwitch };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
7
|
+
var Switch = require('../../Switch/Switch.cjs');
|
|
8
|
+
|
|
9
|
+
const LoginWithEmailSwitch = () => {
|
|
10
|
+
const { loginWithEmail, setLogInWithEmail } = useInternalDynamicContext.useInternalDynamicContext();
|
|
11
|
+
return (jsxRuntime.jsx(Switch.Switch, { firstButton: {
|
|
12
|
+
active: loginWithEmail,
|
|
13
|
+
handleButtonClick: () => setLogInWithEmail(true),
|
|
14
|
+
name: 'True',
|
|
15
|
+
}, secondButton: {
|
|
16
|
+
active: !loginWithEmail,
|
|
17
|
+
handleButtonClick: () => setLogInWithEmail(false),
|
|
18
|
+
name: 'False',
|
|
19
|
+
} }));
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.LoginWithEmailSwitch = LoginWithEmailSwitch;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useInternalDynamicContext } from '../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
3
|
+
import { Switch } from '../../Switch/Switch.js';
|
|
4
|
+
|
|
5
|
+
const LoginWithEmailSwitch = () => {
|
|
6
|
+
const { loginWithEmail, setLogInWithEmail } = useInternalDynamicContext();
|
|
7
|
+
return (jsx(Switch, { firstButton: {
|
|
8
|
+
active: loginWithEmail,
|
|
9
|
+
handleButtonClick: () => setLogInWithEmail(true),
|
|
10
|
+
name: 'True',
|
|
11
|
+
}, secondButton: {
|
|
12
|
+
active: !loginWithEmail,
|
|
13
|
+
handleButtonClick: () => setLogInWithEmail(false),
|
|
14
|
+
name: 'False',
|
|
15
|
+
} }));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { LoginWithEmailSwitch };
|
package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
7
|
+
require('@dynamic-labs/sdk-api');
|
|
8
|
+
require('../../../shared/logger.cjs');
|
|
9
|
+
require('@dynamic-labs/iconic');
|
|
10
|
+
require('@dynamic-labs/multi-wallet');
|
|
11
|
+
require('../../../context/ViewContext/ViewContext.cjs');
|
|
12
|
+
require('react');
|
|
13
|
+
var isDisplayOrderPriorityForWeb3 = require('../../../shared/utils/functions/isDisplayOrderPriorityForWeb3/isDisplayOrderPriorityForWeb3.cjs');
|
|
14
|
+
var isDisplayOrderPriorityForWeb2 = require('../../../shared/utils/functions/isDisplayOrderPriorityForWeb2/isDisplayOrderPriorityForWeb2.cjs');
|
|
15
|
+
require('../../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../../shared/consts/index.cjs');
|
|
17
|
+
var Switch = require('../../Switch/Switch.cjs');
|
|
18
|
+
|
|
19
|
+
const LoginWithEmailViewDisplayPriorityOrderSwitch = () => {
|
|
20
|
+
const { authorizationViewDisplayOrder, setAuthorizationViewDisplayOrder, loginWithEmail, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
21
|
+
return (jsxRuntime.jsx(Switch.Switch, { disabled: !loginWithEmail, firstButton: {
|
|
22
|
+
active: isDisplayOrderPriorityForWeb2.isDisplayOrderPriorityForWeb2(authorizationViewDisplayOrder),
|
|
23
|
+
handleButtonClick: () => setAuthorizationViewDisplayOrder('web2'),
|
|
24
|
+
name: 'Email',
|
|
25
|
+
}, secondButton: {
|
|
26
|
+
active: isDisplayOrderPriorityForWeb3.isDisplayOrderPriorityForWeb3(authorizationViewDisplayOrder),
|
|
27
|
+
handleButtonClick: () => setAuthorizationViewDisplayOrder('web3'),
|
|
28
|
+
name: 'Wallet',
|
|
29
|
+
} }));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.LoginWithEmailViewDisplayPriorityOrderSwitch = LoginWithEmailViewDisplayPriorityOrderSwitch;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useInternalDynamicContext } from '../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
3
|
+
import '@dynamic-labs/sdk-api';
|
|
4
|
+
import '../../../shared/logger.js';
|
|
5
|
+
import '@dynamic-labs/iconic';
|
|
6
|
+
import '@dynamic-labs/multi-wallet';
|
|
7
|
+
import '../../../context/ViewContext/ViewContext.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import { isDisplayOrderPriorityForWeb3 } from '../../../shared/utils/functions/isDisplayOrderPriorityForWeb3/isDisplayOrderPriorityForWeb3.js';
|
|
10
|
+
import { isDisplayOrderPriorityForWeb2 } from '../../../shared/utils/functions/isDisplayOrderPriorityForWeb2/isDisplayOrderPriorityForWeb2.js';
|
|
11
|
+
import '../../../utils/constants/colors.js';
|
|
12
|
+
import '../../../shared/consts/index.js';
|
|
13
|
+
import { Switch } from '../../Switch/Switch.js';
|
|
14
|
+
|
|
15
|
+
const LoginWithEmailViewDisplayPriorityOrderSwitch = () => {
|
|
16
|
+
const { authorizationViewDisplayOrder, setAuthorizationViewDisplayOrder, loginWithEmail, } = useInternalDynamicContext();
|
|
17
|
+
return (jsx(Switch, { disabled: !loginWithEmail, firstButton: {
|
|
18
|
+
active: isDisplayOrderPriorityForWeb2(authorizationViewDisplayOrder),
|
|
19
|
+
handleButtonClick: () => setAuthorizationViewDisplayOrder('web2'),
|
|
20
|
+
name: 'Email',
|
|
21
|
+
}, secondButton: {
|
|
22
|
+
active: isDisplayOrderPriorityForWeb3(authorizationViewDisplayOrder),
|
|
23
|
+
handleButtonClick: () => setAuthorizationViewDisplayOrder('web3'),
|
|
24
|
+
name: 'Wallet',
|
|
25
|
+
} }));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { LoginWithEmailViewDisplayPriorityOrderSwitch };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var ThemeContext = require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
8
|
+
var Input = require('../../Input/Input.cjs');
|
|
9
|
+
|
|
10
|
+
const PrimaryColorInput = () => {
|
|
11
|
+
const { changePrimaryColor, theme } = ThemeContext.useThemeContext();
|
|
12
|
+
const [color, setColor] = React.useState(theme.customColor);
|
|
13
|
+
return (jsxRuntime.jsx(Input.Input, { id: 'primary-color', label: 'Primary color', value: color, onChange: (e) => setColor(e.target.value), onBlur: (e) => {
|
|
14
|
+
const newColor = color || theme.customColor;
|
|
15
|
+
setColor(newColor);
|
|
16
|
+
changePrimaryColor(newColor);
|
|
17
|
+
} }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.PrimaryColorInput = PrimaryColorInput;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
|
|
4
|
+
import { Input } from '../../Input/Input.js';
|
|
5
|
+
|
|
6
|
+
const PrimaryColorInput = () => {
|
|
7
|
+
const { changePrimaryColor, theme } = useThemeContext();
|
|
8
|
+
const [color, setColor] = useState(theme.customColor);
|
|
9
|
+
return (jsx(Input, { id: 'primary-color', label: 'Primary color', value: color, onChange: (e) => setColor(e.target.value), onBlur: (e) => {
|
|
10
|
+
const newColor = color || theme.customColor;
|
|
11
|
+
setColor(newColor);
|
|
12
|
+
changePrimaryColor(newColor);
|
|
13
|
+
} }));
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { PrimaryColorInput };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var ThemeContext = require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
7
|
+
var Select = require('../../Select/Select.cjs');
|
|
8
|
+
|
|
9
|
+
const TemplateSelect = () => {
|
|
10
|
+
const { theme, changeTemplate } = ThemeContext.useThemeContext();
|
|
11
|
+
const handleChange = (e) => {
|
|
12
|
+
changeTemplate(e.target.value);
|
|
13
|
+
};
|
|
14
|
+
return (jsxRuntime.jsxs(Select.Select, Object.assign({ label: 'template', value: theme.template, onChange: handleChange, selectDataTestId: 'template-select' }, { children: [jsxRuntime.jsx("option", Object.assign({ value: 'default' }, { children: "Default" })), jsxRuntime.jsx("option", Object.assign({ value: 'matrix' }, { children: "Matrix" })), jsxRuntime.jsx("option", Object.assign({ value: 'minimal' }, { children: "Minimal" })), jsxRuntime.jsx("option", Object.assign({ value: 'rounded' }, { children: "Rounded" })), jsxRuntime.jsx("option", Object.assign({ value: 'trinity' }, { children: "Trinity" }))] })));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.TemplateSelect = TemplateSelect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
|
|
3
|
+
import { Select } from '../../Select/Select.js';
|
|
4
|
+
|
|
5
|
+
const TemplateSelect = () => {
|
|
6
|
+
const { theme, changeTemplate } = useThemeContext();
|
|
7
|
+
const handleChange = (e) => {
|
|
8
|
+
changeTemplate(e.target.value);
|
|
9
|
+
};
|
|
10
|
+
return (jsxs(Select, Object.assign({ label: 'template', value: theme.template, onChange: handleChange, selectDataTestId: 'template-select' }, { children: [jsx("option", Object.assign({ value: 'default' }, { children: "Default" })), jsx("option", Object.assign({ value: 'matrix' }, { children: "Matrix" })), jsx("option", Object.assign({ value: 'minimal' }, { children: "Minimal" })), jsx("option", Object.assign({ value: 'rounded' }, { children: "Rounded" })), jsx("option", Object.assign({ value: 'trinity' }, { children: "Trinity" }))] })));
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { TemplateSelect };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var ThemeContext = require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
7
|
+
var Switch = require('../../Switch/Switch.cjs');
|
|
8
|
+
|
|
9
|
+
const ThemeSwitch = () => {
|
|
10
|
+
const { changeTheme, theme } = ThemeContext.useThemeContext();
|
|
11
|
+
return (jsxRuntime.jsx(Switch.Switch, { firstButton: {
|
|
12
|
+
active: theme.theme.name === 'light',
|
|
13
|
+
handleButtonClick: () => changeTheme('light'),
|
|
14
|
+
name: 'Light',
|
|
15
|
+
}, secondButton: {
|
|
16
|
+
active: theme.theme.name === 'dark',
|
|
17
|
+
handleButtonClick: () => changeTheme('dark'),
|
|
18
|
+
name: 'Dark',
|
|
19
|
+
}, thirdButton: {
|
|
20
|
+
active: theme.theme.name === 'auto',
|
|
21
|
+
handleButtonClick: () => changeTheme('auto'),
|
|
22
|
+
name: 'Auto',
|
|
23
|
+
} }));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.ThemeSwitch = ThemeSwitch;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
|
|
3
|
+
import { Switch } from '../../Switch/Switch.js';
|
|
4
|
+
|
|
5
|
+
const ThemeSwitch = () => {
|
|
6
|
+
const { changeTheme, theme } = useThemeContext();
|
|
7
|
+
return (jsx(Switch, { firstButton: {
|
|
8
|
+
active: theme.theme.name === 'light',
|
|
9
|
+
handleButtonClick: () => changeTheme('light'),
|
|
10
|
+
name: 'Light',
|
|
11
|
+
}, secondButton: {
|
|
12
|
+
active: theme.theme.name === 'dark',
|
|
13
|
+
handleButtonClick: () => changeTheme('dark'),
|
|
14
|
+
name: 'Dark',
|
|
15
|
+
}, thirdButton: {
|
|
16
|
+
active: theme.theme.name === 'auto',
|
|
17
|
+
handleButtonClick: () => changeTheme('auto'),
|
|
18
|
+
name: 'Auto',
|
|
19
|
+
} }));
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { ThemeSwitch };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var reactDom = require('react-dom');
|
|
8
|
+
require('@dynamic-labs/sdk-api');
|
|
9
|
+
require('../../shared/logger.cjs');
|
|
10
|
+
require('@dynamic-labs/iconic');
|
|
11
|
+
require('@dynamic-labs/multi-wallet');
|
|
12
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
var tooltipArrow = require('../../shared/assets/tooltip-arrow.cjs');
|
|
14
|
+
var debounce = require('../../shared/utils/functions/debounce/debounce.cjs');
|
|
15
|
+
require('../../utils/constants/colors.cjs');
|
|
16
|
+
var index = require('../../shared/consts/index.cjs');
|
|
17
|
+
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
18
|
+
require('../../config/ApiEndpoint.cjs');
|
|
19
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
20
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
21
|
+
var useElementById = require('../../utils/hooks/useElementById/useElementById.cjs');
|
|
22
|
+
var usePrevious = require('../../utils/hooks/usePrevious/usePrevious.cjs');
|
|
23
|
+
var ShadowDOM = require('../ShadowDOM/ShadowDOM.cjs');
|
|
24
|
+
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
25
|
+
require('react-focus-lock');
|
|
26
|
+
require('../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
27
|
+
require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
28
|
+
require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
29
|
+
var useHover = require('../../utils/hooks/useHover/useHover.cjs');
|
|
30
|
+
require('../IconButton/IconButton.cjs');
|
|
31
|
+
require('ethers');
|
|
32
|
+
require('../../context/MockContext/MockContext.cjs');
|
|
33
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
34
|
+
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
35
|
+
|
|
36
|
+
const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
|
|
37
|
+
const portalRoot = useElementById.useElementById('dynamic-tooltips');
|
|
38
|
+
const [childrenHover, childrenHoverHandlers] = useHover.useHover(false, true);
|
|
39
|
+
const [hoversTooltip, setHoversTooltip] = React.useState(false);
|
|
40
|
+
const previousHovers = usePrevious.usePrevious(childrenHover);
|
|
41
|
+
const [vector, setVector] = React.useState([0, 0]);
|
|
42
|
+
const childrenRef = React.useRef(null);
|
|
43
|
+
const tooltipRef = React.useRef(null);
|
|
44
|
+
const [visible, setVisible] = React.useState(false);
|
|
45
|
+
const calcPosition = React.useCallback(() => {
|
|
46
|
+
if (childrenRef.current) {
|
|
47
|
+
const childrenBounding = childrenRef.current.getBoundingClientRect();
|
|
48
|
+
setVector([
|
|
49
|
+
childrenBounding.left + childrenBounding.width / 2,
|
|
50
|
+
childrenBounding.top,
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
}, []);
|
|
54
|
+
// Calculates position, and set visibles to true when client hovers children
|
|
55
|
+
React.useEffect(() => {
|
|
56
|
+
if (childrenHover || (hoversTooltip && previousHovers)) {
|
|
57
|
+
calcPosition();
|
|
58
|
+
setVisible(true);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
setVisible(false);
|
|
62
|
+
}
|
|
63
|
+
}, [calcPosition, childrenHover, hoversTooltip, previousHovers]);
|
|
64
|
+
// Updates top/left on initial render, and when window resizes
|
|
65
|
+
React.useEffect(() => {
|
|
66
|
+
calcPosition();
|
|
67
|
+
const resizeListener = debounce.debounce(() => {
|
|
68
|
+
calcPosition();
|
|
69
|
+
}, 3);
|
|
70
|
+
window.addEventListener('resize', resizeListener);
|
|
71
|
+
return () => {
|
|
72
|
+
window.removeEventListener('resize', resizeListener);
|
|
73
|
+
};
|
|
74
|
+
}, [calcPosition]);
|
|
75
|
+
React.useEffect(() => {
|
|
76
|
+
const tooltip = tooltipRef.current;
|
|
77
|
+
const onMouseEnter = () => {
|
|
78
|
+
setHoversTooltip(true);
|
|
79
|
+
};
|
|
80
|
+
const onMouseLeave = () => {
|
|
81
|
+
setHoversTooltip(false);
|
|
82
|
+
};
|
|
83
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.addEventListener('mouseenter', onMouseEnter);
|
|
84
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.addEventListener('mouseleave', onMouseLeave);
|
|
85
|
+
return () => {
|
|
86
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.removeEventListener('mouseover', onMouseEnter);
|
|
87
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.removeEventListener('mouseleave', onMouseLeave);
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [reactDom.createPortal(jsxRuntime.jsx(ShadowDOM.ShadowDOM, Object.assign({ zIndex: index.tooltipZIndex }, { children: jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'dynamicTooltip', className: classNames.classNames('dynamic-tooltip', {
|
|
91
|
+
'dynamic-tooltip--visible': visible,
|
|
92
|
+
}, className), style: { left: vector[0], top: vector[1] }, ref: tooltipRef }, { children: [content, jsxRuntime.jsx(tooltipArrow.ReactComponent, { className: 'dynamic-tooltip__arrow' })] })) })), portalRoot.current), jsxRuntime.jsx(Tag, Object.assign({ ref: childrenRef }, childrenHoverHandlers, { children: children }))] }));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
import '@dynamic-labs/sdk-api';
|
|
5
|
+
import '../../shared/logger.js';
|
|
6
|
+
import '@dynamic-labs/iconic';
|
|
7
|
+
import '@dynamic-labs/multi-wallet';
|
|
8
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
9
|
+
import { ReactComponent as SvgTooltipArrow } from '../../shared/assets/tooltip-arrow.js';
|
|
10
|
+
import { debounce } from '../../shared/utils/functions/debounce/debounce.js';
|
|
11
|
+
import '../../utils/constants/colors.js';
|
|
12
|
+
import { tooltipZIndex } from '../../shared/consts/index.js';
|
|
13
|
+
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
14
|
+
import '../../config/ApiEndpoint.js';
|
|
15
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
16
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
17
|
+
import { useElementById } from '../../utils/hooks/useElementById/useElementById.js';
|
|
18
|
+
import { usePrevious } from '../../utils/hooks/usePrevious/usePrevious.js';
|
|
19
|
+
import { ShadowDOM } from '../ShadowDOM/ShadowDOM.js';
|
|
20
|
+
import '../../context/ThemeContext/ThemeContext.js';
|
|
21
|
+
import 'react-focus-lock';
|
|
22
|
+
import '../Transition/ZoomTransition/ZoomTransition.js';
|
|
23
|
+
import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
24
|
+
import '../Transition/OpacityTransition/OpacityTransition.js';
|
|
25
|
+
import { useHover } from '../../utils/hooks/useHover/useHover.js';
|
|
26
|
+
import '../IconButton/IconButton.js';
|
|
27
|
+
import 'ethers';
|
|
28
|
+
import '../../context/MockContext/MockContext.js';
|
|
29
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
30
|
+
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
31
|
+
|
|
32
|
+
const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
|
|
33
|
+
const portalRoot = useElementById('dynamic-tooltips');
|
|
34
|
+
const [childrenHover, childrenHoverHandlers] = useHover(false, true);
|
|
35
|
+
const [hoversTooltip, setHoversTooltip] = useState(false);
|
|
36
|
+
const previousHovers = usePrevious(childrenHover);
|
|
37
|
+
const [vector, setVector] = useState([0, 0]);
|
|
38
|
+
const childrenRef = useRef(null);
|
|
39
|
+
const tooltipRef = useRef(null);
|
|
40
|
+
const [visible, setVisible] = useState(false);
|
|
41
|
+
const calcPosition = useCallback(() => {
|
|
42
|
+
if (childrenRef.current) {
|
|
43
|
+
const childrenBounding = childrenRef.current.getBoundingClientRect();
|
|
44
|
+
setVector([
|
|
45
|
+
childrenBounding.left + childrenBounding.width / 2,
|
|
46
|
+
childrenBounding.top,
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
}, []);
|
|
50
|
+
// Calculates position, and set visibles to true when client hovers children
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
if (childrenHover || (hoversTooltip && previousHovers)) {
|
|
53
|
+
calcPosition();
|
|
54
|
+
setVisible(true);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
setVisible(false);
|
|
58
|
+
}
|
|
59
|
+
}, [calcPosition, childrenHover, hoversTooltip, previousHovers]);
|
|
60
|
+
// Updates top/left on initial render, and when window resizes
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
calcPosition();
|
|
63
|
+
const resizeListener = debounce(() => {
|
|
64
|
+
calcPosition();
|
|
65
|
+
}, 3);
|
|
66
|
+
window.addEventListener('resize', resizeListener);
|
|
67
|
+
return () => {
|
|
68
|
+
window.removeEventListener('resize', resizeListener);
|
|
69
|
+
};
|
|
70
|
+
}, [calcPosition]);
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
const tooltip = tooltipRef.current;
|
|
73
|
+
const onMouseEnter = () => {
|
|
74
|
+
setHoversTooltip(true);
|
|
75
|
+
};
|
|
76
|
+
const onMouseLeave = () => {
|
|
77
|
+
setHoversTooltip(false);
|
|
78
|
+
};
|
|
79
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.addEventListener('mouseenter', onMouseEnter);
|
|
80
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.addEventListener('mouseleave', onMouseLeave);
|
|
81
|
+
return () => {
|
|
82
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.removeEventListener('mouseover', onMouseEnter);
|
|
83
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.removeEventListener('mouseleave', onMouseLeave);
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
return (jsxs(Fragment, { children: [createPortal(jsx(ShadowDOM, Object.assign({ zIndex: tooltipZIndex }, { children: jsxs("div", Object.assign({ "data-testid": 'dynamicTooltip', className: classNames('dynamic-tooltip', {
|
|
87
|
+
'dynamic-tooltip--visible': visible,
|
|
88
|
+
}, className), style: { left: vector[0], top: vector[1] }, ref: tooltipRef }, { children: [content, jsx(SvgTooltipArrow, { className: 'dynamic-tooltip__arrow' })] })) })), portalRoot.current), jsx(Tag, Object.assign({ ref: childrenRef }, childrenHoverHandlers, { children: children }))] }));
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export { Tooltip };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var Typography = require('../Typography/Typography.cjs');
|
|
7
|
+
|
|
8
|
+
const TosAndPp = ({ privacyPolicyUrl, termsOfServiceUrl, mode, }) => {
|
|
9
|
+
if (!privacyPolicyUrl || !termsOfServiceUrl) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return (jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_mini', weight: 'regular', className: 'tos-and-pp__text' }, { children: ["By ", mode, ", you agree to our\u00A0", jsxRuntime.jsx("a", Object.assign({ className: 'tos-and-pp__link', href: termsOfServiceUrl, target: '_blank', rel: 'noreferrer' }, { children: "Terms of Services" })), "\u00A0&\u00A0", jsxRuntime.jsx("a", Object.assign({ className: 'tos-and-pp__link', href: privacyPolicyUrl, target: '_blank', rel: 'noreferrer' }, { children: "Privacy Policy" })), "."] })));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.TosAndPp = TosAndPp;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Typography } from '../Typography/Typography.js';
|
|
3
|
+
|
|
4
|
+
const TosAndPp = ({ privacyPolicyUrl, termsOfServiceUrl, mode, }) => {
|
|
5
|
+
if (!privacyPolicyUrl || !termsOfServiceUrl) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (jsxs(Typography, Object.assign({ variant: 'body_mini', weight: 'regular', className: 'tos-and-pp__text' }, { children: ["By ", mode, ", you agree to our\u00A0", jsx("a", Object.assign({ className: 'tos-and-pp__link', href: termsOfServiceUrl, target: '_blank', rel: 'noreferrer' }, { children: "Terms of Services" })), "\u00A0&\u00A0", jsx("a", Object.assign({ className: 'tos-and-pp__link', href: privacyPolicyUrl, target: '_blank', rel: 'noreferrer' }, { children: "Privacy Policy" })), "."] })));
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { TosAndPp };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var useTransition = require('../../../utils/hooks/useTransition/useTransition.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
const getOpacityTransitionDefaultStyles = (duration) => ({
|
|
15
|
+
transition: `opacity ${duration}ms linear`,
|
|
16
|
+
});
|
|
17
|
+
const transitionStyles = {
|
|
18
|
+
ENTERED: {
|
|
19
|
+
opacity: 1,
|
|
20
|
+
},
|
|
21
|
+
ENTERING: {
|
|
22
|
+
opacity: 0,
|
|
23
|
+
},
|
|
24
|
+
EXITING: {
|
|
25
|
+
opacity: 0,
|
|
26
|
+
},
|
|
27
|
+
UNMOUNT: {
|
|
28
|
+
opacity: 0,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const UnoptimizedOpacityTransition = (_a) => {
|
|
32
|
+
var { children, style } = _a, transitionProps = _tslib.__rest(_a, ["children", "style"]);
|
|
33
|
+
const { mount, stage, currentDuration } = useTransition.useTransition(transitionProps);
|
|
34
|
+
const defaultStyles = getOpacityTransitionDefaultStyles(currentDuration);
|
|
35
|
+
const stageStyles = transitionStyles[stage];
|
|
36
|
+
if (!mount)
|
|
37
|
+
return null;
|
|
38
|
+
return (jsxRuntime.jsx("div", Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaultStyles), stageStyles), style) }, { children: children })));
|
|
39
|
+
};
|
|
40
|
+
const OpacityTransition = React__default["default"].memo(UnoptimizedOpacityTransition);
|
|
41
|
+
|
|
42
|
+
exports.OpacityTransition = OpacityTransition;
|
|
43
|
+
exports.UnoptimizedOpacityTransition = UnoptimizedOpacityTransition;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __rest } from '../../../../../_virtual/_tslib.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { useTransition } from '../../../utils/hooks/useTransition/useTransition.js';
|
|
5
|
+
|
|
6
|
+
const getOpacityTransitionDefaultStyles = (duration) => ({
|
|
7
|
+
transition: `opacity ${duration}ms linear`,
|
|
8
|
+
});
|
|
9
|
+
const transitionStyles = {
|
|
10
|
+
ENTERED: {
|
|
11
|
+
opacity: 1,
|
|
12
|
+
},
|
|
13
|
+
ENTERING: {
|
|
14
|
+
opacity: 0,
|
|
15
|
+
},
|
|
16
|
+
EXITING: {
|
|
17
|
+
opacity: 0,
|
|
18
|
+
},
|
|
19
|
+
UNMOUNT: {
|
|
20
|
+
opacity: 0,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const UnoptimizedOpacityTransition = (_a) => {
|
|
24
|
+
var { children, style } = _a, transitionProps = __rest(_a, ["children", "style"]);
|
|
25
|
+
const { mount, stage, currentDuration } = useTransition(transitionProps);
|
|
26
|
+
const defaultStyles = getOpacityTransitionDefaultStyles(currentDuration);
|
|
27
|
+
const stageStyles = transitionStyles[stage];
|
|
28
|
+
if (!mount)
|
|
29
|
+
return null;
|
|
30
|
+
return (jsx("div", Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaultStyles), stageStyles), style) }, { children: children })));
|
|
31
|
+
};
|
|
32
|
+
const OpacityTransition = React__default.memo(UnoptimizedOpacityTransition);
|
|
33
|
+
|
|
34
|
+
export { OpacityTransition, UnoptimizedOpacityTransition };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var useTransition = require('../../../utils/hooks/useTransition/useTransition.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
const getSlideInUpTransitionDefaultStyles = (duration, curve = 'linear') => ({
|
|
15
|
+
transition: `transform ${duration}ms ${curve}, opacity ${duration}ms ${curve}`,
|
|
16
|
+
});
|
|
17
|
+
const transitionStyles = {
|
|
18
|
+
ENTERED: {
|
|
19
|
+
transform: 'translateY(0)',
|
|
20
|
+
},
|
|
21
|
+
ENTERING: {
|
|
22
|
+
transform: 'translateY(0.625rem)',
|
|
23
|
+
},
|
|
24
|
+
EXITING: {
|
|
25
|
+
transform: 'translateY(0.625rem)',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const UnoptimizedSlideInUpTransition = (_a) => {
|
|
29
|
+
var { children } = _a, transitionProps = _tslib.__rest(_a, ["children"]);
|
|
30
|
+
const { mount, stage, currentDuration } = useTransition.useTransition(transitionProps);
|
|
31
|
+
const defaultStyles = getSlideInUpTransitionDefaultStyles(currentDuration);
|
|
32
|
+
const stageStyles = transitionStyles[stage];
|
|
33
|
+
if (!mount)
|
|
34
|
+
return null;
|
|
35
|
+
return jsxRuntime.jsx("div", Object.assign({ style: Object.assign(Object.assign({}, defaultStyles), stageStyles) }, { children: children }));
|
|
36
|
+
};
|
|
37
|
+
const SlideInUpTransition = React__default["default"].memo(UnoptimizedSlideInUpTransition);
|
|
38
|
+
|
|
39
|
+
exports.SlideInUpTransition = SlideInUpTransition;
|
|
40
|
+
exports.UnoptimizedSlideInUpTransition = UnoptimizedSlideInUpTransition;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __rest } from '../../../../../_virtual/_tslib.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { useTransition } from '../../../utils/hooks/useTransition/useTransition.js';
|
|
5
|
+
|
|
6
|
+
const getSlideInUpTransitionDefaultStyles = (duration, curve = 'linear') => ({
|
|
7
|
+
transition: `transform ${duration}ms ${curve}, opacity ${duration}ms ${curve}`,
|
|
8
|
+
});
|
|
9
|
+
const transitionStyles = {
|
|
10
|
+
ENTERED: {
|
|
11
|
+
transform: 'translateY(0)',
|
|
12
|
+
},
|
|
13
|
+
ENTERING: {
|
|
14
|
+
transform: 'translateY(0.625rem)',
|
|
15
|
+
},
|
|
16
|
+
EXITING: {
|
|
17
|
+
transform: 'translateY(0.625rem)',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
const UnoptimizedSlideInUpTransition = (_a) => {
|
|
21
|
+
var { children } = _a, transitionProps = __rest(_a, ["children"]);
|
|
22
|
+
const { mount, stage, currentDuration } = useTransition(transitionProps);
|
|
23
|
+
const defaultStyles = getSlideInUpTransitionDefaultStyles(currentDuration);
|
|
24
|
+
const stageStyles = transitionStyles[stage];
|
|
25
|
+
if (!mount)
|
|
26
|
+
return null;
|
|
27
|
+
return jsx("div", Object.assign({ style: Object.assign(Object.assign({}, defaultStyles), stageStyles) }, { children: children }));
|
|
28
|
+
};
|
|
29
|
+
const SlideInUpTransition = React__default.memo(UnoptimizedSlideInUpTransition);
|
|
30
|
+
|
|
31
|
+
export { SlideInUpTransition, UnoptimizedSlideInUpTransition };
|