@multiplatform.one/connectkit 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/cjs/appMeta.cjs +37 -0
- package/dist/cjs/appMeta.native.js +44 -0
- package/dist/cjs/appMeta.native.js.map +1 -0
- package/dist/cjs/assets/ScanIconWithLogos.cjs +295 -0
- package/dist/cjs/assets/ScanIconWithLogos.native.js +300 -0
- package/dist/cjs/assets/ScanIconWithLogos.native.js.map +1 -0
- package/dist/cjs/assets/browsers.cjs +885 -0
- package/dist/cjs/assets/browsers.native.js +888 -0
- package/dist/cjs/assets/browsers.native.js.map +1 -0
- package/dist/cjs/assets/icons.cjs +258 -0
- package/dist/cjs/assets/icons.native.js +283 -0
- package/dist/cjs/assets/icons.native.js.map +1 -0
- package/dist/cjs/assets/logos.cjs +1266 -0
- package/dist/cjs/assets/logos.native.js +1351 -0
- package/dist/cjs/assets/logos.native.js.map +1 -0
- package/dist/cjs/assets/wallet.cjs +56 -0
- package/dist/cjs/assets/wallet.native.js +60 -0
- package/dist/cjs/assets/wallet.native.js.map +1 -0
- package/dist/cjs/assets/wave.cjs +67 -0
- package/dist/cjs/assets/wave.native.js +70 -0
- package/dist/cjs/assets/wave.native.js.map +1 -0
- package/dist/cjs/components/Common/Alert/index.cjs +45 -0
- package/dist/cjs/components/Common/Alert/index.native.js +49 -0
- package/dist/cjs/components/Common/Alert/index.native.js.map +1 -0
- package/dist/cjs/components/Common/Alert/styles.cjs +89 -0
- package/dist/cjs/components/Common/Alert/styles.native.js +92 -0
- package/dist/cjs/components/Common/Alert/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/Alert/types.cjs +18 -0
- package/dist/cjs/components/Common/Alert/types.native.js +21 -0
- package/dist/cjs/components/Common/Alert/types.native.js.map +1 -0
- package/dist/cjs/components/Common/BrowserIcon/index.cjs +68 -0
- package/dist/cjs/components/Common/BrowserIcon/index.native.js +72 -0
- package/dist/cjs/components/Common/BrowserIcon/index.native.js.map +1 -0
- package/dist/cjs/components/Common/BrowserIcon/styles.cjs +54 -0
- package/dist/cjs/components/Common/BrowserIcon/styles.native.js +57 -0
- package/dist/cjs/components/Common/BrowserIcon/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/BrowserIcon/types.cjs +18 -0
- package/dist/cjs/components/Common/BrowserIcon/types.native.js +21 -0
- package/dist/cjs/components/Common/BrowserIcon/types.native.js.map +1 -0
- package/dist/cjs/components/Common/Button/index.cjs +165 -0
- package/dist/cjs/components/Common/Button/index.native.js +172 -0
- package/dist/cjs/components/Common/Button/index.native.js.map +1 -0
- package/dist/cjs/components/Common/Button/styles.cjs +292 -0
- package/dist/cjs/components/Common/Button/styles.native.js +299 -0
- package/dist/cjs/components/Common/Button/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/Button/types.cjs +18 -0
- package/dist/cjs/components/Common/Button/types.native.js +21 -0
- package/dist/cjs/components/Common/Button/types.native.js.map +1 -0
- package/dist/cjs/components/Common/ContinueWithAaveButton/index.cjs +76 -0
- package/dist/cjs/components/Common/ContinueWithAaveButton/index.native.js +82 -0
- package/dist/cjs/components/Common/ContinueWithAaveButton/index.native.js.map +1 -0
- package/dist/cjs/components/Common/ContinueWithAaveButton/styles.cjs +112 -0
- package/dist/cjs/components/Common/ContinueWithAaveButton/styles.native.js +115 -0
- package/dist/cjs/components/Common/ContinueWithAaveButton/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/CopyToClipboard/CopyToClipboardIcon.cjs +112 -0
- package/dist/cjs/components/Common/CopyToClipboard/CopyToClipboardIcon.native.js +120 -0
- package/dist/cjs/components/Common/CopyToClipboard/CopyToClipboardIcon.native.js.map +1 -0
- package/dist/cjs/components/Common/CopyToClipboard/index.cjs +113 -0
- package/dist/cjs/components/Common/CopyToClipboard/index.native.js +121 -0
- package/dist/cjs/components/Common/CopyToClipboard/index.native.js.map +1 -0
- package/dist/cjs/components/Common/CustomQRCode/QRCode.cjs +153 -0
- package/dist/cjs/components/Common/CustomQRCode/QRCode.native.js +160 -0
- package/dist/cjs/components/Common/CustomQRCode/QRCode.native.js.map +1 -0
- package/dist/cjs/components/Common/CustomQRCode/index.cjs +115 -0
- package/dist/cjs/components/Common/CustomQRCode/index.native.js +119 -0
- package/dist/cjs/components/Common/CustomQRCode/index.native.js.map +1 -0
- package/dist/cjs/components/Common/CustomQRCode/styles.cjs +192 -0
- package/dist/cjs/components/Common/CustomQRCode/styles.native.js +197 -0
- package/dist/cjs/components/Common/CustomQRCode/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/CustomQRCode/types.cjs +18 -0
- package/dist/cjs/components/Common/CustomQRCode/types.native.js +21 -0
- package/dist/cjs/components/Common/CustomQRCode/types.native.js.map +1 -0
- package/dist/cjs/components/Common/DynamicContainer/index.cjs +58 -0
- package/dist/cjs/components/Common/DynamicContainer/index.native.js +74 -0
- package/dist/cjs/components/Common/DynamicContainer/index.native.js.map +1 -0
- package/dist/cjs/components/Common/FitText/index.cjs +71 -0
- package/dist/cjs/components/Common/FitText/index.native.js +79 -0
- package/dist/cjs/components/Common/FitText/index.native.js.map +1 -0
- package/dist/cjs/components/Common/LazyImage/index.cjs +64 -0
- package/dist/cjs/components/Common/LazyImage/index.native.js +81 -0
- package/dist/cjs/components/Common/LazyImage/index.native.js.map +1 -0
- package/dist/cjs/components/Common/Logo/index.cjs +54 -0
- package/dist/cjs/components/Common/Logo/index.native.js +70 -0
- package/dist/cjs/components/Common/Logo/index.native.js.map +1 -0
- package/dist/cjs/components/Common/Logo/styles.cjs +69 -0
- package/dist/cjs/components/Common/Logo/styles.native.js +78 -0
- package/dist/cjs/components/Common/Logo/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/Modal/index.cjs +490 -0
- package/dist/cjs/components/Common/Modal/index.native.js +517 -0
- package/dist/cjs/components/Common/Modal/index.native.js.map +1 -0
- package/dist/cjs/components/Common/Modal/styles.cjs +709 -0
- package/dist/cjs/components/Common/Modal/styles.native.js +722 -0
- package/dist/cjs/components/Common/Modal/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/Portal/index.cjs +57 -0
- package/dist/cjs/components/Common/Portal/index.native.js +60 -0
- package/dist/cjs/components/Common/Portal/index.native.js.map +1 -0
- package/dist/cjs/components/Common/ScrollArea/index.cjs +131 -0
- package/dist/cjs/components/Common/ScrollArea/index.native.js +137 -0
- package/dist/cjs/components/Common/ScrollArea/index.native.js.map +1 -0
- package/dist/cjs/components/Common/ScrollArea/styles.cjs +202 -0
- package/dist/cjs/components/Common/ScrollArea/styles.native.js +211 -0
- package/dist/cjs/components/Common/ScrollArea/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/Spinner/index.cjs +75 -0
- package/dist/cjs/components/Common/Spinner/index.native.js +80 -0
- package/dist/cjs/components/Common/Spinner/index.native.js.map +1 -0
- package/dist/cjs/components/Common/Spinner/styles.cjs +56 -0
- package/dist/cjs/components/Common/Spinner/styles.native.js +59 -0
- package/dist/cjs/components/Common/Spinner/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/ThemedButton/index.cjs +83 -0
- package/dist/cjs/components/Common/ThemedButton/index.native.js +88 -0
- package/dist/cjs/components/Common/ThemedButton/index.native.js.map +1 -0
- package/dist/cjs/components/Common/ThemedButton/styles.cjs +148 -0
- package/dist/cjs/components/Common/ThemedButton/styles.native.js +151 -0
- package/dist/cjs/components/Common/ThemedButton/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/Tooltip/index.cjs +160 -0
- package/dist/cjs/components/Common/Tooltip/index.native.js +171 -0
- package/dist/cjs/components/Common/Tooltip/index.native.js.map +1 -0
- package/dist/cjs/components/Common/Tooltip/styles.cjs +117 -0
- package/dist/cjs/components/Common/Tooltip/styles.native.js +130 -0
- package/dist/cjs/components/Common/Tooltip/styles.native.js.map +1 -0
- package/dist/cjs/components/Common/Tooltip/types.cjs +18 -0
- package/dist/cjs/components/Common/Tooltip/types.native.js +21 -0
- package/dist/cjs/components/Common/Tooltip/types.native.js.map +1 -0
- package/dist/cjs/components/ConnectKit.cjs +171 -0
- package/dist/cjs/components/ConnectKit.native.js +190 -0
- package/dist/cjs/components/ConnectKit.native.js.map +1 -0
- package/dist/cjs/components/ConnectKitThemeProvider/ConnectKitThemeProvider.cjs +64 -0
- package/dist/cjs/components/ConnectKitThemeProvider/ConnectKitThemeProvider.native.js +68 -0
- package/dist/cjs/components/ConnectKitThemeProvider/ConnectKitThemeProvider.native.js.map +1 -0
- package/dist/cjs/components/ConnectModal/index.cjs +110 -0
- package/dist/cjs/components/ConnectModal/index.native.js +130 -0
- package/dist/cjs/components/ConnectModal/index.native.js.map +1 -0
- package/dist/cjs/constants/defaultTheme.cjs +30 -0
- package/dist/cjs/constants/defaultTheme.native.js +33 -0
- package/dist/cjs/constants/defaultTheme.native.js.map +1 -0
- package/dist/cjs/hooks/useFitText.cjs +164 -0
- package/dist/cjs/hooks/useFitText.native.js +170 -0
- package/dist/cjs/hooks/useFitText.native.js.map +1 -0
- package/dist/cjs/hooks/useFocusTrap.cjs +90 -0
- package/dist/cjs/hooks/useFocusTrap.native.js +93 -0
- package/dist/cjs/hooks/useFocusTrap.native.js.map +1 -0
- package/dist/cjs/hooks/useGoogleFont.cjs +64 -0
- package/dist/cjs/hooks/useGoogleFont.native.js +68 -0
- package/dist/cjs/hooks/useGoogleFont.native.js.map +1 -0
- package/dist/cjs/hooks/useIsMobile.cjs +40 -0
- package/dist/cjs/hooks/useIsMobile.native.js +45 -0
- package/dist/cjs/hooks/useIsMobile.native.js.map +1 -0
- package/dist/cjs/hooks/useIsMounted.cjs +33 -0
- package/dist/cjs/hooks/useIsMounted.native.js +38 -0
- package/dist/cjs/hooks/useIsMounted.native.js.map +1 -0
- package/dist/cjs/hooks/useLocalStorage.cjs +66 -0
- package/dist/cjs/hooks/useLocalStorage.native.js +69 -0
- package/dist/cjs/hooks/useLocalStorage.native.js.map +1 -0
- package/dist/cjs/hooks/useLocales.cjs +104 -0
- package/dist/cjs/hooks/useLocales.native.js +109 -0
- package/dist/cjs/hooks/useLocales.native.js.map +1 -0
- package/dist/cjs/hooks/useLockBodyScroll.cjs +67 -0
- package/dist/cjs/hooks/useLockBodyScroll.native.js +71 -0
- package/dist/cjs/hooks/useLockBodyScroll.native.js.map +1 -0
- package/dist/cjs/hooks/useModal.cjs +68 -0
- package/dist/cjs/hooks/useModal.native.js +71 -0
- package/dist/cjs/hooks/useModal.native.js.map +1 -0
- package/dist/cjs/hooks/usePrevious.cjs +39 -0
- package/dist/cjs/hooks/usePrevious.native.js +42 -0
- package/dist/cjs/hooks/usePrevious.native.js.map +1 -0
- package/dist/cjs/hooks/useWindowSize.cjs +46 -0
- package/dist/cjs/hooks/useWindowSize.native.js +51 -0
- package/dist/cjs/hooks/useWindowSize.native.js.map +1 -0
- package/dist/cjs/index.cjs +129 -0
- package/dist/cjs/index.native.js +132 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/localizations/index.cjs +81 -0
- package/dist/cjs/localizations/index.native.js +84 -0
- package/dist/cjs/localizations/index.native.js.map +1 -0
- package/dist/cjs/localizations/locales/ar-AE.cjs +137 -0
- package/dist/cjs/localizations/locales/ar-AE.native.js +140 -0
- package/dist/cjs/localizations/locales/ar-AE.native.js.map +1 -0
- package/dist/cjs/localizations/locales/ca-AD.cjs +134 -0
- package/dist/cjs/localizations/locales/ca-AD.native.js +137 -0
- package/dist/cjs/localizations/locales/ca-AD.native.js.map +1 -0
- package/dist/cjs/localizations/locales/ee-EE.cjs +143 -0
- package/dist/cjs/localizations/locales/ee-EE.native.js +146 -0
- package/dist/cjs/localizations/locales/ee-EE.native.js.map +1 -0
- package/dist/cjs/localizations/locales/en-US.cjs +135 -0
- package/dist/cjs/localizations/locales/en-US.native.js +138 -0
- package/dist/cjs/localizations/locales/en-US.native.js.map +1 -0
- package/dist/cjs/localizations/locales/es-ES.cjs +134 -0
- package/dist/cjs/localizations/locales/es-ES.native.js +137 -0
- package/dist/cjs/localizations/locales/es-ES.native.js.map +1 -0
- package/dist/cjs/localizations/locales/fa-IR.cjs +134 -0
- package/dist/cjs/localizations/locales/fa-IR.native.js +137 -0
- package/dist/cjs/localizations/locales/fa-IR.native.js.map +1 -0
- package/dist/cjs/localizations/locales/fr-FR.cjs +134 -0
- package/dist/cjs/localizations/locales/fr-FR.native.js +137 -0
- package/dist/cjs/localizations/locales/fr-FR.native.js.map +1 -0
- package/dist/cjs/localizations/locales/index.cjs +18 -0
- package/dist/cjs/localizations/locales/index.native.js +21 -0
- package/dist/cjs/localizations/locales/index.native.js.map +1 -0
- package/dist/cjs/localizations/locales/ja-JP.cjs +134 -0
- package/dist/cjs/localizations/locales/ja-JP.native.js +137 -0
- package/dist/cjs/localizations/locales/ja-JP.native.js.map +1 -0
- package/dist/cjs/localizations/locales/pt-BR.cjs +143 -0
- package/dist/cjs/localizations/locales/pt-BR.native.js +146 -0
- package/dist/cjs/localizations/locales/pt-BR.native.js.map +1 -0
- package/dist/cjs/localizations/locales/ru-RU.cjs +138 -0
- package/dist/cjs/localizations/locales/ru-RU.native.js +141 -0
- package/dist/cjs/localizations/locales/ru-RU.native.js.map +1 -0
- package/dist/cjs/localizations/locales/tr-TR.cjs +143 -0
- package/dist/cjs/localizations/locales/tr-TR.native.js +146 -0
- package/dist/cjs/localizations/locales/tr-TR.native.js.map +1 -0
- package/dist/cjs/localizations/locales/vi-VN.cjs +143 -0
- package/dist/cjs/localizations/locales/vi-VN.native.js +146 -0
- package/dist/cjs/localizations/locales/vi-VN.native.js.map +1 -0
- package/dist/cjs/localizations/locales/zh-CN.cjs +134 -0
- package/dist/cjs/localizations/locales/zh-CN.native.js +137 -0
- package/dist/cjs/localizations/locales/zh-CN.native.js.map +1 -0
- package/dist/cjs/registry.cjs +112 -0
- package/dist/cjs/registry.native.js +141 -0
- package/dist/cjs/registry.native.js.map +1 -0
- package/dist/cjs/routes.cjs +39 -0
- package/dist/cjs/routes.native.js +42 -0
- package/dist/cjs/routes.native.js.map +1 -0
- package/dist/cjs/styles/defaultTheme.cjs +106 -0
- package/dist/cjs/styles/defaultTheme.native.js +109 -0
- package/dist/cjs/styles/defaultTheme.native.js.map +1 -0
- package/dist/cjs/styles/index.cjs +343 -0
- package/dist/cjs/styles/index.native.js +347 -0
- package/dist/cjs/styles/index.native.js.map +1 -0
- package/dist/cjs/styles/styled/index.cjs +40 -0
- package/dist/cjs/styles/styled/index.native.js +43 -0
- package/dist/cjs/styles/styled/index.native.js.map +1 -0
- package/dist/cjs/styles/themes/base.cjs +165 -0
- package/dist/cjs/styles/themes/base.native.js +168 -0
- package/dist/cjs/styles/themes/base.native.js.map +1 -0
- package/dist/cjs/styles/themes/index.cjs +56 -0
- package/dist/cjs/styles/themes/index.native.js +59 -0
- package/dist/cjs/styles/themes/index.native.js.map +1 -0
- package/dist/cjs/styles/themes/midnight.cjs +100 -0
- package/dist/cjs/styles/themes/midnight.native.js +103 -0
- package/dist/cjs/styles/themes/midnight.native.js.map +1 -0
- package/dist/cjs/styles/themes/minimal.cjs +120 -0
- package/dist/cjs/styles/themes/minimal.native.js +123 -0
- package/dist/cjs/styles/themes/minimal.native.js.map +1 -0
- package/dist/cjs/styles/themes/nouns.cjs +105 -0
- package/dist/cjs/styles/themes/nouns.native.js +108 -0
- package/dist/cjs/styles/themes/nouns.native.js.map +1 -0
- package/dist/cjs/styles/themes/retro.cjs +130 -0
- package/dist/cjs/styles/themes/retro.native.js +133 -0
- package/dist/cjs/styles/themes/retro.native.js.map +1 -0
- package/dist/cjs/styles/themes/rounded.cjs +130 -0
- package/dist/cjs/styles/themes/rounded.native.js +133 -0
- package/dist/cjs/styles/themes/rounded.native.js.map +1 -0
- package/dist/cjs/styles/themes/soft.cjs +95 -0
- package/dist/cjs/styles/themes/soft.native.js +98 -0
- package/dist/cjs/styles/themes/soft.native.js.map +1 -0
- package/dist/cjs/styles/themes/web95.cjs +156 -0
- package/dist/cjs/styles/themes/web95.native.js +159 -0
- package/dist/cjs/styles/themes/web95.native.js.map +1 -0
- package/dist/cjs/styles/types.cjs +18 -0
- package/dist/cjs/styles/types.native.js +21 -0
- package/dist/cjs/styles/types.native.js.map +1 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/types.native.js +21 -0
- package/dist/cjs/types.native.js.map +1 -0
- package/dist/cjs/utils/index.cjs +145 -0
- package/dist/cjs/utils/index.native.js +173 -0
- package/dist/cjs/utils/index.native.js.map +1 -0
- package/dist/cjs/utils/localstorage.cjs +73 -0
- package/dist/cjs/utils/localstorage.native.js +78 -0
- package/dist/cjs/utils/localstorage.native.js.map +1 -0
- package/dist/cjs/utils/p3.cjs +53 -0
- package/dist/cjs/utils/p3.native.js +56 -0
- package/dist/cjs/utils/p3.native.js.map +1 -0
- package/dist/cjs/utils/wallets.cjs +73 -0
- package/dist/cjs/utils/wallets.native.js +113 -0
- package/dist/cjs/utils/wallets.native.js.map +1 -0
- package/dist/esm/appMeta.mjs +10 -0
- package/dist/esm/appMeta.mjs.map +1 -0
- package/dist/esm/appMeta.native.js +14 -0
- package/dist/esm/appMeta.native.js.map +1 -0
- package/dist/esm/assets/ScanIconWithLogos.mjs +259 -0
- package/dist/esm/assets/ScanIconWithLogos.mjs.map +1 -0
- package/dist/esm/assets/ScanIconWithLogos.native.js +261 -0
- package/dist/esm/assets/ScanIconWithLogos.native.js.map +1 -0
- package/dist/esm/assets/browsers.mjs +860 -0
- package/dist/esm/assets/browsers.mjs.map +1 -0
- package/dist/esm/assets/browsers.native.js +860 -0
- package/dist/esm/assets/browsers.native.js.map +1 -0
- package/dist/esm/assets/icons.mjs +224 -0
- package/dist/esm/assets/icons.mjs.map +1 -0
- package/dist/esm/assets/icons.native.js +246 -0
- package/dist/esm/assets/icons.native.js.map +1 -0
- package/dist/esm/assets/logos.mjs +1215 -0
- package/dist/esm/assets/logos.mjs.map +1 -0
- package/dist/esm/assets/logos.native.js +1297 -0
- package/dist/esm/assets/logos.native.js.map +1 -0
- package/dist/esm/assets/wallet.mjs +31 -0
- package/dist/esm/assets/wallet.mjs.map +1 -0
- package/dist/esm/assets/wallet.native.js +32 -0
- package/dist/esm/assets/wallet.native.js.map +1 -0
- package/dist/esm/assets/wave.mjs +42 -0
- package/dist/esm/assets/wave.mjs.map +1 -0
- package/dist/esm/assets/wave.native.js +42 -0
- package/dist/esm/assets/wave.native.js.map +1 -0
- package/dist/esm/components/Common/Alert/index.mjs +20 -0
- package/dist/esm/components/Common/Alert/index.mjs.map +1 -0
- package/dist/esm/components/Common/Alert/index.native.js +21 -0
- package/dist/esm/components/Common/Alert/index.native.js.map +1 -0
- package/dist/esm/components/Common/Alert/styles.mjs +52 -0
- package/dist/esm/components/Common/Alert/styles.mjs.map +1 -0
- package/dist/esm/components/Common/Alert/styles.native.js +52 -0
- package/dist/esm/components/Common/Alert/styles.native.js.map +1 -0
- package/dist/esm/components/Common/Alert/types.mjs +2 -0
- package/dist/esm/components/Common/Alert/types.mjs.map +1 -0
- package/dist/esm/components/Common/Alert/types.native.js +2 -0
- package/dist/esm/components/Common/Alert/types.native.js.map +1 -0
- package/dist/esm/components/Common/BrowserIcon/index.mjs +32 -0
- package/dist/esm/components/Common/BrowserIcon/index.mjs.map +1 -0
- package/dist/esm/components/Common/BrowserIcon/index.native.js +33 -0
- package/dist/esm/components/Common/BrowserIcon/index.native.js.map +1 -0
- package/dist/esm/components/Common/BrowserIcon/styles.mjs +18 -0
- package/dist/esm/components/Common/BrowserIcon/styles.mjs.map +1 -0
- package/dist/esm/components/Common/BrowserIcon/styles.native.js +18 -0
- package/dist/esm/components/Common/BrowserIcon/styles.native.js.map +1 -0
- package/dist/esm/components/Common/BrowserIcon/types.mjs +2 -0
- package/dist/esm/components/Common/BrowserIcon/types.mjs.map +1 -0
- package/dist/esm/components/Common/BrowserIcon/types.native.js +2 -0
- package/dist/esm/components/Common/BrowserIcon/types.native.js.map +1 -0
- package/dist/esm/components/Common/Button/index.mjs +129 -0
- package/dist/esm/components/Common/Button/index.mjs.map +1 -0
- package/dist/esm/components/Common/Button/index.native.js +133 -0
- package/dist/esm/components/Common/Button/index.native.js.map +1 -0
- package/dist/esm/components/Common/Button/styles.mjs +247 -0
- package/dist/esm/components/Common/Button/styles.mjs.map +1 -0
- package/dist/esm/components/Common/Button/styles.native.js +251 -0
- package/dist/esm/components/Common/Button/styles.native.js.map +1 -0
- package/dist/esm/components/Common/Button/types.mjs +2 -0
- package/dist/esm/components/Common/Button/types.mjs.map +1 -0
- package/dist/esm/components/Common/Button/types.native.js +2 -0
- package/dist/esm/components/Common/Button/types.native.js.map +1 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/index.mjs +40 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/index.mjs.map +1 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/index.native.js +43 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/index.native.js.map +1 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/styles.mjs +73 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/styles.mjs.map +1 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/styles.native.js +73 -0
- package/dist/esm/components/Common/ContinueWithAaveButton/styles.native.js.map +1 -0
- package/dist/esm/components/Common/CopyToClipboard/CopyToClipboardIcon.mjs +76 -0
- package/dist/esm/components/Common/CopyToClipboard/CopyToClipboardIcon.mjs.map +1 -0
- package/dist/esm/components/Common/CopyToClipboard/CopyToClipboardIcon.native.js +81 -0
- package/dist/esm/components/Common/CopyToClipboard/CopyToClipboardIcon.native.js.map +1 -0
- package/dist/esm/components/Common/CopyToClipboard/index.mjs +77 -0
- package/dist/esm/components/Common/CopyToClipboard/index.mjs.map +1 -0
- package/dist/esm/components/Common/CopyToClipboard/index.native.js +82 -0
- package/dist/esm/components/Common/CopyToClipboard/index.native.js.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/QRCode.mjs +117 -0
- package/dist/esm/components/Common/CustomQRCode/QRCode.mjs.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/QRCode.native.js +121 -0
- package/dist/esm/components/Common/CustomQRCode/QRCode.native.js.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/index.mjs +79 -0
- package/dist/esm/components/Common/CustomQRCode/index.mjs.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/index.native.js +80 -0
- package/dist/esm/components/Common/CustomQRCode/index.native.js.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/styles.mjs +151 -0
- package/dist/esm/components/Common/CustomQRCode/styles.mjs.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/styles.native.js +153 -0
- package/dist/esm/components/Common/CustomQRCode/styles.native.js.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/types.mjs +2 -0
- package/dist/esm/components/Common/CustomQRCode/types.mjs.map +1 -0
- package/dist/esm/components/Common/CustomQRCode/types.native.js +2 -0
- package/dist/esm/components/Common/CustomQRCode/types.native.js.map +1 -0
- package/dist/esm/components/Common/DynamicContainer/index.mjs +33 -0
- package/dist/esm/components/Common/DynamicContainer/index.mjs.map +1 -0
- package/dist/esm/components/Common/DynamicContainer/index.native.js +35 -0
- package/dist/esm/components/Common/DynamicContainer/index.native.js.map +1 -0
- package/dist/esm/components/Common/FitText/index.mjs +35 -0
- package/dist/esm/components/Common/FitText/index.mjs.map +1 -0
- package/dist/esm/components/Common/FitText/index.native.js +40 -0
- package/dist/esm/components/Common/FitText/index.native.js.map +1 -0
- package/dist/esm/components/Common/LazyImage/index.mjs +39 -0
- package/dist/esm/components/Common/LazyImage/index.mjs.map +1 -0
- package/dist/esm/components/Common/LazyImage/index.native.js +42 -0
- package/dist/esm/components/Common/LazyImage/index.native.js.map +1 -0
- package/dist/esm/components/Common/Logo/index.mjs +29 -0
- package/dist/esm/components/Common/Logo/index.mjs.map +1 -0
- package/dist/esm/components/Common/Logo/index.native.js +31 -0
- package/dist/esm/components/Common/Logo/index.native.js.map +1 -0
- package/dist/esm/components/Common/Logo/styles.mjs +31 -0
- package/dist/esm/components/Common/Logo/styles.mjs.map +1 -0
- package/dist/esm/components/Common/Logo/styles.native.js +37 -0
- package/dist/esm/components/Common/Logo/styles.native.js.map +1 -0
- package/dist/esm/components/Common/Modal/index.mjs +452 -0
- package/dist/esm/components/Common/Modal/index.mjs.map +1 -0
- package/dist/esm/components/Common/Modal/index.native.js +476 -0
- package/dist/esm/components/Common/Modal/index.native.js.map +1 -0
- package/dist/esm/components/Common/Modal/styles.mjs +650 -0
- package/dist/esm/components/Common/Modal/styles.mjs.map +1 -0
- package/dist/esm/components/Common/Modal/styles.native.js +660 -0
- package/dist/esm/components/Common/Modal/styles.native.js.map +1 -0
- package/dist/esm/components/Common/Portal/index.mjs +32 -0
- package/dist/esm/components/Common/Portal/index.mjs.map +1 -0
- package/dist/esm/components/Common/Portal/index.native.js +32 -0
- package/dist/esm/components/Common/Portal/index.native.js.map +1 -0
- package/dist/esm/components/Common/ScrollArea/index.mjs +95 -0
- package/dist/esm/components/Common/ScrollArea/index.mjs.map +1 -0
- package/dist/esm/components/Common/ScrollArea/index.native.js +98 -0
- package/dist/esm/components/Common/ScrollArea/index.native.js.map +1 -0
- package/dist/esm/components/Common/ScrollArea/styles.mjs +164 -0
- package/dist/esm/components/Common/ScrollArea/styles.mjs.map +1 -0
- package/dist/esm/components/Common/ScrollArea/styles.native.js +170 -0
- package/dist/esm/components/Common/ScrollArea/styles.native.js.map +1 -0
- package/dist/esm/components/Common/Spinner/index.mjs +50 -0
- package/dist/esm/components/Common/Spinner/index.mjs.map +1 -0
- package/dist/esm/components/Common/Spinner/index.native.js +52 -0
- package/dist/esm/components/Common/Spinner/index.native.js.map +1 -0
- package/dist/esm/components/Common/Spinner/styles.mjs +20 -0
- package/dist/esm/components/Common/Spinner/styles.mjs.map +1 -0
- package/dist/esm/components/Common/Spinner/styles.native.js +20 -0
- package/dist/esm/components/Common/Spinner/styles.native.js.map +1 -0
- package/dist/esm/components/Common/ThemedButton/index.mjs +45 -0
- package/dist/esm/components/Common/ThemedButton/index.mjs.map +1 -0
- package/dist/esm/components/Common/ThemedButton/index.native.js +47 -0
- package/dist/esm/components/Common/ThemedButton/index.native.js.map +1 -0
- package/dist/esm/components/Common/ThemedButton/styles.mjs +111 -0
- package/dist/esm/components/Common/ThemedButton/styles.mjs.map +1 -0
- package/dist/esm/components/Common/ThemedButton/styles.native.js +111 -0
- package/dist/esm/components/Common/ThemedButton/styles.native.js.map +1 -0
- package/dist/esm/components/Common/Tooltip/index.mjs +124 -0
- package/dist/esm/components/Common/Tooltip/index.mjs.map +1 -0
- package/dist/esm/components/Common/Tooltip/index.native.js +132 -0
- package/dist/esm/components/Common/Tooltip/index.native.js.map +1 -0
- package/dist/esm/components/Common/Tooltip/styles.mjs +79 -0
- package/dist/esm/components/Common/Tooltip/styles.mjs.map +1 -0
- package/dist/esm/components/Common/Tooltip/styles.native.js +89 -0
- package/dist/esm/components/Common/Tooltip/styles.native.js.map +1 -0
- package/dist/esm/components/Common/Tooltip/types.mjs +2 -0
- package/dist/esm/components/Common/Tooltip/types.mjs.map +1 -0
- package/dist/esm/components/Common/Tooltip/types.native.js +2 -0
- package/dist/esm/components/Common/Tooltip/types.native.js.map +1 -0
- package/dist/esm/components/ConnectKit.mjs +132 -0
- package/dist/esm/components/ConnectKit.mjs.map +1 -0
- package/dist/esm/components/ConnectKit.native.js +148 -0
- package/dist/esm/components/ConnectKit.native.js.map +1 -0
- package/dist/esm/components/ConnectKitThemeProvider/ConnectKitThemeProvider.mjs +27 -0
- package/dist/esm/components/ConnectKitThemeProvider/ConnectKitThemeProvider.mjs.map +1 -0
- package/dist/esm/components/ConnectKitThemeProvider/ConnectKitThemeProvider.native.js +28 -0
- package/dist/esm/components/ConnectKitThemeProvider/ConnectKitThemeProvider.native.js.map +1 -0
- package/dist/esm/components/ConnectModal/index.mjs +74 -0
- package/dist/esm/components/ConnectModal/index.mjs.map +1 -0
- package/dist/esm/components/ConnectModal/index.native.js +91 -0
- package/dist/esm/components/ConnectModal/index.native.js.map +1 -0
- package/dist/esm/constants/defaultTheme.mjs +5 -0
- package/dist/esm/constants/defaultTheme.mjs.map +1 -0
- package/dist/esm/constants/defaultTheme.native.js +5 -0
- package/dist/esm/constants/defaultTheme.native.js.map +1 -0
- package/dist/esm/hooks/useFitText.mjs +128 -0
- package/dist/esm/hooks/useFitText.mjs.map +1 -0
- package/dist/esm/hooks/useFitText.native.js +131 -0
- package/dist/esm/hooks/useFitText.native.js.map +1 -0
- package/dist/esm/hooks/useFocusTrap.mjs +65 -0
- package/dist/esm/hooks/useFocusTrap.mjs.map +1 -0
- package/dist/esm/hooks/useFocusTrap.native.js +65 -0
- package/dist/esm/hooks/useFocusTrap.native.js.map +1 -0
- package/dist/esm/hooks/useGoogleFont.mjs +38 -0
- package/dist/esm/hooks/useGoogleFont.mjs.map +1 -0
- package/dist/esm/hooks/useGoogleFont.native.js +39 -0
- package/dist/esm/hooks/useGoogleFont.native.js.map +1 -0
- package/dist/esm/hooks/useIsMobile.mjs +15 -0
- package/dist/esm/hooks/useIsMobile.mjs.map +1 -0
- package/dist/esm/hooks/useIsMobile.native.js +17 -0
- package/dist/esm/hooks/useIsMobile.native.js.map +1 -0
- package/dist/esm/hooks/useIsMounted.mjs +8 -0
- package/dist/esm/hooks/useIsMounted.mjs.map +1 -0
- package/dist/esm/hooks/useIsMounted.native.js +10 -0
- package/dist/esm/hooks/useIsMounted.native.js.map +1 -0
- package/dist/esm/hooks/useLocalStorage.mjs +30 -0
- package/dist/esm/hooks/useLocalStorage.mjs.map +1 -0
- package/dist/esm/hooks/useLocalStorage.native.js +30 -0
- package/dist/esm/hooks/useLocalStorage.native.js.map +1 -0
- package/dist/esm/hooks/useLocales.mjs +68 -0
- package/dist/esm/hooks/useLocales.mjs.map +1 -0
- package/dist/esm/hooks/useLocales.native.js +70 -0
- package/dist/esm/hooks/useLocales.native.js.map +1 -0
- package/dist/esm/hooks/useLockBodyScroll.mjs +42 -0
- package/dist/esm/hooks/useLockBodyScroll.mjs.map +1 -0
- package/dist/esm/hooks/useLockBodyScroll.native.js +43 -0
- package/dist/esm/hooks/useLockBodyScroll.native.js.map +1 -0
- package/dist/esm/hooks/useModal.mjs +43 -0
- package/dist/esm/hooks/useModal.mjs.map +1 -0
- package/dist/esm/hooks/useModal.native.js +43 -0
- package/dist/esm/hooks/useModal.native.js.map +1 -0
- package/dist/esm/hooks/usePrevious.mjs +14 -0
- package/dist/esm/hooks/usePrevious.mjs.map +1 -0
- package/dist/esm/hooks/usePrevious.native.js +14 -0
- package/dist/esm/hooks/usePrevious.native.js.map +1 -0
- package/dist/esm/hooks/useWindowSize.mjs +21 -0
- package/dist/esm/hooks/useWindowSize.mjs.map +1 -0
- package/dist/esm/hooks/useWindowSize.native.js +23 -0
- package/dist/esm/hooks/useWindowSize.native.js.map +1 -0
- package/dist/esm/index.mjs +45 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +45 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/localizations/index.mjs +45 -0
- package/dist/esm/localizations/index.mjs.map +1 -0
- package/dist/esm/localizations/index.native.js +45 -0
- package/dist/esm/localizations/index.native.js.map +1 -0
- package/dist/esm/localizations/locales/ar-AE.mjs +101 -0
- package/dist/esm/localizations/locales/ar-AE.mjs.map +1 -0
- package/dist/esm/localizations/locales/ar-AE.native.js +101 -0
- package/dist/esm/localizations/locales/ar-AE.native.js.map +1 -0
- package/dist/esm/localizations/locales/ca-AD.mjs +98 -0
- package/dist/esm/localizations/locales/ca-AD.mjs.map +1 -0
- package/dist/esm/localizations/locales/ca-AD.native.js +98 -0
- package/dist/esm/localizations/locales/ca-AD.native.js.map +1 -0
- package/dist/esm/localizations/locales/ee-EE.mjs +107 -0
- package/dist/esm/localizations/locales/ee-EE.mjs.map +1 -0
- package/dist/esm/localizations/locales/ee-EE.native.js +107 -0
- package/dist/esm/localizations/locales/ee-EE.native.js.map +1 -0
- package/dist/esm/localizations/locales/en-US.mjs +110 -0
- package/dist/esm/localizations/locales/en-US.mjs.map +1 -0
- package/dist/esm/localizations/locales/en-US.native.js +110 -0
- package/dist/esm/localizations/locales/en-US.native.js.map +1 -0
- package/dist/esm/localizations/locales/es-ES.mjs +98 -0
- package/dist/esm/localizations/locales/es-ES.mjs.map +1 -0
- package/dist/esm/localizations/locales/es-ES.native.js +98 -0
- package/dist/esm/localizations/locales/es-ES.native.js.map +1 -0
- package/dist/esm/localizations/locales/fa-IR.mjs +98 -0
- package/dist/esm/localizations/locales/fa-IR.mjs.map +1 -0
- package/dist/esm/localizations/locales/fa-IR.native.js +98 -0
- package/dist/esm/localizations/locales/fa-IR.native.js.map +1 -0
- package/dist/esm/localizations/locales/fr-FR.mjs +98 -0
- package/dist/esm/localizations/locales/fr-FR.mjs.map +1 -0
- package/dist/esm/localizations/locales/fr-FR.native.js +98 -0
- package/dist/esm/localizations/locales/fr-FR.native.js.map +1 -0
- package/dist/esm/localizations/locales/index.mjs +2 -0
- package/dist/esm/localizations/locales/index.mjs.map +1 -0
- package/dist/esm/localizations/locales/index.native.js +2 -0
- package/dist/esm/localizations/locales/index.native.js.map +1 -0
- package/dist/esm/localizations/locales/ja-JP.mjs +98 -0
- package/dist/esm/localizations/locales/ja-JP.mjs.map +1 -0
- package/dist/esm/localizations/locales/ja-JP.native.js +98 -0
- package/dist/esm/localizations/locales/ja-JP.native.js.map +1 -0
- package/dist/esm/localizations/locales/pt-BR.mjs +107 -0
- package/dist/esm/localizations/locales/pt-BR.mjs.map +1 -0
- package/dist/esm/localizations/locales/pt-BR.native.js +107 -0
- package/dist/esm/localizations/locales/pt-BR.native.js.map +1 -0
- package/dist/esm/localizations/locales/ru-RU.mjs +102 -0
- package/dist/esm/localizations/locales/ru-RU.mjs.map +1 -0
- package/dist/esm/localizations/locales/ru-RU.native.js +102 -0
- package/dist/esm/localizations/locales/ru-RU.native.js.map +1 -0
- package/dist/esm/localizations/locales/tr-TR.mjs +107 -0
- package/dist/esm/localizations/locales/tr-TR.mjs.map +1 -0
- package/dist/esm/localizations/locales/tr-TR.native.js +107 -0
- package/dist/esm/localizations/locales/tr-TR.native.js.map +1 -0
- package/dist/esm/localizations/locales/vi-VN.mjs +107 -0
- package/dist/esm/localizations/locales/vi-VN.mjs.map +1 -0
- package/dist/esm/localizations/locales/vi-VN.native.js +107 -0
- package/dist/esm/localizations/locales/vi-VN.native.js.map +1 -0
- package/dist/esm/localizations/locales/zh-CN.mjs +98 -0
- package/dist/esm/localizations/locales/zh-CN.mjs.map +1 -0
- package/dist/esm/localizations/locales/zh-CN.native.js +98 -0
- package/dist/esm/localizations/locales/zh-CN.native.js.map +1 -0
- package/dist/esm/registry.mjs +80 -0
- package/dist/esm/registry.mjs.map +1 -0
- package/dist/esm/registry.native.js +95 -0
- package/dist/esm/registry.native.js.map +1 -0
- package/dist/esm/routes.mjs +14 -0
- package/dist/esm/routes.mjs.map +1 -0
- package/dist/esm/routes.native.js +14 -0
- package/dist/esm/routes.native.js.map +1 -0
- package/dist/esm/styles/defaultTheme.mjs +81 -0
- package/dist/esm/styles/defaultTheme.mjs.map +1 -0
- package/dist/esm/styles/defaultTheme.native.js +81 -0
- package/dist/esm/styles/defaultTheme.native.js.map +1 -0
- package/dist/esm/styles/index.mjs +307 -0
- package/dist/esm/styles/index.mjs.map +1 -0
- package/dist/esm/styles/index.native.js +308 -0
- package/dist/esm/styles/index.native.js.map +1 -0
- package/dist/esm/styles/styled/index.mjs +4 -0
- package/dist/esm/styles/styled/index.mjs.map +1 -0
- package/dist/esm/styles/styled/index.native.js +4 -0
- package/dist/esm/styles/styled/index.native.js.map +1 -0
- package/dist/esm/styles/themes/base.mjs +140 -0
- package/dist/esm/styles/themes/base.mjs.map +1 -0
- package/dist/esm/styles/themes/base.native.js +140 -0
- package/dist/esm/styles/themes/base.native.js.map +1 -0
- package/dist/esm/styles/themes/index.mjs +20 -0
- package/dist/esm/styles/themes/index.mjs.map +1 -0
- package/dist/esm/styles/themes/index.native.js +20 -0
- package/dist/esm/styles/themes/index.native.js.map +1 -0
- package/dist/esm/styles/themes/midnight.mjs +75 -0
- package/dist/esm/styles/themes/midnight.mjs.map +1 -0
- package/dist/esm/styles/themes/midnight.native.js +75 -0
- package/dist/esm/styles/themes/midnight.native.js.map +1 -0
- package/dist/esm/styles/themes/minimal.mjs +95 -0
- package/dist/esm/styles/themes/minimal.mjs.map +1 -0
- package/dist/esm/styles/themes/minimal.native.js +95 -0
- package/dist/esm/styles/themes/minimal.native.js.map +1 -0
- package/dist/esm/styles/themes/nouns.mjs +80 -0
- package/dist/esm/styles/themes/nouns.mjs.map +1 -0
- package/dist/esm/styles/themes/nouns.native.js +80 -0
- package/dist/esm/styles/themes/nouns.native.js.map +1 -0
- package/dist/esm/styles/themes/retro.mjs +105 -0
- package/dist/esm/styles/themes/retro.mjs.map +1 -0
- package/dist/esm/styles/themes/retro.native.js +105 -0
- package/dist/esm/styles/themes/retro.native.js.map +1 -0
- package/dist/esm/styles/themes/rounded.mjs +105 -0
- package/dist/esm/styles/themes/rounded.mjs.map +1 -0
- package/dist/esm/styles/themes/rounded.native.js +105 -0
- package/dist/esm/styles/themes/rounded.native.js.map +1 -0
- package/dist/esm/styles/themes/soft.mjs +70 -0
- package/dist/esm/styles/themes/soft.mjs.map +1 -0
- package/dist/esm/styles/themes/soft.native.js +70 -0
- package/dist/esm/styles/themes/soft.native.js.map +1 -0
- package/dist/esm/styles/themes/web95.mjs +131 -0
- package/dist/esm/styles/themes/web95.mjs.map +1 -0
- package/dist/esm/styles/themes/web95.native.js +131 -0
- package/dist/esm/styles/themes/web95.native.js.map +1 -0
- package/dist/esm/styles/types.mjs +2 -0
- package/dist/esm/styles/types.mjs.map +1 -0
- package/dist/esm/styles/types.native.js +2 -0
- package/dist/esm/styles/types.native.js.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/dist/esm/utils/index.mjs +92 -0
- package/dist/esm/utils/index.mjs.map +1 -0
- package/dist/esm/utils/index.native.js +117 -0
- package/dist/esm/utils/index.native.js.map +1 -0
- package/dist/esm/utils/localstorage.mjs +44 -0
- package/dist/esm/utils/localstorage.mjs.map +1 -0
- package/dist/esm/utils/localstorage.native.js +46 -0
- package/dist/esm/utils/localstorage.native.js.map +1 -0
- package/dist/esm/utils/p3.mjs +27 -0
- package/dist/esm/utils/p3.mjs.map +1 -0
- package/dist/esm/utils/p3.native.js +27 -0
- package/dist/esm/utils/p3.native.js.map +1 -0
- package/dist/esm/utils/wallets.mjs +30 -0
- package/dist/esm/utils/wallets.mjs.map +1 -0
- package/dist/esm/utils/wallets.native.js +67 -0
- package/dist/esm/utils/wallets.native.js.map +1 -0
- package/package.json +82 -0
- package/src/appMeta.ts +13 -0
- package/src/assets/ScanIconWithLogos.tsx +160 -0
- package/src/assets/browsers.tsx +666 -0
- package/src/assets/icons.tsx +243 -0
- package/src/assets/logos.tsx +1087 -0
- package/src/assets/wallet.tsx +26 -0
- package/src/assets/wave.tsx +34 -0
- package/src/components/Common/Alert/index.tsx +14 -0
- package/src/components/Common/Alert/styles.ts +53 -0
- package/src/components/Common/Alert/types.ts +5 -0
- package/src/components/Common/BrowserIcon/index.tsx +34 -0
- package/src/components/Common/BrowserIcon/styles.ts +17 -0
- package/src/components/Common/BrowserIcon/types.ts +3 -0
- package/src/components/Common/Button/index.tsx +153 -0
- package/src/components/Common/Button/styles.ts +254 -0
- package/src/components/Common/Button/types.ts +16 -0
- package/src/components/Common/ContinueWithAaveButton/index.tsx +36 -0
- package/src/components/Common/ContinueWithAaveButton/styles.ts +74 -0
- package/src/components/Common/CopyToClipboard/CopyToClipboardIcon.tsx +77 -0
- package/src/components/Common/CopyToClipboard/index.tsx +90 -0
- package/src/components/Common/CustomQRCode/QRCode.tsx +156 -0
- package/src/components/Common/CustomQRCode/index.tsx +84 -0
- package/src/components/Common/CustomQRCode/styles.ts +154 -0
- package/src/components/Common/CustomQRCode/types.ts +9 -0
- package/src/components/Common/DynamicContainer/index.tsx +21 -0
- package/src/components/Common/FitText/index.tsx +32 -0
- package/src/components/Common/LazyImage/index.tsx +40 -0
- package/src/components/Common/Logo/index.tsx +30 -0
- package/src/components/Common/Logo/styles.ts +26 -0
- package/src/components/Common/Modal/index.tsx +558 -0
- package/src/components/Common/Modal/styles.ts +688 -0
- package/src/components/Common/Portal/index.tsx +35 -0
- package/src/components/Common/ScrollArea/index.tsx +103 -0
- package/src/components/Common/ScrollArea/styles.ts +166 -0
- package/src/components/Common/Spinner/index.tsx +38 -0
- package/src/components/Common/Spinner/styles.ts +19 -0
- package/src/components/Common/ThemedButton/index.tsx +62 -0
- package/src/components/Common/ThemedButton/styles.ts +113 -0
- package/src/components/Common/Tooltip/index.tsx +148 -0
- package/src/components/Common/Tooltip/styles.ts +80 -0
- package/src/components/Common/Tooltip/types.ts +10 -0
- package/src/components/ConnectKit.tsx +242 -0
- package/src/components/ConnectKitThemeProvider/ConnectKitThemeProvider.tsx +38 -0
- package/src/components/ConnectModal/index.tsx +109 -0
- package/src/constants/defaultTheme.ts +3 -0
- package/src/hooks/useFitText.tsx +171 -0
- package/src/hooks/useFocusTrap.tsx +71 -0
- package/src/hooks/useGoogleFont.tsx +44 -0
- package/src/hooks/useIsMobile.ts +16 -0
- package/src/hooks/useIsMounted.tsx +7 -0
- package/src/hooks/useLocalStorage.ts +28 -0
- package/src/hooks/useLocales.tsx +86 -0
- package/src/hooks/useLockBodyScroll.ts +60 -0
- package/src/hooks/useModal.ts +52 -0
- package/src/hooks/usePrevious.tsx +13 -0
- package/src/hooks/useWindowSize.ts +25 -0
- package/src/index.ts +76 -0
- package/src/localizations/index.tsx +71 -0
- package/src/localizations/locales/ar-AE.ts +120 -0
- package/src/localizations/locales/ca-AD.ts +121 -0
- package/src/localizations/locales/ee-EE.ts +119 -0
- package/src/localizations/locales/en-US.ts +122 -0
- package/src/localizations/locales/es-ES.ts +119 -0
- package/src/localizations/locales/fa-IR.ts +120 -0
- package/src/localizations/locales/fr-FR.ts +119 -0
- package/src/localizations/locales/index.ts +4 -0
- package/src/localizations/locales/ja-JP.ts +118 -0
- package/src/localizations/locales/pt-BR.ts +121 -0
- package/src/localizations/locales/ru-RU.ts +120 -0
- package/src/localizations/locales/tr-TR.ts +119 -0
- package/src/localizations/locales/vi-VN.ts +118 -0
- package/src/localizations/locales/zh-CN.ts +116 -0
- package/src/registry.tsx +174 -0
- package/src/routes.ts +15 -0
- package/src/styles/defaultTheme.ts +93 -0
- package/src/styles/index.ts +336 -0
- package/src/styles/styled/index.ts +13 -0
- package/src/styles/themes/base.ts +182 -0
- package/src/styles/themes/index.ts +10 -0
- package/src/styles/themes/midnight.ts +93 -0
- package/src/styles/themes/minimal.ts +118 -0
- package/src/styles/themes/nouns.ts +104 -0
- package/src/styles/themes/retro.ts +133 -0
- package/src/styles/themes/rounded.ts +137 -0
- package/src/styles/themes/soft.ts +89 -0
- package/src/styles/themes/web95.ts +165 -0
- package/src/styles/types.ts +84 -0
- package/src/types.ts +34 -0
- package/src/utils/index.ts +123 -0
- package/src/utils/localstorage.ts +63 -0
- package/src/utils/p3.ts +27 -0
- package/src/utils/wallets.ts +38 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
2
|
+
|
|
3
|
+
const LazyImage: React.FC<{
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
}> = ({ src, alt, width, height }) => {
|
|
9
|
+
const imageRef = useRef<any>(null);
|
|
10
|
+
const [loaded, setLoaded] = useState(true);
|
|
11
|
+
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (!(imageRef.current && imageRef.current.complete && imageRef.current.naturalHeight !== 0)) {
|
|
14
|
+
setLoaded(false);
|
|
15
|
+
}
|
|
16
|
+
}, [src]);
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div
|
|
20
|
+
style={{
|
|
21
|
+
width,
|
|
22
|
+
height,
|
|
23
|
+
background: "rgba(0,0,0,0.02)",
|
|
24
|
+
boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.02)",
|
|
25
|
+
}}
|
|
26
|
+
>
|
|
27
|
+
<img
|
|
28
|
+
ref={imageRef}
|
|
29
|
+
src={src}
|
|
30
|
+
alt={alt}
|
|
31
|
+
width={width}
|
|
32
|
+
height={height}
|
|
33
|
+
onLoad={() => setLoaded(true)}
|
|
34
|
+
style={{ transition: "opacity 0.2s ease", opacity: loaded ? 1 : 0 }}
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default LazyImage;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { LogoContainer, Image, Squircle } from "./styles";
|
|
4
|
+
|
|
5
|
+
const Logo: React.FC<{
|
|
6
|
+
src: React.ReactNode;
|
|
7
|
+
background?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
}> = ({ src, background, width, height }) => {
|
|
11
|
+
return (
|
|
12
|
+
<LogoContainer $width={width} $height={height}>
|
|
13
|
+
<Image>{src}</Image>
|
|
14
|
+
<Squircle
|
|
15
|
+
width="60"
|
|
16
|
+
height="60"
|
|
17
|
+
viewBox="0 0 60 60"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M0 25.6C0 16.6392 0 12.1587 1.7439 8.73615C3.27787 5.72556 5.72556 3.27787 8.73615 1.7439C12.1587 0 16.6392 0 25.6 0H34.4C43.3608 0 47.8413 0 51.2638 1.7439C54.2744 3.27787 56.7221 5.72556 58.2561 8.73615C60 12.1587 60 16.6392 60 25.6V34.4C60 43.3608 60 47.8413 58.2561 51.2638C56.7221 54.2744 54.2744 56.7221 51.2638 58.2561C47.8413 60 43.3608 60 34.4 60H25.6C16.6392 60 12.1587 60 8.73615 58.2561C5.72556 56.7221 3.27787 54.2744 1.7439 51.2638C0 47.8413 0 43.3608 0 34.4V25.6Z"
|
|
23
|
+
fill={background}
|
|
24
|
+
/>
|
|
25
|
+
</Squircle>
|
|
26
|
+
</LogoContainer>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default Logo;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import styled from "./../../../styles/styled";
|
|
2
|
+
|
|
3
|
+
export const LogoContainer = styled.div<{ $width?: number; $height?: number }>`
|
|
4
|
+
position: relative;
|
|
5
|
+
width: ${({ $width }) => $width + "px" || "100%"};
|
|
6
|
+
height: ${({ $height }) => $height + "px" || "100%"};
|
|
7
|
+
`;
|
|
8
|
+
export const Squircle = styled.svg`
|
|
9
|
+
z-index: 1;
|
|
10
|
+
position: relative;
|
|
11
|
+
display: block;
|
|
12
|
+
`;
|
|
13
|
+
export const Image = styled.div`
|
|
14
|
+
z-index: 2;
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0;
|
|
17
|
+
display: block;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
svg,
|
|
20
|
+
img {
|
|
21
|
+
display: block;
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
+
|
|
3
|
+
import { AnimatePresence, motion, Variants } from "framer-motion";
|
|
4
|
+
|
|
5
|
+
import { ResetContainer } from "../../../styles";
|
|
6
|
+
import Portal from "../Portal";
|
|
7
|
+
|
|
8
|
+
import { flattenChildren, isMobile } from "../../../utils";
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
Container,
|
|
12
|
+
BoxContainer,
|
|
13
|
+
ModalContainer,
|
|
14
|
+
PageContainer,
|
|
15
|
+
PageContents,
|
|
16
|
+
ControllerContainer,
|
|
17
|
+
InnerContainer,
|
|
18
|
+
BackgroundOverlay,
|
|
19
|
+
CloseButton,
|
|
20
|
+
BackButton,
|
|
21
|
+
InfoButton,
|
|
22
|
+
ModalHeading,
|
|
23
|
+
TextWithHr,
|
|
24
|
+
ErrorMessage,
|
|
25
|
+
DisclaimerBackground,
|
|
26
|
+
Disclaimer,
|
|
27
|
+
} from "./styles";
|
|
28
|
+
|
|
29
|
+
import { routes, useContext } from "../../ConnectKit";
|
|
30
|
+
import { ModalState, resolveHeading, useModalState, useScreenRegistry } from "../../../registry";
|
|
31
|
+
import useLockBodyScroll from "../../../hooks/useLockBodyScroll";
|
|
32
|
+
|
|
33
|
+
import { useTransition } from "react-transition-state";
|
|
34
|
+
import FocusTrap from "../../../hooks/useFocusTrap";
|
|
35
|
+
import usePrevious from "../../../hooks/usePrevious";
|
|
36
|
+
import { CustomTheme } from "../../../types";
|
|
37
|
+
import { useThemeContext } from "../../ConnectKitThemeProvider/ConnectKitThemeProvider";
|
|
38
|
+
import useLocales from "../../../hooks/useLocales";
|
|
39
|
+
import FitText from "../FitText";
|
|
40
|
+
|
|
41
|
+
const InfoIcon = ({ ...props }) => (
|
|
42
|
+
<svg
|
|
43
|
+
aria-hidden="true"
|
|
44
|
+
width="22"
|
|
45
|
+
height="22"
|
|
46
|
+
viewBox="0 0 22 22"
|
|
47
|
+
fill="none"
|
|
48
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
49
|
+
{...props}
|
|
50
|
+
>
|
|
51
|
+
<path
|
|
52
|
+
fillRule="evenodd"
|
|
53
|
+
clipRule="evenodd"
|
|
54
|
+
d="M20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11ZM22 11C22 17.0751 17.0751 22 11 22C4.92487 22 0 17.0751 0 11C0 4.92487 4.92487 0 11 0C17.0751 0 22 4.92487 22 11ZM11.6445 12.7051C11.6445 13.1348 11.3223 13.4678 10.7744 13.4678C10.2266 13.4678 9.92578 13.1885 9.92578 12.6191V12.4795C9.92578 11.4268 10.4951 10.8574 11.2686 10.3203C12.2031 9.67578 12.665 9.32129 12.665 8.59082C12.665 7.76367 12.0205 7.21582 11.043 7.21582C10.3232 7.21582 9.80762 7.57031 9.45312 8.16113C9.38282 8.24242 9.32286 8.32101 9.2667 8.39461C9.04826 8.68087 8.88747 8.8916 8.40039 8.8916C8.0459 8.8916 7.66992 8.62305 7.66992 8.15039C7.66992 7.96777 7.70215 7.7959 7.75586 7.61328C8.05664 6.625 9.27051 5.75488 11.1182 5.75488C12.9336 5.75488 14.5234 6.71094 14.5234 8.50488C14.5234 9.7832 13.7822 10.417 12.7402 11.1045C11.999 11.5986 11.6445 11.9746 11.6445 12.5762V12.7051ZM11.9131 15.5625C11.9131 16.1855 11.376 16.6797 10.7529 16.6797C10.1299 16.6797 9.59277 16.1748 9.59277 15.5625C9.59277 14.9395 10.1191 14.4453 10.7529 14.4453C11.3867 14.4453 11.9131 14.9287 11.9131 15.5625Z"
|
|
55
|
+
fill="currentColor"
|
|
56
|
+
/>
|
|
57
|
+
</svg>
|
|
58
|
+
);
|
|
59
|
+
const CloseIcon = ({ ...props }) => (
|
|
60
|
+
<motion.svg
|
|
61
|
+
width={14}
|
|
62
|
+
height={14}
|
|
63
|
+
viewBox="0 0 14 14"
|
|
64
|
+
fill="none"
|
|
65
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
66
|
+
{...props}
|
|
67
|
+
>
|
|
68
|
+
<path d="M1 13L13 1M1 1L13 13" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
|
|
69
|
+
</motion.svg>
|
|
70
|
+
);
|
|
71
|
+
const BackIcon = ({ ...props }) => (
|
|
72
|
+
<motion.svg
|
|
73
|
+
width={9}
|
|
74
|
+
height={16}
|
|
75
|
+
viewBox="0 0 9 16"
|
|
76
|
+
fill="none"
|
|
77
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
80
|
+
<path
|
|
81
|
+
d="M8 1L1 8L8 15"
|
|
82
|
+
stroke="currentColor"
|
|
83
|
+
strokeWidth="2"
|
|
84
|
+
strokeLinecap="round"
|
|
85
|
+
strokeLinejoin="round"
|
|
86
|
+
/>
|
|
87
|
+
</motion.svg>
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
const contentTransitionDuration = 0.22;
|
|
91
|
+
|
|
92
|
+
export const contentVariants: Variants = {
|
|
93
|
+
initial: {
|
|
94
|
+
//willChange: 'transform,opacity',
|
|
95
|
+
zIndex: 2,
|
|
96
|
+
opacity: 0,
|
|
97
|
+
},
|
|
98
|
+
animate: {
|
|
99
|
+
opacity: 1,
|
|
100
|
+
scale: 1,
|
|
101
|
+
transition: {
|
|
102
|
+
duration: contentTransitionDuration * 0.75,
|
|
103
|
+
delay: contentTransitionDuration * 0.25,
|
|
104
|
+
ease: [0.26, 0.08, 0.25, 1],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
exit: {
|
|
108
|
+
zIndex: 1,
|
|
109
|
+
opacity: 0,
|
|
110
|
+
pointerEvents: "none",
|
|
111
|
+
position: "absolute",
|
|
112
|
+
left: ["50%", "50%"],
|
|
113
|
+
x: ["-50%", "-50%"],
|
|
114
|
+
transition: {
|
|
115
|
+
duration: contentTransitionDuration,
|
|
116
|
+
ease: [0.26, 0.08, 0.25, 1],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
type ModalProps = {
|
|
122
|
+
open?: boolean;
|
|
123
|
+
pages: any;
|
|
124
|
+
pageId: string;
|
|
125
|
+
positionInside?: boolean;
|
|
126
|
+
inline?: boolean;
|
|
127
|
+
onClose?: () => void;
|
|
128
|
+
onBack?: () => void;
|
|
129
|
+
onInfo?: () => void;
|
|
130
|
+
|
|
131
|
+
demo?: {
|
|
132
|
+
theme: string;
|
|
133
|
+
mode?: string;
|
|
134
|
+
customTheme: CustomTheme;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
const Modal: React.FC<ModalProps> = ({
|
|
138
|
+
open,
|
|
139
|
+
pages,
|
|
140
|
+
pageId,
|
|
141
|
+
positionInside,
|
|
142
|
+
inline,
|
|
143
|
+
demo,
|
|
144
|
+
onClose,
|
|
145
|
+
onBack,
|
|
146
|
+
onInfo,
|
|
147
|
+
}) => {
|
|
148
|
+
const context = useContext();
|
|
149
|
+
const themeContext = useThemeContext();
|
|
150
|
+
const mobile = isMobile();
|
|
151
|
+
|
|
152
|
+
// The current screen's ScreenDef drives its heading + transition depth; the
|
|
153
|
+
// injected ModalState supplies signer state (connection / SIWE / active wallet)
|
|
154
|
+
// so the modal shell imports no wagmi.
|
|
155
|
+
const { screens } = useScreenRegistry();
|
|
156
|
+
const currentDef = screens.get(context.route);
|
|
157
|
+
const modalState = useModalState();
|
|
158
|
+
const isSignedIn = !!modalState.isSignedIn;
|
|
159
|
+
|
|
160
|
+
const locales = useLocales({
|
|
161
|
+
CONNECTORNAME: (modalState.walletName as string) ?? undefined,
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
const [state, setOpen] = useTransition({
|
|
165
|
+
timeout: mobile ? 160 : 160, // different animations, 10ms extra to avoid final-frame drops
|
|
166
|
+
preEnter: true,
|
|
167
|
+
mountOnEnter: true,
|
|
168
|
+
unmountOnExit: true,
|
|
169
|
+
});
|
|
170
|
+
const mounted = !(state === "exited" || state === "unmounted");
|
|
171
|
+
const rendered = state === "preEnter" || state !== "exiting";
|
|
172
|
+
const currentDepth = currentDef?.depth ?? 1;
|
|
173
|
+
const prevDepth = usePrevious(currentDepth, currentDepth);
|
|
174
|
+
if (!positionInside) useLockBodyScroll(mounted);
|
|
175
|
+
|
|
176
|
+
const prevPage = usePrevious(pageId, pageId);
|
|
177
|
+
|
|
178
|
+
useEffect(() => {
|
|
179
|
+
setOpen(open);
|
|
180
|
+
if (open) setInTransition(undefined);
|
|
181
|
+
}, [open]);
|
|
182
|
+
|
|
183
|
+
const [dimensions, setDimensions] = useState<{
|
|
184
|
+
width: string | undefined;
|
|
185
|
+
height: string | undefined;
|
|
186
|
+
}>({
|
|
187
|
+
width: undefined,
|
|
188
|
+
height: undefined,
|
|
189
|
+
});
|
|
190
|
+
const [inTransition, setInTransition] = useState<boolean | undefined>(undefined);
|
|
191
|
+
|
|
192
|
+
// Calculate new content bounds
|
|
193
|
+
const updateBounds = (node: any) => {
|
|
194
|
+
const bounds = {
|
|
195
|
+
width: node?.offsetWidth,
|
|
196
|
+
height: node?.offsetHeight,
|
|
197
|
+
};
|
|
198
|
+
setDimensions({
|
|
199
|
+
width: `${bounds?.width}px`,
|
|
200
|
+
height: `${bounds?.height}px`,
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
let blockTimeout: ReturnType<typeof setTimeout>;
|
|
205
|
+
const contentRef = useCallback(
|
|
206
|
+
(node: any) => {
|
|
207
|
+
if (!node) return;
|
|
208
|
+
ref.current = node;
|
|
209
|
+
|
|
210
|
+
// Avoid transition mixups
|
|
211
|
+
setInTransition(inTransition === undefined ? false : true);
|
|
212
|
+
clearTimeout(blockTimeout);
|
|
213
|
+
blockTimeout = setTimeout(() => setInTransition(false), 360);
|
|
214
|
+
|
|
215
|
+
// Calculate new content bounds
|
|
216
|
+
updateBounds(node);
|
|
217
|
+
},
|
|
218
|
+
[open, inTransition],
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
// Re-measure on signer-state changes (connection / chain / SIWE) to avoid clipping.
|
|
222
|
+
const ref = useRef<any>(null);
|
|
223
|
+
useEffect(() => {
|
|
224
|
+
if (ref.current) updateBounds(ref.current);
|
|
225
|
+
}, [modalState, mobile, context.options, context.resize]);
|
|
226
|
+
|
|
227
|
+
useEffect(() => {
|
|
228
|
+
if (!mounted) {
|
|
229
|
+
setDimensions({
|
|
230
|
+
width: undefined,
|
|
231
|
+
height: undefined,
|
|
232
|
+
});
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const listener = (e: KeyboardEvent) => {
|
|
237
|
+
if (e.key === "Escape" && onClose) onClose();
|
|
238
|
+
};
|
|
239
|
+
document.addEventListener("keydown", listener);
|
|
240
|
+
return () => {
|
|
241
|
+
document.removeEventListener("keydown", listener);
|
|
242
|
+
};
|
|
243
|
+
}, [mounted, onClose]);
|
|
244
|
+
|
|
245
|
+
const dimensionsCSS = {
|
|
246
|
+
"--height": dimensions.height,
|
|
247
|
+
"--width": dimensions.width,
|
|
248
|
+
} as React.CSSProperties;
|
|
249
|
+
|
|
250
|
+
function getHeading() {
|
|
251
|
+
if (!currentDef) return "";
|
|
252
|
+
// Each screen's heading function reads the injected signer state (web3 supplies
|
|
253
|
+
// walletName/useQrcode/isSignedIn); connectkit only adds its own locale strings.
|
|
254
|
+
const state: ModalState = { ...modalState, locales };
|
|
255
|
+
return resolveHeading(currentDef, state);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const Content = (
|
|
259
|
+
<ResetContainer
|
|
260
|
+
$useTheme={demo?.theme ?? themeContext.theme}
|
|
261
|
+
$useMode={demo?.mode ?? themeContext.mode}
|
|
262
|
+
$customTheme={demo?.customTheme ?? themeContext.customTheme}
|
|
263
|
+
>
|
|
264
|
+
<ModalContainer
|
|
265
|
+
role="dialog"
|
|
266
|
+
style={{
|
|
267
|
+
pointerEvents: rendered ? "auto" : "none",
|
|
268
|
+
position: positionInside ? "absolute" : undefined,
|
|
269
|
+
}}
|
|
270
|
+
>
|
|
271
|
+
{!inline && (
|
|
272
|
+
<BackgroundOverlay
|
|
273
|
+
$active={rendered}
|
|
274
|
+
onClick={onClose}
|
|
275
|
+
$blur={context.options?.overlayBlur}
|
|
276
|
+
/>
|
|
277
|
+
)}
|
|
278
|
+
<Container
|
|
279
|
+
style={dimensionsCSS}
|
|
280
|
+
initial={false}
|
|
281
|
+
// transition={{
|
|
282
|
+
// ease: [0.2555, 0.1111, 0.2555, 1.0001],
|
|
283
|
+
// duration: !positionInside && state !== 'entered' ? 0 : 0.24,
|
|
284
|
+
// }}
|
|
285
|
+
>
|
|
286
|
+
<div
|
|
287
|
+
style={{
|
|
288
|
+
pointerEvents: inTransition ? "all" : "none", // Block interaction while transitioning
|
|
289
|
+
position: "absolute",
|
|
290
|
+
top: 0,
|
|
291
|
+
bottom: 0,
|
|
292
|
+
left: "50%",
|
|
293
|
+
transform: "translateX(-50%)",
|
|
294
|
+
width: "var(--width)",
|
|
295
|
+
zIndex: 9,
|
|
296
|
+
transition: "width 200ms ease",
|
|
297
|
+
}}
|
|
298
|
+
/>
|
|
299
|
+
<BoxContainer className={`${rendered && "active"}`}>
|
|
300
|
+
<AnimatePresence initial={false}>
|
|
301
|
+
{context.options?.disclaimer && context.route === routes.CONNECTORS && (
|
|
302
|
+
<DisclaimerBackground
|
|
303
|
+
initial={{
|
|
304
|
+
opacity: 0,
|
|
305
|
+
}}
|
|
306
|
+
animate={{
|
|
307
|
+
opacity: 1,
|
|
308
|
+
}}
|
|
309
|
+
exit={{ opacity: 0 }}
|
|
310
|
+
transition={{
|
|
311
|
+
delay: 0,
|
|
312
|
+
duration: 0.2,
|
|
313
|
+
ease: [0.25, 0.1, 0.25, 1.0],
|
|
314
|
+
}}
|
|
315
|
+
>
|
|
316
|
+
<Disclaimer>
|
|
317
|
+
<div>{context.options?.disclaimer}</div>
|
|
318
|
+
</Disclaimer>
|
|
319
|
+
</DisclaimerBackground>
|
|
320
|
+
)}
|
|
321
|
+
</AnimatePresence>
|
|
322
|
+
<AnimatePresence initial={false}>
|
|
323
|
+
{context.errorMessage && (
|
|
324
|
+
<ErrorMessage
|
|
325
|
+
initial={{ y: "10%", x: "-50%" }}
|
|
326
|
+
animate={{ y: "-100%" }}
|
|
327
|
+
exit={{ y: "100%" }}
|
|
328
|
+
transition={{ duration: 0.2, ease: "easeInOut" }}
|
|
329
|
+
>
|
|
330
|
+
<span>{context.errorMessage}</span>
|
|
331
|
+
<div
|
|
332
|
+
onClick={() => context.displayError(null)}
|
|
333
|
+
style={{
|
|
334
|
+
position: "absolute",
|
|
335
|
+
right: 24,
|
|
336
|
+
top: 24,
|
|
337
|
+
cursor: "pointer",
|
|
338
|
+
}}
|
|
339
|
+
>
|
|
340
|
+
<CloseIcon />
|
|
341
|
+
</div>
|
|
342
|
+
</ErrorMessage>
|
|
343
|
+
)}
|
|
344
|
+
</AnimatePresence>
|
|
345
|
+
<ControllerContainer>
|
|
346
|
+
{onClose && (
|
|
347
|
+
<CloseButton
|
|
348
|
+
aria-label={flattenChildren(locales.close).toString()}
|
|
349
|
+
onClick={onClose}
|
|
350
|
+
>
|
|
351
|
+
<CloseIcon />
|
|
352
|
+
</CloseButton>
|
|
353
|
+
)}
|
|
354
|
+
<div
|
|
355
|
+
style={{
|
|
356
|
+
position: "absolute",
|
|
357
|
+
top: 23,
|
|
358
|
+
left: 20,
|
|
359
|
+
width: 32,
|
|
360
|
+
height: 32,
|
|
361
|
+
}}
|
|
362
|
+
>
|
|
363
|
+
<AnimatePresence>
|
|
364
|
+
{onBack ? (
|
|
365
|
+
<BackButton
|
|
366
|
+
disabled={inTransition}
|
|
367
|
+
aria-label={flattenChildren(locales.back).toString()}
|
|
368
|
+
key="backButton"
|
|
369
|
+
onClick={onBack}
|
|
370
|
+
initial={{ opacity: 0 }}
|
|
371
|
+
animate={{ opacity: 1 }}
|
|
372
|
+
exit={{ opacity: 0 }}
|
|
373
|
+
transition={{
|
|
374
|
+
duration: mobile ? 0 : 0.1,
|
|
375
|
+
delay: mobile ? 0.01 : 0,
|
|
376
|
+
}}
|
|
377
|
+
>
|
|
378
|
+
<BackIcon />
|
|
379
|
+
</BackButton>
|
|
380
|
+
) : currentDef?.headerAction ? (
|
|
381
|
+
// Signer plugins inject a header action (e.g. web3's SIWE
|
|
382
|
+
// button on profile) — connectkit names none of them.
|
|
383
|
+
<currentDef.headerAction mobile={mobile} inTransition={inTransition} />
|
|
384
|
+
) : (
|
|
385
|
+
onInfo &&
|
|
386
|
+
!context.options?.hideQuestionMarkCTA && (
|
|
387
|
+
<InfoButton
|
|
388
|
+
disabled={inTransition}
|
|
389
|
+
aria-label={flattenChildren(locales.moreInformation).toString()}
|
|
390
|
+
key="infoButton"
|
|
391
|
+
onClick={onInfo}
|
|
392
|
+
initial={{ opacity: 0 }}
|
|
393
|
+
animate={{ opacity: 1 }}
|
|
394
|
+
exit={{ opacity: 0 }}
|
|
395
|
+
transition={{
|
|
396
|
+
duration: mobile ? 0 : 0.1,
|
|
397
|
+
delay: mobile ? 0.01 : 0,
|
|
398
|
+
}}
|
|
399
|
+
>
|
|
400
|
+
<InfoIcon />
|
|
401
|
+
</InfoButton>
|
|
402
|
+
)
|
|
403
|
+
)}
|
|
404
|
+
</AnimatePresence>
|
|
405
|
+
</div>
|
|
406
|
+
</ControllerContainer>
|
|
407
|
+
|
|
408
|
+
<ModalHeading>
|
|
409
|
+
<AnimatePresence>
|
|
410
|
+
<motion.div
|
|
411
|
+
style={{
|
|
412
|
+
position: "absolute",
|
|
413
|
+
top: 0,
|
|
414
|
+
bottom: 0,
|
|
415
|
+
left: 52,
|
|
416
|
+
right: 52,
|
|
417
|
+
display: "flex",
|
|
418
|
+
//alignItems: 'center',
|
|
419
|
+
justifyContent: "center",
|
|
420
|
+
}}
|
|
421
|
+
key={`${context.route}-${isSignedIn ? "signedIn" : ""}`}
|
|
422
|
+
initial={{ opacity: 0 }}
|
|
423
|
+
animate={{ opacity: 1 }}
|
|
424
|
+
exit={{ opacity: 0 }}
|
|
425
|
+
transition={{
|
|
426
|
+
duration: mobile ? 0 : 0.17,
|
|
427
|
+
delay: mobile ? 0.01 : 0,
|
|
428
|
+
}}
|
|
429
|
+
>
|
|
430
|
+
<FitText>{getHeading()}</FitText>
|
|
431
|
+
</motion.div>
|
|
432
|
+
</AnimatePresence>
|
|
433
|
+
</ModalHeading>
|
|
434
|
+
|
|
435
|
+
<InnerContainer>
|
|
436
|
+
{Object.keys(pages).map((key) => {
|
|
437
|
+
const page = pages[key];
|
|
438
|
+
return (
|
|
439
|
+
// TODO: We may need to use the follow check avoid unnecessary computations, but this causes a bug where the content flashes
|
|
440
|
+
// (key === pageId || key === prevPage) && (
|
|
441
|
+
<Page
|
|
442
|
+
key={key}
|
|
443
|
+
open={key === pageId}
|
|
444
|
+
initial={!positionInside && state !== "entered"}
|
|
445
|
+
enterAnim={
|
|
446
|
+
key === pageId
|
|
447
|
+
? currentDepth > prevDepth
|
|
448
|
+
? "active-scale-up"
|
|
449
|
+
: "active"
|
|
450
|
+
: ""
|
|
451
|
+
}
|
|
452
|
+
exitAnim={
|
|
453
|
+
key !== pageId ? (currentDepth < prevDepth ? "exit-scale-down" : "exit") : ""
|
|
454
|
+
}
|
|
455
|
+
>
|
|
456
|
+
<PageContents
|
|
457
|
+
key={`inner-${key}`}
|
|
458
|
+
ref={contentRef}
|
|
459
|
+
style={{
|
|
460
|
+
pointerEvents: key === pageId && rendered ? "auto" : "none",
|
|
461
|
+
}}
|
|
462
|
+
>
|
|
463
|
+
{page}
|
|
464
|
+
</PageContents>
|
|
465
|
+
</Page>
|
|
466
|
+
);
|
|
467
|
+
})}
|
|
468
|
+
</InnerContainer>
|
|
469
|
+
</BoxContainer>
|
|
470
|
+
</Container>
|
|
471
|
+
</ModalContainer>
|
|
472
|
+
</ResetContainer>
|
|
473
|
+
);
|
|
474
|
+
return (
|
|
475
|
+
<>
|
|
476
|
+
{mounted && (
|
|
477
|
+
<>
|
|
478
|
+
{positionInside ? (
|
|
479
|
+
Content
|
|
480
|
+
) : (
|
|
481
|
+
<>
|
|
482
|
+
{
|
|
483
|
+
<Portal>
|
|
484
|
+
<FocusTrap>{Content}</FocusTrap>
|
|
485
|
+
</Portal>
|
|
486
|
+
}
|
|
487
|
+
</>
|
|
488
|
+
)}
|
|
489
|
+
</>
|
|
490
|
+
)}
|
|
491
|
+
</>
|
|
492
|
+
);
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
type PageProps = {
|
|
496
|
+
children?: React.ReactNode;
|
|
497
|
+
open?: boolean;
|
|
498
|
+
initial: boolean;
|
|
499
|
+
prevDepth?: number;
|
|
500
|
+
currentDepth?: number;
|
|
501
|
+
enterAnim?: string;
|
|
502
|
+
exitAnim?: string;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
const Page: React.FC<PageProps> = ({
|
|
506
|
+
children,
|
|
507
|
+
open,
|
|
508
|
+
initial,
|
|
509
|
+
prevDepth,
|
|
510
|
+
currentDepth,
|
|
511
|
+
enterAnim,
|
|
512
|
+
exitAnim,
|
|
513
|
+
}) => {
|
|
514
|
+
const [state, setOpen] = useTransition({
|
|
515
|
+
timeout: 400,
|
|
516
|
+
preEnter: true,
|
|
517
|
+
initialEntered: open,
|
|
518
|
+
mountOnEnter: true,
|
|
519
|
+
unmountOnExit: true,
|
|
520
|
+
});
|
|
521
|
+
const mounted = !(state === "exited" || state === "unmounted");
|
|
522
|
+
const rendered = state === "preEnter" || state !== "exiting";
|
|
523
|
+
|
|
524
|
+
useEffect(() => {
|
|
525
|
+
setOpen(open);
|
|
526
|
+
}, [open]);
|
|
527
|
+
|
|
528
|
+
if (!mounted) return null;
|
|
529
|
+
|
|
530
|
+
return (
|
|
531
|
+
<PageContainer
|
|
532
|
+
className={`${rendered ? enterAnim : exitAnim}`}
|
|
533
|
+
style={{
|
|
534
|
+
animationDuration: initial ? "0ms" : undefined,
|
|
535
|
+
animationDelay: initial ? "0ms" : undefined,
|
|
536
|
+
}}
|
|
537
|
+
>
|
|
538
|
+
{children}
|
|
539
|
+
</PageContainer>
|
|
540
|
+
);
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
export const OrDivider = ({
|
|
544
|
+
children,
|
|
545
|
+
hideHr,
|
|
546
|
+
}: {
|
|
547
|
+
children?: React.ReactNode;
|
|
548
|
+
hideHr?: boolean;
|
|
549
|
+
}) => {
|
|
550
|
+
const locales = useLocales();
|
|
551
|
+
return (
|
|
552
|
+
<TextWithHr $disableHr={hideHr}>
|
|
553
|
+
<span>{children ?? locales.or}</span>
|
|
554
|
+
</TextWithHr>
|
|
555
|
+
);
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
export default Modal;
|