@dynamic-labs/sdk-react-core 0.19.0-alpha.18 → 0.19.0-alpha.19

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 (155) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +8 -8
  5. package/src/index.cjs +6 -0
  6. package/src/index.js +3 -0
  7. package/src/lib/components/Button/Button.cjs +2 -7
  8. package/src/lib/components/Button/Button.d.ts +0 -2
  9. package/src/lib/components/Button/Button.js +2 -7
  10. package/src/lib/components/CopyButton/CopyButton.cjs +1 -3
  11. package/src/lib/components/CopyButton/CopyButton.js +1 -3
  12. package/src/lib/components/DynamicFooter/DynamicFooter.cjs +10 -0
  13. package/src/lib/components/DynamicFooter/DynamicFooter.d.ts +2 -0
  14. package/src/lib/components/DynamicFooter/DynamicFooter.js +6 -0
  15. package/src/lib/components/DynamicFooter/index.d.ts +1 -0
  16. package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -1
  17. package/src/lib/components/LogoutButton/LogoutButton.js +1 -1
  18. package/src/lib/components/ModalHeader/ModalHeader.cjs +3 -3
  19. package/src/lib/components/ModalHeader/ModalHeader.js +3 -3
  20. package/src/lib/components/ModalHeader/ModalHeader.types.d.ts +3 -0
  21. package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +7 -5
  22. package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +0 -2
  23. package/src/lib/components/OTPVerificationView/OTPVerificationView.js +7 -5
  24. package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +1 -1
  25. package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +1 -1
  26. package/src/lib/components/SelectNetworkButton/SelectNetworkButton.cjs +1 -1
  27. package/src/lib/components/SelectNetworkButton/SelectNetworkButton.js +1 -1
  28. package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +1 -2
  29. package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +1 -2
  30. package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -1
  31. package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -1
  32. package/src/lib/components/Tooltip/Tooltip.cjs +1 -1
  33. package/src/lib/components/Tooltip/Tooltip.js +1 -1
  34. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +2 -2
  35. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +2 -2
  36. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
  37. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
  38. package/src/lib/components/Typography/Typography.cjs +0 -1
  39. package/src/lib/components/Typography/Typography.js +0 -1
  40. package/src/lib/components/Typography/Typography.types.d.ts +1 -1
  41. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +1 -1
  42. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +1 -1
  43. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -1
  44. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -1
  45. package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -1
  46. package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -1
  47. package/src/lib/context/DynamicContext/DynamicContext.cjs +7 -7
  48. package/src/lib/context/DynamicContext/DynamicContext.js +7 -7
  49. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +3 -1
  50. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +3 -1
  51. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +7 -20
  52. package/src/lib/layout/DynamicAuthLayout/Header/header.js +7 -20
  53. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +6 -4
  54. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +6 -4
  55. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -2
  56. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -2
  57. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -1
  58. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
  59. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
  60. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
  61. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
  62. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
  63. package/src/lib/locale/en/translation.cjs +13 -1
  64. package/src/lib/locale/en/translation.js +13 -1
  65. package/src/lib/main.global.cjs +1 -1
  66. package/src/lib/main.global.js +1 -1
  67. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -2
  68. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -2
  69. package/src/lib/shared/assets/arrow-left.cjs +53 -0
  70. package/src/lib/shared/assets/arrow-left.js +29 -0
  71. package/src/lib/shared/assets/arrow-right-circle.cjs +53 -0
  72. package/src/lib/shared/assets/arrow-right-circle.js +29 -0
  73. package/src/lib/shared/assets/check-connection.cjs +53 -0
  74. package/src/lib/shared/assets/check-connection.js +29 -0
  75. package/src/lib/shared/assets/index.d.ts +3 -0
  76. package/src/lib/styles/index.shadow.cjs +1 -1
  77. package/src/lib/styles/index.shadow.js +1 -1
  78. package/src/lib/utils/constants/index.d.ts +1 -1
  79. package/src/lib/utils/constants/typography.d.ts +0 -1
  80. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +22 -5
  81. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +2 -0
  82. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +22 -5
  83. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +24 -0
  84. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +24 -0
  85. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -1
  86. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
  87. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +12 -5
  88. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +12 -5
  89. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -1
  90. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -1
  91. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +3 -1
  92. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +3 -1
  93. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
  94. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
  95. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +6 -7
  96. package/src/lib/views/EmailUpdate/EmailUpdate.js +7 -8
  97. package/src/lib/views/EmailVerification/EmailVerification.cjs +12 -18
  98. package/src/lib/views/EmailVerification/EmailVerification.js +13 -19
  99. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -3
  100. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -3
  101. package/src/lib/views/LoginView/LoginView.cjs +3 -5
  102. package/src/lib/views/LoginView/LoginView.js +4 -6
  103. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +2 -2
  104. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +2 -2
  105. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +1 -1
  106. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +1 -1
  107. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +4 -1
  108. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +4 -1
  109. package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
  110. package/src/lib/views/NoAccess/NoAccess.js +1 -1
  111. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -3
  112. package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -3
  113. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +5 -6
  114. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +5 -6
  115. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +5 -2
  116. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
  117. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +5 -2
  118. package/src/lib/views/QrCodeView/QrCodeView.cjs +22 -23
  119. package/src/lib/views/QrCodeView/QrCodeView.js +23 -24
  120. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -1
  121. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -1
  122. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
  123. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
  124. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -1
  125. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -1
  126. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -1
  127. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
  128. package/src/lib/views/WalletList/WalletList.cjs +7 -3
  129. package/src/lib/views/WalletList/WalletList.js +8 -4
  130. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
  131. package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
  132. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +2 -2
  133. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +2 -2
  134. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
  135. package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
  136. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -1
  137. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -1
  138. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -1
  139. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -1
  140. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +2 -2
  141. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +2 -2
  142. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -2
  143. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -2
  144. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -1
  145. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -1
  146. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -1
  147. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -1
  148. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
  149. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
  150. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
  151. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
  152. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -2
  153. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -2
  154. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +2 -2
  155. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ ## [0.19.0-alpha.19](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.18...v0.19.0-alpha.19) (2023-10-20)
3
+
2
4
  ## [0.19.0-alpha.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.17...v0.19.0-alpha.18) (2023-10-20)
3
5
 
4
6
 
