@dynamic-labs/sdk-react-core 3.0.0-alpha.37 → 3.0.0-alpha.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/lib/components/EmailForm/EmailForm.cjs +1 -1
- package/src/lib/components/EmailForm/EmailForm.js +1 -1
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +1 -1
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +1 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +2 -1
- package/src/lib/components/UserProfile/UserProfile.js +2 -1
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.cjs +112 -0
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.d.ts +2 -0
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.js +108 -0
- package/src/lib/components/UserProfile/parts/EditProfileButton/index.d.ts +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.d.ts +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -1
- package/src/lib/components/index.d.ts +1 -1
- package/src/lib/context/CaptchaContext/CaptchaContext.cjs +22 -12
- package/src/lib/context/CaptchaContext/CaptchaContext.d.ts +1 -4
- package/src/lib/context/CaptchaContext/CaptchaContext.js +23 -12
- package/src/lib/data/api/mfa/mfa.cjs +2 -1
- package/src/lib/data/api/mfa/mfa.d.ts +2 -1
- package/src/lib/data/api/mfa/mfa.js +2 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +41 -3
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +42 -4
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
- package/src/lib/locale/en/translation.cjs +23 -7
- package/src/lib/locale/en/translation.d.ts +21 -5
- package/src/lib/locale/en/translation.js +23 -7
- package/src/lib/shared/assets/currency.cjs +70 -0
- package/src/lib/shared/assets/currency.js +46 -0
- package/src/lib/shared/assets/index.d.ts +7 -0
- package/src/lib/shared/assets/profile-outline.cjs +54 -0
- package/src/lib/shared/assets/profile-outline.js +30 -0
- package/src/lib/shared/assets/profile.cjs +65 -0
- package/src/lib/shared/assets/profile.js +41 -0
- package/src/lib/shared/assets/settings-outline.cjs +54 -0
- package/src/lib/shared/assets/settings-outline.js +30 -0
- package/src/lib/shared/assets/settings.cjs +54 -0
- package/src/lib/shared/assets/settings.js +30 -0
- package/src/lib/shared/assets/wallet-outline-v2.cjs +54 -0
- package/src/lib/shared/assets/wallet-outline-v2.js +30 -0
- package/src/lib/shared/assets/wallet.cjs +52 -0
- package/src/lib/shared/assets/wallet.js +28 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +2 -0
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +2 -1
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +2 -1
- package/src/lib/utils/hooks/useMfa/useMfa.d.ts +1 -1
- package/src/lib/utils/hooks/useMfa/useMfa.js +2 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +2 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +2 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -1
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +1 -1
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +1 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +1 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +1 -1
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +1 -1
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +1 -1
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +1 -1
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +1 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +1 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +1 -1
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.cjs +0 -3
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.js +0 -3
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +1 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +1 -2
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +1 -1
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +1 -1
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +1 -1
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +1 -1
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +1 -1
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +1 -1
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -1
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -1
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +1 -1
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +1 -1
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.cjs +2 -2
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.js +2 -2
- package/src/lib/views/MfaVerificationView/MfaVerificationView.cjs +15 -15
- package/src/lib/views/MfaVerificationView/MfaVerificationView.d.ts +2 -1
- package/src/lib/views/MfaVerificationView/MfaVerificationView.js +15 -15
- package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
- package/src/lib/views/NoAccess/NoAccess.js +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +1 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -1
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +1 -1
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +1 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
- package/src/lib/views/viewToComponentMap.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.cjs +16 -0
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.d.ts +13 -0
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.js +12 -0
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +23 -45
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +24 -46
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +13 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +13 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +11 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +11 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +4 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -105
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -106
- package/src/lib/widgets/DynamicWidget/views/{WalletSettingsView/WalletSettingsView.cjs → SettingsView/SettingsView.cjs} +34 -26
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/{WalletSettingsView/WalletSettingsView.js → SettingsView/SettingsView.js} +35 -27
- package/src/lib/widgets/DynamicWidget/views/SettingsView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +2 -15
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +2 -15
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.d.ts +0 -2
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/index.d.ts +0 -1
|
@@ -98,12 +98,13 @@ const verifyMfaDevice = (_e) => _tslib.__awaiter(void 0, [_e], void 0, function*
|
|
|
98
98
|
});
|
|
99
99
|
// used when verifying a device when user is logging in
|
|
100
100
|
// jwt update needed
|
|
101
|
-
const authMfaDevice = (_f) => _tslib.__awaiter(void 0, [_f], void 0, function* ({ environmentId, type, code, createMfaToken, }) {
|
|
101
|
+
const authMfaDevice = (_f) => _tslib.__awaiter(void 0, [_f], void 0, function* ({ deviceId, environmentId, type, code, createMfaToken, }) {
|
|
102
102
|
try {
|
|
103
103
|
if (type === sdkApiCore.MFADeviceType.Totp) {
|
|
104
104
|
const request = {
|
|
105
105
|
code,
|
|
106
106
|
createMfaToken,
|
|
107
|
+
id: deviceId || undefined,
|
|
107
108
|
};
|
|
108
109
|
const response = yield api.sdkApi().authMfaTotpDevice({
|
|
109
110
|
environmentId,
|
|
@@ -19,7 +19,8 @@ export declare const verifyMfaDevice: ({ environmentId, type, code, }: {
|
|
|
19
19
|
type: MFADeviceType;
|
|
20
20
|
code: string;
|
|
21
21
|
}) => Promise<MFADevice | undefined>;
|
|
22
|
-
export declare const authMfaDevice: ({ environmentId, type, code, createMfaToken, }: {
|
|
22
|
+
export declare const authMfaDevice: ({ deviceId, environmentId, type, code, createMfaToken, }: {
|
|
23
|
+
deviceId?: string;
|
|
23
24
|
environmentId: string;
|
|
24
25
|
type: MFADeviceType;
|
|
25
26
|
code: string;
|
|
@@ -94,12 +94,13 @@ const verifyMfaDevice = (_e) => __awaiter(void 0, [_e], void 0, function* ({ env
|
|
|
94
94
|
});
|
|
95
95
|
// used when verifying a device when user is logging in
|
|
96
96
|
// jwt update needed
|
|
97
|
-
const authMfaDevice = (_f) => __awaiter(void 0, [_f], void 0, function* ({ environmentId, type, code, createMfaToken, }) {
|
|
97
|
+
const authMfaDevice = (_f) => __awaiter(void 0, [_f], void 0, function* ({ deviceId, environmentId, type, code, createMfaToken, }) {
|
|
98
98
|
try {
|
|
99
99
|
if (type === MFADeviceType.Totp) {
|
|
100
100
|
const request = {
|
|
101
101
|
code,
|
|
102
102
|
createMfaToken,
|
|
103
|
+
id: deviceId || undefined,
|
|
103
104
|
};
|
|
104
105
|
const response = yield sdkApi().authMfaTotpDevice({
|
|
105
106
|
environmentId,
|
|
@@ -11,6 +11,12 @@ require('../../shared/logger.cjs');
|
|
|
11
11
|
require('@dynamic-labs/iconic');
|
|
12
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
13
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
14
|
+
var profileOutline = require('../../shared/assets/profile-outline.cjs');
|
|
15
|
+
var profile = require('../../shared/assets/profile.cjs');
|
|
16
|
+
var wallet = require('../../shared/assets/wallet.cjs');
|
|
17
|
+
var walletOutlineV2 = require('../../shared/assets/wallet-outline-v2.cjs');
|
|
18
|
+
var settingsOutline = require('../../shared/assets/settings-outline.cjs');
|
|
19
|
+
var settings = require('../../shared/assets/settings.cjs');
|
|
14
20
|
require('@dynamic-labs/wallet-book');
|
|
15
21
|
require('../../utils/constants/colors.cjs');
|
|
16
22
|
require('../../utils/constants/values.cjs');
|
|
@@ -22,6 +28,7 @@ var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
|
22
28
|
require('../../events/dynamicEvents.cjs');
|
|
23
29
|
require('../../../../_virtual/_tslib.cjs');
|
|
24
30
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
31
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
25
32
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
33
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
27
34
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -37,6 +44,7 @@ require('../../context/WalletContext/WalletContext.cjs');
|
|
|
37
44
|
require('../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
|
|
38
45
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
39
46
|
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.cjs');
|
|
47
|
+
var useKYCFlag = require('../../utils/hooks/useKYCFlag/useKYCFlag.cjs');
|
|
40
48
|
require('@dynamic-labs/types');
|
|
41
49
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
42
50
|
require('yup');
|
|
@@ -76,6 +84,7 @@ var DynamicWidgetPrompts = require('../../widgets/DynamicWidget/components/Dynam
|
|
|
76
84
|
var DynamicWidgetViews = require('../../widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs');
|
|
77
85
|
var DynamicWidgetContext = require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
78
86
|
var DynamicWidgetContext_types = require('../../widgets/DynamicWidget/context/DynamicWidgetContext.types.cjs');
|
|
87
|
+
var BottomNavBar = require('../../widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.cjs');
|
|
79
88
|
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
80
89
|
require('../../../polyfills.cjs');
|
|
81
90
|
require('../../context/ErrorBoundary/ErrorBoundaryBase.cjs');
|
|
@@ -93,13 +102,42 @@ var OverlayCardTarget = require('../../components/OverlayCard/OverlayCardTarget/
|
|
|
93
102
|
const shouldNotRenderHeaderViews = [
|
|
94
103
|
...DynamicWidgetContext_types.DynamicPasskeyWidgetViews,
|
|
95
104
|
...DynamicWidgetContext_types.DynamicTransactionsWidgetViews,
|
|
96
|
-
...DynamicWidgetContext_types.
|
|
105
|
+
...DynamicWidgetContext_types.DynamicSettingsViews,
|
|
97
106
|
];
|
|
98
107
|
const DynamicUserProfileLayout = ({ variant, className, style, }) => {
|
|
99
|
-
const {
|
|
108
|
+
const { multiWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
109
|
+
const isKYCEnabled = useKYCFlag.useKYCFlag();
|
|
110
|
+
const { dynamicWidgetView, setDynamicWidgetView, overridenWidgetView } = DynamicWidgetContext.useWidgetContext();
|
|
111
|
+
const getNavBarOptions = () => {
|
|
112
|
+
const options = [];
|
|
113
|
+
if (multiWallet) {
|
|
114
|
+
options.push({
|
|
115
|
+
icon: jsxRuntime.jsx(walletOutlineV2.ReactComponent, {}),
|
|
116
|
+
label: 'Wallets',
|
|
117
|
+
selectedIcon: jsxRuntime.jsx(wallet.ReactComponent, {}),
|
|
118
|
+
value: 'wallets',
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
if (isKYCEnabled) {
|
|
122
|
+
options.push({
|
|
123
|
+
icon: jsxRuntime.jsx(profileOutline.ReactComponent, {}),
|
|
124
|
+
label: 'Profile',
|
|
125
|
+
selectedIcon: jsxRuntime.jsx(profile.ReactComponent, {}),
|
|
126
|
+
value: 'profile',
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
options.push({
|
|
130
|
+
icon: jsxRuntime.jsx(settingsOutline.ReactComponent, {}),
|
|
131
|
+
label: 'Settings',
|
|
132
|
+
selectedIcon: jsxRuntime.jsx(settings.ReactComponent, {}),
|
|
133
|
+
value: 'settings',
|
|
134
|
+
});
|
|
135
|
+
return options;
|
|
136
|
+
};
|
|
100
137
|
// It should render header only if the view is not send-balance or one of passkey widgets view
|
|
101
138
|
const shouldRenderHeader = !shouldNotRenderHeaderViews.includes(dynamicWidgetView);
|
|
102
|
-
|
|
139
|
+
const shouldRenderOptionsSwitcher = multiWallet || isKYCEnabled;
|
|
140
|
+
return (jsxRuntime.jsx(OverlayCardTarget.OverlayCardTarget, { children: jsxRuntime.jsxs("div", { className: classNames.classNames(className, 'dynamic-user-profile-layout'), style: style, children: [shouldRenderHeader && jsxRuntime.jsx(DynamicWidgetHeader.MemoizedDynamicWidgetHeader, { variant: variant }), jsxRuntime.jsx(DynamicWidgetViews.DynamicWidgetViews, {}), jsxRuntime.jsx(DynamicWidgetPrompts.DynamicWidgetPrompts, {}), shouldRenderOptionsSwitcher && (jsxRuntime.jsx(BottomNavBar.BottomNavBar, { value: overridenWidgetView, onChange: (view) => setDynamicWidgetView(view), options: getNavBarOptions() }))] }) }));
|
|
103
141
|
};
|
|
104
142
|
|
|
105
143
|
exports.DynamicUserProfileLayout = DynamicUserProfileLayout;
|
|
@@ -7,6 +7,12 @@ import '../../shared/logger.js';
|
|
|
7
7
|
import '@dynamic-labs/iconic';
|
|
8
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
9
|
import '../../context/ViewContext/ViewContext.js';
|
|
10
|
+
import { ReactComponent as SvgProfileOutline } from '../../shared/assets/profile-outline.js';
|
|
11
|
+
import { ReactComponent as SvgProfile } from '../../shared/assets/profile.js';
|
|
12
|
+
import { ReactComponent as SvgWallet } from '../../shared/assets/wallet.js';
|
|
13
|
+
import { ReactComponent as SvgWalletOutlineV2 } from '../../shared/assets/wallet-outline-v2.js';
|
|
14
|
+
import { ReactComponent as SvgSettingsOutline } from '../../shared/assets/settings-outline.js';
|
|
15
|
+
import { ReactComponent as SvgSettings } from '../../shared/assets/settings.js';
|
|
10
16
|
import '@dynamic-labs/wallet-book';
|
|
11
17
|
import '../../utils/constants/colors.js';
|
|
12
18
|
import '../../utils/constants/values.js';
|
|
@@ -18,6 +24,7 @@ import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
|
18
24
|
import '../../events/dynamicEvents.js';
|
|
19
25
|
import '../../../../_virtual/_tslib.js';
|
|
20
26
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
27
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
21
28
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
22
29
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
23
30
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -33,6 +40,7 @@ import '../../context/WalletContext/WalletContext.js';
|
|
|
33
40
|
import '../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
34
41
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
35
42
|
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
|
|
43
|
+
import { useKYCFlag } from '../../utils/hooks/useKYCFlag/useKYCFlag.js';
|
|
36
44
|
import '@dynamic-labs/types';
|
|
37
45
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
38
46
|
import 'yup';
|
|
@@ -71,7 +79,8 @@ import { MemoizedDynamicWidgetHeader } from '../../widgets/DynamicWidget/compone
|
|
|
71
79
|
import { DynamicWidgetPrompts } from '../../widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js';
|
|
72
80
|
import { DynamicWidgetViews } from '../../widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js';
|
|
73
81
|
import { useWidgetContext } from '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
74
|
-
import { DynamicPasskeyWidgetViews, DynamicTransactionsWidgetViews,
|
|
82
|
+
import { DynamicPasskeyWidgetViews, DynamicTransactionsWidgetViews, DynamicSettingsViews } from '../../widgets/DynamicWidget/context/DynamicWidgetContext.types.js';
|
|
83
|
+
import { BottomNavBar } from '../../widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.js';
|
|
75
84
|
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
76
85
|
import '../../../polyfills.js';
|
|
77
86
|
import '../../context/ErrorBoundary/ErrorBoundaryBase.js';
|
|
@@ -89,13 +98,42 @@ import { OverlayCardTarget } from '../../components/OverlayCard/OverlayCardTarge
|
|
|
89
98
|
const shouldNotRenderHeaderViews = [
|
|
90
99
|
...DynamicPasskeyWidgetViews,
|
|
91
100
|
...DynamicTransactionsWidgetViews,
|
|
92
|
-
...
|
|
101
|
+
...DynamicSettingsViews,
|
|
93
102
|
];
|
|
94
103
|
const DynamicUserProfileLayout = ({ variant, className, style, }) => {
|
|
95
|
-
const {
|
|
104
|
+
const { multiWallet } = useInternalDynamicContext();
|
|
105
|
+
const isKYCEnabled = useKYCFlag();
|
|
106
|
+
const { dynamicWidgetView, setDynamicWidgetView, overridenWidgetView } = useWidgetContext();
|
|
107
|
+
const getNavBarOptions = () => {
|
|
108
|
+
const options = [];
|
|
109
|
+
if (multiWallet) {
|
|
110
|
+
options.push({
|
|
111
|
+
icon: jsx(SvgWalletOutlineV2, {}),
|
|
112
|
+
label: 'Wallets',
|
|
113
|
+
selectedIcon: jsx(SvgWallet, {}),
|
|
114
|
+
value: 'wallets',
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (isKYCEnabled) {
|
|
118
|
+
options.push({
|
|
119
|
+
icon: jsx(SvgProfileOutline, {}),
|
|
120
|
+
label: 'Profile',
|
|
121
|
+
selectedIcon: jsx(SvgProfile, {}),
|
|
122
|
+
value: 'profile',
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
options.push({
|
|
126
|
+
icon: jsx(SvgSettingsOutline, {}),
|
|
127
|
+
label: 'Settings',
|
|
128
|
+
selectedIcon: jsx(SvgSettings, {}),
|
|
129
|
+
value: 'settings',
|
|
130
|
+
});
|
|
131
|
+
return options;
|
|
132
|
+
};
|
|
96
133
|
// It should render header only if the view is not send-balance or one of passkey widgets view
|
|
97
134
|
const shouldRenderHeader = !shouldNotRenderHeaderViews.includes(dynamicWidgetView);
|
|
98
|
-
|
|
135
|
+
const shouldRenderOptionsSwitcher = multiWallet || isKYCEnabled;
|
|
136
|
+
return (jsx(OverlayCardTarget, { children: jsxs("div", { className: classNames(className, 'dynamic-user-profile-layout'), style: style, children: [shouldRenderHeader && jsx(MemoizedDynamicWidgetHeader, { variant: variant }), jsx(DynamicWidgetViews, {}), jsx(DynamicWidgetPrompts, {}), shouldRenderOptionsSwitcher && (jsx(BottomNavBar, { value: overridenWidgetView, onChange: (view) => setDynamicWidgetView(view), options: getNavBarOptions() }))] }) }));
|
|
99
137
|
};
|
|
100
138
|
|
|
101
139
|
export { DynamicUserProfileLayout };
|
|
@@ -62,8 +62,8 @@ require('react-focus-lock');
|
|
|
62
62
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
63
63
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
64
64
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
65
|
-
require('formik');
|
|
66
65
|
var TypographyButton = require('../../components/TypographyButton/TypographyButton.cjs');
|
|
66
|
+
require('formik');
|
|
67
67
|
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
68
68
|
var ModalHeader = require('../../components/ModalHeader/ModalHeader.cjs');
|
|
69
69
|
require('../../components/Input/Input.cjs');
|
|
@@ -58,8 +58,8 @@ import 'react-focus-lock';
|
|
|
58
58
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
59
59
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
60
60
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
61
|
-
import 'formik';
|
|
62
61
|
import { TypographyButton } from '../../components/TypographyButton/TypographyButton.js';
|
|
62
|
+
import 'formik';
|
|
63
63
|
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
64
64
|
import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
|
|
65
65
|
import '../../components/Input/Input.js';
|
|
@@ -62,8 +62,8 @@ require('react-focus-lock');
|
|
|
62
62
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
63
63
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
64
64
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
65
|
-
require('formik');
|
|
66
65
|
var TypographyButton = require('../../components/TypographyButton/TypographyButton.cjs');
|
|
66
|
+
require('formik');
|
|
67
67
|
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
68
68
|
var ModalHeader = require('../../components/ModalHeader/ModalHeader.cjs');
|
|
69
69
|
require('../../components/Input/Input.cjs');
|
|
@@ -58,8 +58,8 @@ import 'react-focus-lock';
|
|
|
58
58
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
59
59
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
60
60
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
61
|
-
import 'formik';
|
|
62
61
|
import { TypographyButton } from '../../components/TypographyButton/TypographyButton.js';
|
|
62
|
+
import 'formik';
|
|
63
63
|
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
64
64
|
import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
|
|
65
65
|
import '../../components/Input/Input.js';
|
|
@@ -63,8 +63,8 @@ require('react-focus-lock');
|
|
|
63
63
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
64
64
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
65
65
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
66
|
-
require('formik');
|
|
67
66
|
var TypographyButton = require('../../components/TypographyButton/TypographyButton.cjs');
|
|
67
|
+
require('formik');
|
|
68
68
|
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
69
69
|
var ModalHeader = require('../../components/ModalHeader/ModalHeader.cjs');
|
|
70
70
|
require('../../components/Input/Input.cjs');
|
|
@@ -59,8 +59,8 @@ import 'react-focus-lock';
|
|
|
59
59
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
60
60
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
61
61
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
62
|
-
import 'formik';
|
|
63
62
|
import { TypographyButton } from '../../components/TypographyButton/TypographyButton.js';
|
|
63
|
+
import 'formik';
|
|
64
64
|
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
65
65
|
import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
|
|
66
66
|
import '../../components/Input/Input.js';
|
|
@@ -807,9 +807,16 @@ const translation = {
|
|
|
807
807
|
done_button_label: "I'm Done",
|
|
808
808
|
},
|
|
809
809
|
/**
|
|
810
|
-
* @description
|
|
810
|
+
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
811
811
|
* @default
|
|
812
812
|
* {
|
|
813
|
+
global_section: {
|
|
814
|
+
title: 'Global',
|
|
815
|
+
currency: {
|
|
816
|
+
title: 'Currency',
|
|
817
|
+
badge: 'coming soon',
|
|
818
|
+
},
|
|
819
|
+
},
|
|
813
820
|
export_section: {
|
|
814
821
|
private_key_button: 'Private key',
|
|
815
822
|
srp_button: 'Recovery phrase',
|
|
@@ -820,16 +827,23 @@ const translation = {
|
|
|
820
827
|
add_email_button: 'Add an email',
|
|
821
828
|
},
|
|
822
829
|
tags: { recommended: 'Recommended' },
|
|
823
|
-
|
|
830
|
+
security_section: {
|
|
824
831
|
email_auth_button: 'One time code',
|
|
825
832
|
passkey_button: 'Passkeys',
|
|
826
833
|
password_button: 'Passcode',
|
|
827
834
|
title: 'Security Methods',
|
|
828
835
|
},
|
|
829
|
-
title: '
|
|
836
|
+
title: 'Settings',
|
|
830
837
|
}
|
|
831
838
|
*/
|
|
832
|
-
|
|
839
|
+
dyn_settings: {
|
|
840
|
+
global_section: {
|
|
841
|
+
title: 'Global',
|
|
842
|
+
currency: {
|
|
843
|
+
title: 'Currency',
|
|
844
|
+
badge: 'coming soon',
|
|
845
|
+
},
|
|
846
|
+
},
|
|
833
847
|
export_section: {
|
|
834
848
|
private_key_button: 'Private key',
|
|
835
849
|
srp_button: 'Recovery phrase',
|
|
@@ -840,13 +854,14 @@ const translation = {
|
|
|
840
854
|
add_email_button: 'Add an email',
|
|
841
855
|
},
|
|
842
856
|
tags: { recommended: 'Recommended' },
|
|
843
|
-
|
|
857
|
+
security_section: {
|
|
844
858
|
email_auth_button: 'One time code',
|
|
845
859
|
passkey_button: 'Passkeys',
|
|
846
860
|
password_button: 'Passcode',
|
|
847
|
-
title: '
|
|
861
|
+
title: '2 factor authentication',
|
|
848
862
|
},
|
|
849
|
-
title: '
|
|
863
|
+
title: 'Settings',
|
|
864
|
+
button_logout: 'Log out',
|
|
850
865
|
},
|
|
851
866
|
/**
|
|
852
867
|
* @description copy keys for mfa views
|
|
@@ -1951,6 +1966,7 @@ const translation = {
|
|
|
1951
1966
|
link_wallet_button: 'Link wallet',
|
|
1952
1967
|
title: 'Want to add a wallet?',
|
|
1953
1968
|
},
|
|
1969
|
+
edit_profile_button: 'Edit Profile',
|
|
1954
1970
|
},
|
|
1955
1971
|
/**
|
|
1956
1972
|
* @description copy keys for Detected new wallet prompt
|
|
@@ -801,9 +801,16 @@ export declare const translation: {
|
|
|
801
801
|
done_button_label: string;
|
|
802
802
|
};
|
|
803
803
|
/**
|
|
804
|
-
* @description
|
|
804
|
+
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
805
805
|
* @default
|
|
806
806
|
* {
|
|
807
|
+
global_section: {
|
|
808
|
+
title: 'Global',
|
|
809
|
+
currency: {
|
|
810
|
+
title: 'Currency',
|
|
811
|
+
badge: 'coming soon',
|
|
812
|
+
},
|
|
813
|
+
},
|
|
807
814
|
export_section: {
|
|
808
815
|
private_key_button: 'Private key',
|
|
809
816
|
srp_button: 'Recovery phrase',
|
|
@@ -814,16 +821,23 @@ export declare const translation: {
|
|
|
814
821
|
add_email_button: 'Add an email',
|
|
815
822
|
},
|
|
816
823
|
tags: { recommended: 'Recommended' },
|
|
817
|
-
|
|
824
|
+
security_section: {
|
|
818
825
|
email_auth_button: 'One time code',
|
|
819
826
|
passkey_button: 'Passkeys',
|
|
820
827
|
password_button: 'Passcode',
|
|
821
828
|
title: 'Security Methods',
|
|
822
829
|
},
|
|
823
|
-
title: '
|
|
830
|
+
title: 'Settings',
|
|
824
831
|
}
|
|
825
832
|
*/
|
|
826
|
-
|
|
833
|
+
dyn_settings: {
|
|
834
|
+
global_section: {
|
|
835
|
+
title: string;
|
|
836
|
+
currency: {
|
|
837
|
+
title: string;
|
|
838
|
+
badge: string;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
827
841
|
export_section: {
|
|
828
842
|
private_key_button: string;
|
|
829
843
|
srp_button: string;
|
|
@@ -836,13 +850,14 @@ export declare const translation: {
|
|
|
836
850
|
tags: {
|
|
837
851
|
recommended: string;
|
|
838
852
|
};
|
|
839
|
-
|
|
853
|
+
security_section: {
|
|
840
854
|
email_auth_button: string;
|
|
841
855
|
passkey_button: string;
|
|
842
856
|
password_button: string;
|
|
843
857
|
title: string;
|
|
844
858
|
};
|
|
845
859
|
title: string;
|
|
860
|
+
button_logout: string;
|
|
846
861
|
};
|
|
847
862
|
/**
|
|
848
863
|
* @description copy keys for mfa views
|
|
@@ -1947,6 +1962,7 @@ export declare const translation: {
|
|
|
1947
1962
|
link_wallet_button: string;
|
|
1948
1963
|
title: string;
|
|
1949
1964
|
};
|
|
1965
|
+
edit_profile_button: string;
|
|
1950
1966
|
};
|
|
1951
1967
|
/**
|
|
1952
1968
|
* @description copy keys for Detected new wallet prompt
|
|
@@ -803,9 +803,16 @@ const translation = {
|
|
|
803
803
|
done_button_label: "I'm Done",
|
|
804
804
|
},
|
|
805
805
|
/**
|
|
806
|
-
* @description
|
|
806
|
+
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
807
807
|
* @default
|
|
808
808
|
* {
|
|
809
|
+
global_section: {
|
|
810
|
+
title: 'Global',
|
|
811
|
+
currency: {
|
|
812
|
+
title: 'Currency',
|
|
813
|
+
badge: 'coming soon',
|
|
814
|
+
},
|
|
815
|
+
},
|
|
809
816
|
export_section: {
|
|
810
817
|
private_key_button: 'Private key',
|
|
811
818
|
srp_button: 'Recovery phrase',
|
|
@@ -816,16 +823,23 @@ const translation = {
|
|
|
816
823
|
add_email_button: 'Add an email',
|
|
817
824
|
},
|
|
818
825
|
tags: { recommended: 'Recommended' },
|
|
819
|
-
|
|
826
|
+
security_section: {
|
|
820
827
|
email_auth_button: 'One time code',
|
|
821
828
|
passkey_button: 'Passkeys',
|
|
822
829
|
password_button: 'Passcode',
|
|
823
830
|
title: 'Security Methods',
|
|
824
831
|
},
|
|
825
|
-
title: '
|
|
832
|
+
title: 'Settings',
|
|
826
833
|
}
|
|
827
834
|
*/
|
|
828
|
-
|
|
835
|
+
dyn_settings: {
|
|
836
|
+
global_section: {
|
|
837
|
+
title: 'Global',
|
|
838
|
+
currency: {
|
|
839
|
+
title: 'Currency',
|
|
840
|
+
badge: 'coming soon',
|
|
841
|
+
},
|
|
842
|
+
},
|
|
829
843
|
export_section: {
|
|
830
844
|
private_key_button: 'Private key',
|
|
831
845
|
srp_button: 'Recovery phrase',
|
|
@@ -836,13 +850,14 @@ const translation = {
|
|
|
836
850
|
add_email_button: 'Add an email',
|
|
837
851
|
},
|
|
838
852
|
tags: { recommended: 'Recommended' },
|
|
839
|
-
|
|
853
|
+
security_section: {
|
|
840
854
|
email_auth_button: 'One time code',
|
|
841
855
|
passkey_button: 'Passkeys',
|
|
842
856
|
password_button: 'Passcode',
|
|
843
|
-
title: '
|
|
857
|
+
title: '2 factor authentication',
|
|
844
858
|
},
|
|
845
|
-
title: '
|
|
859
|
+
title: 'Settings',
|
|
860
|
+
button_logout: 'Log out',
|
|
846
861
|
},
|
|
847
862
|
/**
|
|
848
863
|
* @description copy keys for mfa views
|
|
@@ -1947,6 +1962,7 @@ const translation = {
|
|
|
1947
1962
|
link_wallet_button: 'Link wallet',
|
|
1948
1963
|
title: 'Want to add a wallet?',
|
|
1949
1964
|
},
|
|
1965
|
+
edit_profile_button: 'Edit Profile',
|
|
1950
1966
|
},
|
|
1951
1967
|
/**
|
|
1952
1968
|
* @description copy keys for Detected new wallet prompt
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var React = require('react');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
var _rect, _path, _path2, _ellipse;
|
|
29
|
+
var _excluded = ["title", "titleId"];
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
32
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
33
|
+
var SvgCurrency = function SvgCurrency(_ref) {
|
|
34
|
+
var title = _ref.title,
|
|
35
|
+
titleId = _ref.titleId,
|
|
36
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
37
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
38
|
+
width: 28,
|
|
39
|
+
height: 28,
|
|
40
|
+
viewBox: "0 0 28 28",
|
|
41
|
+
fill: "none",
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
+
"aria-labelledby": titleId
|
|
44
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
45
|
+
id: titleId
|
|
46
|
+
}, title) : null, _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
|
|
47
|
+
width: 28,
|
|
48
|
+
height: 28,
|
|
49
|
+
rx: 14,
|
|
50
|
+
fill: "#4779FF"
|
|
51
|
+
})), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
52
|
+
fillRule: "evenodd",
|
|
53
|
+
clipRule: "evenodd",
|
|
54
|
+
d: "M20.252 17.036C18.976 18.398 16.654 19.31 14 19.31c-2.65 0-4.97-.909-6.246-2.268-.004.646-.004 1.406-.004 2.293 0 1.726 2.798 3.125 6.25 3.125s6.25-1.399 6.25-3.125c0-.192.002-.406.004-.637.005-.496.01-1.069-.002-1.662Z",
|
|
55
|
+
fill: "#fff"
|
|
56
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd",
|
|
59
|
+
d: "M20.23 11.85c-1.28 1.35-3.591 2.252-6.23 2.252-2.65 0-4.969-.909-6.245-2.267-.005.64-.005 1.398-.005 2.292 0 1.726 2.798 3.125 6.25 3.125s6.25-1.399 6.25-3.125c0-.959 0-1.703-.02-2.276Z",
|
|
60
|
+
fill: "#fff"
|
|
61
|
+
})), _ellipse || (_ellipse = /*#__PURE__*/React__namespace.createElement("ellipse", {
|
|
62
|
+
cx: 14,
|
|
63
|
+
cy: 8.893,
|
|
64
|
+
rx: 6.25,
|
|
65
|
+
ry: 3.125,
|
|
66
|
+
fill: "#fff"
|
|
67
|
+
})));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports.ReactComponent = SvgCurrency;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
var _rect, _path, _path2, _ellipse;
|
|
5
|
+
var _excluded = ["title", "titleId"];
|
|
6
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
|
+
var SvgCurrency = function SvgCurrency(_ref) {
|
|
10
|
+
var title = _ref.title,
|
|
11
|
+
titleId = _ref.titleId,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
14
|
+
width: 28,
|
|
15
|
+
height: 28,
|
|
16
|
+
viewBox: "0 0 28 28",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
"aria-labelledby": titleId
|
|
20
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
21
|
+
id: titleId
|
|
22
|
+
}, title) : null, _rect || (_rect = /*#__PURE__*/React.createElement("rect", {
|
|
23
|
+
width: 28,
|
|
24
|
+
height: 28,
|
|
25
|
+
rx: 14,
|
|
26
|
+
fill: "#4779FF"
|
|
27
|
+
})), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
clipRule: "evenodd",
|
|
30
|
+
d: "M20.252 17.036C18.976 18.398 16.654 19.31 14 19.31c-2.65 0-4.97-.909-6.246-2.268-.004.646-.004 1.406-.004 2.293 0 1.726 2.798 3.125 6.25 3.125s6.25-1.399 6.25-3.125c0-.192.002-.406.004-.637.005-.496.01-1.069-.002-1.662Z",
|
|
31
|
+
fill: "#fff"
|
|
32
|
+
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
33
|
+
fillRule: "evenodd",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
|
+
d: "M20.23 11.85c-1.28 1.35-3.591 2.252-6.23 2.252-2.65 0-4.969-.909-6.245-2.267-.005.64-.005 1.398-.005 2.292 0 1.726 2.798 3.125 6.25 3.125s6.25-1.399 6.25-3.125c0-.959 0-1.703-.02-2.276Z",
|
|
36
|
+
fill: "#fff"
|
|
37
|
+
})), _ellipse || (_ellipse = /*#__PURE__*/React.createElement("ellipse", {
|
|
38
|
+
cx: 14,
|
|
39
|
+
cy: 8.893,
|
|
40
|
+
rx: 6.25,
|
|
41
|
+
ry: 3.125,
|
|
42
|
+
fill: "#fff"
|
|
43
|
+
})));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { SvgCurrency as ReactComponent };
|
|
@@ -80,3 +80,10 @@ export { ReactComponent as WalletV2Icon } from './wallet-v2.svg';
|
|
|
80
80
|
export { ReactComponent as WorkSuitcaseIcon } from './work-suitcase.svg';
|
|
81
81
|
export { ReactComponent as MfaRecoveryIcon } from './mfa-recovery-icon.svg';
|
|
82
82
|
export { ReactComponent as AccessBlockedIcon } from './access-blocked.svg';
|
|
83
|
+
export { ReactComponent as ProfileIconOutline } from './profile-outline.svg';
|
|
84
|
+
export { ReactComponent as ProfileIcon } from './profile.svg';
|
|
85
|
+
export { ReactComponent as WalletIcon } from './wallet.svg';
|
|
86
|
+
export { ReactComponent as WalletIconOutlineV2 } from './wallet-outline-v2.svg';
|
|
87
|
+
export { ReactComponent as SettingsIconOutline } from './settings-outline.svg';
|
|
88
|
+
export { ReactComponent as SettingsIcon } from './settings.svg';
|
|
89
|
+
export { ReactComponent as CurrencyIcon } from './currency.svg';
|