@web3auth/modal 11.0.0-beta.0 → 11.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/lib.cjs/packages/modal/src/account-linking/index.js +12 -0
  2. package/dist/lib.cjs/packages/modal/src/account-linking/react.js +22 -0
  3. package/dist/lib.cjs/packages/modal/src/account-linking/vue.js +22 -0
  4. package/dist/lib.cjs/packages/modal/src/config.js +1 -1
  5. package/dist/lib.cjs/packages/modal/src/modalManager.js +446 -26
  6. package/dist/lib.cjs/packages/modal/src/react/index.js +7 -3
  7. package/dist/lib.cjs/packages/modal/src/react/wagmi/provider.js +27 -12
  8. package/dist/lib.cjs/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +13 -13
  9. package/dist/lib.cjs/packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.js +4 -4
  10. package/dist/lib.cjs/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +10 -10
  11. package/dist/lib.cjs/packages/modal/src/ui/components/Footer/Footer.js +7 -7
  12. package/dist/lib.cjs/packages/modal/src/ui/components/Image/Image.js +4 -4
  13. package/dist/lib.cjs/packages/modal/src/ui/components/Loader/Loader.js +28 -28
  14. package/dist/lib.cjs/packages/modal/src/ui/components/LoginHint/LoginHint.js +3 -3
  15. package/dist/lib.cjs/packages/modal/src/ui/components/Modal/Modal.js +19 -19
  16. package/dist/lib.cjs/packages/modal/src/ui/components/Otp/Otp.js +10 -10
  17. package/dist/lib.cjs/packages/modal/src/ui/components/PulseLoader/PulseLoader.js +4 -4
  18. package/dist/lib.cjs/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +21 -21
  19. package/dist/lib.cjs/packages/modal/src/ui/components/SpinnerLoader/SpinnerLoader.js +1 -1
  20. package/dist/lib.cjs/packages/modal/src/ui/components/Toast/Toast.js +11 -11
  21. package/dist/lib.cjs/packages/modal/src/ui/containers/AccountLinking/AccountLinking.js +109 -0
  22. package/dist/lib.cjs/packages/modal/src/ui/containers/ConnectWallet/ConnectWallet.js +14 -3
  23. package/dist/lib.cjs/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +7 -7
  24. package/dist/lib.cjs/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js +9 -9
  25. package/dist/lib.cjs/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +9 -8
  26. package/dist/lib.cjs/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletList/ConnectWalletList.js +19 -19
  27. package/dist/lib.cjs/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +8 -8
  28. package/dist/lib.cjs/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.js +5 -5
  29. package/dist/lib.cjs/packages/modal/src/ui/containers/Embed/Embed.js +11 -11
  30. package/dist/lib.cjs/packages/modal/src/ui/containers/Login/Login.js +45 -41
  31. package/dist/lib.cjs/packages/modal/src/ui/containers/Login/LoginOtp/LoginOtp.js +11 -11
  32. package/dist/lib.cjs/packages/modal/src/ui/containers/Login/LoginPasswordLess/LoginPasswordLess.js +13 -13
  33. package/dist/lib.cjs/packages/modal/src/ui/containers/Root/Root.js +24 -9
  34. package/dist/lib.cjs/packages/modal/src/ui/containers/Root/RootBodySheets/RootBodySheets.js +16 -16
  35. package/dist/lib.cjs/packages/modal/src/ui/containers/Widget/Widget.js +6 -2
  36. package/dist/lib.cjs/packages/modal/src/ui/context/ModalStateContext.js +1 -0
  37. package/dist/lib.cjs/packages/modal/src/ui/css/index.css.js +1 -1
  38. package/dist/lib.cjs/packages/modal/src/ui/i18n/dutch.json.js +14 -0
  39. package/dist/lib.cjs/packages/modal/src/ui/i18n/english.json.js +14 -0
  40. package/dist/lib.cjs/packages/modal/src/ui/i18n/french.json.js +14 -0
  41. package/dist/lib.cjs/packages/modal/src/ui/i18n/german.json.js +14 -0
  42. package/dist/lib.cjs/packages/modal/src/ui/i18n/japanese.json.js +26 -12
  43. package/dist/lib.cjs/packages/modal/src/ui/i18n/korean.json.js +14 -0
  44. package/dist/lib.cjs/packages/modal/src/ui/i18n/mandarin.json.js +14 -0
  45. package/dist/lib.cjs/packages/modal/src/ui/i18n/portuguese.json.js +14 -0
  46. package/dist/lib.cjs/packages/modal/src/ui/i18n/spanish.json.js +14 -0
  47. package/dist/lib.cjs/packages/modal/src/ui/i18n/turkish.json.js +14 -0
  48. package/dist/lib.cjs/packages/modal/src/ui/interfaces.js +26 -0
  49. package/dist/lib.cjs/packages/modal/src/ui/loginModal.js +113 -4
  50. package/dist/lib.cjs/packages/modal/src/vue/index.js +7 -3
  51. package/dist/lib.cjs/packages/modal/src/vue/wagmi/provider.js +27 -14
  52. package/dist/lib.cjs/types/account-linking/index.d.ts +1 -0
  53. package/dist/lib.cjs/types/account-linking/react.d.ts +2 -0
  54. package/dist/lib.cjs/types/account-linking/vue.d.ts +2 -0
  55. package/dist/lib.cjs/types/modalManager.d.ts +40 -2
  56. package/dist/lib.cjs/types/react/hooks/index.d.ts +1 -0
  57. package/dist/lib.cjs/types/react/hooks/useWallets.d.ts +2 -0
  58. package/dist/lib.cjs/types/ui/containers/AccountLinking/AccountLinking.d.ts +6 -0
  59. package/dist/lib.cjs/types/ui/containers/AccountLinking/index.d.ts +1 -0
  60. package/dist/lib.cjs/types/ui/containers/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.type.d.ts +1 -0
  61. package/dist/lib.cjs/types/ui/containers/Root/Root.d.ts +1 -1
  62. package/dist/lib.cjs/types/ui/interfaces.d.ts +43 -8
  63. package/dist/lib.cjs/types/ui/loginModal.d.ts +27 -2
  64. package/dist/lib.cjs/types/ui/utils.d.ts +1 -1
  65. package/dist/lib.cjs/types/vue/composables/index.d.ts +1 -0
  66. package/dist/lib.cjs/types/vue/composables/useWallets.d.ts +2 -0
  67. package/dist/lib.esm/packages/modal/src/account-linking/index.js +1 -0
  68. package/dist/lib.esm/packages/modal/src/account-linking/react.js +1 -0
  69. package/dist/lib.esm/packages/modal/src/account-linking/vue.js +1 -0
  70. package/dist/lib.esm/packages/modal/src/config.js +1 -1
  71. package/dist/lib.esm/packages/modal/src/modalManager.js +451 -28
  72. package/dist/lib.esm/packages/modal/src/react/index.js +1 -1
  73. package/dist/lib.esm/packages/modal/src/react/wagmi/provider.js +28 -13
  74. package/dist/lib.esm/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +13 -13
  75. package/dist/lib.esm/packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.js +4 -4
  76. package/dist/lib.esm/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +10 -10
  77. package/dist/lib.esm/packages/modal/src/ui/components/Footer/Footer.js +7 -7
  78. package/dist/lib.esm/packages/modal/src/ui/components/Image/Image.js +4 -4
  79. package/dist/lib.esm/packages/modal/src/ui/components/Loader/Loader.js +28 -28
  80. package/dist/lib.esm/packages/modal/src/ui/components/LoginHint/LoginHint.js +3 -3
  81. package/dist/lib.esm/packages/modal/src/ui/components/Modal/Modal.js +19 -19
  82. package/dist/lib.esm/packages/modal/src/ui/components/Otp/Otp.js +10 -10
  83. package/dist/lib.esm/packages/modal/src/ui/components/PulseLoader/PulseLoader.js +4 -4
  84. package/dist/lib.esm/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +21 -21
  85. package/dist/lib.esm/packages/modal/src/ui/components/SpinnerLoader/SpinnerLoader.js +1 -1
  86. package/dist/lib.esm/packages/modal/src/ui/components/Toast/Toast.js +11 -11
  87. package/dist/lib.esm/packages/modal/src/ui/containers/AccountLinking/AccountLinking.js +107 -0
  88. package/dist/lib.esm/packages/modal/src/ui/containers/ConnectWallet/ConnectWallet.js +14 -3
  89. package/dist/lib.esm/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +7 -7
  90. package/dist/lib.esm/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js +9 -9
  91. package/dist/lib.esm/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +9 -8
  92. package/dist/lib.esm/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletList/ConnectWalletList.js +19 -19
  93. package/dist/lib.esm/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +8 -8
  94. package/dist/lib.esm/packages/modal/src/ui/containers/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.js +5 -5
  95. package/dist/lib.esm/packages/modal/src/ui/containers/Embed/Embed.js +11 -11
  96. package/dist/lib.esm/packages/modal/src/ui/containers/Login/Login.js +46 -42
  97. package/dist/lib.esm/packages/modal/src/ui/containers/Login/LoginOtp/LoginOtp.js +11 -11
  98. package/dist/lib.esm/packages/modal/src/ui/containers/Login/LoginPasswordLess/LoginPasswordLess.js +13 -13
  99. package/dist/lib.esm/packages/modal/src/ui/containers/Root/Root.js +24 -9
  100. package/dist/lib.esm/packages/modal/src/ui/containers/Root/RootBodySheets/RootBodySheets.js +16 -16
  101. package/dist/lib.esm/packages/modal/src/ui/containers/Widget/Widget.js +6 -2
  102. package/dist/lib.esm/packages/modal/src/ui/context/ModalStateContext.js +2 -1
  103. package/dist/lib.esm/packages/modal/src/ui/css/index.css.js +1 -1
  104. package/dist/lib.esm/packages/modal/src/ui/i18n/dutch.json.js +14 -0
  105. package/dist/lib.esm/packages/modal/src/ui/i18n/english.json.js +14 -0
  106. package/dist/lib.esm/packages/modal/src/ui/i18n/french.json.js +14 -0
  107. package/dist/lib.esm/packages/modal/src/ui/i18n/german.json.js +14 -0
  108. package/dist/lib.esm/packages/modal/src/ui/i18n/japanese.json.js +26 -12
  109. package/dist/lib.esm/packages/modal/src/ui/i18n/korean.json.js +14 -0
  110. package/dist/lib.esm/packages/modal/src/ui/i18n/mandarin.json.js +14 -0
  111. package/dist/lib.esm/packages/modal/src/ui/i18n/portuguese.json.js +14 -0
  112. package/dist/lib.esm/packages/modal/src/ui/i18n/spanish.json.js +14 -0
  113. package/dist/lib.esm/packages/modal/src/ui/i18n/turkish.json.js +14 -0
  114. package/dist/lib.esm/packages/modal/src/ui/interfaces.js +24 -1
  115. package/dist/lib.esm/packages/modal/src/ui/loginModal.js +115 -6
  116. package/dist/lib.esm/packages/modal/src/vue/index.js +1 -1
  117. package/dist/lib.esm/packages/modal/src/vue/wagmi/provider.js +28 -15
  118. package/package.json +42 -19