package/package.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "0.19.0-alpha.18";
5
+ var version = "0.19.0-alpha.19";
6
6
  var dependencies = {
7
7
  "@dynamic-labs/iconic": "0.1.34",
8
8
  "@dynamic-labs/sdk-api": "0.0.291",
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
- var version = "0.19.0-alpha.18";
1
+ var version = "0.19.0-alpha.19";
2
2
  var dependencies = {
3
3
  "@dynamic-labs/iconic": "0.1.34",
4
4
  "@dynamic-labs/sdk-api": "0.0.291",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "0.19.0-alpha.18",
3
+ "version": "0.19.0-alpha.19",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -17,13 +17,13 @@
17
17
  "react-focus-lock": "2.9.2",
18
18
  "react-i18next": "^13.2.0",
19
19
  "yup": "0.32.11",
20
- "@dynamic-labs/logger": "0.19.0-alpha.18",
21
- "@dynamic-labs/multi-wallet": "0.19.0-alpha.18",
22
- "@dynamic-labs/rpc-providers": "0.19.0-alpha.18",
23
- "@dynamic-labs/types": "0.19.0-alpha.18",
24
- "@dynamic-labs/utils": "0.19.0-alpha.18",
25
- "@dynamic-labs/wallet-book": "0.19.0-alpha.18",
26
- "@dynamic-labs/wallet-connector-core": "0.19.0-alpha.18",
20
+ "@dynamic-labs/logger": "0.19.0-alpha.19",
21
+ "@dynamic-labs/multi-wallet": "0.19.0-alpha.19",
22
+ "@dynamic-labs/rpc-providers": "0.19.0-alpha.19",
23
+ "@dynamic-labs/types": "0.19.0-alpha.19",
24
+ "@dynamic-labs/utils": "0.19.0-alpha.19",
25
+ "@dynamic-labs/wallet-book": "0.19.0-alpha.19",
26
+ "@dynamic-labs/wallet-connector-core": "0.19.0-alpha.19",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
29
29
  "devDependencies": {
package/src/index.cjs CHANGED
@@ -47,12 +47,15 @@ var localStorage = require('./lib/shared/utils/classes/storage/localStorage.cjs'
47
47
  var PhantomLedgerIcon = require('./lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs');
48
48
  var stroke = require('./lib/shared/assets/stroke.cjs');
49
49
  var arrowRight = require('./lib/shared/assets/arrow-right.cjs');
50
+ var arrowRightCircle = require('./lib/shared/assets/arrow-right-circle.cjs');
51
+ var arrowLeft = require('./lib/shared/assets/arrow-left.cjs');
50
52
  var arrowDown = require('./lib/shared/assets/arrow-down.cjs');
51
53
  var close = require('./lib/shared/assets/close.cjs');
52
54
  var chevronLeft = require('./lib/shared/assets/chevron-left.cjs');
53
55
  var error = require('./lib/shared/assets/error.cjs');
54
56
  var check = require('./lib/shared/assets/check.cjs');
55
57
  var checkCircle = require('./lib/shared/assets/check-circle.cjs');
58
+ var checkConnection = require('./lib/shared/assets/check-connection.cjs');
56
59
  var walletConnectLogo = require('./lib/shared/assets/wallet-connect-logo.cjs');
57
60
  var spinner = require('./lib/shared/assets/spinner.cjs');
58
61
  var copy = require('./lib/shared/assets/copy.cjs');
@@ -214,12 +217,15 @@ exports.LocalStorage = localStorage.LocalStorage;
214
217
  exports.PhantomLedgerIcon = PhantomLedgerIcon.PhantomLedgerIcon;
215
218
  exports.ArrowIcon = stroke.ReactComponent;
216
219
  exports.ArrowRightIcon = arrowRight.ReactComponent;
220
+ exports.ArrowRightWithCircleIcon = arrowRightCircle.ReactComponent;
221
+ exports.ArrowLeftIcon = arrowLeft.ReactComponent;
217
222
  exports.ArrowDownIcon = arrowDown.ReactComponent;
218
223
  exports.CloseIcon = close.ReactComponent;
219
224
  exports.ChevronLeftIcon = chevronLeft.ReactComponent;
220
225
  exports.ErrorIcon = error.ReactComponent;
221
226
  exports.CheckIcon = check.ReactComponent;
222
227
  exports.CheckCircleIcon = checkCircle.ReactComponent;
228
+ exports.CheckConnectionIcon = checkConnection.ReactComponent;
223
229
  exports.WalletConnectLogo = walletConnectLogo.ReactComponent;
224
230
  exports.SpinnerIcon = spinner.ReactComponent;
225
231
  exports.CopyIcon = copy.ReactComponent;
package/src/index.js CHANGED
@@ -43,12 +43,15 @@ export { LocalStorage } from './lib/shared/utils/classes/storage/localStorage.js
43
43
  export { PhantomLedgerIcon } from './lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js';
44
44
  export { ReactComponent as ArrowIcon } from './lib/shared/assets/stroke.js';
45
45
  export { ReactComponent as ArrowRightIcon } from './lib/shared/assets/arrow-right.js';
46
+ export { ReactComponent as ArrowRightWithCircleIcon } from './lib/shared/assets/arrow-right-circle.js';
47
+ export { ReactComponent as ArrowLeftIcon } from './lib/shared/assets/arrow-left.js';
46
48
  export { ReactComponent as ArrowDownIcon } from './lib/shared/assets/arrow-down.js';
47
49
  export { ReactComponent as CloseIcon } from './lib/shared/assets/close.js';
48
50
  export { ReactComponent as ChevronLeftIcon } from './lib/shared/assets/chevron-left.js';
49
51
  export { ReactComponent as ErrorIcon } from './lib/shared/assets/error.js';
50
52
  export { ReactComponent as CheckIcon } from './lib/shared/assets/check.js';
51
53
  export { ReactComponent as CheckCircleIcon } from './lib/shared/assets/check-circle.js';
54
+ export { ReactComponent as CheckConnectionIcon } from './lib/shared/assets/check-connection.js';
52
55
  export { ReactComponent as WalletConnectLogo } from './lib/shared/assets/wallet-connect-logo.js';
53
56
  export { ReactComponent as SpinnerIcon } from './lib/shared/assets/spinner.js';
54
57
  export { ReactComponent as CopyIcon } from './lib/shared/assets/copy.js';
@@ -9,7 +9,7 @@ var classNames = require('../../utils/functions/classNames/classNames.cjs');
9
9
  var spinner = require('../Spinner/spinner.cjs');
10
10
  var Typography = require('../Typography/Typography.cjs');
11
11
 
12
- const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant = 'primary', buttonRounded, children, feedback, expanded, dataTestId, disabled = false, loading = false, onClick, type, startSlot, endSlot, typographyProps = {
12
+ const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant = 'primary', children, feedback, expanded, dataTestId, disabled = false, loading = false, onClick, type, startSlot, endSlot, typographyProps = {
13
13
  variant: 'button_primary',
14
14
  }, }) => {
15
15
  const [internalButtonLoading, setInternalButtonLoading] = React.useState(false);
@@ -25,15 +25,10 @@ const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant
25
25
  none: 'button--padding-none',
26
26
  small: 'button--padding-small',
27
27
  };
28
- const buttonRoundedClassNameMap = {
29
- default: 'button--rounded',
30
- medium: 'button--rounded--medium',
31
- small: 'button--rounded--small',
32
- };
33
28
  const buttonEffectiveClassName = classNames.classNames('button', {
34
29
  'button--expanded': Boolean(expanded),
35
30
  'button--loading': Boolean(loading),
36
- }, buttonPadding ? buttonPaddingClassNameMap[buttonPadding] : '', buttonVariant ? buttonVariantClassNameMap[buttonVariant] : '', buttonRounded ? buttonRoundedClassNameMap[buttonRounded] : '', buttonClassName);
31
+ }, buttonPadding ? buttonPaddingClassNameMap[buttonPadding] : '', buttonVariant ? buttonVariantClassNameMap[buttonVariant] : '', buttonClassName);
37
32
  const handleClick = (e) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
38
33
  if (onClick) {
39
34
  const onClickResult = onClick(e);
@@ -2,11 +2,9 @@ import { ButtonHTMLAttributes, FC, MouseEventHandler, ReactNode } from 'react';
2
2
  import { TypographyProps } from '../Typography/Typography.types';
3
3
  type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
4
4
  type ButtonPadding = 'small' | 'medium' | 'large' | 'none';
5
- type ButtonRounded = 'default' | 'medium' | 'small';
6
5
  export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
7
6
  buttonClassName?: string;
8
7
  buttonPadding?: ButtonPadding;
9
- buttonRounded?: ButtonRounded;
10
8
  buttonVariant?: ButtonVariant;
11
9
  dataTestId?: string;
12
10
  disabled?: boolean;
@@ -5,7 +5,7 @@ import { classNames } from '../../utils/functions/classNames/classNames.js';
5
5
  import { Spinner } from '../Spinner/spinner.js';
6
6
  import { Typography } from '../Typography/Typography.js';
7
7
 
8
- const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant = 'primary', buttonRounded, children, feedback, expanded, dataTestId, disabled = false, loading = false, onClick, type, startSlot, endSlot, typographyProps = {
8
+ const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant = 'primary', children, feedback, expanded, dataTestId, disabled = false, loading = false, onClick, type, startSlot, endSlot, typographyProps = {
9
9
  variant: 'button_primary',
10
10
  }, }) => {
11
11
  const [internalButtonLoading, setInternalButtonLoading] = useState(false);
@@ -21,15 +21,10 @@ const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant
21
21
  none: 'button--padding-none',
22
22
  small: 'button--padding-small',
23
23
  };
24
- const buttonRoundedClassNameMap = {
25
- default: 'button--rounded',
26
- medium: 'button--rounded--medium',
27
- small: 'button--rounded--small',
28
- };
29
24
  const buttonEffectiveClassName = classNames('button', {
30
25
  'button--expanded': Boolean(expanded),
31
26
  'button--loading': Boolean(loading),
32
- }, buttonPadding ? buttonPaddingClassNameMap[buttonPadding] : '', buttonVariant ? buttonVariantClassNameMap[buttonVariant] : '', buttonRounded ? buttonRoundedClassNameMap[buttonRounded] : '', buttonClassName);
27
+ }, buttonPadding ? buttonPaddingClassNameMap[buttonPadding] : '', buttonVariant ? buttonVariantClassNameMap[buttonVariant] : '', buttonClassName);
33
28
  const handleClick = (e) => __awaiter(void 0, void 0, void 0, function* () {
34
29
  if (onClick) {
35
30
  const onClickResult = onClick(e);
@@ -7,12 +7,10 @@ var React = require('react');
7
7
  var classNames = require('../../utils/functions/classNames/classNames.cjs');
8
8
  var TextButton = require('../TextButton/TextButton.cjs');
9
9
  var Tooltip = require('../Tooltip/Tooltip.cjs');
10
- var Typography = require('../Typography/Typography.cjs');
11
10
 
12
11
  const CopyButton = ({ children, className = '', textToCopy, onClick, }) => {
13
12
  const [hover, setHover] = React.useState(false);
14
13
  const [copied, setCopied] = React.useState(false);
15
- const CopyTooltip = (jsxRuntime.jsx(Typography.Typography, { variant: 'numbers_small', color: 'tooltip', children: copied ? 'Copied' : 'Copy' }));
16
14
  React.useEffect(() => {
17
15
  const timeout = setTimeout(() => {
18
16
  /* istanbul ignore else */
@@ -27,7 +25,7 @@ const CopyButton = ({ children, className = '', textToCopy, onClick, }) => {
27
25
  setCopied(true);
28
26
  onClick === null || onClick === void 0 ? void 0 : onClick();
29
27
  };
30
- return (jsxRuntime.jsx(TextButton.TextButton, { className: classNames.classNames('copy-button__container', className), onClick: () => copyToClipboard(), onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), children: jsxRuntime.jsx(Tooltip.Tooltip, { content: CopyTooltip, children: children }) }));
28
+ return (jsxRuntime.jsx(TextButton.TextButton, { className: classNames.classNames('copy-button__container', className), onClick: () => copyToClipboard(), onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), children: jsxRuntime.jsx(Tooltip.Tooltip, { className: 'copy-button__tooltip', content: copied ? 'Copied' : 'Copy', children: children }) }));
31
29
  };
32
30
 
33
31
  exports.CopyButton = CopyButton;
@@ -3,12 +3,10 @@ import { useState, useEffect } from 'react';
3
3
  import { classNames } from '../../utils/functions/classNames/classNames.js';
4
4
  import { TextButton } from '../TextButton/TextButton.js';
5
5
  import { Tooltip } from '../Tooltip/Tooltip.js';
6
- import { Typography } from '../Typography/Typography.js';
7
6
 
8
7
  const CopyButton = ({ children, className = '', textToCopy, onClick, }) => {
9
8
  const [hover, setHover] = useState(false);
10
9
  const [copied, setCopied] = useState(false);
11
- const CopyTooltip = (jsx(Typography, { variant: 'numbers_small', color: 'tooltip', children: copied ? 'Copied' : 'Copy' }));
12
10
  useEffect(() => {
13
11
  const timeout = setTimeout(() => {
14
12
  /* istanbul ignore else */
@@ -23,7 +21,7 @@ const CopyButton = ({ children, className = '', textToCopy, onClick, }) => {
23
21
  setCopied(true);
24
22
  onClick === null || onClick === void 0 ? void 0 : onClick();
25
23
  };
26
- return (jsx(TextButton, { className: classNames('copy-button__container', className), onClick: () => copyToClipboard(), onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), children: jsx(Tooltip, { content: CopyTooltip, children: children }) }));
24
+ return (jsx(TextButton, { className: classNames('copy-button__container', className), onClick: () => copyToClipboard(), onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), children: jsx(Tooltip, { className: 'copy-button__tooltip', content: copied ? 'Copied' : 'Copy', children: children }) }));
27
25
  };
28
26
 
29
27
  export { CopyButton };
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
7
+
8
+ const DynamicFooter = () => (jsxRuntime.jsx("div", { className: 'dynamic-footer', children: jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {}) }));
9
+
10
+ exports.DynamicFooter = DynamicFooter;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const DynamicFooter: () => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
3
+
4
+ const DynamicFooter = () => (jsx("div", { className: 'dynamic-footer', children: jsx(PoweredByDynamic, {}) }));
5
+
6
+ export { DynamicFooter };
@@ -0,0 +1 @@
1
+ export { DynamicFooter } from './DynamicFooter';
@@ -35,7 +35,7 @@ const LogoutButton = ({ buttonClassName = '', isTextButton = false, }) => {
35
35
  setLoading(false);
36
36
  }
37
37
  });
38
- return (jsxRuntime.jsx(Button.Button, { buttonClassName: buttonClassName, buttonVariant: 'tertiary', buttonRounded: 'small', buttonPadding: isTextButton ? 'none' : 'medium', loading: loading, disabled: loading, onClick: onLogOutClick, typographyProps: isTextButton
38
+ return (jsxRuntime.jsx(Button.Button, { buttonClassName: buttonClassName, buttonVariant: 'tertiary', buttonPadding: isTextButton ? 'none' : 'medium', loading: loading, disabled: loading, onClick: onLogOutClick, typographyProps: isTextButton
39
39
  ? { color: 'secondary', variant: 'button_tertiary' }
40
40
  : { color: 'primary', variant: 'button_secondary' }, dataTestId: 'logout-button', startSlot: isTextButton ? jsxRuntime.jsx(logout.ReactComponent, {}) : undefined, expanded: !isTextButton, type: 'button', children: "Log out" }));
41
41
  };
@@ -31,7 +31,7 @@ const LogoutButton = ({ buttonClassName = '', isTextButton = false, }) => {
31
31
  setLoading(false);
32
32
  }
33
33
  });
34
- return (jsx(Button, { buttonClassName: buttonClassName, buttonVariant: 'tertiary', buttonRounded: 'small', buttonPadding: isTextButton ? 'none' : 'medium', loading: loading, disabled: loading, onClick: onLogOutClick, typographyProps: isTextButton
34
+ return (jsx(Button, { buttonClassName: buttonClassName, buttonVariant: 'tertiary', buttonPadding: isTextButton ? 'none' : 'medium', loading: loading, disabled: loading, onClick: onLogOutClick, typographyProps: isTextButton
35
35
  ? { color: 'secondary', variant: 'button_tertiary' }
36
36
  : { color: 'primary', variant: 'button_secondary' }, dataTestId: 'logout-button', startSlot: isTextButton ? jsx(SvgLogout, {}) : undefined, expanded: !isTextButton, type: 'button', children: "Log out" }));
37
37
  };
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var classNames = require('../../utils/functions/classNames/classNames.cjs');
7
7
 
8
- const ModalHeader = ({ alignContent, children, leading, trailing, positionAbsolute = false, style, }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('modal-header', {
9
- 'modal-header--absolute': positionAbsolute,
8
+ const ModalHeader = ({ alignContent, children, leading, displayLeading = true, trailing, displayTrailing = true, style, displayBorder, }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('modal-header', {
10
9
  'modal-header--align-content-bottom': alignContent === 'bottom',
11
- }), style: style, children: [jsxRuntime.jsx("div", { className: 'modal-header__leading', children: leading }), children, jsxRuntime.jsx("div", { className: 'modal-header__trailing', children: trailing })] }));
10
+ 'modal-header--border': displayBorder,
11
+ }), style: style, children: [displayLeading && jsxRuntime.jsx("div", { className: 'modal-header__leading', children: leading }), children, displayTrailing && (jsxRuntime.jsx("div", { className: 'modal-header__trailing', children: trailing }))] }));
12
12
 
13
13
  exports.ModalHeader = ModalHeader;
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { classNames } from '../../utils/functions/classNames/classNames.js';
3
3
 
4
- const ModalHeader = ({ alignContent, children, leading, trailing, positionAbsolute = false, style, }) => (jsxs("div", { className: classNames('modal-header', {
5
- 'modal-header--absolute': positionAbsolute,
4
+ const ModalHeader = ({ alignContent, children, leading, displayLeading = true, trailing, displayTrailing = true, style, displayBorder, }) => (jsxs("div", { className: classNames('modal-header', {
6
5
  'modal-header--align-content-bottom': alignContent === 'bottom',
7
- }), style: style, children: [jsx("div", { className: 'modal-header__leading', children: leading }), children, jsx("div", { className: 'modal-header__trailing', children: trailing })] }));
6
+ 'modal-header--border': displayBorder,
7
+ }), style: style, children: [displayLeading && jsx("div", { className: 'modal-header__leading', children: leading }), children, displayTrailing && (jsx("div", { className: 'modal-header__trailing', children: trailing }))] }));
8
8
 
9
9
  export { ModalHeader };
@@ -3,8 +3,11 @@ export type ModalHeaderProps = {
3
3
  alignContent?: 'bottom';
4
4
  children?: ReactNode;
5
5
  leading?: ReactElement | ReactElement[];
6
+ displayLeading?: boolean;
6
7
  positionAbsolute?: boolean;
7
8
  trailing?: ReactNode;
9
+ displayTrailing?: boolean;
8
10
  style?: CSSProperties;
11
+ displayBorder?: boolean;
9
12
  };
10
13
  export type ModalHeaderComponent = (props: ModalHeaderProps) => ReactElement;
@@ -10,7 +10,6 @@ require('../../shared/logger.cjs');
10
10
  require('@dynamic-labs/iconic');
11
11
  require('@dynamic-labs/wallet-connector-core');
12
12
  require('../../context/ViewContext/ViewContext.cjs');
13
- var close = require('../../shared/assets/close.cjs');
14
13
  var chevronLeft = require('../../shared/assets/chevron-left.cjs');
15
14
  var check = require('../../shared/assets/check.cjs');
16
15
  var pencilAltIcon = require('../../shared/assets/pencil-alt-icon.cjs');
@@ -25,6 +24,7 @@ require('../../context/DynamicContext/DynamicContext.cjs');
25
24
  require('@dynamic-labs/multi-wallet');
26
25
  require('../ShadowDOM/ShadowDOM.cjs');
27
26
  require('../../context/ThemeContext/ThemeContext.cjs');
27
+ var classNames = require('../../utils/functions/classNames/classNames.cjs');
28
28
  var Icon = require('../Icon/Icon.cjs');
29
29
  require('react-dom');
30
30
  require('react-focus-lock');
@@ -60,7 +60,6 @@ require('formik');
60
60
  require('yup');
61
61
  var ModalHeader = require('../ModalHeader/ModalHeader.cjs');
62
62
  var IconButton = require('../IconButton/IconButton.cjs');
63
- var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
64
63
  require('../Alert/Alert.cjs');
65
64
  var PinField = require('../PinField/PinField.cjs');
66
65
  var ModalHeaderBanner = require('../ModalHeaderBanner/ModalHeaderBanner.cjs');
@@ -70,14 +69,17 @@ require('../Popper/PopperContext/PopperContext.cjs');
70
69
  require('../InlineWidget/InlineWidget.cjs');
71
70
  require('../MenuList/Dropdown/Dropdown.cjs');
72
71
 
73
- const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, onClickClose, displayPoweredByDynamic = false, successBannerText, }) => {
72
+ const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, successBannerText, }) => {
74
73
  const backButton = onClickBack && (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: onClickBack, "data-testid": 'back-button', children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) }));
