@crossmint/client-sdk-react-ui 2.2.20 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-23YVHBPI.js +11 -0
- package/dist/chunk-2SBA4RZZ.cjs +17 -0
- package/dist/chunk-36S5R2NM.js +53 -0
- package/dist/{chunk-L2FU52RJ.js → chunk-3NEYD7GW.js} +1 -1
- package/dist/{chunk-BUJDXHVE.js → chunk-3TUDRFXX.js} +1 -1
- package/dist/chunk-3X24JZVG.cjs +6 -0
- package/dist/{chunk-DQHM2ITY.js → chunk-44MREOU3.js} +1 -1
- package/dist/{chunk-F2PJZF7H.cjs → chunk-4RD5CZ3D.cjs} +1 -1
- package/dist/chunk-56YL3XJW.cjs +1 -0
- package/dist/chunk-5J6CUTGJ.cjs +53 -0
- package/dist/chunk-5MRPY46P.js +46 -0
- package/dist/chunk-5OQLZOD4.cjs +231 -0
- package/dist/chunk-5VJQFSG6.js +1 -0
- package/dist/{chunk-L2LMLMMN.js → chunk-6QJNYB7C.js} +1 -1
- package/dist/chunk-7U6Q4ELB.cjs +35 -0
- package/dist/chunk-A5BH5XDB.js +1 -0
- package/dist/chunk-AHMPKIEY.cjs +14 -0
- package/dist/{chunk-7SLUOHO2.cjs → chunk-ALORBDLN.cjs} +1 -1
- package/dist/{chunk-JO7RY6MG.cjs → chunk-ANSLIVQ7.cjs} +1 -1
- package/dist/chunk-AO2V2B62.cjs +160 -0
- package/dist/chunk-AOBO3CEQ.js +14 -0
- package/dist/chunk-BABEX7ZC.js +2 -0
- package/dist/chunk-BAXCSO7J.js +1 -0
- package/dist/{chunk-2RMGS33N.js → chunk-BG2YKGGE.js} +1 -1
- package/dist/chunk-BPEDL7VV.cjs +1 -0
- package/dist/chunk-BPHJ7DTH.cjs +1 -0
- package/dist/chunk-BWCRTWMO.js +3 -0
- package/dist/chunk-CDQFTAM2.cjs +1 -0
- package/dist/chunk-DFSB3TWF.js +1 -0
- package/dist/chunk-DJZOP4MT.cjs +34 -0
- package/dist/chunk-EA7H4AXL.js +1 -0
- package/dist/{chunk-ND3NGHHK.js → chunk-EAUAF6IQ.js} +1 -1
- package/dist/chunk-EAWYV5ZO.cjs +1 -0
- package/dist/chunk-EDALAJ5I.cjs +1 -0
- package/dist/chunk-EO53B7LL.cjs +1 -0
- package/dist/chunk-G7JHUDRI.cjs +1 -0
- package/dist/{chunk-ZCIYQIQJ.cjs → chunk-GH7J7WBI.cjs} +1 -1
- package/dist/chunk-GKVX7FEM.js +40 -0
- package/dist/chunk-H3CPTTQQ.js +1 -0
- package/dist/chunk-H4XBJVSE.cjs +98 -0
- package/dist/chunk-HHI2XRKR.js +1 -0
- package/dist/chunk-HJGCM4XH.js +13 -0
- package/dist/chunk-I4D3YJW2.js +0 -0
- package/dist/chunk-IBDJ3NF2.js +1 -0
- package/dist/{chunk-NXNLHCGF.cjs → chunk-JGZA7M5Q.cjs} +1 -1
- package/dist/chunk-JL7YHC7D.js +34 -0
- package/dist/chunk-JVXYIBS3.cjs +46 -0
- package/dist/{chunk-T7XPEJNO.cjs → chunk-JYZ5GRCH.cjs} +1 -1
- package/dist/chunk-KFFPM6JM.js +1 -0
- package/dist/{chunk-F7JUPGHV.cjs → chunk-KSK4MJU7.cjs} +1 -1
- package/dist/chunk-KXQ5HCBO.js +231 -0
- package/dist/chunk-L2E6XMSV.js +1 -0
- package/dist/chunk-LUSXGZYB.js +66 -0
- package/dist/chunk-MN6UTXVP.js +160 -0
- package/dist/chunk-NL42M74L.cjs +2 -0
- package/dist/chunk-NZUCXN2O.js +6 -0
- package/dist/chunk-O5IPDCMT.js +48 -0
- package/dist/chunk-OAHZHKRR.js +1 -0
- package/dist/chunk-OIBR6K7M.js +2 -0
- package/dist/{chunk-2OIZFMK3.cjs → chunk-OSSEBYGB.cjs} +1 -1
- package/dist/chunk-OVJIGWD7.cjs +66 -0
- package/dist/chunk-QFUZG5YR.js +1 -0
- package/dist/chunk-QQP4GR7V.js +35 -0
- package/dist/{chunk-S5S2XFIC.cjs → chunk-RH2CVOIS.cjs} +1 -1
- package/dist/{chunk-4M6MLYJX.js → chunk-RVASNIDI.js} +1 -1
- package/dist/chunk-S4BKL6MR.cjs +11 -0
- package/dist/chunk-S7ZQ4UUK.cjs +2 -0
- package/dist/chunk-SCHRLC2I.cjs +3 -0
- package/dist/chunk-SHJCMWEH.js +98 -0
- package/dist/chunk-TBD7RAFW.js +17 -0
- package/dist/chunk-UG5R7IPH.js +3 -0
- package/dist/chunk-UHFCB2EY.js +1 -0
- package/dist/chunk-UMWTEGO6.cjs +1 -0
- package/dist/chunk-VRFL53NP.cjs +40 -0
- package/dist/chunk-VXAHFAP4.cjs +1 -0
- package/dist/{chunk-4BH7ZTBT.cjs → chunk-W3W7VNA6.cjs} +1 -1
- package/dist/chunk-W5RDCN5G.cjs +1 -0
- package/dist/chunk-WK3BTTQG.cjs +13 -0
- package/dist/{chunk-5H3ARLI7.js → chunk-XAFMKKD2.js} +1 -1
- package/dist/chunk-XBXL7GMY.cjs +48 -0
- package/dist/chunk-XFYW7RD2.js +1 -0
- package/dist/{chunk-JQQUNBXY.cjs → chunk-Y66ATVFL.cjs} +1 -1
- package/dist/{chunk-B3PLOTUC.js → chunk-YAFI3AUR.js} +1 -1
- package/dist/chunk-YCYSZLQ2.cjs +1 -0
- package/dist/chunk-YGN7O63X.cjs +3 -0
- package/dist/chunk-YNISB2IC.cjs +1 -0
- package/dist/{chunk-3EQH236A.js → chunk-YYS3QKWM.js} +1 -1
- package/dist/chunk-ZT6OJ47F.cjs +1 -0
- package/dist/components/CrossmintNFTCollectionView.cjs +1 -1
- package/dist/components/CrossmintNFTCollectionView.js +1 -1
- package/dist/components/CrossmintNFTDetail.cjs +1 -1
- package/dist/components/CrossmintNFTDetail.js +1 -1
- package/dist/components/auth/AuthForm.cjs +1 -1
- package/dist/components/auth/AuthForm.d.cts +3 -2
- package/dist/components/auth/AuthForm.d.ts +3 -2
- package/dist/components/auth/AuthForm.js +1 -1
- package/dist/components/auth/AuthFormBackButton.cjs +1 -1
- package/dist/components/auth/AuthFormBackButton.d.cts +3 -1
- package/dist/components/auth/AuthFormBackButton.d.ts +3 -1
- package/dist/components/auth/AuthFormBackButton.js +1 -1
- package/dist/components/auth/AuthFormDialog.cjs +1 -1
- package/dist/components/auth/AuthFormDialog.js +1 -1
- package/dist/components/auth/EmbeddedAuthForm.cjs +1 -1
- package/dist/components/auth/EmbeddedAuthForm.js +1 -1
- package/dist/components/auth/PasskeyPrompt.cjs +1 -1
- package/dist/components/auth/PasskeyPrompt.d.cts +3 -2
- package/dist/components/auth/PasskeyPrompt.d.ts +3 -2
- package/dist/components/auth/PasskeyPrompt.js +1 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs +1 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.js +1 -1
- package/dist/components/auth/methods/email/EmailOTPInput.cjs +1 -1
- package/dist/components/auth/methods/email/EmailOTPInput.d.cts +1 -2
- package/dist/components/auth/methods/email/EmailOTPInput.d.ts +1 -2
- package/dist/components/auth/methods/email/EmailOTPInput.js +1 -1
- package/dist/components/auth/methods/email/EmailSignIn.cjs +1 -1
- package/dist/components/auth/methods/email/EmailSignIn.js +1 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs +1 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js +1 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.cjs +1 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.js +1 -1
- package/dist/components/auth/methods/google/GoogleSignIn.cjs +1 -1
- package/dist/components/auth/methods/google/GoogleSignIn.js +1 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.cjs +1 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.js +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.js +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.js +1 -1
- package/dist/components/auth/methods/web3/Web3Connectors.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3Connectors.js +1 -1
- package/dist/components/common/CountdownButton.cjs +1 -1
- package/dist/components/common/CountdownButton.js +1 -1
- package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.cjs +1 -1
- package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.js +1 -1
- package/dist/components/common/Dialog.cjs +1 -1
- package/dist/components/common/Dialog.d.cts +24 -21
- package/dist/components/common/Dialog.d.ts +24 -21
- package/dist/components/common/Dialog.js +1 -1
- package/dist/components/common/Divider.cjs +1 -1
- package/dist/components/common/Divider.js +1 -1
- package/dist/components/common/InputOTP.cjs +1 -1
- package/dist/components/common/InputOTP.d.cts +2 -10
- package/dist/components/common/InputOTP.d.ts +2 -10
- package/dist/components/common/InputOTP.js +1 -1
- package/dist/components/common/OAuthButton.cjs +1 -0
- package/dist/components/common/OAuthButton.d.cts +14 -0
- package/dist/components/common/OAuthButton.d.ts +14 -0
- package/dist/components/common/OAuthButton.js +1 -0
- package/dist/components/common/ScreenReaderText.cjs +1 -0
- package/dist/components/common/ScreenReaderText.d.cts +6 -0
- package/dist/components/common/ScreenReaderText.d.ts +6 -0
- package/dist/components/common/ScreenReaderText.js +1 -0
- package/dist/components/common/SecuredByCrossmint.cjs +1 -1
- package/dist/components/common/SecuredByCrossmint.d.cts +2 -2
- package/dist/components/common/SecuredByCrossmint.d.ts +2 -2
- package/dist/components/common/SecuredByCrossmint.js +1 -1
- package/dist/components/common/Spinner.cjs +1 -1
- package/dist/components/common/Spinner.d.cts +1 -2
- package/dist/components/common/Spinner.d.ts +1 -2
- package/dist/components/common/Spinner.js +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js +1 -1
- package/dist/components/embed/v3/index.cjs +1 -1
- package/dist/components/embed/v3/index.js +1 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.cjs +1 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.js +1 -1
- package/dist/components/hosted/index.cjs +1 -1
- package/dist/components/hosted/index.js +1 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.cjs +1 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.js +1 -1
- package/dist/components/hosted/v3/index.cjs +1 -1
- package/dist/components/hosted/v3/index.js +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +0 -4
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.js +1 -1
- package/dist/components/signers/BaseConfirmation.cjs +1 -0
- package/dist/components/signers/BaseConfirmation.d.cts +14 -0
- package/dist/components/signers/BaseConfirmation.d.ts +14 -0
- package/dist/components/signers/BaseConfirmation.js +1 -0
- package/dist/components/signers/BaseOTPInput.cjs +1 -0
- package/dist/components/signers/BaseOTPInput.d.cts +19 -0
- package/dist/components/signers/BaseOTPInput.d.ts +19 -0
- package/dist/components/signers/BaseOTPInput.js +1 -0
- package/dist/components/signers/EmailSignersDialog.cjs +1 -1
- package/dist/components/signers/EmailSignersDialog.d.cts +1 -1
- package/dist/components/signers/EmailSignersDialog.d.ts +1 -1
- package/dist/components/signers/EmailSignersDialog.js +1 -1
- package/dist/components/signers/PhoneSignersDialog.cjs +1 -1
- package/dist/components/signers/PhoneSignersDialog.d.cts +1 -1
- package/dist/components/signers/PhoneSignersDialog.d.ts +1 -1
- package/dist/components/signers/PhoneSignersDialog.js +1 -1
- package/dist/components/signers/index.cjs +1 -1
- package/dist/components/signers/index.d.cts +0 -4
- package/dist/components/signers/index.d.ts +0 -4
- package/dist/components/signers/index.js +1 -1
- package/dist/consts/version.cjs +1 -1
- package/dist/consts/version.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAuth.cjs +1 -1
- package/dist/hooks/useAuth.js +1 -1
- package/dist/hooks/useCrossmintAuth.cjs +1 -1
- package/dist/hooks/useCrossmintAuth.js +1 -1
- package/dist/hooks/useCrossmintCheckout.cjs +1 -1
- package/dist/hooks/useCrossmintCheckout.js +1 -1
- package/dist/hooks/useOAuthWindowListener.cjs +1 -1
- package/dist/hooks/useOAuthWindowListener.d.cts +1 -0
- package/dist/hooks/useOAuthWindowListener.d.ts +1 -0
- package/dist/hooks/useOAuthWindowListener.js +1 -1
- package/dist/icons/chevronRight.cjs +1 -1
- package/dist/icons/chevronRight.d.cts +1 -2
- package/dist/icons/chevronRight.d.ts +1 -2
- package/dist/icons/chevronRight.js +1 -1
- package/dist/icons/discord.cjs +1 -1
- package/dist/icons/discord.d.cts +2 -2
- package/dist/icons/discord.d.ts +2 -2
- package/dist/icons/discord.js +1 -1
- package/dist/icons/farcaster.cjs +1 -1
- package/dist/icons/farcaster.d.cts +2 -2
- package/dist/icons/farcaster.d.ts +2 -2
- package/dist/icons/farcaster.js +1 -1
- package/dist/icons/google.cjs +1 -1
- package/dist/icons/google.d.cts +2 -2
- package/dist/icons/google.d.ts +2 -2
- package/dist/icons/google.js +1 -1
- package/dist/icons/leftArrow.cjs +1 -1
- package/dist/icons/leftArrow.d.cts +1 -2
- package/dist/icons/leftArrow.d.ts +1 -2
- package/dist/icons/leftArrow.js +1 -1
- package/dist/icons/mail.cjs +1 -0
- package/dist/icons/mail.d.cts +6 -0
- package/dist/icons/mail.d.ts +6 -0
- package/dist/icons/mail.js +1 -0
- package/dist/icons/phone.cjs +1 -0
- package/dist/icons/phone.d.cts +6 -0
- package/dist/icons/phone.d.ts +6 -0
- package/dist/icons/phone.js +1 -0
- package/dist/icons/phoneOTP.cjs +1 -1
- package/dist/icons/phoneOTP.d.cts +1 -2
- package/dist/icons/phoneOTP.d.ts +1 -2
- package/dist/icons/phoneOTP.js +1 -1
- package/dist/icons/twitter.cjs +1 -1
- package/dist/icons/twitter.d.cts +2 -2
- package/dist/icons/twitter.d.ts +2 -2
- package/dist/icons/twitter.js +1 -1
- package/dist/icons/wallet.cjs +1 -1
- package/dist/icons/wallet.d.cts +1 -2
- package/dist/icons/wallet.d.ts +1 -2
- package/dist/icons/wallet.js +1 -1
- package/dist/icons/x.cjs +1 -1
- package/dist/icons/x.d.cts +2 -2
- package/dist/icons/x.d.ts +2 -2
- package/dist/icons/x.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +0 -4
- package/dist/index.d.ts +0 -4
- package/dist/index.js +1 -1
- package/dist/providers/CrossmintAuthProvider.cjs +1 -1
- package/dist/providers/CrossmintAuthProvider.js +1 -1
- package/dist/providers/CrossmintAuthProviderInternal.cjs +1 -1
- package/dist/providers/CrossmintAuthProviderInternal.js +1 -1
- package/dist/providers/CrossmintWalletProvider.cjs +1 -1
- package/dist/providers/CrossmintWalletProvider.js +1 -1
- package/dist/providers/auth/OAuthFlowProvider.cjs +1 -1
- package/dist/providers/auth/OAuthFlowProvider.d.cts +1 -0
- package/dist/providers/auth/OAuthFlowProvider.d.ts +1 -0
- package/dist/providers/auth/OAuthFlowProvider.js +1 -1
- package/dist/providers/dynamic/DynamicWalletProvider.cjs +1 -1
- package/dist/providers/dynamic/DynamicWalletProvider.js +1 -1
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/styles/globals.cjs +1 -0
- package/dist/styles/globals.d.cts +5 -0
- package/dist/styles/globals.d.ts +5 -0
- package/dist/styles/globals.js +1 -0
- package/dist/styles/index.cjs +1 -0
- package/dist/styles/index.d.cts +3 -0
- package/dist/styles/index.d.ts +3 -0
- package/dist/styles/index.js +1 -0
- package/dist/styles/theme.cjs +1 -0
- package/dist/styles/theme.d.cts +13 -0
- package/dist/styles/theme.d.ts +13 -0
- package/dist/styles/theme.js +1 -0
- package/dist/utils/createCrossmintApiClient.cjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/package.json +5 -7
- package/dist/chunk-2F3EMF5G.cjs +0 -1
- package/dist/chunk-2LLVSWMJ.js +0 -1
- package/dist/chunk-2NZ6SYFP.cjs +0 -1
- package/dist/chunk-34ULQ2PW.cjs +0 -1
- package/dist/chunk-3PHT3DAK.cjs +0 -1
- package/dist/chunk-4EQ23ZKC.cjs +0 -1
- package/dist/chunk-4ROE755V.cjs +0 -1
- package/dist/chunk-6BFWRGAS.cjs +0 -1
- package/dist/chunk-6IMXTTW4.cjs +0 -1
- package/dist/chunk-6LFJ3UC3.js +0 -1
- package/dist/chunk-6QVBCF3C.js +0 -1
- package/dist/chunk-7OJVAIXA.cjs +0 -1
- package/dist/chunk-7YO3UHAR.cjs +0 -1
- package/dist/chunk-CW4GAQRA.js +0 -1
- package/dist/chunk-CZ7CTBCO.js +0 -1
- package/dist/chunk-DCELWGNS.js +0 -1
- package/dist/chunk-DSBQW65Y.cjs +0 -1
- package/dist/chunk-E4DYZZKZ.cjs +0 -1
- package/dist/chunk-E4TBJMOO.js +0 -1
- package/dist/chunk-E5D2JTKO.js +0 -1
- package/dist/chunk-E65EGG73.cjs +0 -1
- package/dist/chunk-EOMXTZMF.js +0 -1
- package/dist/chunk-FPE5X5RH.cjs +0 -1
- package/dist/chunk-GGUEHZAY.js +0 -1
- package/dist/chunk-GHRFRG65.js +0 -1
- package/dist/chunk-GLOKRANI.cjs +0 -1
- package/dist/chunk-GONS3X7J.js +0 -2
- package/dist/chunk-I7KK3D7J.js +0 -1
- package/dist/chunk-J2YZL55W.js +0 -1
- package/dist/chunk-J4QPNKHC.cjs +0 -1
- package/dist/chunk-JGT6RWSD.js +0 -1
- package/dist/chunk-JPJKOERH.js +0 -1
- package/dist/chunk-JU37JPL7.js +0 -1
- package/dist/chunk-KIESVSW4.js +0 -1
- package/dist/chunk-LSQT2KG6.cjs +0 -1
- package/dist/chunk-NI4D3UIR.cjs +0 -2
- package/dist/chunk-ONU6TI5W.cjs +0 -1
- package/dist/chunk-P453UQYI.js +0 -11
- package/dist/chunk-PGE5M3Q5.cjs +0 -1
- package/dist/chunk-PIUCKVF7.js +0 -1
- package/dist/chunk-PZUWRGVP.cjs +0 -1
- package/dist/chunk-QHDN67N5.js +0 -1
- package/dist/chunk-QQTPO5IF.js +0 -1
- package/dist/chunk-RWWMM4HD.js +0 -1
- package/dist/chunk-SFDQPSSP.js +0 -1
- package/dist/chunk-SGP6SK6O.js +0 -1
- package/dist/chunk-SQ6GQUV4.js +0 -1
- package/dist/chunk-SRQAQHYK.cjs +0 -1
- package/dist/chunk-TM7WDKYR.cjs +0 -1
- package/dist/chunk-TXOVDTYK.cjs +0 -1
- package/dist/chunk-UILJI3DM.js +0 -1
- package/dist/chunk-UMCSEFX6.cjs +0 -11
- package/dist/chunk-VLDE23JX.js +0 -1
- package/dist/chunk-VNY6LU32.cjs +0 -1
- package/dist/chunk-VUIDQYBY.cjs +0 -1
- package/dist/chunk-VWL76U5G.js +0 -1
- package/dist/chunk-WAMK2K23.cjs +0 -1
- package/dist/chunk-WW6GUXHG.js +0 -1
- package/dist/chunk-YGYMICXJ.cjs +0 -1
- package/dist/chunk-YXF74MVI.cjs +0 -1
- package/dist/chunk-ZBQCXWMD.cjs +0 -1
- package/dist/chunk-ZKXBJNL7.js +0 -2
- package/dist/chunk-ZNDVEP3D.js +0 -1
- package/dist/chunk-ZSJQWAT2.js +0 -1
- package/dist/chunk-ZWMCD7KM.cjs +0 -2
- package/dist/components/auth/methods/web3/Web3Connector.cjs +0 -1
- package/dist/components/auth/methods/web3/Web3Connector.d.cts +0 -13
- package/dist/components/auth/methods/web3/Web3Connector.d.ts +0 -13
- package/dist/components/auth/methods/web3/Web3Connector.js +0 -1
- package/dist/components/auth/methods/web3/Web3ConnectorButton.cjs +0 -1
- package/dist/components/auth/methods/web3/Web3ConnectorButton.d.cts +0 -11
- package/dist/components/auth/methods/web3/Web3ConnectorButton.d.ts +0 -11
- package/dist/components/auth/methods/web3/Web3ConnectorButton.js +0 -1
- package/dist/components/signers/EmailConfirmation.cjs +0 -1
- package/dist/components/signers/EmailConfirmation.d.cts +0 -12
- package/dist/components/signers/EmailConfirmation.d.ts +0 -12
- package/dist/components/signers/EmailConfirmation.js +0 -1
- package/dist/components/signers/EmailOTPInput.cjs +0 -1
- package/dist/components/signers/EmailOTPInput.d.cts +0 -12
- package/dist/components/signers/EmailOTPInput.d.ts +0 -12
- package/dist/components/signers/EmailOTPInput.js +0 -1
- package/dist/components/signers/PhoneConfirmation.cjs +0 -1
- package/dist/components/signers/PhoneConfirmation.d.cts +0 -12
- package/dist/components/signers/PhoneConfirmation.d.ts +0 -12
- package/dist/components/signers/PhoneConfirmation.js +0 -1
- package/dist/components/signers/PhoneOTPInput.cjs +0 -1
- package/dist/components/signers/PhoneOTPInput.d.cts +0 -12
- package/dist/components/signers/PhoneOTPInput.d.ts +0 -12
- package/dist/components/signers/PhoneOTPInput.js +0 -1
- package/dist/components/signers/consts.cjs +0 -1
- package/dist/components/signers/consts.d.cts +0 -3
- package/dist/components/signers/consts.d.ts +0 -3
- package/dist/components/signers/consts.js +0 -1
- package/dist/twind-instance.cjs +0 -1
- package/dist/twind-instance.d.cts +0 -8
- package/dist/twind-instance.d.ts +0 -8
- package/dist/twind-instance.js +0 -1
- package/dist/twind.config.cjs +0 -1
- package/dist/twind.config.d.cts +0 -8
- package/dist/twind.config.d.ts +0 -8
- package/dist/twind.config.js +0 -1
- package/dist/utils/classNames.cjs +0 -1
- package/dist/utils/classNames.d.cts +0 -12
- package/dist/utils/classNames.d.ts +0 -12
- package/dist/utils/classNames.js +0 -1
- package/dist/utils/errorUtils.cjs +0 -1
- package/dist/utils/errorUtils.d.cts +0 -6
- package/dist/utils/errorUtils.d.ts +0 -6
- package/dist/utils/errorUtils.js +0 -1
- /package/dist/{chunk-VAKQ4II7.js → chunk-HGHYGPCN.js} +0 -0
- /package/dist/{chunk-4YRSANGA.cjs → chunk-QHI4DOG7.cjs} +0 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk3X24JZVGcjs = require('./chunk-3X24JZVG.cjs');var _chunkEAWYV5ZOcjs = require('./chunk-EAWYV5ZO.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactdom = require('react-dom');var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);var _reacttransitiongroup = require('react-transition-group');var _jsxruntime = require('react/jsx-runtime');var C=_styled2.default.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: 999;
|
|
5
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
6
|
+
backdrop-filter: blur(8px);
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: 16px;
|
|
11
|
+
|
|
12
|
+
/* Transition classes */
|
|
13
|
+
&.dialog-enter {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
}
|
|
16
|
+
&.dialog-enter-active {
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transition: opacity 100ms ease;
|
|
19
|
+
}
|
|
20
|
+
&.dialog-exit {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
&.dialog-exit-active {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transition: opacity 200ms ease;
|
|
26
|
+
}
|
|
27
|
+
`,R=_styled2.default.dialog`
|
|
28
|
+
${_chunk3X24JZVGcjs.a}
|
|
29
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
30
|
+
|
|
31
|
+
/* Modal styling */
|
|
32
|
+
position: relative;
|
|
33
|
+
background-color: ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.background)||_chunkEAWYV5ZOcjs.a["cm-background-primary"]}};
|
|
34
|
+
border-radius: ${t=>{var e;return((e=t.appearance)==null?void 0:e.borderRadius)||"16px"}};
|
|
35
|
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
36
|
+
width: 100%;
|
|
37
|
+
max-height: 90vh;
|
|
38
|
+
padding: 32px;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
|
|
41
|
+
/* Focus management */
|
|
42
|
+
&:focus {
|
|
43
|
+
outline: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Desktop styles and animations */
|
|
47
|
+
@media (min-width: 480px) {
|
|
48
|
+
max-width: 448px;
|
|
49
|
+
border-radius: ${t=>{var e;return((e=t.appearance)==null?void 0:e.borderRadius)||"24px"}};
|
|
50
|
+
padding: 40px 40px 30px;
|
|
51
|
+
|
|
52
|
+
/* Desktop transition classes */
|
|
53
|
+
.dialog-enter & {
|
|
54
|
+
transform: scale(0.95);
|
|
55
|
+
opacity: 0;
|
|
56
|
+
}
|
|
57
|
+
.dialog-enter-active & {
|
|
58
|
+
transform: scale(1);
|
|
59
|
+
opacity: 1;
|
|
60
|
+
transition: transform 200ms ease, opacity 100ms ease;
|
|
61
|
+
}
|
|
62
|
+
.dialog-exit & {
|
|
63
|
+
transform: scale(1);
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
66
|
+
.dialog-exit-active & {
|
|
67
|
+
transform: scale(0.95);
|
|
68
|
+
opacity: 0;
|
|
69
|
+
transition: transform 200ms ease, opacity 200ms ease;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Mobile styles and animations */
|
|
74
|
+
@media (max-width: 479px) {
|
|
75
|
+
position: fixed;
|
|
76
|
+
left: 0;
|
|
77
|
+
right: 0;
|
|
78
|
+
bottom: 8px;
|
|
79
|
+
width: calc(100% - 16px);
|
|
80
|
+
max-height: calc(100vh - 18px);
|
|
81
|
+
border-radius: ${t=>{var e;return((e=t.appearance)==null?void 0:e.borderRadius)||"36px 36px 50px 50px"}};
|
|
82
|
+
padding: 40px 30px;
|
|
83
|
+
margin: 0 auto;
|
|
84
|
+
|
|
85
|
+
/* Mobile transition classes */
|
|
86
|
+
.dialog-enter & {
|
|
87
|
+
transform: translateY(100%);
|
|
88
|
+
}
|
|
89
|
+
.dialog-enter-active & {
|
|
90
|
+
transform: translateY(0);
|
|
91
|
+
transition: transform 200ms ease;
|
|
92
|
+
}
|
|
93
|
+
.dialog-exit & {
|
|
94
|
+
transform: translateY(0);
|
|
95
|
+
}
|
|
96
|
+
.dialog-exit-active & {
|
|
97
|
+
transform: translateY(100%);
|
|
98
|
+
transition: transform 200ms ease;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`,k=_styled2.default.button`
|
|
102
|
+
${_chunk3X24JZVGcjs.a}
|
|
103
|
+
|
|
104
|
+
/* Close button styling */
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 28px;
|
|
107
|
+
right: 28px;
|
|
108
|
+
width: 32px;
|
|
109
|
+
height: 32px;
|
|
110
|
+
border-radius: 6px;
|
|
111
|
+
border: none;
|
|
112
|
+
z-index: 1000;
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
color: ${t=>{var e,a,i;return(i=(a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textPrimary)!=null?i:_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
transition: all 0.15s ease;
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
background-color: ${t=>{var e,a;return((a=(e=t==null?void 0:t.appearance)==null?void 0:e.colors)==null?void 0:a.backgroundSecondary)||_chunkEAWYV5ZOcjs.a["cm-hover"]}};
|
|
123
|
+
color: ${t=>{var e,a,i;return(i=(a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textPrimary)!=null?i:_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:focus {
|
|
127
|
+
outline: none;
|
|
128
|
+
background-color: ${t=>{var e,a;return((a=(e=t==null?void 0:t.appearance)==null?void 0:e.colors)==null?void 0:a.backgroundSecondary)||_chunkEAWYV5ZOcjs.a["cm-hover"]}};
|
|
129
|
+
box-shadow: 0 0 0 2px ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]}};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
svg {
|
|
133
|
+
width: 28px;
|
|
134
|
+
height: 28px;
|
|
135
|
+
}
|
|
136
|
+
`,w=_styled2.default.h2`
|
|
137
|
+
${_chunk3X24JZVGcjs.a}
|
|
138
|
+
|
|
139
|
+
/* Title styling */
|
|
140
|
+
display: block;
|
|
141
|
+
font-size: 24px;
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
line-height: 1.3;
|
|
144
|
+
color: ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
145
|
+
margin: 0 0 2px 0;
|
|
146
|
+
`,S=_styled2.default.p`
|
|
147
|
+
${_chunk3X24JZVGcjs.a}
|
|
148
|
+
|
|
149
|
+
/* Description styling */
|
|
150
|
+
display: block;
|
|
151
|
+
font-size: 16px;
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
line-height: 1.5;
|
|
154
|
+
color: ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
|
|
155
|
+
margin: 0 0 12px 0;
|
|
156
|
+
`,$=_styled2.default.div`
|
|
157
|
+
/* Content wrapper */
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
`,M= exports.a =({open:t,setDialogOpen:e,appearance:a,style:i,children:f,closeOnOverlayClick:x=!1,showCloseButton:y=!0})=>{let[g,u]=r.useState(!1),d=r.useRef(null);return r.useEffect(()=>{u(!0)},[]),r.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),r.useEffect(()=>{let s=b=>{b.key==="Escape"&&t&&(e==null||e(!1))};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t,e]),g?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, _reacttransitiongroup.CSSTransition,{nodeRef:d,in:t,timeout:200,classNames:"dialog",unmountOnExit:!0,mountOnEnter:!0,children:_jsxruntime.jsx.call(void 0, C,{ref:d,onClick:x?s=>{s.target===s.currentTarget&&(e==null||e(!1))}:void 0,children:_jsxruntime.jsxs.call(void 0, R,{appearance:a,style:_chunk2WSEHVNPcjs.a.call(void 0, {},i),children:[y&&_jsxruntime.jsx.call(void 0, k,{onClick:()=>e==null?void 0:e(!1),appearance:a,children:_jsxruntime.jsxs.call(void 0, "svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 6 6 18"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 6 12 12"})]})}),_jsxruntime.jsx.call(void 0, $,{children:f})]})})}),document.body):null},B= exports.b =({children:t,style:e,appearance:a})=>_jsxruntime.jsx.call(void 0, w,{style:e,appearance:a,children:t}),F= exports.c =({children:t,style:e,appearance:a})=>_jsxruntime.jsx.call(void 0, S,{style:e,appearance:a,children:t});exports.a = M; exports.b = B; exports.c = F;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{a as t}from"./chunk-DFSB3TWF.js";import o from"@emotion/styled";import{keyframes as i}from"@emotion/react";import{jsx as r,jsxs as l}from"react/jsx-runtime";var n=i`
|
|
2
|
+
from {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: rotate(360deg);
|
|
7
|
+
}
|
|
8
|
+
`,C=o.svg`
|
|
9
|
+
width: 24px;
|
|
10
|
+
height: 24px;
|
|
11
|
+
fill: ${t["cm-text-primary"]};
|
|
12
|
+
color: ${t["cm-text-secondary"]};
|
|
13
|
+
animation: ${n} 1s linear infinite;
|
|
14
|
+
`,c=({style:e})=>l(C,{"aria-hidden":"true",style:e,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),r("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]});export{c as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as v}from"./chunk-LUSXGZYB.js";import{a as C}from"./chunk-36S5R2NM.js";import{a as D}from"./chunk-BAXCSO7J.js";import{a as f,b as g,c as u}from"./chunk-MN6UTXVP.js";import{a as b}from"./chunk-C3JRTLQP.js";import{Fragment as S,jsx as t,jsxs as h}from"react/jsx-runtime";function x({email:i,open:r,setOpen:k,step:e,onSubmitOTP:O,onResendOTPCode:y,onSubmitEmail:P,rejectRef:n,appearance:o}){var s,m,c;function l(a){var d;(r||a)&&((d=n.current)==null||d.call(n,new Error),k(!1))}return h(f,{open:r,setDialogOpen:l,appearance:o,style:{overflow:"hidden"},children:[e==="initial"?h(S,{children:[t(g,{appearance:o,children:"Confirm it's you"}),t(u,{appearance:o,children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code."})]}):null,e==="otp"?t(C,{contactInfo:i!=null?i:"",contactType:"email",icon:t("div",{style:{position:"relative",left:"12px"},children:t(b,{customAccentColor:(s=o==null?void 0:o.colors)==null?void 0:s.accent,customButtonBackgroundColor:(m=o==null?void 0:o.colors)==null?void 0:m.buttonBackground,customBackgroundColor:(c=o==null?void 0:o.colors)==null?void 0:c.background})}),title:"Check your email",description:`A temporary login code has been sent to <strong>${i}</strong>`,helpText:`Can't find the email? Check spam folder.
|
|
2
|
+
Some emails may take several minutes to arrive.`,onSubmitOTP:O,onResendCode:y,appearance:o}):t(v,{contactInfo:i!=null?i:"",icon:t(D,{}),onConfirm:P,onCancel:l,appearance:o})]})}export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o,b as t}from"./chunk-PXDN3KFO.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";var h=e=>i("svg",t(o({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[r("path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}),r("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"})]}));export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-EAUAF6IQ.js";import{g as u}from"./chunk-KXQ5HCBO.js";import{a as l,b as s,c as m}from"./chunk-PXDN3KFO.js";import{useEffect as p}from"react";import{useCrossmint as d}from"@crossmint/client-sdk-react-base";import{jsx as f}from"react/jsx-runtime";function h({children:o}){let{experimental_setCustomAuth:r,experimental_customAuth:e}=d(),{user:t,jwt:n,experimental_externalWalletSigner:i}=a();return p(()=>{n==null&&(e==null?void 0:e.jwt)!=null&&r(void 0),i!=null||(t==null?void 0:t.email)!=null?r({jwt:n,email:t==null?void 0:t.email,externalWalletSigner:i}):r({jwt:n})},[i,n,t]),o}function S(e){var t=e,{children:o}=t,r=m(t,["children"]);return f(u,s(l({},r),{children:f(h,{children:o})}))}export{S as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _jsxruntime = require('react/jsx-runtime');var s=e=>_jsxruntime.jsxs.call(void 0, "svg",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[_jsxruntime.jsx.call(void 0, "path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}),_jsxruntime.jsx.call(void 0, "rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"})]}));exports.a = s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkH4XBJVSEcjs = require('./chunk-H4XBJVSE.cjs');var _chunkS7ZQ4UUKcjs = require('./chunk-S7ZQ4UUK.cjs');var _chunkNL42M74Lcjs = require('./chunk-NL42M74L.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _jsxruntime = require('react/jsx-runtime');var p=P=>()=>{throw new Error(`${P} is not available. Make sure you're using an email or phone signer wallet.`)};function L({children:P,showPasskeyHelpers:d=!0,appearance:m,createOnLogin:o,callbacks:i}){let{experimental_customAuth:t}=_clientsdkreactbase.useCrossmint.call(void 0, ),[F,c]=_react.useState.call(void 0, {open:!1}),[N,y]=_react.useState.call(void 0, !1),[j,S]=_react.useState.call(void 0, "initial"),[q,h]=_react.useState.call(void 0, !1),[A,u]=_react.useState.call(void 0, "initial"),[K,V]=_react.useState.call(void 0, !1),v=_react.useRef.call(void 0, p("sendEmailWithOtp")),g=_react.useRef.call(void 0, p("verifyOtp")),C=_react.useRef.call(void 0, p("sendPhoneWithOtp")),T=_react.useRef.call(void 0, p("verifyPhoneOtp")),n=_react.useRef.call(void 0, p("reject")),w=(o==null?void 0:o.signer.type)==="phone"&&(o==null?void 0:o.signer.phone)!=null?o.signer.phone:t==null?void 0:t.phone,R=_react.useCallback.call(void 0, e=>()=>new Promise(r=>{if(!d){r();return}c({type:e,open:!0,primaryActionOnClick:()=>{c({open:!1}),r()},secondaryActionOnClick:()=>{c({open:!1}),r()}})}),[d]),O=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield v.current(),S("otp")}catch(e){console.error("Failed to send email OTP",e),n.current(new Error("Failed to send email OTP"))}}),B=e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield g.current(e),y(!1),S("initial")}catch(r){console.error("Failed to verify OTP",r),n.current(new Error("Failed to verify OTP"))}}),E=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield C.current(),u("otp")}catch(e){console.error("Failed to send phone OTP",e),n.current(new Error("Failed to send phone OTP"))}}),I=e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield T.current(e),h(!1),u("initial")}catch(r){console.error("Failed to verify phone OTP",r),n.current(new Error("Failed to verify phone OTP"))}});return _jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletBaseProvider,{createOnLogin:o,onAuthRequired:(e,r,b,U)=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){(o==null?void 0:o.signer.type)==="phone"&&o.signer.phone?(h(e),C.current=r,T.current=b):(y(e),v.current=r,g.current=b),V(e),n.current=U}),callbacks:(()=>{let e=i==null?void 0:i.onWalletCreationStart,r=i==null?void 0:i.onTransactionStart;return(o==null?void 0:o.signer.type)==="passkey"&&d&&(e=R("create-wallet"),r=R("transaction")),{onWalletCreationStart:e,onTransactionStart:r}})(),children:[P,_jsxruntime.jsx.call(void 0, _chunkS7ZQ4UUKcjs.a,{rejectRef:n,email:t==null?void 0:t.email,open:N&&(t==null?void 0:t.email)!=null,setOpen:y,step:j,onSubmitOTP:B,onResendOTPCode:O,onSubmitEmail:O,appearance:m}),_jsxruntime.jsx.call(void 0, _chunkNL42M74Lcjs.a,{rejectRef:n,phone:w,open:q&&w!=null,setOpen:h,step:A,onSubmitOTP:I,onResendOTPCode:E,onSubmitPhone:E,appearance:m}),_jsxruntime.jsx.call(void 0, _chunkH4XBJVSEcjs.a,{state:F,appearance:m})]})}exports.a = L;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as t}from"./chunk-DFSB3TWF.js";import e from"@emotion/styled";import{jsx as c,jsxs as s}from"react/jsx-runtime";var h=e.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
`;function a({customAccentColor:i,customBackgroundColor:l}){let r=i||t["cm-accent"],o=l||t["cm-background-primary"],n=`${r}20`;return c(h,{children:s("svg",{width:"74",height:"74",viewBox:"0 0 74 74",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("circle",{cx:"37",cy:"37",r:"37",fill:n}),c("rect",{x:"28",y:"18",width:"18",height:"32",rx:"3",fill:r}),c("rect",{x:"30",y:"22",width:"14",height:"20",rx:"1",fill:o}),c("circle",{cx:"37",cy:"46",r:"1.5",fill:o}),c("circle",{cx:"50",cy:"28",r:"8",fill:r}),c("path",{d:"M46 26h8c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2h-8l-2 2v-10z",fill:o}),c("circle",{cx:"48",cy:"30",r:"0.8",fill:r}),c("circle",{cx:"50.5",cy:"30",r:"0.8",fill:r}),c("circle",{cx:"53",cy:"30",r:"0.8",fill:r})]})})}export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');function r({style:e}){return _jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:e,children:_jsxruntime.jsx.call(void 0, "path",{d:"m9 18 6-6-6-6"})})}exports.a = r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={"cm-text-primary":"#00150D","cm-text-secondary":"#67797F","cm-background-primary":"#FFFFFF","cm-muted-primary":"#F0F2F4","cm-hover":"#E9ECF0","cm-border":"#D9D9D9","cm-link":"#1A74E9","cm-accent":"#4CAF50","cm-danger":"#f44336"};export{r as a};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk3X24JZVGcjs = require('./chunk-3X24JZVG.cjs');var _chunkEAWYV5ZOcjs = require('./chunk-EAWYV5ZO.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);var _jsxruntime = require('react/jsx-runtime');var L=_styled2.default.button`
|
|
2
|
+
${_chunk3X24JZVGcjs.a}
|
|
3
|
+
|
|
4
|
+
/* Button styles */
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
line-height: 1.3;
|
|
7
|
+
text-align: center;
|
|
8
|
+
margin-top: 8px;
|
|
9
|
+
transition: opacity 200ms ease;
|
|
10
|
+
border: none;
|
|
11
|
+
background: none;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
|
|
14
|
+
/* Conditional styling based on state */
|
|
15
|
+
cursor: ${e=>e.canResend&&!e.isLoading?"pointer":"default"};
|
|
16
|
+
opacity: ${e=>e.canResend&&!e.isLoading?1:.5};
|
|
17
|
+
color: ${e=>{var t,n,s,i;return e.canResend&&!e.isLoading?((n=(t=e.appearance)==null?void 0:t.colors)==null?void 0:n.textLink)||"#1A73E8":((i=(s=e.appearance)==null?void 0:s.colors)==null?void 0:i.textSecondary)||"#67797F"}};
|
|
18
|
+
|
|
19
|
+
/* Hover state for active button */
|
|
20
|
+
&:hover {
|
|
21
|
+
opacity: ${e=>e.canResend&&!e.isLoading?.8:.5};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Tab style for button (for accessibility) */
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
outline: 2px solid ${e=>{var t,n;return((n=(t=e.appearance)==null?void 0:t.colors)==null?void 0:n.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]}};
|
|
27
|
+
outline-offset: 2px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Disabled state */
|
|
31
|
+
&:disabled {
|
|
32
|
+
cursor: default;
|
|
33
|
+
}
|
|
34
|
+
`;function S({initialSeconds:e,appearance:t,countdownText:n,countdownCompleteText:s,handleOnClick:i}){let[r,u]=_react.useState.call(void 0, e),[o,f]=_react.useState.call(void 0, !0),[y,C]=_react.useState.call(void 0, 0),[l,p]=_react.useState.call(void 0, !1);_react.useEffect.call(void 0, ()=>{let a;return r>0&&(f(!1),a=setInterval(()=>{u(c=>c<=1?(f(!0),0):c-1)},1e3)),()=>{a!=null&&clearInterval(a)}},[r]);let R=()=>{if(!o)return;let a=Math.min(e*Math.pow(2,y),240);u(a),C(c=>c+1)};return _jsxruntime.jsx.call(void 0, L,{onClick:()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){o&&r===0&&!l&&(p(!0),yield i(),R(),p(!1))}),disabled:!o||l,appearance:t,canResend:o,isLoading:l,children:o?s:n(r)})}exports.a = S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m,b as p,c as d}from"./chunk-KFL42A3A.js";import{a as c,b as a,c as g}from"./chunk-PXDN3KFO.js";import{useId as h}from"react";import{Fragment as S,jsx as i,jsxs as e}from"react/jsx-runtime";function T(u){var l=u,{colors:t,displayType:n="icon-and-text"}=l,o=g(l,["colors","displayType"]);let{icon:C,text:f}={icon:(t==null?void 0:t.icon)||p.colors.icon,text:(t==null?void 0:t.text)||m.light.text},s={colors:{icon:C,text:f},displayType:n};o.width==null&&o.height==null&&(o.width=144);let r=h();return e("svg",a(c({viewBox:d[n]},o),{children:[q(s,r),i("g",{children:e("g",{children:[y(s),v(s,r)]})})]}))}function q(t,n){let{icon:o}=t.colors;return o.type!=="gradient"?null:i("defs",{children:e("linearGradient",{id:`logoGradient-${n}`,className:"logoGradient",x1:".1",y1:".1",x2:"85.8",y2:"85.8",gradientUnits:"userSpaceOnUse",children:[i("stop",{className:"stop-0",offset:"0",stopColor:o.from}),i("stop",{className:"stop-1",offset:"1",stopColor:o.to})]})})}function y({colors:t,displayType:n}){if(n==="icon-only")return null;let{text:o}=t;return e(S,{children:[i("path",{fill:o,d:"M372.7 9.5c0-3.4 2.7-6.1 6-6.1S385 6 385 9.5s-2.8 6-6.2 6-6-2.6-6-6m77.7 1.9V24h8.6v8.8h-8.6V52q-.1 5.4 5.3 5.2c1.3 0 3-.2 3.4-.3v8.2c-.6.2-2.5 1-6 1-7.7 0-12.5-4.7-12.5-12.5V33H433v-9h8.5V11.4zm-338 44.4q3 5 7.8 7.9 5 2.8 11.3 2.8 4.5 0 8.4-1.5 3.7-1.7 6.6-4.4 2.8-2.9 4-6.4l-8.9-4a10.5 10.5 0 0 1-10.1 7 11 11 0 0 1-6-1.5q-2.4-1.7-4-4.5-1.5-2.9-1.4-6.6a12 12 0 0 1 1.4-6.5q1.5-3 4-4.5a11 11 0 0 1 6-1.6q3.5 0 6.2 2 2.8 1.9 4 5l8.8-3.8q-1.2-3.9-4-6.5-2.9-2.8-6.7-4.3-3.9-1.6-8.3-1.6-6.3 0-11.3 2.8a21 21 0 0 0-7.8 7.8q-2.8 5-2.8 11.2c0 6.2 1 7.9 2.8 11.2m53-32.1h-9.4v41.9h10V42.3q0-4.8 2.7-7.4 2.5-2.7 6.9-2.7h3.6v-9H177q-4.5 0-7.6 1.9a10 10 0 0 0-3.8 4.5z"}),i("path",{d:"M202.9 22.8c12.4 0 21.6 9.3 21.6 22s-9.1 22-21.6 22-21.5-9.2-21.5-22 9.1-22 21.5-22m0 35.2c6.1 0 11.6-4.5 11.6-13.2s-5.5-13-11.6-13-11.6 4.4-11.6 13S196.8 58 203 58",fillRule:"evenodd",fill:o}),i("path",{fill:o,d:"m236.4 52-8.6 2.4c.5 4.6 5 12.5 17.1 12.5 10.6 0 15.7-7 15.7-13.3s-4.1-11-12-12.6l-6.3-1.3q-4-1-4.1-4.4c0-2.5 2.4-4.7 6-4.7 5.5 0 7.3 3.8 7.6 6.2l8.4-2.4c-.7-4.1-4.5-11.6-16-11.6-8.7 0-15.3 6.1-15.3 13.4 0 5.7 3.8 10.5 11.1 12l6.2 1.4q4.9 1.2 4.8 4.6c0 2.6-2 4.8-6.2 4.8-5.3 0-8-3.3-8.4-7m27.6 2.4 8.5-2.4c.4 3.7 3.2 7 8.5 7 4 0 6.2-2.2 6.2-4.7q.1-3.6-4.9-4.6l-6.1-1.4c-7.3-1.6-11.2-6.4-11.2-12.1 0-7.2 6.7-13.4 15.3-13.4 11.6 0 15.3 7.5 16 11.6l-8.4 2.4c-.3-2.4-2-6.2-7.6-6.2-3.5 0-6 2.2-6 4.7q.2 3.5 4.2 4.4l6.3 1.3c7.8 1.7 12 6.5 12 12.6s-5.2 13.3-15.8 13.3c-12 0-16.6-7.8-17-12.5m48.6-30.7h-9.5v41.9h10.1V41q0-2.7 1-4.8a8 8 0 0 1 7-4.2 8 8 0 0 1 7.2 4.2q1 2.1 1 4.8v24.6h10.1V41q0-2.7 1-4.8a8 8 0 0 1 7-4.2q2.6 0 4.4 1.2 1.8 1 2.8 3 1 2.1 1 4.8v24.6h10v-27q0-4.5-2-8.2a14 14 0 0 0-5.5-5.6q-3.5-2-8-2-5 0-8.8 2.5-2.4 1.6-4.1 4.2-1.4-2.3-3.9-4a16 16 0 0 0-9-2.7q-4.8 0-8.3 2.2-2.2 1.5-3.5 4zm71.1 41.9h-9.8V24.1h9.8zm8.8-41.6v41.6h10V41.3q0-2.8 1.1-4.8a8 8 0 0 1 7.3-4.2 8 8 0 0 1 7.4 4.2q1 2 1 4.7v24.4h10V38.9q0-4.6-2-8.2a14 14 0 0 0-5.5-5.6q-3.4-2-8.1-2c-4.7 0-5.5.7-7.8 2q-2.5 1.6-4 4v-5z"})]})}function v(t,n){let{icon:o}=t.colors;return i("path",{d:"M70 48.3A62 62 0 0 0 47.5 43c7.7-.6 22.8-2.7 29-10.4C86.6 25.2 86 .3 86 .3S62.3-2.4 52 9.4c-6.5 6.4-8.4 17.5-9 25.2-.6-7.7-2.6-18.8-9-25.2C23.7-2.4 0 .3 0 .3S-.3 15.8 4.4 26C6.8 31 11 35.1 16 37.6c7.2 3.7 16.8 5 22.4 5.4-5.6.4-15.2 1.7-22.4 5.3C11 51 6.8 55 4.4 60-.3 70.2 0 85.7 0 85.7s23.7 2.6 34-9.2c6.4-6.3 8.4-17.5 9-25.2.6 7.8 2.6 18.9 9 25.3 10.3 11.7 34 9.1 34 9.1s.3-15.6-4.5-25.7A25 25 0 0 0 70 48.3m.8 21.9c-.1 0-12.5-3.6-28.3-24.7A195 195 0 0 0 15 71.8l-.5.6.2-.8c0-.1 3.7-12.8 25.7-29C38.3 39.4 33.3 32.2 14 15l-.4-.4.6.1c.4 0 10.3 1.6 28.5 25l.6 1c2.6-1.8 10-7.1 26.7-26l.4-.4-.1.6c0 .4-1.6 10.3-24.9 28.4A193 193 0 0 0 71 69.9l.6.5z",fill:o.type==="gradient"?`url(#logoGradient-${n})`:o.color,fillRule:"evenodd"})}export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e}from"./chunk-
|
|
1
|
+
import{f as e}from"./chunk-KXQ5HCBO.js";import{useContext as o}from"react";function h(){let t=o(e);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}export{h as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var m={"cm-text-primary":"#00150D","cm-text-secondary":"#67797F","cm-background-primary":"#FFFFFF","cm-muted-primary":"#F0F2F4","cm-hover":"#E9ECF0","cm-border":"#D9D9D9","cm-link":"#1A74E9","cm-accent":"#4CAF50","cm-danger":"#f44336"};exports.a = m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _jsxruntime = require('react/jsx-runtime');function i(e){return _jsxruntime.jsxs.call(void 0, "svg",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[_jsxruntime.jsx.call(void 0, "rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 18h.01"})]}))}exports.a = i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');function n({style:o}){return _jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:o,children:[_jsxruntime.jsx.call(void 0, "path",{d:"m12 19-7-7 7-7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M19 12H5"})]})}exports.a = n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk56YL3XJWcjs = require('./chunk-56YL3XJW.cjs');var _chunkJYZ5GRCHcjs = require('./chunk-JYZ5GRCH.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _clientsdkbase = require('@crossmint/client-sdk-base');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _jsxruntime = require('react/jsx-runtime');function z(d){let[f,h]=_react.useState.call(void 0, !1),{crossmint:k}=_clientsdkreactbase.useCrossmint.call(void 0, ),y=_chunkJYZ5GRCHcjs.a.call(void 0, k),c=d,{recipient:P,locale:g,lineItems:H,payment:S,appearance:V,metadata:v}=c,b=_chunk2WSEHVNPcjs.c.call(void 0, c,["recipient","locale","lineItems","payment","appearance","metadata"]),n={recipient:P,locale:g,lineItems:H,payment:S,appearance:V,metadata:v},x=_clientsdkbase.crossmintHostedCheckoutV3Service.call(void 0, {apiClient:y,hostedCheckoutProps:n}),t=_clientsdkbase.crossmintHostedCheckoutV3StylesService.call(void 0, n),p=b,{onClick:r,className:E,children:o}=p,I=_chunk2WSEHVNPcjs.c.call(void 0, p,["onClick","className","children"]);function B(e){e.preventDefault(),e.stopPropagation(),x.createWindow(),r&&r(e)}let i=t.generateCss();return _react.useEffect.call(void 0, ()=>{let{cleanup:e}=t.injectCss(i);return h(!0),e},[i]),f?_jsxruntime.jsxs.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {onClick:B,className:_clsx2.default.call(void 0, t.identifiers.buttonClassNames,E)},I),{children:[_jsxruntime.jsx.call(void 0, _chunk56YL3XJWcjs.a,{style:{marginRight:"12px",flex:"none"},displayType:"icon-only",id:t.identifiers.logoId,height:16,width:16}),o!=null?o:_jsxruntime.jsx.call(void 0, "p",{style:{margin:0},children:t.getButtonText()})]})):null}exports.a = z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO5J2ZIJ6cjs = require('./chunk-O5J2ZIJ6.cjs');var _chunkX5BBXO27cjs = require('./chunk-X5BBXO27.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO5J2ZIJ6cjs = require('./chunk-O5J2ZIJ6.cjs');var _chunkX5BBXO27cjs = require('./chunk-X5BBXO27.cjs');var _chunk4RD5CZ3Dcjs = require('./chunk-4RD5CZ3D.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _clientsdkbase = require('@crossmint/client-sdk-base');var _jsxruntime = require('react/jsx-runtime');function at(C){let c=C,{className:g,disabled:P,onClick:h,style:f,tabIndex:I,theme:S="dark",mintTo:B,emailTo:k,listingId:v,auctionId:Z,showOverlay:E=!0,mintConfig:b,whPassThroughArgs:M,environment:T,paymentMethod:t,preferredSigninMethod:x,dismissOverlayOnClick:N,prepay:R,locale:i="en-US",currency:L="usd",successCallbackURL:w="",failureCallbackURL:O="",loginEmail:U="",projectId:H,getButtonText:o,checkoutProps:a={experimental:!1,display:"same-tab",paymentMethods:["fiat","ETH","SOL"]}}=c,s=_chunk2WSEHVNPcjs.c.call(void 0, c,["className","disabled","onClick","style","tabIndex","theme","mintTo","emailTo","listingId","auctionId","showOverlay","mintConfig","whPassThroughArgs","environment","paymentMethod","preferredSigninMethod","dismissOverlayOnClick","prepay","locale","currency","successCallbackURL","failureCallbackURL","loginEmail","projectId","getButtonText","checkoutProps"]),_="clientId"in s?s.clientId:s.collectionId,[e,A]=_react.useState.call(void 0, !1),{isServerSideRendering:D}=_chunkX5BBXO27cjs.a.call(void 0, ),{connect:V}=_clientsdkbase.crossmintModalService.call(void 0, {clientId:_,projectId:H,showOverlay:E,dismissOverlayOnClick:N,setConnecting:A,libVersion:_chunk4RD5CZ3Dcjs.a,environment:T,clientName:_clientsdkbase.clientNames.reactUi,locale:i,currency:L,successCallbackURL:w,failureCallbackURL:O,loginEmail:U}),{getButtonText:$,handleClick:j}=_clientsdkbase.crossmintPayButtonService.call(void 0, {onClick:h,connecting:e,paymentMethod:t,locale:i,checkoutProps:a}),q=F=>j(F,()=>{V(b,B,k,v,M,t,x,R,a)}),n=_chunkO5J2ZIJ6cjs.b.call(void 0, _chunkO5J2ZIJ6cjs.a.call(void 0, S)),z=_react.useMemo.call(void 0, ()=>_jsxruntime.jsx.call(void 0, "span",{className:n.crossmintParagraph,role:"button-paragraph",children:o!=null?o(e,t||"fiat"):$(e)}),[e,o,t]);return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:!D&&_jsxruntime.jsxs.call(void 0, "button",{className:`${n.crossmintButton} ${g||""}`,disabled:P,onClick:q,style:_chunk2WSEHVNPcjs.a.call(void 0, {},f),tabIndex:I,children:[_jsxruntime.jsx.call(void 0, "img",{className:n.crossmintImg,src:"https://www.crossmint.io/assets/crossmint/logo.svg",alt:"Crossmint logo"}),z]})})}exports.a = at;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import{a as y}from"./chunk-23YVHBPI.js";import{a as g}from"./chunk-AOBO3CEQ.js";import{a as f}from"./chunk-NZUCXN2O.js";import{a as r}from"./chunk-DFSB3TWF.js";import{a as l,b as m,c as p}from"./chunk-PXDN3KFO.js";import a from"@emotion/styled";import{jsx as c,jsxs as k}from"react/jsx-runtime";var x=a.button`
|
|
2
|
+
${f}
|
|
3
|
+
|
|
4
|
+
/* Base button styles */
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 16px;
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
min-height: 56px;
|
|
13
|
+
border: none;
|
|
14
|
+
border-radius: ${e=>{var o;return((o=e.appearance)==null?void 0:o.borderRadius)||"12px"}};
|
|
15
|
+
background-color: ${e=>{var o,t;return((t=(o=e.appearance)==null?void 0:o.colors)==null?void 0:t.buttonBackground)||r["cm-muted-primary"]}};
|
|
16
|
+
color: ${e=>{var o,t;return((t=(o=e.appearance)==null?void 0:o.colors)==null?void 0:t.textPrimary)||r["cm-text-primary"]}};
|
|
17
|
+
cursor: ${e=>e.isLoading?"not-allowed":"pointer"};
|
|
18
|
+
|
|
19
|
+
/* Transitions */
|
|
20
|
+
transition: background-color 200ms ease-in-out;
|
|
21
|
+
|
|
22
|
+
/* Hover and focus states */
|
|
23
|
+
&:hover {
|
|
24
|
+
background-color: ${e=>{var o,t,n,i;return e.isLoading?((t=(o=e.appearance)==null?void 0:o.colors)==null?void 0:t.buttonBackground)||r["cm-muted-primary"]:((i=(n=e.appearance)==null?void 0:n.colors)==null?void 0:i.backgroundSecondary)||r["cm-hover"]}};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:focus {
|
|
28
|
+
outline: none;
|
|
29
|
+
background-color: ${e=>{var o,t;return((t=(o=e.appearance)==null?void 0:o.colors)==null?void 0:t.backgroundSecondary)||r["cm-hover"]}};
|
|
30
|
+
}
|
|
31
|
+
`,B=a.div`
|
|
32
|
+
position: absolute;
|
|
33
|
+
left: 18px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
`,h=a.span`
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
color: ${e=>{var o,t;return((t=(o=e.appearance)==null?void 0:o.colors)==null?void 0:t.textPrimary)||r["cm-text-primary"]}};
|
|
40
|
+
`;function L(C){var s=C,{icon:e,children:o,isLoading:t=!1,appearance:n,onButtonClick:i}=s,b=p(s,["icon","children","isLoading","appearance","onButtonClick"]);var u,d;return k(x,m(l({appearance:n,isLoading:t,onClick:t?void 0:i},b),{children:[c(B,{children:e}),t?c(g,{style:{color:(u=n==null?void 0:n.colors)==null?void 0:u.textSecondary,fill:(d=n==null?void 0:n.colors)==null?void 0:d.textPrimary}}):c(h,{appearance:n,children:o}),c(y,{children:o})]}))}export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";function n({style:e}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:e,children:t("path",{d:"m9 18 6-6-6-6"})})}export{n as a};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkQYQERFYLcjs = require('./chunk-QYQERFYL.cjs');var _chunkVI6TW7JTcjs = require('./chunk-VI6TW7JT.cjs');var _chunkTWX7ZBKZcjs = require('./chunk-TWX7ZBKZ.cjs');var _chunkAO2V2B62cjs = require('./chunk-AO2V2B62.cjs');var _chunkSCHRLC2Icjs = require('./chunk-SCHRLC2I.cjs');var _chunkEAWYV5ZOcjs = require('./chunk-EAWYV5ZO.cjs');var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);var _jsxruntime = require('react/jsx-runtime');var v=_styled2.default.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 10px;
|
|
6
|
+
-webkit-font-smoothing: antialiased;
|
|
7
|
+
`,P=_styled2.default.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
position: relative;
|
|
11
|
+
left: 6px;
|
|
12
|
+
`,b=_styled2.default.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
`,w=_styled2.default.p`
|
|
16
|
+
font-size: 18px;
|
|
17
|
+
line-height: 28px;
|
|
18
|
+
font-weight: bold;
|
|
19
|
+
color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
20
|
+
margin: 0;
|
|
21
|
+
`,B=_styled2.default.div`
|
|
22
|
+
margin-bottom: 24px;
|
|
23
|
+
`,T=_styled2.default.div`
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
|
|
26
|
+
line-height: 1.5;
|
|
27
|
+
`,I=_styled2.default.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 16px;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
`,S=_styled2.default.div`
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
padding-top: 16px;
|
|
36
|
+
`,x=_styled2.default.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: 8px;
|
|
40
|
+
`,d=_styled2.default.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: 8px;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
`,u=_styled2.default.div`
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
`,U=_styled2.default.div`
|
|
47
|
+
margin-bottom: 12px;
|
|
48
|
+
`,A=_styled2.default.button`
|
|
49
|
+
position: relative;
|
|
50
|
+
display: flex;
|
|
51
|
+
font-size: 16px;
|
|
52
|
+
padding: 16px;
|
|
53
|
+
background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.buttonBackground)||_chunkEAWYV5ZOcjs.a["cm-muted-primary"]}};
|
|
54
|
+
color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
55
|
+
align-items: center;
|
|
56
|
+
width: 100%;
|
|
57
|
+
border-radius: ${o=>{var e;return((e=o.appearance)==null?void 0:e.borderRadius)||"12px"}};
|
|
58
|
+
justify-content: center;
|
|
59
|
+
transition: all 200ms ease;
|
|
60
|
+
border: none;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.backgroundSecondary)||_chunkEAWYV5ZOcjs.a["cm-hover"]}};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus {
|
|
68
|
+
background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.backgroundSecondary)||_chunkEAWYV5ZOcjs.a["cm-hover"]}};
|
|
69
|
+
outline: none;
|
|
70
|
+
}
|
|
71
|
+
`,F=_styled2.default.span`
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
margin: 0 32px;
|
|
74
|
+
color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
75
|
+
`,$=_styled2.default.span`
|
|
76
|
+
position: absolute;
|
|
77
|
+
width: 1px;
|
|
78
|
+
height: 1px;
|
|
79
|
+
padding: 0;
|
|
80
|
+
margin: -1px;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
clip: rect(0, 0, 0, 0);
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
border: 0;
|
|
85
|
+
`,L=_styled2.default.a`
|
|
86
|
+
padding: 14px;
|
|
87
|
+
text-align: center;
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
font-weight: bold;
|
|
91
|
+
background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.inputBackground)||_chunkEAWYV5ZOcjs.a["cm-muted-primary"]}};
|
|
92
|
+
color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
93
|
+
transition: opacity 200ms ease;
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
opacity: 0.8;
|
|
97
|
+
}
|
|
98
|
+
`;function p({title:o,content:e,primaryButton:n,secondaryAction:k,open:h,appearance:c}){var m;return _jsxruntime.jsx.call(void 0, _chunkAO2V2B62cjs.a,{open:h,appearance:c,showCloseButton:!1,children:_jsxruntime.jsxs.call(void 0, v,{children:[_jsxruntime.jsx.call(void 0, P,{children:_jsxruntime.jsx.call(void 0, _chunkTWX7ZBKZcjs.a,{appearance:c})}),_jsxruntime.jsx.call(void 0, b,{children:_jsxruntime.jsx.call(void 0, w,{appearance:c,children:o})}),_jsxruntime.jsx.call(void 0, B,{children:_jsxruntime.jsx.call(void 0, T,{appearance:c,children:e})}),_jsxruntime.jsxs.call(void 0, I,{children:[n,k]}),_jsxruntime.jsx.call(void 0, S,{children:_jsxruntime.jsx.call(void 0, _chunkSCHRLC2Icjs.a,{color:(m=c==null?void 0:c.colors)==null?void 0:m.textSecondary})})]})})}var s=({appearance:o,onClick:e,children:n})=>_jsxruntime.jsxs.call(void 0, A,{appearance:o,onClick:e,children:[_jsxruntime.jsx.call(void 0, F,{appearance:o,children:n}),_jsxruntime.jsx.call(void 0, $,{children:n})]});function _({state:o,appearance:e}){if(!o.open||o.type==null)return null;switch(o.type){case"create-wallet":return _jsxruntime.jsx.call(void 0, p,{open:o.open,title:"Create Your Wallet",appearance:e,content:_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, U,{children:"You're about to create a wallet."}),_jsxruntime.jsxs.call(void 0, x,{children:[_jsxruntime.jsxs.call(void 0, d,{children:[_jsxruntime.jsx.call(void 0, u,{children:_jsxruntime.jsx.call(void 0, _chunkVI6TW7JTcjs.a,{})}),"Your wallet will be secured with a passkey"]}),_jsxruntime.jsxs.call(void 0, d,{children:[_jsxruntime.jsx.call(void 0, u,{children:_jsxruntime.jsx.call(void 0, _chunkQYQERFYLcjs.a,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:_jsxruntime.jsx.call(void 0, s,{appearance:e,onClick:o.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return _jsxruntime.jsx.call(void 0, p,{open:o.open,title:"Wallet Creation Failed",appearance:e,content:_jsxruntime.jsx.call(void 0, "div",{children:"We couldn't create your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:_jsxruntime.jsx.call(void 0, s,{appearance:e,onClick:o.primaryActionOnClick,children:"Try again"})});case"transaction":return _jsxruntime.jsx.call(void 0, p,{open:o.open,title:"Use Your Wallet",appearance:e,content:_jsxruntime.jsx.call(void 0, x,{children:_jsxruntime.jsxs.call(void 0, d,{children:[_jsxruntime.jsx.call(void 0, u,{children:_jsxruntime.jsx.call(void 0, _chunkQYQERFYLcjs.a,{})}),_jsxruntime.jsx.call(void 0, "span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:_jsxruntime.jsx.call(void 0, s,{appearance:e,onClick:o.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return _jsxruntime.jsx.call(void 0, p,{open:o.open,title:"Wallet Access Failed",appearance:e,content:_jsxruntime.jsx.call(void 0, "div",{children:"We couldn't access your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:_jsxruntime.jsx.call(void 0, s,{appearance:e,onClick:o.primaryActionOnClick,children:"Try again"}),secondaryAction:_jsxruntime.jsx.call(void 0, L,{href:"https://docs.crossmint.com/wallets/signers-and-custody#passkey",rel:"noopener noreferrer",target:"_blank",appearance:e,children:"Troubleshoot"})});case"not-supported":return _jsxruntime.jsx.call(void 0, p,{open:o.open,title:"Passkeys Not Supported on This Device",appearance:e,content:_jsxruntime.jsx.call(void 0, "div",{children:"To access your wallet with a passkey, switch to a device or browser that supports passkeys, such as Chrome or Safari on a smartphone, tablet, or modern computer"}),primaryButton:_jsxruntime.jsx.call(void 0, s,{appearance:e,onClick:o.primaryActionOnClick,children:"Understood"})});default:return null}}exports.a = _;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";function i({style:o}){var t;return r("svg",{style:o,width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("path",{d:"M15.0566 12.5H15.067M1.10156 3.5V17.5C1.10156 18.6046 2.02718 19.5 3.16898 19.5H17.6409C18.7827 19.5 19.7083 18.6046 19.7083 17.5V7.5C19.7083 6.39543 18.7827 5.5 17.6409 5.5L3.16898 5.5C2.02718 5.5 1.10156 4.60457 1.10156 3.5ZM1.10156 3.5C1.10156 2.39543 2.02718 1.5 3.16898 1.5H15.5735M15.5735 12.5C15.5735 12.7761 15.3421 13 15.0566 13C14.7712 13 14.5398 12.7761 14.5398 12.5C14.5398 12.2239 14.7712 12 15.0566 12C15.3421 12 15.5735 12.2239 15.5735 12.5Z",stroke:(t=o==null?void 0:o.color)!=null?t:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}export{i as a};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{a as l}from"./chunk-QQP4GR7V.js";import{a as r}from"./chunk-WK7PY5WL.js";import n from"@emotion/styled";import{DynamicEmbeddedWidget as m}from"@dynamic-labs/sdk-react-core";import{Fragment as u,jsx as o,jsxs as g}from"react/jsx-runtime";var s=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
`,C=n.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 10px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
`,f=n.div`
|
|
11
|
+
/* Widget container styles */
|
|
12
|
+
min-height: 325px;
|
|
13
|
+
`;function b(){var i,e;let{appearance:t,step:c,setStep:d}=r();return c==="web3"?g(u,{children:[o(l,{onClick:()=>d("initial"),iconColor:(i=t==null?void 0:t.colors)==null?void 0:i.textPrimary,ringColor:(e=t==null?void 0:t.colors)==null?void 0:e.accent}),o(s,{children:o(C,{children:o(f,{children:o(m,{background:"none"})})})})]}):null}export{b as a};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as o}from"./chunk-KXQ5HCBO.js";import{jsx as t}from"react/jsx-runtime";function e(){return t(o,{style:{width:"100%"}})}export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY66ATVFLcjs = require('./chunk-Y66ATVFL.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _jsxruntime = require('react/jsx-runtime');function s(d){return _jsxruntime.jsx.call(void 0, _chunkY66ATVFLcjs.a,_chunk2WSEHVNPcjs.a.call(void 0, {},d))}exports.a = s;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{a as m}from"./chunk-NZUCXN2O.js";import{a as g}from"./chunk-DFSB3TWF.js";import{d as b}from"./chunk-PXDN3KFO.js";import{useState as d,useEffect as x}from"react";import h from"@emotion/styled";import{jsx as k}from"react/jsx-runtime";var L=h.button`
|
|
2
|
+
${m}
|
|
3
|
+
|
|
4
|
+
/* Button styles */
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
line-height: 1.3;
|
|
7
|
+
text-align: center;
|
|
8
|
+
margin-top: 8px;
|
|
9
|
+
transition: opacity 200ms ease;
|
|
10
|
+
border: none;
|
|
11
|
+
background: none;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
|
|
14
|
+
/* Conditional styling based on state */
|
|
15
|
+
cursor: ${e=>e.canResend&&!e.isLoading?"pointer":"default"};
|
|
16
|
+
opacity: ${e=>e.canResend&&!e.isLoading?1:.5};
|
|
17
|
+
color: ${e=>{var t,n,s,i;return e.canResend&&!e.isLoading?((n=(t=e.appearance)==null?void 0:t.colors)==null?void 0:n.textLink)||"#1A73E8":((i=(s=e.appearance)==null?void 0:s.colors)==null?void 0:i.textSecondary)||"#67797F"}};
|
|
18
|
+
|
|
19
|
+
/* Hover state for active button */
|
|
20
|
+
&:hover {
|
|
21
|
+
opacity: ${e=>e.canResend&&!e.isLoading?.8:.5};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Tab style for button (for accessibility) */
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
outline: 2px solid ${e=>{var t,n;return((n=(t=e.appearance)==null?void 0:t.colors)==null?void 0:n.accent)||g["cm-accent"]}};
|
|
27
|
+
outline-offset: 2px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Disabled state */
|
|
31
|
+
&:disabled {
|
|
32
|
+
cursor: default;
|
|
33
|
+
}
|
|
34
|
+
`;function T({initialSeconds:e,appearance:t,countdownText:n,countdownCompleteText:s,handleOnClick:i}){let[r,u]=d(e),[o,f]=d(!0),[y,C]=d(0),[l,p]=d(!1);x(()=>{let a;return r>0&&(f(!1),a=setInterval(()=>{u(c=>c<=1?(f(!0),0):c-1)},1e3)),()=>{a!=null&&clearInterval(a)}},[r]);let R=()=>{if(!o)return;let a=Math.min(e*Math.pow(2,y),240);u(a),C(c=>c+1)};return k(L,{onClick:()=>b(this,null,function*(){o&&r===0&&!l&&(p(!0),yield i(),R(),p(!1))}),disabled:!o||l,appearance:t,canResend:o,isLoading:l,children:o?s:n(r)})}export{T as a};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkS4BKL6MRcjs = require('./chunk-S4BKL6MR.cjs');var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _chunk3X24JZVGcjs = require('./chunk-3X24JZVG.cjs');var _chunkEAWYV5ZOcjs = require('./chunk-EAWYV5ZO.cjs');var _chunkYCYSZLQ2cjs = require('./chunk-YCYSZLQ2.cjs');var _chunkCDQFTAM2cjs = require('./chunk-CDQFTAM2.cjs');var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);var _jsxruntime = require('react/jsx-runtime');var f=_styled2.default.button`
|
|
2
|
+
${_chunk3X24JZVGcjs.a}
|
|
3
|
+
|
|
4
|
+
/* Base button styles */
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 16px;
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
min-height: 56px;
|
|
13
|
+
border: none;
|
|
14
|
+
border-radius: ${e=>{var t;return((t=e.appearance)==null?void 0:t.borderRadius)||"12px"}};
|
|
15
|
+
background-color: ${e=>{var t,o;return((o=(t=e.appearance)==null?void 0:t.colors)==null?void 0:o.buttonBackground)||_chunkEAWYV5ZOcjs.a["cm-muted-primary"]}};
|
|
16
|
+
color: ${e=>{var t,o;return((o=(t=e.appearance)==null?void 0:t.colors)==null?void 0:o.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
/* Transitions */
|
|
20
|
+
transition: background-color 200ms ease-in-out;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: ${e=>{var t,o;return((o=(t=e.appearance)==null?void 0:t.colors)==null?void 0:o.backgroundSecondary)||_chunkEAWYV5ZOcjs.a["cm-hover"]}};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:focus {
|
|
27
|
+
outline: none;
|
|
28
|
+
background-color: ${_chunkEAWYV5ZOcjs.a["cm-hover"]};
|
|
29
|
+
}
|
|
30
|
+
`,x=_styled2.default.div`
|
|
31
|
+
position: absolute;
|
|
32
|
+
left: 20px;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
`,g=_styled2.default.div`
|
|
37
|
+
position: absolute;
|
|
38
|
+
right: 20px;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
`,h=_styled2.default.span`
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
margin: 0 32px;
|
|
45
|
+
color: ${e=>{var t,o;return((o=(t=e.appearance)==null?void 0:t.colors)==null?void 0:o.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
46
|
+
`;function R(){var a,c;let{step:e,appearance:t,setStep:o,setError:d}=_chunkKT4LGFPNcjs.a.call(void 0, );return e!=="initial"?null:_jsxruntime.jsxs.call(void 0, f,{appearance:t,onClick:()=>{o("web3"),d(null)},children:[_jsxruntime.jsx.call(void 0, x,{children:_jsxruntime.jsx.call(void 0, _chunkYCYSZLQ2cjs.a,{style:{height:"21px",width:"21px",color:(a=t==null?void 0:t.colors)==null?void 0:a.textPrimary}})}),_jsxruntime.jsx.call(void 0, h,{appearance:t,children:"Continue with a wallet"}),_jsxruntime.jsx.call(void 0, g,{children:_jsxruntime.jsx.call(void 0, _chunkCDQFTAM2cjs.a,{style:{height:"21px",width:"21px",color:(c=t==null?void 0:t.colors)==null?void 0:c.textSecondary}})}),_jsxruntime.jsx.call(void 0, _chunkS4BKL6MRcjs.a,{children:"Continue with a wallet"})]})}exports.a = R;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4RD5CZ3Dcjs = require('./chunk-4RD5CZ3D.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');function C(t,i){return new (0, _commonsdkbase.CrossmintApiClient)(t,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-ui",version:_chunk4RD5CZ3Dcjs.a},apiKeyExpectations:i}})}exports.a = C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";function l({style:L}){return t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:L,children:t("path",{d:"M 14.285156 10.171875 L 23.222656 0 L 21.105469 0 L 13.34375 8.832031 L 7.148438 0 L 0 0 L 9.371094 13.355469 L 0 24.019531 L 2.117188 24.019531 L 10.308594 14.691406 L 16.851562 24.019531 L 24 24.019531 M 2.878906 1.5625 L 6.132812 1.5625 L 21.101562 22.535156 L 17.851562 22.535156",fill:"currentColor"})})}export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJYZ5GRCHcjs = require('./chunk-JYZ5GRCH.cjs');var _react = require('react');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _jsxruntime = require('react/jsx-runtime');var s=_react.createContext.call(void 0, void 0);function O({children:e}){let[r,d]=_react.useState.call(void 0, void 0),[c,u]=_react.useState.call(void 0, void 0),{crossmint:C}=_clientsdkreactbase.useCrossmint.call(void 0, ),m=_chunkJYZ5GRCHcjs.a.call(void 0, C,{usageOrigin:"client"});return _react.useEffect.call(void 0, ()=>{let n=t=>{if(t.origin!==new URL(m.baseUrl).origin||t.data.event!=="order:updated")return;let{order:a,orderClientSecret:f}=t.data.data;d(a),u(f)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},[r]),_jsxruntime.jsx.call(void 0, s.Provider,{value:{order:r,orderClientSecret:c},children:e})}function b(){let e=_react.useContext.call(void 0, s);if(!e)throw new Error("useCrossmintCheckout must be used within a CrossmintCheckoutProvider");return e}exports.a = O; exports.b = b;
|