@@ -133,16 +133,16 @@ const OtpInput = /*#__PURE__*/react.forwardRef(({
133
133
  (_inputRefs$current7 = inputRefs.current) === null || _inputRefs$current7 === void 0 || _inputRefs$current7[0].focus();
134
134
  }
135
135
  }, [autoFocus]);
136
- const helperTextClass = utils.cn("w3a--text-xs w3a--font-normal w3a--text-app-gray-500 dark:w3a--text-app-white w3a--mt-2", {
137
- "w3a--text-app-red-500 dark:w3a--text-app-red-400": error,
138
- "w3a--text-app-green-500 dark:w3a--text-app-green-400": success
136
+ const helperTextClass = utils.cn("wta:text-xs wta:font-normal wta:text-app-gray-500 wta:dark:text-app-white wta:mt-2", {
137
+ "wta:text-app-red-500 wta:dark:text-app-red-400": error,
138
+ "wta:text-app-green-500 wta:dark:text-app-green-400": success
139
139
  }, classes === null || classes === void 0 ? void 0 : classes.helperText);
140
140
  const inputKey = new Date().getFullYear();
141
141
  return jsxRuntime.jsxs("div", {
142
- className: utils.cn("w3a--flex w3a--flex-col w3a--items-center", classes === null || classes === void 0 ? void 0 : classes.root),
142
+ className: utils.cn("wta:flex wta:flex-col wta:items-center", classes === null || classes === void 0 ? void 0 : classes.root),
143
143
  ref: ref,
144
144
  children: [jsxRuntime.jsx("form", {
145
- className: utils.cn("w3a--flex w3a--space-x-2", classes === null || classes === void 0 ? void 0 : classes.inputContainer),
145
+ className: utils.cn("wta:flex wta:space-x-2", classes === null || classes === void 0 ? void 0 : classes.inputContainer),
146
146
  children: otpArray.map((digit, index) => {
147
147
  var _classes$success, _classes$error, _classes$disabled;
148
148
  return jsxRuntime.jsx("input", {
@@ -155,7 +155,7 @@ const OtpInput = /*#__PURE__*/react.forwardRef(({
155
155
  onInput: e => handleInputChange(e, index),
156
156
  onKeyUp: e => handleKeyDown(e, index),
157
157
  onPaste: handlePaste,
158
- className: utils.cn("w3a--w-12 w3a--h-[42px] w3a--rounded-full w3a--border w3a--text-center w3a--text-xl w3a--focus:outline-none w3a--active:outline-none w3a--focus:border-app-primary-600 dark:w3a--focus:border-app-primary-500 w3a--border-app-gray-300 dark:w3a--border-app-gray-500 w3a--bg-app-gray-50 dark:w3a--bg-app-gray-700 w3a--text-app-gray-900 dark:w3a--text-app-white", success && ((_classes$success = classes === null || classes === void 0 ? void 0 : classes.success) !== null && _classes$success !== void 0 ? _classes$success : "w3a--border-app-green-400 dark:w3a--border-app-green-500 w3a--focus:w3a--border-app-green-400 dark:w3a--focus:w3a--border-app-green-500"), error && ((_classes$error = classes === null || classes === void 0 ? void 0 : classes.error) !== null && _classes$error !== void 0 ? _classes$error : "w3a--border-app-red-600 dark:w3a--border-app-red-500 w3a--focus:w3a--border-app-red-600 dark:w3a--focus:w3a--border-app-red-500"), disabled && ((_classes$disabled = classes === null || classes === void 0 ? void 0 : classes.disabled) !== null && _classes$disabled !== void 0 ? _classes$disabled : "w3a--border-app-gray-200 w3a--bg-app-gray-200 dark:w3a--border-app-gray-700 w3a--focus:w3a--border-app-gray-200 dark:w3a--focus:w3a--border-app-gray-700 w3a--cursor-not-allowed"), classes === null || classes === void 0 ? void 0 : classes.input),
158
+ className: utils.cn("wta:w-12 wta:h-[42px] wta:rounded-full wta:border wta:text-center wta:text-xl wta:focus:outline-none wta:active:outline-none wta:focus:border-app-primary-600 wta:dark:focus:border-app-primary-500 wta:border-app-gray-300 wta:dark:border-app-gray-500 wta:bg-app-gray-50 wta:dark:bg-app-gray-700 wta:text-app-gray-900 wta:dark:text-app-white", success && ((_classes$success = classes === null || classes === void 0 ? void 0 : classes.success) !== null && _classes$success !== void 0 ? _classes$success : "wta:border-app-green-400 wta:dark:border-app-green-500 wta:focus:border-app-green-400 wta:dark:focus:border-app-green-500"), error && ((_classes$error = classes === null || classes === void 0 ? void 0 : classes.error) !== null && _classes$error !== void 0 ? _classes$error : "wta:border-app-red-600 wta:dark:border-app-red-500 wta:focus:border-app-red-600 wta:dark:focus:border-app-red-500"), disabled && ((_classes$disabled = classes === null || classes === void 0 ? void 0 : classes.disabled) !== null && _classes$disabled !== void 0 ? _classes$disabled : "wta:border-app-gray-200 wta:bg-app-gray-200 wta:dark:border-app-gray-700 wta:focus:border-app-gray-200 wta:dark:focus:border-app-gray-700 wta:cursor-not-allowed"), classes === null || classes === void 0 ? void 0 : classes.input),
159
159
  ref: el => {
160
160
  inputRefs.current[index] = el;
161
161
  },
@@ -166,18 +166,18 @@ const OtpInput = /*#__PURE__*/react.forwardRef(({
166
166
  className: helperTextClass,
167
167
  children: helperText
168
168
  }), loading && jsxRuntime.jsx("div", {
169
- className: "w3a--mt-3",
169
+ className: "wta:mt-3",
170
170
  children: jsxRuntime.jsx(PulseLoader, {})
171
171
  }), showCta && !loading && jsxRuntime.jsx("div", {
172
- className: utils.cn("w3a--flex w3a--items-center w3a--mt-3", classes === null || classes === void 0 ? void 0 : classes.ctaContainer),
172
+ className: utils.cn("wta:flex wta:items-center wta:mt-3", classes === null || classes === void 0 ? void 0 : classes.ctaContainer),
173
173
  children: timer > 0 && showTimer ? jsxRuntime.jsx("span", {
174
- className: utils.cn("w3a--text-xs w3a--text-app-gray-500 dark:w3a--text-app-gray-400", classes === null || classes === void 0 ? void 0 : classes.timerText),
174
+ className: utils.cn("wta:text-xs wta:text-app-gray-500 wta:dark:text-app-gray-400", classes === null || classes === void 0 ? void 0 : classes.timerText),
175
175
  children: t("modal.resendTimer", {
176
176
  timer: timer
177
177
  })
178
178
  }) : jsxRuntime.jsx("button", {
179
179
  type: "button",
180
- className: utils.cn("w3a--text-xs w3a--p-0 w3a--text-app-primary-600 dark:w3a--text-app-primary-500", classes === null || classes === void 0 ? void 0 : classes.resendBtnText),
180
+ className: utils.cn("wta:text-xs wta:p-0 wta:text-app-primary-600 wta:dark:text-app-primary-500", classes === null || classes === void 0 ? void 0 : classes.resendBtnText),
181
181
  onClick: handleResendClick,
182
182
  disabled: timer > 0 && showTimer,
183
183
  children: resendBtnText || t("modal.resendCode")
@@ -4,13 +4,13 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
 
5
5
  const PulseLoader = () => {
6
6
  return jsxRuntime.jsxs("div", {
7
- className: "w3a--flex w3a--items-center w3a--justify-center w3a--gap-x-2",
7
+ className: "wta:flex wta:items-center wta:justify-center wta:gap-x-2",
8
8
  children: [jsxRuntime.jsx("div", {
9
- className: "w3a--size-3 w3a--animate-pulse w3a--rounded-full w3a--bg-app-gray-500 dark:w3a--bg-app-gray-200"
9
+ className: "wta:size-3 wta:animate-pulse wta:rounded-full wta:bg-app-gray-500 wta:dark:bg-app-gray-200"
10
10
  }), jsxRuntime.jsx("div", {
11
- className: "w3a--size-3 w3a--animate-pulse w3a--rounded-full w3a--bg-app-gray-400 dark:w3a--bg-app-gray-400"
11
+ className: "wta:size-3 wta:animate-pulse wta:rounded-full wta:bg-app-gray-400 wta:dark:bg-app-gray-400"
12
12
  }), jsxRuntime.jsx("div", {
13
- className: "w3a--size-3 w3a--animate-pulse w3a--rounded-full w3a--bg-app-gray-200 dark:w3a--bg-app-gray-600"
13
+ className: "wta:size-3 wta:animate-pulse wta:rounded-full wta:bg-app-gray-200 wta:dark:bg-app-gray-600"
14
14
  })]
15
15
  });
16
16
  };
@@ -15,12 +15,12 @@ function getProviderIcon(method, isDark, extension) {
15
15
  id: "active-login-img",
16
16
  src: `https://images.web3auth.io/${hoverId}${extension}`,
17
17
  alt: "active-login-img",
18
- className: "w3a--hidden w3a--size-5 w3a--object-contain group-hover:w3a--block"
18
+ className: "wta:hidden wta:size-5 wta:object-contain wta:group-hover:block"
19
19
  }), jsxRuntime.jsx("img", {
20
20
  id: "login-img",
21
21
  src: `https://images.web3auth.io/${imageId}${extension}`,
22
22
  alt: "login-img",
23
- className: "w3a--block w3a--size-5 w3a--object-contain group-hover:w3a--hidden"
23
+ className: "wta:block wta:size-5 wta:object-contain wta:group-hover:hidden"
24
24
  })]
25
25
  });
26
26
  }
@@ -37,20 +37,20 @@ function SocialLoginList(props) {
37
37
  } = props;
38
38
  const getGridRowFromVisibleLogin = () => {
39
39
  if (visibleRow.length === 1) {
40
- return "w3a--grid-cols-1";
40
+ return "wta:grid-cols-1";
41
41
  } else if (visibleRow.length === 2) {
42
- return "w3a--grid-cols-2";
42
+ return "wta:grid-cols-2";
43
43
  } else if (visibleRow.length === 3) {
44
- return "w3a--grid-cols-3";
44
+ return "wta:grid-cols-3";
45
45
  } else {
46
- return "w3a--grid-cols-4";
46
+ return "wta:grid-cols-4";
47
47
  }
48
48
  };
49
49
  if ((visibleRow.length !== 0 || mainOptionsRow.length !== 0) && (otherRow === null || otherRow === void 0 ? void 0 : otherRow.length) === 0) {
50
50
  return jsxRuntime.jsxs("div", {
51
- className: "w3a--flex w3a--w-full w3a--flex-col w3a--items-center w3a--justify-center w3a--gap-y-2",
51
+ className: "wta:flex wta:w-full wta:flex-col wta:items-center wta:justify-center wta:gap-y-2",
52
52
  children: [jsxRuntime.jsx("div", {
53
- className: "w3a--grid w3a--w-full w3a--gap-y-2",
53
+ className: "wta:grid wta:w-full wta:gap-y-2",
54
54
  children: mainOptionsRow.map(row => jsxRuntime.jsx(Button, {
55
55
  type: Button_type.BUTTON_TYPE.SOCIAL,
56
56
  props: {
@@ -59,7 +59,7 @@ function SocialLoginList(props) {
59
59
  method: row.method,
60
60
  isDark,
61
61
  isPrimaryBtn: false,
62
- btnStyle: "w3a--flex w3a--items-center !w3a--justify-center w3a--w-full w3a--h-11 w3a--group",
62
+ btnStyle: "wta:flex wta:items-center wta:justify-center! wta:w-full wta:h-11 wta:group",
63
63
  children: jsxRuntime.jsx(jsxRuntime.Fragment, {
64
64
  children: getProviderIcon(row.method, isDark, ".svg")
65
65
  }),
@@ -70,7 +70,7 @@ function SocialLoginList(props) {
70
70
  }
71
71
  }, row.method))
72
72
  }), jsxRuntime.jsxs("div", {
73
- className: utils.cn("w3a--grid w3a--w-full w3a--gap-x-2", getGridRowFromVisibleLogin()),
73
+ className: utils.cn("wta:grid wta:w-full wta:gap-x-2", getGridRowFromVisibleLogin()),
74
74
  children: [visibleRow.filter((_, index) => visibleRow.length === 4 ? index <= 3 : index < 3).map(row => jsxRuntime.jsx(LoginHint, {
75
75
  content: "Last Login",
76
76
  isDark: isDark,
@@ -82,7 +82,7 @@ function SocialLoginList(props) {
82
82
  method: row.method,
83
83
  isDark,
84
84
  isPrimaryBtn: false,
85
- btnStyle: "w3a--flex w3a--items-center !w3a--justify-center w3a--w-full w3a--h-11 w3a--group",
85
+ btnStyle: "wta:flex wta:items-center wta:justify-center! wta:w-full wta:h-11 wta:group",
86
86
  children: jsxRuntime.jsx(jsxRuntime.Fragment, {
87
87
  children: getProviderIcon(row.method, isDark, ".svg")
88
88
  }),
@@ -98,11 +98,11 @@ function SocialLoginList(props) {
98
98
  isDark,
99
99
  showIcon: false,
100
100
  onClick: handleExpandSocialLogins,
101
- btnStyle: "w3a--flex w3a--items-center !w3a--justify-center w3a--w-full w3a--h-11",
101
+ btnStyle: "wta:flex wta:items-center wta:justify-center! wta:w-full wta:h-11",
102
102
  children: jsxRuntime.jsx("img", {
103
103
  src: utils.getIcons(isDark ? "dots-dark-horizontal" : "dots-light-horizontal"),
104
104
  alt: "Logo",
105
- className: "w3a--object-contain"
105
+ className: "wta:object-contain"
106
106
  }),
107
107
  buttonRadius
108
108
  }
@@ -111,20 +111,20 @@ function SocialLoginList(props) {
111
111
  });
112
112
  }
113
113
  return jsxRuntime.jsxs("div", {
114
- className: "w3a--flex w3a--w-full w3a--flex-col w3a--items-start w3a--justify-start w3a--gap-y-4",
114
+ className: "wta:flex wta:w-full wta:flex-col wta:items-start wta:justify-start wta:gap-y-4",
115
115
  children: [jsxRuntime.jsx("button", {
116
116
  type: "button",
117
- className: "w3a--appearance-none",
117
+ className: "wta:appearance-none",
118
118
  onClick: () => handleExpandSocialLogins(),
119
119
  children: jsxRuntime.jsx("img", {
120
120
  src: utils.getIcons(isDark ? "arrow-left-dark" : "arrow-left-light"),
121
121
  alt: "Logo",
122
- className: "w3a--object-contain"
122
+ className: "wta:object-contain"
123
123
  })
124
124
  }), jsxRuntime.jsx("div", {
125
- className: "w3a--social-container w3a--grid w3a--h-[300px] w3a--w-full w3a--auto-rows-min w3a--grid-cols-1 w3a--gap-y-2 w3a--overflow-y-auto w3a--pl-2 w3a--pr-3",
125
+ className: "w3a--social-container wta:grid wta:h-[300px] wta:w-full wta:auto-rows-min wta:grid-cols-1 wta:gap-y-2 wta:overflow-y-auto wta:pl-2 wta:pr-3",
126
126
  children: otherRow.map(row => jsxRuntime.jsx("div", {
127
- className: "w3a--h-11 w3a--w-full",
127
+ className: "wta:h-11 wta:w-full",
128
128
  children: jsxRuntime.jsx(Button, {
129
129
  type: Button_type.BUTTON_TYPE.SOCIAL,
130
130
  props: {
@@ -134,15 +134,15 @@ function SocialLoginList(props) {
134
134
  onClick: () => handleSocialLoginClick({
135
135
  loginParams: row.loginParams
136
136
  }),
137
- btnStyle: "w3a--group w3a--relative w3a--overflow-hidden w3a--flex w3a--items-center !w3a--justify-start w3a--w-full w3a--h-11",
137
+ btnStyle: "wta:group wta:relative wta:overflow-hidden wta:flex wta:items-center wta:justify-start! wta:w-full wta:h-11",
138
138
  buttonRadius,
139
139
  children: jsxRuntime.jsxs(jsxRuntime.Fragment, {
140
140
  children: [getProviderIcon(row.method, isDark, ".svg"), jsxRuntime.jsx("p", {
141
- className: "w3a--text-sm w3a--font-normal w3a--text-app-gray-900 dark:w3a--text-app-white",
141
+ className: "wta:text-sm wta:font-normal wta:text-app-gray-900 wta:dark:text-app-white",
142
142
  children: row.name
143
143
  }), jsxRuntime.jsx("img", {
144
144
  id: "login-arrow",
145
- className: "w3a--absolute w3a--right-4 w3a--top-1/2 -w3a--translate-x-10 -w3a--translate-y-1/2 w3a--opacity-0 w3a--transition-all w3a--duration-300\n group-hover:w3a--translate-x-0 group-hover:w3a--opacity-100",
145
+ className: "wta:absolute wta:right-4 wta:top-1/2 wta:-translate-x-10 wta:-translate-y-1/2 wta:opacity-0 wta:transition-all wta:duration-300\n wta:group-hover:translate-x-0 wta:group-hover:opacity-100",
146
146
  src: utils.getIcons(isDark ? "chevron-right-dark" : "chevron-right-light"),
147
147
  alt: "arrow"
148
148
  })]
@@ -19,7 +19,7 @@ const SpinnerLoader = props => {
19
19
  height
20
20
  },
21
21
  children: [jsxRuntime.jsx("div", {
22
- className: utils.cn("w3a--spinner-loader-ring w3a--animate-spin", classes === null || classes === void 0 ? void 0 : classes.spinner)
22
+ className: utils.cn("w3a--spinner-loader-ring wta:animate-spin", classes === null || classes === void 0 ? void 0 : classes.spinner)
23
23
  }), children && jsxRuntime.jsx("div", {
24
24
  className: "w3a--spinner-loader-image",
25
25
  children: children
@@ -22,21 +22,21 @@ const Toast = () => {
22
22
  }, [toast.message, setToast]);
23
23
  if (!toast.message) return null;
24
24
  const toastClass = {
25
- success: "w3a--border-app-green-200 w3a--bg-app-green-100 w3a--text-app-green-900",
26
- error: "w3a--border-app-red-200 w3a--bg-app-red-100 w3a--text-app-red-900",
27
- warning: "w3a--border-app-yellow-200 w3a--bg-app-yellow-100 w3a--text-app-yellow-900",
28
- info: "w3a--border-app-blue-200 w3a--bg-app-blue-100 w3a--text-app-blue-900"
25
+ success: "wta:border-app-green-200 wta:bg-app-green-100 wta:text-app-green-900",
26
+ error: "wta:border-app-red-200 wta:bg-app-red-100 wta:text-app-red-900",
27
+ warning: "wta:border-app-yellow-200 wta:bg-app-yellow-100 wta:text-app-yellow-900",
28
+ info: "wta:border-app-blue-200 wta:bg-app-blue-100 wta:text-app-blue-900"
29
29
  };
30
30
  const toastIconClass = {
31
- success: "w3a--text-app-green-900",
32
- error: "w3a--text-app-red-900",
33
- warning: "w3a--text-app-yellow-900",
34
- info: "w3a--text-app-blue-900"
31
+ success: "wta:text-app-green-900",
32
+ error: "wta:text-app-red-900",
33
+ warning: "wta:text-app-yellow-900",
34
+ info: "wta:text-app-blue-900"
35
35
  };
36
36
  return jsxRuntime.jsxs("div", {
37
- className: `w3a--absolute w3a--inset-x-4 w3a--bottom-4 w3a--z-[60] w3a--mx-auto w3a--w-[90%] w3a--rounded-md w3a--border w3a--p-4 w3a--text-sm ${toastClass[toast.type]}`,
37
+ className: `wta:absolute wta:inset-x-4 wta:bottom-4 wta:z-[60] wta:mx-auto wta:w-[90%] wta:rounded-md wta:border wta:p-4 wta:text-sm ${toastClass[toast.type]}`,
38
38
  children: [jsxRuntime.jsx("div", {
39
- className: "w3a--absolute w3a--right-4 w3a--top-4 w3a--z-10 w3a--cursor-pointer",
39
+ className: "wta:absolute wta:right-4 wta:top-4 wta:z-10 wta:cursor-pointer",
40
40
  children: jsxRuntime.jsx("svg", {
41
41
  width: "13",
42
42
  height: "13",
@@ -56,7 +56,7 @@ const Toast = () => {
56
56
  })
57
57
  })
58
58
  }), jsxRuntime.jsx("div", {
59
- className: "w3a--flex w3a--items-center w3a--gap-2",
59
+ className: "wta:flex wta:items-center wta:gap-2",
60
60
  children: jsxRuntime.jsx("p", {
61
61
  children: toast.message
62
62
  })
@@ -0,0 +1,109 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var noModal = require('@web3auth/no-modal');
5
+ var react = require('react');
6
+ var reactI18next = require('react-i18next');
7
+ var constants = require('../../constants.js');
8
+ var ModalStateContext = require('../../context/ModalStateContext.js');
9
+ var WidgetContext = require('../../context/WidgetContext.js');
10
+ var interfaces = require('../../interfaces.js');
11
+ var localeImport = require('../../localeImport.js');
12
+ var ConnectWalletQrCode = require('../ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js');
13
+
14
+ const DEFAULT_ACCOUNT_LINKING_BUTTON = {
15
+ name: noModal.WALLET_CONNECTORS.WALLET_CONNECT_V2,
16
+ displayName: "WalletConnect",
17
+ hasInjectedWallet: false,
18
+ hasWalletConnect: true,
19
+ hasInstallLinks: false,
20
+ imgExtension: "svg"
21
+ };
22
+ function AccountLinking(props) {
23
+ var _accountLinkingButton;
24
+ const {
25
+ allExternalWallets
26
+ } = props;
27
+ const {
28
+ modalState
29
+ } = ModalStateContext.useModalState();
30
+ const {
31
+ deviceDetails,
32
+ isDark
33
+ } = WidgetContext.useWidget();
34
+ const [t] = reactI18next.useTranslation(undefined, {
35
+ i18n: localeImport
36
+ });
37
+ const accountLinkingButton = react.useMemo(() => {
38
+ const requestedConnectorName = modalState.accountLinking.connectorName;
39
+ if (!requestedConnectorName) return DEFAULT_ACCOUNT_LINKING_BUTTON;
40
+ return allExternalWallets.find(button => button.name === requestedConnectorName) || DEFAULT_ACCOUNT_LINKING_BUTTON;
41
+ }, [allExternalWallets, modalState.accountLinking.connectorName]);
42
+ const accountLinkingDisplayName = react.useMemo(() => {
43
+ return accountLinkingButton.displayName || "WalletConnect";
44
+ }, [accountLinkingButton.displayName]);
45
+ const accountLinkingQrLogoImage = react.useMemo(() => {
46
+ if (accountLinkingButton.name === noModal.WALLET_CONNECTORS.WALLET_CONNECT_V2 || !accountLinkingButton.imgExtension) {
47
+ return constants.WALLET_CONNECT_LOGO;
48
+ }
49
+ return `https://images.web3auth.io/login-${accountLinkingButton.name}.${accountLinkingButton.imgExtension}`;
50
+ }, [accountLinkingButton.imgExtension, accountLinkingButton.name]);
51
+ const isSwitchAccountIntent = modalState.accountLinking.intent === interfaces.ACCOUNT_LINKING_INTENT.SWITCH;
52
+ const isWalletConnectConnector = accountLinkingButton.name === noModal.WALLET_CONNECTORS.WALLET_CONNECT_V2;
53
+ const accountLinkingMessage = react.useMemo(() => {
54
+ switch (modalState.accountLinking.status) {
55
+ case interfaces.ACCOUNT_LINKING_STATUS.INITIALIZING:
56
+ return t("modal.account-linking.initializing-wallet", {
57
+ wallet: accountLinkingDisplayName
58
+ });
59
+ case interfaces.ACCOUNT_LINKING_STATUS.AWAITING_CONNECTION:
60
+ return modalState.accountLinking.walletConnectUri ? isWalletConnectConnector ? t("modal.account-linking.scan-walletconnect") : t("modal.account-linking.scan-wallet", {
61
+ wallet: accountLinkingDisplayName
62
+ }) : t("modal.account-linking.preparing-wallet-qr", {
63
+ wallet: accountLinkingDisplayName
64
+ });
65
+ case interfaces.ACCOUNT_LINKING_STATUS.WALLET_CONNECTED:
66
+ return isSwitchAccountIntent ? t("modal.account-linking.wallet-connected-preparing-switch") : t("modal.account-linking.wallet-connected-preparing-linking");
67
+ case interfaces.ACCOUNT_LINKING_STATUS.LINKING:
68
+ return isSwitchAccountIntent ? t("modal.account-linking.switching-wallet") : t("modal.account-linking.linking-wallet");
69
+ case interfaces.ACCOUNT_LINKING_STATUS.COMPLETED:
70
+ return isSwitchAccountIntent ? t("modal.account-linking.wallet-switched") : t("modal.account-linking.wallet-linked");
71
+ case interfaces.ACCOUNT_LINKING_STATUS.ERRORED:
72
+ return modalState.accountLinking.errorMessage || (isSwitchAccountIntent ? t("modal.account-linking.failed-switch-wallet", {
73
+ wallet: accountLinkingDisplayName
74
+ }) : t("modal.account-linking.failed-connect-wallet", {
75
+ wallet: accountLinkingDisplayName
76
+ }));
77
+ default:
78
+ return "";
79
+ }
80
+ }, [accountLinkingDisplayName, isSwitchAccountIntent, isWalletConnectConnector, modalState.accountLinking.errorMessage, modalState.accountLinking.status, modalState.accountLinking.walletConnectUri, t]);
81
+ return jsxRuntime.jsxs("div", {
82
+ className: "wta:flex wta:flex-1 wta:flex-col wta:gap-y-4",
83
+ children: [jsxRuntime.jsx("div", {
84
+ className: "wta:flex wta:items-center wta:justify-center",
85
+ children: jsxRuntime.jsx("p", {
86
+ className: "wta:text-base wta:font-medium wta:text-app-gray-900 wta:dark:text-app-white",
87
+ children: accountLinkingDisplayName
88
+ })
89
+ }), modalState.accountLinking.status === interfaces.ACCOUNT_LINKING_STATUS.ERRORED ? jsxRuntime.jsx("div", {
90
+ className: "wta:rounded-2xl wta:border wta:border-app-gray-200 wta:bg-app-gray-50 wta:p-4 wta:dark:border-app-gray-700 wta:dark:bg-app-gray-800",
91
+ children: jsxRuntime.jsx("p", {
92
+ className: "wta:text-center wta:text-sm wta:text-app-gray-700 wta:dark:text-app-gray-200",
93
+ children: accountLinkingMessage
94
+ })
95
+ }) : jsxRuntime.jsx(ConnectWalletQrCode, {
96
+ qrCodeValue: modalState.accountLinking.walletConnectUri,
97
+ isDark: isDark,
98
+ selectedButton: accountLinkingButton,
99
+ logoImage: accountLinkingQrLogoImage,
100
+ primaryColor: (_accountLinkingButton = accountLinkingButton.walletRegistryItem) === null || _accountLinkingButton === void 0 ? void 0 : _accountLinkingButton.primaryColor,
101
+ platform: deviceDetails.platform
102
+ }), accountLinkingMessage && modalState.accountLinking.status !== interfaces.ACCOUNT_LINKING_STATUS.ERRORED && jsxRuntime.jsx("p", {
103
+ className: "wta:text-center wta:text-sm wta:text-app-gray-500 wta:dark:text-app-gray-300",
104
+ children: accountLinkingMessage
105
+ })]
106
+ });
107
+ }
108
+
109
+ module.exports = AccountLinking;
@@ -243,6 +243,16 @@ function ConnectWallet(props) {
243
243
  } else {
244
244
  // show QR code if wallet connect v2 is supported
245
245
  if (button.hasWalletConnect) {
246
+ // In account-linking picker mode, hand off to the WC v2 account-linking flow in
247
+ // modalManager (via the picker resolver in onExternalWalletLogin) instead of showing
248
+ // the regular inline QR — the regular QR uses a connector owned by the login flow,
249
+ // which is not what we want for linking.
250
+ if (modalState.accountLinking.pickerActive) {
251
+ handleExternalWalletClick({
252
+ connector: button.name
253
+ });
254
+ return;
255
+ }
246
256
  setSelectedButton(button);
247
257
  setSelectedWallet(true);
248
258
  setCurrentPage(constants.CONNECT_WALLET_PAGES.SELECTED_WALLET);
@@ -275,13 +285,14 @@ function ConnectWallet(props) {
275
285
  return false;
276
286
  }, [selectedWallet, isExternalWalletModeOnly]);
277
287
  return jsxRuntime.jsxs("div", {
278
- className: "w3a--relative w3a--flex w3a--flex-1 w3a--flex-col w3a--gap-y-4",
288
+ className: "wta:relative wta:flex wta:flex-1 wta:flex-col wta:gap-y-4",
279
289
  children: [jsxRuntime.jsx(ConnectWalletHeader, {
280
290
  hideBackButton: hideBackButton,
281
291
  disableBackButton: disableBackButton,
282
292
  onBackClick: handleBack,
283
293
  currentPage: currentPage,
284
- selectedButton: selectedButton
294
+ selectedButton: selectedButton,
295
+ isLinking: modalState.accountLinking.pickerActive
285
296
  }), selectedWallet ? jsxRuntime.jsx(ConnectWalletQrCode, {
286
297
  qrCodeValue: qrCodeValue,
287
298
  isDark: isDark,
@@ -290,7 +301,7 @@ function ConnectWallet(props) {
290
301
  logoImage: `https://images.web3auth.io/login-${selectedButton.name}.${selectedButton.imgExtension}`,
291
302
  platform: deviceDetails.platform
292
303
  }) : jsxRuntime.jsxs("div", {
293
- className: "w3a--flex w3a--flex-col w3a--gap-y-2",
304
+ className: "wta:flex wta:flex-col wta:gap-y-2",
294
305
  children: [jsxRuntime.jsx(ConnectWalletChainFilter, {
295
306
  isDark: isDark,
296
307
  isLoading: isLoading,
@@ -46,28 +46,28 @@ function ConnectWalletChainFilter(props) {
46
46
  }
47
47
  if (isLoading) {
48
48
  return jsxRuntime.jsx("div", {
49
- className: "w3a--flex w3a--items-center w3a--justify-between w3a--gap-x-2",
49
+ className: "wta:flex wta:items-center wta:justify-between wta:gap-x-2",
50
50
  children: Array.from({
51
51
  length: chains.length
52
52
  }).map((_, index) => jsxRuntime.jsx("div", {
53
- className: "w3a--h-12 w3a--w-[100px] w3a--animate-pulse w3a--rounded-2xl w3a--bg-app-gray-200 dark:w3a--bg-app-gray-700"
53
+ className: "wta:h-12 wta:w-[100px] wta:animate-pulse wta:rounded-2xl wta:bg-app-gray-200 wta:dark:bg-app-gray-700"
54
54
  }, `chain-loader-${index}`))
55
55
  });
56
56
  }
57
57
  return jsxRuntime.jsx("div", {
58
- className: "w3a--flex w3a--items-center w3a--justify-items-start w3a--gap-x-4",
58
+ className: "wta:flex wta:items-center wta:justify-items-start wta:gap-x-4",
59
59
  children: chains.map(chain => jsxRuntime.jsxs("button", {
60
60
  type: "button",
61
- className: utils.cn("w3a--flex w3a--w-[104px] w3a--items-center w3a--justify-center w3a--gap-x-1 w3a--text-xs w3a--font-medium w3a--px-4 w3a--py-3 w3a--text-app-gray-500 dark:w3a--text-app-gray-300 hover:w3a--bg-app-gray-200 dark:hover:w3a--bg-app-gray-700 w3a--h-12 w3a--rounded-2xl w3a--border w3a--border-transparent", {
62
- "w3a--bg-app-gray-100 dark:w3a--bg-app-gray-800 w3a--border-app-gray-200 dark:w3a--border-app-gray-700 w3a--text-app-gray-900 dark:w3a--text-app-white hover:!w3a--bg-app-gray-100 dark:hover:!w3a--bg-app-gray-800": selectedChain === chain.id
61
+ className: utils.cn("wta:flex wta:w-[104px] wta:items-center wta:justify-center wta:gap-x-1 wta:text-xs wta:font-medium wta:px-4 wta:py-3 wta:text-app-gray-500 wta:dark:text-app-gray-300 wta:hover:bg-app-gray-200 wta:dark:hover:bg-app-gray-700 wta:h-12 wta:rounded-2xl wta:border wta:border-transparent", {
62
+ "wta:bg-app-gray-100 wta:dark:bg-app-gray-800 wta:border-app-gray-200 wta:dark:border-app-gray-700 wta:text-app-gray-900 wta:dark:text-app-white wta:hover:bg-app-gray-100! wta:dark:hover:bg-app-gray-800!": selectedChain === chain.id
63
63
  }),
64
64
  onClick: () => setSelectedChain(chain.id),
65
65
  children: [chain.icon && jsxRuntime.jsx("img", {
66
66
  src: utils.getIcons(isDark ? `${chain.icon}-dark` : `${chain.icon}-light`),
67
67
  alt: chain.name,
68
- className: "w3a--size-5 w3a--object-contain"
68
+ className: "wta:size-5 wta:object-contain"
69
69
  }), jsxRuntime.jsx("span", {
70
- className: "first-letter:w3a--capitalize",
70
+ className: "wta:first-letter:capitalize",
71
71
  children: t(chain.name)
72
72
  })]
73
73
  }, chain.id))
@@ -26,13 +26,13 @@ const ConnectWalletChainNamespaceSelect = props => {
26
26
  });
27
27
  return jsxRuntime.jsxs("div", {
28
28
  children: [jsxRuntime.jsx("div", {
29
- className: "w3a--flex w3a--items-center w3a--justify-center",
29
+ className: "wta:flex wta:items-center wta:justify-center",
30
30
  children: jsxRuntime.jsx("p", {
31
- className: "w3a--text-base w3a--font-medium w3a--text-app-gray-900 dark:w3a--text-app-white",
31
+ className: "wta:text-base wta:font-medium wta:text-app-gray-900 wta:dark:text-app-white",
32
32
  children: t("modal.external.select-chain")
33
33
  })
34
34
  }), jsxRuntime.jsx("div", {
35
- className: "w3a--my-6 w3a--flex w3a--justify-center",
35
+ className: "wta:my-6 wta:flex wta:justify-center",
36
36
  children: jsxRuntime.jsx(Image, {
37
37
  imageId: `login-${wallet.name}`,
38
38
  hoverImageId: `login-${wallet.name}`,
@@ -43,12 +43,12 @@ const ConnectWalletChainNamespaceSelect = props => {
43
43
  extension: wallet.imgExtension
44
44
  })
45
45
  }), jsxRuntime.jsx("p", {
46
- className: "w3a--my-6 w3a--text-center w3a--text-sm w3a--text-app-gray-500 dark:w3a--text-app-gray-400",
46
+ className: "wta:my-6 wta:text-center wta:text-sm wta:text-app-gray-500 wta:dark:text-app-gray-400",
47
47
  children: t("modal.external.select-chain-description", {
48
48
  wallet: wallet.displayName
49
49
  })
50
50
  }), jsxRuntime.jsx("ul", {
51
- className: "w3a--flex w3a--flex-col w3a--gap-3",
51
+ className: "wta:flex wta:flex-col wta:gap-3",
52
52
  children: chainNamespaces.map(({
53
53
  chainNamespace,
54
54
  displayName,
@@ -56,13 +56,13 @@ const ConnectWalletChainNamespaceSelect = props => {
56
56
  }) => jsxRuntime.jsx("li", {
57
57
  children: jsxRuntime.jsxs("button", {
58
58
  type: "button",
59
- className: "w3a--btn w3a--group w3a--relative w3a--h-11 w3a--w-full w3a--items-center !w3a--justify-between w3a--overflow-hidden w3a--rounded-full",
59
+ className: "w3a--btn wta:group wta:relative wta:h-11 wta:w-full wta:items-center wta:justify-between! wta:overflow-hidden wta:rounded-full",
60
60
  onClick: () => handleExternalWalletClick({
61
61
  connector: wallet.name,
62
62
  chainNamespace
63
63
  }),
64
64
  children: [jsxRuntime.jsxs("div", {
65
- className: "w3a--flex w3a--items-center",
65
+ className: "wta:flex wta:items-center",
66
66
  children: [jsxRuntime.jsx(Image, {
67
67
  imageId: imageId,
68
68
  hoverImageId: imageId,
@@ -72,12 +72,12 @@ const ConnectWalletChainNamespaceSelect = props => {
72
72
  isButton: true,
73
73
  extension: "svg"
74
74
  }), jsxRuntime.jsx("p", {
75
- className: "w3a--ml-2 w3a--text-left w3a--text-sm w3a--text-app-gray-900 first-letter:w3a--capitalize dark:w3a--text-app-gray-200",
75
+ className: "wta:ml-2 wta:text-left wta:text-sm wta:text-app-gray-900 wta:first-letter:capitalize wta:dark:text-app-gray-200",
76
76
  children: displayName
77
77
  })]
78
78
  }), jsxRuntime.jsx("img", {
79
79
  id: "chain-namespace-arrow",
80
- className: "w3a--absolute w3a--right-4 w3a--top-1/2 -w3a--translate-x-6 -w3a--translate-y-1/2 w3a--opacity-0 w3a--transition-all w3a--duration-300\n group-hover:w3a--translate-x-0 group-hover:w3a--opacity-100",
80
+ className: "wta:absolute wta:right-4 wta:top-1/2 wta:-translate-x-6 wta:-translate-y-1/2 wta:opacity-0 wta:transition-all wta:duration-300\n wta:group-hover:translate-x-0 wta:group-hover:opacity-100",
81
81
  src: utils.getIcons(isDark ? "chevron-right-dark" : "chevron-right-light"),
82
82
  alt: "arrow"
83
83
  })]
@@ -11,7 +11,8 @@ function ConnectWalletHeader(props) {
11
11
  disableBackButton,
12
12
  onBackClick,
13
13
  currentPage,
14
- selectedButton
14
+ selectedButton,
15
+ isLinking
15
16
  } = props;
16
17
  const [t] = reactI18next.useTranslation(undefined, {
17
18
  i18n: localeImport
@@ -22,17 +23,17 @@ function ConnectWalletHeader(props) {
22
23
  }
23
24
  };
24
25
  return jsxRuntime.jsxs("div", {
25
- className: "w3a--flex w3a--items-center w3a--justify-between",
26
- children: [!hideBackButton ? jsxRuntime.jsx("button", {
26
+ className: "wta:flex wta:items-center wta:justify-between",
27
+ children: [!hideBackButton && !isLinking ? jsxRuntime.jsx("button", {
27
28
  type: "button",
28
- className: "w3a--z-20 w3a--flex w3a--size-5 w3a--cursor-pointer w3a--items-center w3a--justify-center w3a--rounded-full",
29
+ className: "wta:z-20 wta:flex wta:size-5 wta:cursor-pointer wta:items-center wta:justify-center wta:rounded-full",
29
30
  onClick: handleBack,
30
31
  disabled: disableBackButton,
31
32
  children: jsxRuntime.jsx("svg", {
32
33
  xmlns: "http://www.w3.org/2000/svg",
33
34
  fill: "none",
34
35
  viewBox: "0 0 20 20",
35
- className: `w3a--text-app-gray-500 dark:w3a--text-app-gray-200 ${disableBackButton ? "w3a--cursor-not-allowed w3a--opacity-50" : "hover:w3a--text-app-gray-900 dark:hover:w3a--text-app-white"}`,
36
+ className: `wta:text-app-gray-500 wta:dark:text-app-gray-200 ${disableBackButton ? "wta:cursor-not-allowed wta:opacity-50" : "wta:hover:text-app-gray-900 wta:dark:hover:text-app-white"}`,
36
37
  children: jsxRuntime.jsx("path", {
37
38
  fill: "currentColor",
38
39
  fillRule: "evenodd",
@@ -41,10 +42,10 @@ function ConnectWalletHeader(props) {
41
42
  })
42
43
  })
43
44
  }) : jsxRuntime.jsx("div", {}), jsxRuntime.jsx("p", {
44
- className: "w3a--text-base w3a--font-medium w3a--text-app-gray-900 dark:w3a--text-app-white",
45
- children: currentPage === constants.CONNECT_WALLET_PAGES.SELECTED_WALLET ? selectedButton === null || selectedButton === void 0 ? void 0 : selectedButton.displayName : currentPage === constants.CONNECT_WALLET_PAGES.CONNECT_WALLET ? t("modal.connectYourWallet") : currentPage
45
+ className: "wta:text-base wta:font-medium wta:text-app-gray-900 wta:dark:text-app-white",
46
+ children: currentPage === constants.CONNECT_WALLET_PAGES.SELECTED_WALLET ? selectedButton === null || selectedButton === void 0 ? void 0 : selectedButton.displayName : currentPage === constants.CONNECT_WALLET_PAGES.CONNECT_WALLET ? isLinking ? t("modal.linkYourWallet") : t("modal.connectYourWallet") : currentPage
46
47
  }), jsxRuntime.jsx("div", {
47
- className: "w3a--z-[-1] w3a--size-5"
48
+ className: "wta:z-[-1] wta:size-5"
48
49
  })]
49
50
  });
50
51
  }