75
- const closeButton = (jsxRuntime.jsx(IconButton.IconButton, { onClick: onClickClose, type: 'button', "data-testid": 'close-button', children: jsxRuntime.jsx(close.ReactComponent, {}) }));
76
74
  const EmailIcon = React.useMemo(() => {
77
75
  const EmailIcon = (props) => (jsxRuntime.jsx(Icon.Icon, { color: 'brand-primary', children: jsxRuntime.jsx(signInWithEmail.ReactComponent, Object.assign({}, props, { "data-testid": 'sign-in-with-email-icon' })) }));
78
76
  return EmailIcon;
79
77
  }, []);
80
- return (jsxRuntime.jsxs("div", { className: 'otp-verification-view', children: [successBannerText && (jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'notice', message: successBannerText, disableTruncate: true })), jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsxRuntime.jsx(ModalHeader.ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, trailing: onClickClose && closeButton, children: jsxRuntime.jsxs("div", { className: 'otp-verification-view__status-header', children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: EmailIcon, iconSize: 50, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: EmailIcon, iconSize: 80, isSpinning: isLoading, treatAsFunctionComponent: true }))] }) }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', children: isValid ? 'Verification code confirmed' : 'Confirm verification code' }), jsxRuntime.jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "Hang tight while we get things ready for you" })), !isValid && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "We\u2019ve sent a verification code to" }), jsxRuntime.jsxs("div", { className: 'otp-verification-view__email-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: shortenEmail.shortenEmail(email) }), onClickEditEmail && (jsxRuntime.jsx(IconButton.IconButton, { onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) }) }))] })] }))] }), jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsxRuntime.jsx("div", { className: 'otp-verification-view__footer', children: displayPoweredByDynamic && jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {}) })] }));
78
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, children: jsxRuntime.jsx("div", { className: 'otp-verification-view__status-header', children: jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', children: isValid
79
+ ? 'Verification code confirmed'
80
+ : 'Confirm verification code' }) }) }), successBannerText && (jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'notice', message: successBannerText, disableTruncate: true })), jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsxRuntime.jsxs("div", { className: classNames.classNames('otp-verification-view', {
81
+ 'otp-verification-view--message': Boolean(successBannerText || error),
82
+ }), children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: EmailIcon, iconSize: 96, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: EmailIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxRuntime.jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "Hang tight while we get things ready for you" })), !isValid && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "We\u2019ve sent a verification code to" }), jsxRuntime.jsxs("div", { className: 'otp-verification-view__email-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: shortenEmail.shortenEmail(email) }), onClickEditEmail && (jsxRuntime.jsx(IconButton.IconButton, { onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) }) }))] })] }))] }), jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange })] })] }));
81
83
  };
82
84
 
83
85
  exports.OTPVerificationView = OTPVerificationView;
@@ -1,12 +1,10 @@
1
1
  import { FC, MouseEventHandler } from 'react';
2
2
  type OtpVerificationLayoutProps = {
3
- displayPoweredByDynamic?: boolean;
4
3
  email: string;
5
4
  error?: Error;
6
5
  isLoading: boolean;
7
6
  isValid: boolean;
8
7
  onClickBack?: MouseEventHandler<HTMLButtonElement>;
9
- onClickClose?: MouseEventHandler<HTMLButtonElement>;
10
8
  onClickEditEmail?: MouseEventHandler<HTMLButtonElement>;
11
9
  onPinChange?: (value: string) => void;
12
10
  onPinComplete: (value: string) => void;
@@ -6,7 +6,6 @@ import '../../shared/logger.js';
6
6
  import '@dynamic-labs/iconic';
7
7
  import '@dynamic-labs/wallet-connector-core';
8
8
  import '../../context/ViewContext/ViewContext.js';
9
- import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
10
9
  import { ReactComponent as SvgChevronLeft } from '../../shared/assets/chevron-left.js';
11
10
  import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
12
11
  import { ReactComponent as SvgPencilAltIcon } from '../../shared/assets/pencil-alt-icon.js';
@@ -21,6 +20,7 @@ import '../../context/DynamicContext/DynamicContext.js';
21
20
  import '@dynamic-labs/multi-wallet';
22
21
  import '../ShadowDOM/ShadowDOM.js';
23
22
  import '../../context/ThemeContext/ThemeContext.js';
23
+ import { classNames } from '../../utils/functions/classNames/classNames.js';
24
24
  import { Icon } from '../Icon/Icon.js';
25
25
  import 'react-dom';
26
26
  import 'react-focus-lock';
@@ -56,7 +56,6 @@ import 'formik';
56
56
  import 'yup';
57
57
  import { ModalHeader } from '../ModalHeader/ModalHeader.js';
58
58
  import { IconButton } from '../IconButton/IconButton.js';
59
- import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
60
59
  import '../Alert/Alert.js';
61
60
  import { PinField } from '../PinField/PinField.js';
62
61
  import { ModalHeaderBanner } from '../ModalHeaderBanner/ModalHeaderBanner.js';
@@ -66,14 +65,17 @@ import '../Popper/PopperContext/PopperContext.js';
66
65
  import '../InlineWidget/InlineWidget.js';
67
66
  import '../MenuList/Dropdown/Dropdown.js';
68
67
 
69
- const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, onClickClose, displayPoweredByDynamic = false, successBannerText, }) => {
68
+ const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, successBannerText, }) => {
70
69
  const backButton = onClickBack && (jsx(IconButton, { type: 'button', onClick: onClickBack, "data-testid": 'back-button', children: jsx(SvgChevronLeft, {}) }));
71
- const closeButton = (jsx(IconButton, { onClick: onClickClose, type: 'button', "data-testid": 'close-button', children: jsx(SvgClose, {}) }));
72
70
  const EmailIcon = useMemo(() => {
73
71
  const EmailIcon = (props) => (jsx(Icon, { color: 'brand-primary', children: jsx(SvgSignInWithEmail, Object.assign({}, props, { "data-testid": 'sign-in-with-email-icon' })) }));
74
72
  return EmailIcon;
75
73
  }, []);
76
- return (jsxs("div", { className: 'otp-verification-view', children: [successBannerText && (jsx(ModalHeaderBanner, { type: 'notice', message: successBannerText, disableTruncate: true })), jsx(ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsx(ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, trailing: onClickClose && closeButton, children: jsxs("div", { className: 'otp-verification-view__status-header', children: [isValid && (jsx(IconWithStatus, { Icon: EmailIcon, iconSize: 50, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: EmailIcon, iconSize: 80, isSpinning: isLoading, treatAsFunctionComponent: true }))] }) }), jsx(Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', children: isValid ? 'Verification code confirmed' : 'Confirm verification code' }), jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "Hang tight while we get things ready for you" })), !isValid && (jsxs(Fragment, { children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "We\u2019ve sent a verification code to" }), jsxs("div", { className: 'otp-verification-view__email-container', children: [jsx(Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: shortenEmail(email) }), onClickEditEmail && (jsx(IconButton, { onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button', children: jsx(Icon, { color: 'text-tertiary', children: jsx(SvgPencilAltIcon, {}) }) }))] })] }))] }), jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsx("div", { className: 'otp-verification-view__footer', children: displayPoweredByDynamic && jsx(PoweredByDynamic, {}) })] }));
74
+ return (jsxs(Fragment, { children: [jsx(ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, children: jsx("div", { className: 'otp-verification-view__status-header', children: jsx(Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', children: isValid
75
+ ? 'Verification code confirmed'
76
+ : 'Confirm verification code' }) }) }), successBannerText && (jsx(ModalHeaderBanner, { type: 'notice', message: successBannerText, disableTruncate: true })), jsx(ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsxs("div", { className: classNames('otp-verification-view', {
77
+ 'otp-verification-view--message': Boolean(successBannerText || error),
78
+ }), children: [isValid && (jsx(IconWithStatus, { Icon: EmailIcon, iconSize: 96, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: EmailIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "Hang tight while we get things ready for you" })), !isValid && (jsxs(Fragment, { children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: "We\u2019ve sent a verification code to" }), jsxs("div", { className: 'otp-verification-view__email-container', children: [jsx(Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: shortenEmail(email) }), onClickEditEmail && (jsx(IconButton, { onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button', children: jsx(Icon, { color: 'text-tertiary', children: jsx(SvgPencilAltIcon, {}) }) }))] })] }))] }), jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange })] })] }));
77
79
  };
78
80
 
79
81
  export { OTPVerificationView };
@@ -21,7 +21,7 @@ const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, clas
21
21
  if (((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) === false) {
22
22
  return null;
23
23
  }
24
- const content = (jsxRuntime.jsxs("a", { target: '_blank', href: URL, className: classNames.classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer', children: [jsxRuntime.jsx(Typography.Typography, { as: 'span', color: 'secondary', weight: 'regular', variant: 'body_mini', className: classNames.classNames('powered-by-dynamic__text', classNameText), children: "Powered by" }), jsxRuntime.jsx(dynamicLogo.ReactComponent, { className: classNames.classNames('powered-by-dynamic__logo', classNameLogo) })] }));
24
+ const content = (jsxRuntime.jsxs("a", { target: '_blank', href: URL, className: classNames.classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer', children: [jsxRuntime.jsx(Typography.Typography, { as: 'span', color: 'tertiary', weight: 'regular', variant: 'body_mini', className: classNames.classNames('powered-by-dynamic__text', classNameText), children: "Powered by" }), jsxRuntime.jsx(dynamicLogo.ReactComponent, { className: classNames.classNames('powered-by-dynamic__logo', classNameLogo) })] }));
25
25
  if (asFooter)
26
26
  return jsxRuntime.jsx(DynamicWidgetFooter.DynamicWidgetFooter, { children: content });
27
27
  return content;
@@ -17,7 +17,7 @@ const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, clas
17
17
  if (((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) === false) {
18
18
  return null;
19
19
  }
20
- const content = (jsxs("a", { target: '_blank', href: URL, className: classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer', children: [jsx(Typography, { as: 'span', color: 'secondary', weight: 'regular', variant: 'body_mini', className: classNames('powered-by-dynamic__text', classNameText), children: "Powered by" }), jsx(SvgDynamicLogo, { className: classNames('powered-by-dynamic__logo', classNameLogo) })] }));
20
+ const content = (jsxs("a", { target: '_blank', href: URL, className: classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer', children: [jsx(Typography, { as: 'span', color: 'tertiary', weight: 'regular', variant: 'body_mini', className: classNames('powered-by-dynamic__text', classNameText), children: "Powered by" }), jsx(SvgDynamicLogo, { className: classNames('powered-by-dynamic__logo', classNameLogo) })] }));
21
21
  if (asFooter)
22
22
  return jsx(DynamicWidgetFooter, { children: content });
23
23
  return content;
@@ -7,7 +7,7 @@ var Button = require('../Button/Button.cjs');
7
7
 
8
8
  const SelectNetworkButton = ({ networkId, networkName, networkIconUrl, onClick, }) => {
9
9
  const networkImage = (jsxRuntime.jsx("img", { alt: networkName, className: 'select-network-button__icon', src: networkIconUrl }));
10
- return (jsxRuntime.jsxs(Button.Button, { dataTestId: 'SelectNetworkButton', onClick: () => onClick(networkId), buttonRounded: 'default', expanded: true, className: 'select-network-button', children: ["Select", networkImage, networkName, " network"] }));
10
+ return (jsxRuntime.jsxs(Button.Button, { dataTestId: 'SelectNetworkButton', onClick: () => onClick(networkId), expanded: true, className: 'select-network-button', children: ["Select", networkImage, networkName, " network"] }));
11
11
  };
12
12
 
13
13
  exports.SelectNetworkButton = SelectNetworkButton;
@@ -3,7 +3,7 @@ import { Button } from '../Button/Button.js';
3
3
 
4
4
  const SelectNetworkButton = ({ networkId, networkName, networkIconUrl, onClick, }) => {
5
5
  const networkImage = (jsx("img", { alt: networkName, className: 'select-network-button__icon', src: networkIconUrl }));
6
- return (jsxs(Button, { dataTestId: 'SelectNetworkButton', onClick: () => onClick(networkId), buttonRounded: 'default', expanded: true, className: 'select-network-button', children: ["Select", networkImage, networkName, " network"] }));
6
+ return (jsxs(Button, { dataTestId: 'SelectNetworkButton', onClick: () => onClick(networkId), expanded: true, className: 'select-network-button', children: ["Select", networkImage, networkName, " network"] }));
7
7
  };
8
8
 
9
9
  export { SelectNetworkButton };
@@ -5,8 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var Typography = require('../Typography/Typography.cjs');
7
7
  var IconWithSpinner = require('../IconWithSpinner/IconWithSpinner.cjs');
8
- var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
9
8
 
10
- const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 100 }), jsxRuntime.jsxs("div", { className: 'select-wallet-chain-layout__body', children: [jsxRuntime.jsx(Typography.Typography, { className: 'select-wallet-chain-layout__title', as: 'h6', color: 'primary', variant: 'title', children: "Select Chain" }), jsxRuntime.jsx(Typography.Typography, { className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal', children: "This wallet supports multiple chains. Select which chain you'd like to connect to" }), jsxRuntime.jsx("div", { className: 'select-wallet-chain-layout__list', children: children })] }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'select-wallet-chain-layout__powered-by' })] }));
9
+ const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxRuntime.jsxs("div", { className: 'select-wallet-chain-layout__container', children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 96 }), jsxRuntime.jsxs("div", { className: 'select-wallet-chain-layout__body', children: [jsxRuntime.jsx(Typography.Typography, { className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal', children: "This wallet supports multiple chains. Select which chain you'd like to connect to" }), jsxRuntime.jsx("div", { className: 'select-wallet-chain-layout__list', children: children })] })] }));
11
10
 
12
11
  exports.SelectWalletChainLayout = SelectWalletChainLayout;
@@ -1,8 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Typography } from '../Typography/Typography.js';
3
3
  import { IconWithSpinner } from '../IconWithSpinner/IconWithSpinner.js';
4
- import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
5
4
 
6
- const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxs("div", { children: [jsx(IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 100 }), jsxs("div", { className: 'select-wallet-chain-layout__body', children: [jsx(Typography, { className: 'select-wallet-chain-layout__title', as: 'h6', color: 'primary', variant: 'title', children: "Select Chain" }), jsx(Typography, { className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal', children: "This wallet supports multiple chains. Select which chain you'd like to connect to" }), jsx("div", { className: 'select-wallet-chain-layout__list', children: children })] }), jsx(PoweredByDynamic, { classNameRoot: 'select-wallet-chain-layout__powered-by' })] }));
5
+ const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxs("div", { className: 'select-wallet-chain-layout__container', children: [jsx(IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 96 }), jsxs("div", { className: 'select-wallet-chain-layout__body', children: [jsx(Typography, { className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal', children: "This wallet supports multiple chains. Select which chain you'd like to connect to" }), jsx("div", { className: 'select-wallet-chain-layout__list', children: children })] })] }));
7
6
 
8
7
  export { SelectWalletChainLayout };
@@ -75,7 +75,7 @@ const SendBalanceForm = ({ initialValues, onSubmit, balance, decimals = 18, }) =
75
75
  }, [balance, decimals]);
76
76
  return (jsxRuntime.jsx(formik.Formik, { initialValues: initialValues || sendBalanceFormInitialValues, validationSchema: sendBalanceFormValidationSchema, onSubmit: (values) => onSubmit(values), validateOnChange: false, validateOnBlur: false, children: ({ errors, touched }) => (jsxRuntime.jsxs(formik.Form, { className: 'send-balance-form', children: [jsxRuntime.jsx(formik.Field, { variant: 'regular', className: 'send-balance-form__field', name: 'amount', label: 'Amount', placeholder: 'Select amount', as: Input.Input, error: errors['amount'], message: touched['amount'] &&
77
77
  getDisplayErrorMessage(errors, 'amount', decimals) }), jsxRuntime.jsx(formik.Field, { variant: 'regular', className: 'send-balance-form__field', placeholder: 'Enter wallet address...', label: 'Recipient', id: 'recipient', name: 'recipient', as: Input.Input, error: errors['recipient'], message: touched['recipient'] &&
78
- getDisplayErrorMessage(errors, 'recipient') }), jsxRuntime.jsx(Button.Button, { dataTestId: 'sendBalanceFormSubmitButton', expanded: true, type: 'submit', buttonVariant: 'primary', buttonPadding: 'large', buttonRounded: 'default', buttonClassName: 'send-balance-form__button', children: "Send now" })] })) }));
78
+ getDisplayErrorMessage(errors, 'recipient') }), jsxRuntime.jsx(Button.Button, { dataTestId: 'sendBalanceFormSubmitButton', expanded: true, type: 'submit', buttonVariant: 'primary', buttonPadding: 'large', buttonClassName: 'send-balance-form__button', children: "Send now" })] })) }));
79
79
  };
80
80
 
81
81
  exports.SendBalanceForm = SendBalanceForm;
@@ -71,7 +71,7 @@ const SendBalanceForm = ({ initialValues, onSubmit, balance, decimals = 18, }) =
71
71
  }, [balance, decimals]);
72
72
  return (jsx(Formik, { initialValues: initialValues || sendBalanceFormInitialValues, validationSchema: sendBalanceFormValidationSchema, onSubmit: (values) => onSubmit(values), validateOnChange: false, validateOnBlur: false, children: ({ errors, touched }) => (jsxs(Form, { className: 'send-balance-form', children: [jsx(Field, { variant: 'regular', className: 'send-balance-form__field', name: 'amount', label: 'Amount', placeholder: 'Select amount', as: Input, error: errors['amount'], message: touched['amount'] &&
73
73
  getDisplayErrorMessage(errors, 'amount', decimals) }), jsx(Field, { variant: 'regular', className: 'send-balance-form__field', placeholder: 'Enter wallet address...', label: 'Recipient', id: 'recipient', name: 'recipient', as: Input, error: errors['recipient'], message: touched['recipient'] &&
74
- getDisplayErrorMessage(errors, 'recipient') }), jsx(Button, { dataTestId: 'sendBalanceFormSubmitButton', expanded: true, type: 'submit', buttonVariant: 'primary', buttonPadding: 'large', buttonRounded: 'default', buttonClassName: 'send-balance-form__button', children: "Send now" })] })) }));
74
+ getDisplayErrorMessage(errors, 'recipient') }), jsx(Button, { dataTestId: 'sendBalanceFormSubmitButton', expanded: true, type: 'submit', buttonVariant: 'primary', buttonPadding: 'large', buttonClassName: 'send-balance-form__button', children: "Send now" })] })) }));
75
75
  };
76
76
 
77
77
  export { SendBalanceForm };
@@ -76,7 +76,7 @@ const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
76
76
  const childrenBounding = childrenRef.current.getBoundingClientRect();
77
77
  setVector([
78
78
  childrenBounding.left + childrenBounding.width / 2,
79
- childrenBounding.top - 4, //add 4px margin over the children
79
+ childrenBounding.top - 6, //add 6px margin over the children
80
80
  ]);
81
81
  }
82
82
  }, []);
@@ -72,7 +72,7 @@ const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
72
72
  const childrenBounding = childrenRef.current.getBoundingClientRect();
73
73
  setVector([
74
74
  childrenBounding.left + childrenBounding.width / 2,
75
- childrenBounding.top - 4, //add 4px margin over the children
75
+ childrenBounding.top - 6, //add 6px margin over the children
76
76
  ]);
77
77
  }
78
78
  }, []);
@@ -36,9 +36,9 @@ var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
36
36
  const TransactionConfirmationPageLayout = ({ onClickClose, isLoading, onClickBack, title, error, appOrigin, appLogoUrl, appName, onClickSend, disableSendButton, displayPoweredByDynamicFooter = false, warningMessage, children, }) => {
37
37
  const closeButton = onClickClose && (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: onClickClose, "data-testid": 'close', disabled: isLoading, children: jsxRuntime.jsx(close.ReactComponent, {}) }));
38
38
  const backButton = onClickBack && (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: onClickBack, "data-testid": 'back-button', children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) }));
39
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, leading: backButton, alignContent: 'bottom', children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: (props) => (jsxRuntime.jsx(Icon.Icon, { color: 'brand-primary', children: jsxRuntime.jsx(signCircle.ReactComponent, Object.assign({}, props)) })), iconSize: 64, isSpinning: true }) }), jsxRuntime.jsxs("div", { className: 'transaction-confirmation__body', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'transaction-confirmation__title', children: title }), jsxRuntime.jsx(AnimatePresence.AnimatePresence, { animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}), children: error && (jsxRuntime.jsx("div", { className: 'transaction-confirmation__error', children: jsxRuntime.jsx(Alert.Alert, { icon: 'error', variant: 'error', children: error }) })) }), jsxRuntime.jsxs("div", { className: 'transaction-confirmation__content', children: [jsxRuntime.jsx("div", { className: 'transaction-confirmation__app-origin-tile', children: jsxRuntime.jsx(AppOriginTile.AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }) }), jsxRuntime.jsx("div", { className: 'transaction-confirmation__rows', children: children })] }), jsxRuntime.jsx(AnimatePresence.AnimatePresence, { animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}), children: warningMessage && (jsxRuntime.jsx("div", { className: 'transaction-confirmation__warning', children: jsxRuntime.jsx(Alert.Alert, { icon: 'error', variant: 'warning', contentDataTestId: 'warning_content', children: warningMessage }) })) }), jsxRuntime.jsxs("div", { className: 'transaction-confirmation__actions', children: [onClickClose && (jsxRuntime.jsx(Button.Button, { buttonVariant: 'secondary', onClick: onClickClose, expanded: true, buttonPadding: 'large', buttonRounded: 'default', disabled: isLoading, children: "Cancel" })), jsxRuntime.jsx(Button.Button, { buttonVariant: 'primary', buttonPadding: 'large', onClick: (event) => {
39
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, leading: backButton, alignContent: 'bottom', children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: (props) => (jsxRuntime.jsx(Icon.Icon, { color: 'brand-primary', children: jsxRuntime.jsx(signCircle.ReactComponent, Object.assign({}, props)) })), iconSize: 64, isSpinning: true }) }), jsxRuntime.jsxs("div", { className: 'transaction-confirmation__body', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'transaction-confirmation__title', children: title }), jsxRuntime.jsx(AnimatePresence.AnimatePresence, { animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}), children: error && (jsxRuntime.jsx("div", { className: 'transaction-confirmation__error', children: jsxRuntime.jsx(Alert.Alert, { icon: 'error', variant: 'error', children: error }) })) }), jsxRuntime.jsxs("div", { className: 'transaction-confirmation__content', children: [jsxRuntime.jsx("div", { className: 'transaction-confirmation__app-origin-tile', children: jsxRuntime.jsx(AppOriginTile.AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }) }), jsxRuntime.jsx("div", { className: 'transaction-confirmation__rows', children: children })] }), jsxRuntime.jsx(AnimatePresence.AnimatePresence, { animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}), children: warningMessage && (jsxRuntime.jsx("div", { className: 'transaction-confirmation__warning', children: jsxRuntime.jsx(Alert.Alert, { icon: 'error', variant: 'warning', contentDataTestId: 'warning_content', children: warningMessage }) })) }), jsxRuntime.jsxs("div", { className: 'transaction-confirmation__actions', children: [onClickClose && (jsxRuntime.jsx(Button.Button, { buttonVariant: 'secondary', onClick: onClickClose, expanded: true, buttonPadding: 'large', disabled: isLoading, children: "Cancel" })), jsxRuntime.jsx(Button.Button, { buttonVariant: 'primary', buttonPadding: 'large', onClick: (event) => {
40
40
  onClickSend === null || onClickSend === void 0 ? void 0 : onClickSend(event);
41
- }, expanded: true, buttonRounded: 'default', loading: isLoading, disabled: disableSendButton, children: "Confirm" })] }), displayPoweredByDynamicFooter && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'transaction-confirmation__footer' }))] })] }));
41
+ }, expanded: true, loading: isLoading, disabled: disableSendButton, children: "Confirm" })] }), displayPoweredByDynamicFooter && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'transaction-confirmation__footer' }))] })] }));
42
42
  };
43
43
 
44
44
  exports.TransactionConfirmationPageLayout = TransactionConfirmationPageLayout;