@crossmint/client-sdk-react-ui 2.2.17 → 2.2.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.
- package/dist/chunk-2F3EMF5G.cjs +1 -0
- package/dist/chunk-2LLVSWMJ.js +1 -0
- package/dist/chunk-2NZ6SYFP.cjs +1 -0
- package/dist/{chunk-M7WHTRMF.js → chunk-2QPYIF6Q.js} +1 -1
- package/dist/{chunk-WOHPRKHZ.js → chunk-2RMGS33N.js} +1 -1
- package/dist/chunk-34ULQ2PW.cjs +1 -0
- package/dist/{chunk-C6ZO7BXK.cjs → chunk-45YOYLMH.cjs} +1 -1
- package/dist/{chunk-JIXAKN6V.cjs → chunk-4BH7ZTBT.cjs} +1 -1
- package/dist/chunk-4EQ23ZKC.cjs +1 -0
- package/dist/chunk-4ROE755V.cjs +1 -0
- package/dist/{chunk-D4QQGOEM.cjs → chunk-5OTTEW45.cjs} +1 -1
- package/dist/chunk-6BFWRGAS.cjs +1 -0
- package/dist/{chunk-DQD3L5EO.cjs → chunk-6FS7UPZR.cjs} +1 -1
- package/dist/chunk-7OJVAIXA.cjs +1 -0
- package/dist/{chunk-TRWUMGN2.cjs → chunk-7UIB46UZ.cjs} +1 -1
- package/dist/{chunk-DCACW4K6.cjs → chunk-7YO3UHAR.cjs} +1 -1
- package/dist/chunk-CW4GAQRA.js +1 -0
- package/dist/chunk-CZ7CTBCO.js +1 -0
- package/dist/chunk-DCELWGNS.js +1 -0
- package/dist/{chunk-TWAQZ2L6.js → chunk-DQHM2ITY.js} +1 -1
- package/dist/chunk-DSBQW65Y.cjs +1 -0
- package/dist/chunk-E4DYZZKZ.cjs +1 -0
- package/dist/chunk-E5D2JTKO.js +1 -0
- package/dist/{chunk-2KDH7GE5.cjs → chunk-EBQTOAUH.cjs} +1 -1
- package/dist/{chunk-KNBAFC33.cjs → chunk-EDVCZOXC.cjs} +1 -1
- package/dist/{chunk-XB3VAPRK.js → chunk-EOMXTZMF.js} +1 -1
- package/dist/chunk-FPE5X5RH.cjs +1 -0
- package/dist/chunk-GHRFRG65.js +1 -0
- package/dist/chunk-GLOKRANI.cjs +1 -0
- package/dist/chunk-GONS3X7J.js +2 -0
- package/dist/{chunk-Z7IC644K.js → chunk-HTPJVU3D.js} +1 -1
- package/dist/chunk-I7KK3D7J.js +1 -0
- package/dist/{chunk-EMXNIC4M.js → chunk-J2YZL55W.js} +1 -1
- package/dist/chunk-J4QPNKHC.cjs +1 -0
- package/dist/chunk-JGT6RWSD.js +1 -0
- package/dist/{chunk-NT6RMETE.js → chunk-JHFLZEYO.js} +1 -1
- package/dist/{chunk-HB67GXDK.cjs → chunk-JO7RY6MG.cjs} +1 -1
- package/dist/{chunk-NYUYENB2.cjs → chunk-JRIASLIO.cjs} +1 -1
- package/dist/chunk-JU37JPL7.js +1 -0
- package/dist/chunk-KIESVSW4.js +1 -0
- package/dist/chunk-LSQT2KG6.cjs +1 -0
- package/dist/{chunk-7KEF6MHS.cjs → chunk-MUEZI3JY.cjs} +1 -1
- package/dist/{chunk-LN6POI6I.js → chunk-ND3NGHHK.js} +1 -1
- package/dist/chunk-NI4D3UIR.cjs +2 -0
- package/dist/chunk-OKVJQEKZ.js +1 -0
- package/dist/{chunk-HLGNSXEQ.cjs → chunk-ONU6TI5W.cjs} +1 -1
- package/dist/chunk-P453UQYI.js +11 -0
- package/dist/chunk-PGE5M3Q5.cjs +1 -0
- package/dist/chunk-PIUCKVF7.js +1 -0
- package/dist/chunk-QHDN67N5.js +1 -0
- package/dist/{chunk-TNCETEEL.js → chunk-QQTPO5IF.js} +1 -1
- package/dist/{chunk-OBSRH626.js → chunk-QSFNFR6M.js} +1 -1
- package/dist/{chunk-MAZ7YKN6.js → chunk-RQ4I3YNZ.js} +1 -1
- package/dist/chunk-RWWMM4HD.js +1 -0
- package/dist/{chunk-MIC4KLMZ.cjs → chunk-S5S2XFIC.cjs} +1 -1
- package/dist/chunk-SGP6SK6O.js +1 -0
- package/dist/chunk-SQ6GQUV4.js +1 -0
- package/dist/chunk-TZO3ANJ6.js +1 -0
- package/dist/chunk-UMCSEFX6.cjs +11 -0
- package/dist/chunk-VDZMHNUZ.cjs +1 -0
- package/dist/chunk-VNY6LU32.cjs +1 -0
- package/dist/{chunk-Z2FGFHRQ.cjs → chunk-VUIDQYBY.cjs} +1 -1
- package/dist/chunk-WAMK2K23.cjs +1 -0
- package/dist/{chunk-2ZIM34DD.js → chunk-WMDN55HV.js} +1 -1
- package/dist/chunk-YGYMICXJ.cjs +1 -0
- package/dist/{chunk-UO2OAC2G.cjs → chunk-YWG7CFLR.cjs} +1 -1
- package/dist/{chunk-EBED4RHK.js → chunk-Z5SLTCGE.js} +1 -1
- package/dist/chunk-ZKXBJNL7.js +2 -0
- package/dist/chunk-ZNDVEP3D.js +1 -0
- package/dist/{chunk-4CGJFAO3.js → chunk-ZSHAQLLM.js} +1 -1
- package/dist/chunk-ZSJQWAT2.js +1 -0
- package/dist/chunk-ZWMCD7KM.cjs +2 -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.js +1 -1
- package/dist/components/auth/AuthFormBackButton.cjs +1 -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.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.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/Web3Connector.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3Connector.js +1 -1
- package/dist/components/auth/methods/web3/Web3ConnectorButton.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3ConnectorButton.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.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.js +1 -1
- package/dist/components/common/SecuredByCrossmint.cjs +1 -1
- package/dist/components/common/SecuredByCrossmint.js +1 -1
- package/dist/components/common/Spinner.cjs +1 -1
- package/dist/components/common/Spinner.js +1 -1
- package/dist/components/embed/index.cjs +1 -1
- package/dist/components/embed/index.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.d.cts +1 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.d.ts +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.d.cts +1 -1
- package/dist/components/hosted/v3/index.d.ts +1 -1
- package/dist/components/hosted/v3/index.js +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/signers/EmailConfirmation.cjs +1 -1
- package/dist/components/signers/EmailConfirmation.js +1 -1
- package/dist/components/signers/EmailOTPInput.cjs +1 -1
- package/dist/components/signers/EmailOTPInput.js +1 -1
- package/dist/components/signers/EmailSignersDialog.cjs +1 -1
- package/dist/components/signers/EmailSignersDialog.js +1 -1
- package/dist/components/signers/PhoneConfirmation.cjs +1 -1
- package/dist/components/signers/PhoneConfirmation.js +1 -1
- package/dist/components/signers/PhoneOTPInput.cjs +1 -1
- package/dist/components/signers/PhoneOTPInput.js +1 -1
- package/dist/components/signers/PhoneSignersDialog.cjs +1 -1
- package/dist/components/signers/PhoneSignersDialog.js +1 -1
- package/dist/components/signers/index.cjs +1 -1
- 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.js +1 -1
- package/dist/icons/phoneOTP.cjs +1 -1
- package/dist/icons/phoneOTP.js +1 -1
- package/dist/index.cjs +1 -1
- 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.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/twind-instance.cjs +1 -0
- package/dist/twind-instance.d.cts +8 -0
- package/dist/twind-instance.d.ts +8 -0
- package/dist/twind-instance.js +1 -0
- package/dist/utils/classNames.cjs +1 -1
- package/dist/utils/classNames.d.cts +1 -0
- package/dist/utils/classNames.d.ts +1 -0
- package/dist/utils/classNames.js +1 -1
- package/dist/utils/createCrossmintApiClient.cjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-2ZAABWPQ.cjs +0 -1
- package/dist/chunk-4I42JCKB.cjs +0 -1
- package/dist/chunk-4SRO2VKL.js +0 -1
- package/dist/chunk-56YL3XJW.cjs +0 -1
- package/dist/chunk-643TTR4H.js +0 -1
- package/dist/chunk-AH7OCN5L.js +0 -1
- package/dist/chunk-B7QO52HD.cjs +0 -1
- package/dist/chunk-CHOIE7TZ.js +0 -2
- package/dist/chunk-CNLXVMBD.cjs +0 -1
- package/dist/chunk-D6KA2HLB.js +0 -1
- package/dist/chunk-DGY7DTSC.cjs +0 -1
- package/dist/chunk-E4UXI22W.js +0 -1
- package/dist/chunk-EA7H4AXL.js +0 -1
- package/dist/chunk-FMFVGDE3.cjs +0 -1
- package/dist/chunk-FZXK37CE.js +0 -1
- package/dist/chunk-GKMMHRKR.js +0 -1
- package/dist/chunk-GNLTOJSY.cjs +0 -1
- package/dist/chunk-HG5ML6KX.cjs +0 -1
- package/dist/chunk-HHUNNFCE.cjs +0 -11
- package/dist/chunk-IVQHWTP6.js +0 -1
- package/dist/chunk-JSOMGEEA.js +0 -1
- package/dist/chunk-KFD32WSV.cjs +0 -1
- package/dist/chunk-KL5A44S4.js +0 -2
- package/dist/chunk-MIN6TMUL.cjs +0 -2
- package/dist/chunk-NBJIJZGO.js +0 -1
- package/dist/chunk-NIPNEXAS.js +0 -11
- package/dist/chunk-PLLOJELT.cjs +0 -1
- package/dist/chunk-QCLLJVY2.js +0 -1
- package/dist/chunk-RERW4UT4.cjs +0 -2
- package/dist/chunk-RGVTYWKX.cjs +0 -1
- package/dist/chunk-RO7NM3Y3.js +0 -1
- package/dist/chunk-RPQ6BWD3.cjs +0 -1
- package/dist/chunk-RVN2RWLI.js +0 -1
- package/dist/chunk-SGIMVEZT.cjs +0 -1
- package/dist/chunk-U6SU4GSC.js +0 -1
- package/dist/chunk-UDQUVZUQ.js +0 -1
- package/dist/chunk-UXNLOKSG.cjs +0 -1
- package/dist/chunk-VHNBXIOC.js +0 -1
- package/dist/chunk-VVC4E4IR.js +0 -1
- package/dist/chunk-WABJHG6B.cjs +0 -1
- package/dist/chunk-WMBBIP2C.cjs +0 -1
- package/dist/chunk-X4BUSZRJ.cjs +0 -1
- package/dist/chunk-ZFHUZZF2.js +0 -1
- package/dist/providers/TwindProvider.cjs +0 -1
- package/dist/providers/TwindProvider.d.cts +0 -8
- package/dist/providers/TwindProvider.d.ts +0 -8
- package/dist/providers/TwindProvider.js +0 -1
- package/dist/testUtils.cjs +0 -1
- package/dist/testUtils.d.cts +0 -3
- package/dist/testUtils.d.ts +0 -3
- package/dist/testUtils.js +0 -1
package/dist/chunk-KFD32WSV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 _chunkUO2OAC2Gcjs = require('./chunk-UO2OAC2G.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _clientsdkbase = require('@crossmint/client-sdk-base');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _react = require('react');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=_chunkUO2OAC2Gcjs.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;
|
package/dist/chunk-KL5A44S4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as U}from"./chunk-GGUEHZAY.js";import{a as A}from"./chunk-EMXNIC4M.js";import{a as R,b as G,c as L}from"./chunk-VHNBXIOC.js";import{a as H}from"./chunk-C3JRTLQP.js";import{d as F}from"./chunk-PXDN3KFO.js";import{useState as l}from"react";import{jsx as t,jsxs as r}from"react/jsx-runtime";function X({email:_,onSubmitOTP:D,onResendCode:d,appearance:o}){var f,y,g,P,c,k,v,b,T,h,O,C,E,I,B,e,N,S;let[u,$]=l(""),[j,m]=l(!1),[q,n]=l(!1),[x,i]=l(null),z=()=>F(this,null,function*(){n(!0);try{yield D(u),m(!1),i(null)}catch(s){console.error("Error confirming recovery key OTP",s),i("Invalid code. Please try again."),m(!0)}finally{n(!1)}});return r("div",{className:"flex flex-col items-center justify-start w-full",children:[t("div",{className:"relative left-3",children:t(H,{customAccentColor:(f=o==null?void 0:o.colors)==null?void 0:f.accent,customButtonBackgroundColor:(y=o==null?void 0:o.colors)==null?void 0:y.buttonBackground,customBackgroundColor:(g=o==null?void 0:o.colors)==null?void 0:g.background})}),t("p",{className:"text-base font-normal mt-4 mb-1 text-center text-cm-text-primary",style:{color:(P=o==null?void 0:o.colors)==null?void 0:P.textPrimary},children:"Check your email"}),r("p",{className:"text-center text-cm-text-secondary px-4",style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textSecondary},children:["A temporary login code has been sent to ",_]}),t("div",{className:"py-8",children:t(R,{maxLength:9,value:u,onChange:s=>{$(s),m(!1),i(null)},onComplete:z,disabled:q,customStyles:{accent:(v=(k=o==null?void 0:o.colors)==null?void 0:k.accent)!=null?v:"#04AA6D",danger:(T=(b=o==null?void 0:o.colors)==null?void 0:b.danger)!=null?T:"#f44336",border:(O=(h=o==null?void 0:o.colors)==null?void 0:h.border)!=null?O:"#E5E7EB",textPrimary:(E=(C=o==null?void 0:o.colors)==null?void 0:C.textPrimary)!=null?E:"#909ca3",buttonBackground:(B=(I=o==null?void 0:o.colors)==null?void 0:I.buttonBackground)!=null?B:"#eff6ff",inputBackground:(N=(e=o==null?void 0:o.colors)==null?void 0:e.inputBackground)!=null?N:"#FFFFFF",borderRadius:o==null?void 0:o.borderRadius},children:t(G,{children:Array.from({length:9}).map((s,w)=>t(L,{index:w,hasError:j,className:"max-sm:w-7 max-sm:h-11 max-sm:text-xl max-sm:mx-0 h-12 w-9"},w))})})}),x&&t("div",{className:"text-sm text-red-500 mb-4",children:x}),t("div",{className:"text-xs leading-tight text-cm-text-secondary text-center",children:r("span",{style:{color:(S=o==null?void 0:o.colors)==null?void 0:S.textSecondary},children:["Can't find the email? Check spam folder.",`
|
|
2
|
-
`,"Some emails may take several minutes to arrive."]})}),d&&t(A,{initialSeconds:60,appearance:o,countdownText:s=>`Re-send code in ${s}s`,countdownCompleteText:"Re-send code",handleOnClick:d})]})}export{X as a};
|
package/dist/chunk-MIN6TMUL.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF2PJZF7Hcjs = require('./chunk-F2PJZF7H.cjs');var _chunkCNLXVMBDcjs = require('./chunk-CNLXVMBD.cjs');var _chunkHLGNSXEQcjs = require('./chunk-HLGNSXEQ.cjs');var _chunkHG5ML6KXcjs = require('./chunk-HG5ML6KX.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function W({phone:U,onSubmitOTP:_,onResendCode:d,appearance:o}){var f,g,y,P,h,c,v,k,b,T,e,O,C,I,S,B,E,N;let[u,M]=_react.useState.call(void 0, ""),[$,m]=_react.useState.call(void 0, !1),[j,n]=_react.useState.call(void 0, !1),[x,i]=_react.useState.call(void 0, null),q=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){n(!0);try{yield _(u),m(!1),i(null)}catch(s){console.error("Error confirming recovery key OTP",s),i("Invalid code. Please try again."),m(!0)}finally{n(!1)}});return _jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col items-center justify-start w-full",children:[_jsxruntime.jsx.call(void 0, "div",{className:"relative left-3",children:_jsxruntime.jsx.call(void 0, _chunkCNLXVMBDcjs.a,{customAccentColor:(f=o==null?void 0:o.colors)==null?void 0:f.accent,customButtonBackgroundColor:(g=o==null?void 0:o.colors)==null?void 0:g.buttonBackground,customBackgroundColor:(y=o==null?void 0:o.colors)==null?void 0:y.background})}),_jsxruntime.jsx.call(void 0, "p",{className:"text-base font-normal mt-4 mb-1 text-center text-cm-text-primary",style:{color:(P=o==null?void 0:o.colors)==null?void 0:P.textPrimary},children:"Check your phone"}),_jsxruntime.jsxs.call(void 0, "p",{className:"text-center text-cm-text-secondary px-4",style:{color:(h=o==null?void 0:o.colors)==null?void 0:h.textSecondary},children:["A temporary login code has been sent to ",U]}),_jsxruntime.jsx.call(void 0, "div",{className:"py-8",children:_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.a,{maxLength:9,value:u,onChange:s=>{M(s),m(!1),i(null)},onComplete:q,disabled:j,customStyles:{accent:(v=(c=o==null?void 0:o.colors)==null?void 0:c.accent)!=null?v:"#04AA6D",danger:(b=(k=o==null?void 0:o.colors)==null?void 0:k.danger)!=null?b:"#f44336",border:(e=(T=o==null?void 0:o.colors)==null?void 0:T.border)!=null?e:"#E5E7EB",textPrimary:(C=(O=o==null?void 0:o.colors)==null?void 0:O.textPrimary)!=null?C:"#909ca3",buttonBackground:(S=(I=o==null?void 0:o.colors)==null?void 0:I.buttonBackground)!=null?S:"#eff6ff",inputBackground:(E=(B=o==null?void 0:o.colors)==null?void 0:B.inputBackground)!=null?E:"#FFFFFF",borderRadius:o==null?void 0:o.borderRadius},children:_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.b,{children:Array.from({length:9}).map((s,w)=>_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:w,hasError:$,className:"max-sm:w-7 max-sm:h-11 max-sm:text-xl max-sm:mx-0 h-12 w-9"},w))})})}),x&&_jsxruntime.jsx.call(void 0, "div",{className:"text-sm text-red-500 mb-4",children:x}),_jsxruntime.jsx.call(void 0, "div",{className:"text-xs leading-tight text-cm-text-secondary text-center",children:_jsxruntime.jsxs.call(void 0, "span",{style:{color:(N=o==null?void 0:o.colors)==null?void 0:N.textSecondary},children:["Didn't receive the SMS? Check your signal.",`
|
|
2
|
-
`,"Some messages may take several minutes to arrive."]})}),d&&_jsxruntime.jsx.call(void 0, _chunkHLGNSXEQcjs.a,{initialSeconds:60,appearance:o,countdownText:s=>`Re-send code in ${s}s`,countdownCompleteText:"Re-send code",handleOnClick:d})]})}exports.a = W;
|
package/dist/chunk-NBJIJZGO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{clsx as r}from"clsx";import{twMerge as s}from"tailwind-merge";function m(...e){return s(r(e))}export{m as a};
|
package/dist/chunk-NIPNEXAS.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{a as Gt}from"./chunk-TWAQZ2L6.js";import{b as St}from"./chunk-4KDASQO6.js";import{a as Bt}from"./chunk-JSNUJJQJ.js";import{a as Dt}from"./chunk-RO7NM3Y3.js";import{a as Pt}from"./chunk-LD3MRJ3F.js";import{a as st}from"./chunk-E4UXI22W.js";import{a as C,b as Rt}from"./chunk-WK7PY5WL.js";import{a as Wt}from"./chunk-EMXNIC4M.js";import{a as Nt,b as It,c as z}from"./chunk-VHNBXIOC.js";import{a as U}from"./chunk-TNCETEEL.js";import{a as Ot,e as Et,h as Ft,i as kt}from"./chunk-UDQUVZUQ.js";import{a as Ut}from"./chunk-XB3VAPRK.js";import{a as N}from"./chunk-NBJIJZGO.js";import{a as Lt}from"./chunk-ZFHUZZF2.js";import{a as _t}from"./chunk-JPJKOERH.js";import{a as Tt}from"./chunk-C3JRTLQP.js";import{a as Mt}from"./chunk-E4TBJMOO.js";import{a as mt}from"./chunk-WW6GUXHG.js";import{a as ut}from"./chunk-UAFW3OWA.js";import{a as Q,b as Y,c as lt,d as x}from"./chunk-PXDN3KFO.js";import{VisuallyHidden as go}from"@radix-ui/react-visually-hidden";import tr from"color";import{useState as jo}from"react";import{useState as bt}from"react";import{useContext as _o}from"react";import{createContext as No,useEffect as xt,useMemo as Zt,useRef as to,useState as $,useCallback as X}from"react";import{CrossmintAuth as Io,getCookie as To}from"@crossmint/client-sdk-auth";import{validateApiKeyAndGetCrossmintBaseUrl as Ro}from"@crossmint/common-sdk-base";import{SESSION_PREFIX as Lo}from"@crossmint/common-sdk-auth";import{useCrossmint as Do}from"@crossmint/client-sdk-react-base";import{createContext as po,useCallback as Kt,useContext as Ao,useEffect as Po,useState as Vt}from"react";import{ChildWindow as ho,PopupWindow as yo}from"@crossmint/client-sdk-window";import{useEffect as xo,useRef as vo,useState as bo,useCallback as wo}from"react";import{z as at}from"zod";var Ht=(n,r)=>{let{crossmintAuth:o}=O(),[t,i]=bo(!1),e=vo(null);return xo(()=>(e.current==null&&(e.current=new ho(window.opener||window.parent,"*",{incomingEvents:Co})),()=>{e.current!=null&&e.current.off("authMaterialFromPopupCallback")}),[]),{createPopupAndSetupListeners:wo((s,g)=>x(void 0,null,function*(){if(e.current==null)throw new Error("Child window not initialized");i(!0),r(null),console.log("oauthUrlMap:",n),console.log("provider:",s),console.log("oauthUrlMap[provider]:",n[s]),console.log("providerLoginHint:",g);let l=new URL(n[s]);if(g!=null){let m=Array.from(l.searchParams.entries());l.search="",g&&l.searchParams.append("provider_login_hint",g),m.forEach(([c,b])=>{l.searchParams.append(c,b)})}let v=yield yo.init(l.toString(),{awaitToLoad:!1,crossOrigin:!0,width:400,height:700}),d=m=>x(void 0,null,function*(){var c;yield o==null?void 0:o.handleRefreshAuthMaterial(m.oneTimeSecret),(c=e.current)==null||c.off("authMaterialFromPopupCallback"),v.window.close(),i(!1)}),a=m=>{var c;r(m.error),(c=e.current)==null||c.off("errorFromPopupCallback"),v.window.close(),i(!1)};e.current.on("authMaterialFromPopupCallback",d),e.current.on("errorFromPopupCallback",a);let f=setInterval(()=>{var m,c;(m=v.window)!=null&&m.closed&&(clearInterval(f),i(!1),(c=e.current)==null||c.off("authMaterialFromPopupCallback"))},2500)}),[n,o,r]),isLoading:t}},Co={authMaterialFromPopupCallback:at.object({oneTimeSecret:at.string()}),errorFromPopupCallback:at.object({error:at.string()})};import{jsx as So}from"react/jsx-runtime";var jt={google:"",twitter:""},zt=po(void 0);function K(){let n=Ao(zt);if(!n)throw new Error("useOAuthFlow must be used within an OAuthFlowProvider");return n}function $t({children:n,prefetchOAuthUrls:r}){let{crossmintAuth:o,loginMethods:t}=O(),{setError:i}=C(),[e,u]=Vt(jt),[s,g]=Vt(!0),{createPopupAndSetupListeners:l,isLoading:v}=Ht(e,i),d=Kt(()=>x(this,null,function*(){g(!0);try{let c=(t||[]).filter(y=>y in jt).map(y=>x(this,null,function*(){let w=yield o==null?void 0:o.getOAuthUrl(y);return{[y]:w}})),b=Object.assign({},...yield Promise.all(c));u(b)}catch(m){i(m instanceof Error?m.message:"Unable to load oauth providers. Please try again later.")}finally{g(!1)}}),[t,o,i]);Po(()=>{r&&d()},[d,r]);let f={startOAuthLogin:Kt((m,c)=>x(this,null,function*(){yield l(m,c)}),[l]),isLoading:s||v};return So(zt.Provider,{value:f,children:n})}import{useEffect as yt,useMemo as qt}from"react";import{useDynamicContext as Oo}from"@dynamic-labs/sdk-react-core";import{isEthereumWallet as Eo}from"@dynamic-labs/ethereum";import{isSolanaWallet as Fo}from"@dynamic-labs/solana";import{EthereumWalletConnectors as Xt}from"@dynamic-labs/ethereum";import{SolanaWalletConnectors as Jt}from"@dynamic-labs/solana";import ko from"bs58";import{jsx as Qt}from"react/jsx-runtime";function Wo({children:n,enabled:r,onSdkLoaded:o,onWalletConnected:t,jwt:i}){let{primaryWallet:e,sdkHasLoaded:u,removeWallet:s,handleUnlinkWallet:g}=Oo(),l=!r||u;return yt(()=>{l&&(o==null||o(l))},[l,o]),yt(()=>{i==null&&l&&e!=null&&(s(e.id),g(e.id))},[i,l,e,s,g]),yt(()=>{function v(){return x(this,null,function*(){try{if(Eo(e)){let d=yield e.getWalletClient(),a={type:"external-wallet",address:d.account.address,viemAccount:Y(Q({},d.account),{signMessage:f=>x(this,null,function*(){return yield d.signMessage({message:f.message})})})};t(a)}else if(Fo(e)){let d=yield e.getSigner(),a={type:"external-wallet",address:e.address,onSignTransaction:f=>x(this,null,function*(){return yield d.signTransaction(f)})};t(a)}else throw new Error("Unsupported wallet type")}catch(d){throw console.error("Failed to get admin signer",d),new Error("Failed to get admin signer")}})}e!=null&&i!=null&&v()},[e,i,t]),n}function Yt({children:n,enabled:r=!0,apiKeyEnvironment:o,loginMethods:t=["web3"],appearance:i,onSdkLoaded:e,onWalletConnected:u}){var d,a;let{crossmintAuth:s,jwt:g}=O(),l=qt(()=>{var f,m;return`.powered-by-dynamic { display: none !important; }
|
|
2
|
-
.wallet-list__scroll-container { padding: 0px !important; }
|
|
3
|
-
.wallet-list__search-container { padding-left: 0px !important; padding-right: 0px !important; }
|
|
4
|
-
.dynamic-footer { display: none !important; }
|
|
5
|
-
h1 { color: ${(f=i==null?void 0:i.colors)==null?void 0:f.textPrimary} !important; }
|
|
6
|
-
* { color: ${(m=i==null?void 0:i.colors)==null?void 0:m.textSecondary} !important; }`},[(d=i==null?void 0:i.colors)==null?void 0:d.textPrimary,(a=i==null?void 0:i.colors)==null?void 0:a.textSecondary]),v=qt(()=>{if(r)return t.includes("web3:evm-only")?[Xt]:t.includes("web3:solana-only")?[Jt]:[Xt,Jt]},[r,t]);return Qt(Pt,{apiKeyEnvironment:o,settings:{walletConnectors:v,cssOverrides:l,events:{onAuthFailure(f,m){console.error("[DynamicWalletProvider] onAuthFailure",f,m)}},handlers:{handleConnectedWallet:f=>x(this,null,function*(){var c;if(!s)return console.error("[DynamicWalletProvider] crossmintAuth is not available"),!1;let m=f.address;if(m==null)return console.error("[DynamicWalletProvider] handleConnectedWallet: address is missing"),!1;try{let y=(yield St(f))==="solana"?"solana":"evm",w=yield s.signInWithSmartWallet(m,y);if((w==null?void 0:w.challenge)==null)throw new Error("No challenge received from signInWithSmartWallet");let A=yield(c=f.connector)==null?void 0:c.proveOwnership(m,w.challenge);if(A==null)throw new Error("Failed to get signature from wallet");let P=A;if(y==="solana"){let R=Buffer.from(A,"base64");P=ko.encode(R)}let p=yield s.authenticateSmartWallet(m,y,P);if((p==null?void 0:p.oneTimeSecret)==null)throw new Error("No oneTimeSecret received from authenticateSmartWallet");return yield s.handleRefreshAuthMaterial(p.oneTimeSecret),!0}catch(b){return console.error("[DynamicWalletProvider] Error handling wallet connection:",b),!1}})}},children:Qt(Wo,{enabled:r,onSdkLoaded:e,onWalletConnected:u,jwt:g,children:n})},`${o}-${t.join(",")}`)}import{Fragment as Bo,jsx as q,jsxs as oo}from"react/jsx-runtime";var Mo={crossmintAuth:void 0,login:()=>{},experimental_loginWithOAuth:()=>{},logout:()=>{},jwt:void 0,user:void 0,status:"initializing",getUser:()=>{},experimental_externalWalletSigner:void 0,loginMethods:[]},vt=No(Mo);function Kr({children:n,appearance:r,termsOfServiceText:o,prefetchOAuthUrls:t=!0,authModalTitle:i,onLoginSuccess:e,loginMethods:u=["email","google"],refreshRoute:s,logoutRoute:g}){let{crossmint:l}=Do("CrossmintAuthProvider must be used within CrossmintProvider"),[v,d]=$(void 0),[a,f]=$(void 0),m=Ro(l.apiKey),[c,b]=$(!1),[y,w]=$(!1),[A,P]=$(void 0),[p,R]=$(!0),W=u.some(h=>h.startsWith("web3")),[L,V]=$(void 0),_=to(null),D=Zt(()=>(_.current||(_.current=Io.from(l,{callbacks:{onLogout:()=>{d(void 0),f(void 0)},onTokenRefresh:h=>{d(h.user),f(h.jwt)}},refreshRoute:s,logoutRoute:g})),_.current),[]),M=to(null),S=X(()=>{e==null||e()},[e]);xt(()=>{if(a==null){let h=To(Lo);f(h)}w(!0)},[a]),xt(()=>{a!=null&&c&&(b(!1),S())},[a,c,S]);let G=X(h=>{if(a!=null){console.log("User already logged in");return}h!=null&&typeof h=="string"&&P(h),b(!0)},[a]),j=X(()=>{D.logout()},[D]),J=X(()=>!y||W&&!p?"initializing":a!=null?"logged-in":c?"in-progress":"logged-out",[y,W,p,a,c]),tt=X(()=>x(this,null,function*(){if(a==null){console.log("User not logged in");return}let h=yield D.getUser();return d(h),h}),[a,D]),ot=X(h=>x(this,null,function*(){var H;yield(H=M.current)==null?void 0:H.call(M,h)}),[M]),it=Zt(()=>({crossmintAuth:D,login:G,experimental_loginWithOAuth:ot,logout:j,jwt:a,user:v,status:J(),getUser:tt,loginMethods:u,experimental_externalWalletSigner:L}),[D,G,ot,j,a,v,J,tt,u,L]);return q(Lt,{children:q(vt.Provider,{value:it,children:q(Rt,{setDialogOpen:(h,H)=>{b(h),H&&S()},initialState:{appearance:r,loginMethods:u,termsOfServiceText:o,authModalTitle:i,baseUrl:m,defaultEmail:A},children:q($t,{prefetchOAuthUrls:J()==="logged-out"&&t,children:q(Uo,{loginWithOAuthRef:M,children:W?oo(Yt,{apiKeyEnvironment:l.apiKey.includes("production")?"production":"staging",loginMethods:u,appearance:r,onSdkLoaded:R,onWalletConnected:V,children:[n,q(ct,{open:c})]}):oo(Bo,{children:[n,q(ct,{open:c})]})})})})})})}function Uo({children:n,loginWithOAuthRef:r}){let{startOAuthLogin:o}=K(),{jwt:t}=O(),i=X(e=>x(this,null,function*(){if(t!=null){console.log("User already logged in");return}yield o(e)}),[t,o]);return xt(()=>{r.current=i},[i,r]),n}var O=()=>{let n=_o(vt);if(!n)throw new Error("useCrossmintAuth must be used within CrossmintAuthProvider");return n};import{jsx as E,jsxs as rt}from"react/jsx-runtime";var Go=6;function ro({otpEmailData:n,setOtpEmailData:r}){var b,y,w,A,P,p,R,W,L,V,_,D,M,S,G,j,J,tt,ot,it;let{crossmintAuth:o}=O(),{appearance:t,setDialogOpen:i,setStep:e,setError:u}=C(),[s,g]=bt(""),[l,v]=bt(!1),[d,a]=bt(!1),f=()=>x(this,null,function*(){var h,H;a(!0);try{let ht=yield o==null?void 0:o.confirmEmailOtp((h=n==null?void 0:n.email)!=null?h:"",(H=n==null?void 0:n.emailId)!=null?H:"",s);yield o==null?void 0:o.handleRefreshAuthMaterial(ht),i(!1,!0),e("initial")}catch(ht){console.error("Error confirming email OTP",ht),u("Invalid code. Please try again."),v(!0)}finally{a(!1)}}),m=()=>x(this,null,function*(){var h;try{yield o==null?void 0:o.sendEmailOtp((h=n==null?void 0:n.email)!=null?h:"")}catch(H){u("Failed to resend code. Please try again.")}});return rt("div",{children:[E(st,{onClick:()=>{e("initial"),r(null)},iconColor:(b=t==null?void 0:t.colors)==null?void 0:b.textPrimary,ringColor:(y=t==null?void 0:t.colors)==null?void 0:y.accent}),rt("div",{className:"flex flex-col items-center justify-start w-full",children:[E("div",{className:"relative left-3",children:E(Tt,{customAccentColor:(w=t==null?void 0:t.colors)==null?void 0:w.accent,customButtonBackgroundColor:(A=t==null?void 0:t.colors)==null?void 0:A.buttonBackground,customBackgroundColor:(P=t==null?void 0:t.colors)==null?void 0:P.background})}),E("p",{className:"text-base font-normal mt-4 mb-1 text-center text-cm-text-primary",style:{color:(p=t==null?void 0:t.colors)==null?void 0:p.textPrimary},children:"Check your email"}),rt("p",{className:"text-center text-cm-text-secondary px-4",style:{color:(R=t==null?void 0:t.colors)==null?void 0:R.textSecondary},children:["A temporary login code has been sent to"," ",n!=null&&n.email?n.email:"your email address"]}),E("div",{className:"py-8",children:E(Nt,{maxLength:Go,value:s,onChange:h=>{g(h),v(!1),u(null)},onComplete:f,disabled:d,customStyles:{accent:(L=(W=t==null?void 0:t.colors)==null?void 0:W.accent)!=null?L:"#04AA6D",danger:(_=(V=t==null?void 0:t.colors)==null?void 0:V.danger)!=null?_:"#f44336",border:(M=(D=t==null?void 0:t.colors)==null?void 0:D.border)!=null?M:"#E5E7EB",textPrimary:(G=(S=t==null?void 0:t.colors)==null?void 0:S.textPrimary)!=null?G:"#909ca3",buttonBackground:(J=(j=t==null?void 0:t.colors)==null?void 0:j.buttonBackground)!=null?J:"#eff6ff",inputBackground:(ot=(tt=t==null?void 0:t.colors)==null?void 0:tt.inputBackground)!=null?ot:"#FFFFFF",borderRadius:t==null?void 0:t.borderRadius},children:rt(It,{children:[E(z,{index:0,hasError:l}),E(z,{index:1,hasError:l}),E(z,{index:2,hasError:l}),E(z,{index:3,hasError:l}),E(z,{index:4,hasError:l}),E(z,{index:5,hasError:l})]})})}),E("div",{className:"text-xs leading-tight text-cm-text-secondary text-center",children:rt("span",{style:{color:(it=t==null?void 0:t.colors)==null?void 0:it.textSecondary},children:["Can't find the email? Check spam folder.",`
|
|
7
|
-
`,"Some emails may take several minutes to arrive."]})}),E(Wt,{initialSeconds:60,appearance:t,countdownText:h=>`Re-send code in ${h}s`,countdownCompleteText:"Re-send code",handleOnClick:m})]})]})}import{useState as Ct}from"react";import Ko from"color";import{isEmailValid as dt}from"@crossmint/common-sdk-auth";import{jsx as wt,jsxs as Ho}from"react/jsx-runtime";function eo({emailInput:n,appearance:r}){var i,e,u,s;let{startOAuthLogin:o,isLoading:t}=K();return Ho("button",{type:"button",className:N("flex items-center gap-2 justify-center h-[32px] px-2.5 border border-cm-border rounded-xl bg-cm-background-primary","hover:bg-cm-hover focus:bg-cm-hover outline-none",t?"cursor-not-allowed hover:bg-cm-muted-primary":""),onClick:t?void 0:()=>o("google",n.trim().toLowerCase()),style:{backgroundColor:(i=r==null?void 0:r.colors)==null?void 0:i.buttonBackground,borderRadius:r==null?void 0:r.borderRadius},children:[wt(mt,{className:"max-h-[18px] max-w-[18px] h-[18px] w-[18px]"}),t?wt(U,{style:{color:(e=r==null?void 0:r.colors)==null?void 0:e.textSecondary,fill:(u=r==null?void 0:r.colors)==null?void 0:u.textPrimary,width:"18px",height:"18px"}}):wt("span",{className:"text-cm-accent",style:{color:(s=r==null?void 0:r.colors)==null?void 0:s.accent},children:"Continue"})]})}import{Fragment as Vo,jsx as B,jsxs as pt}from"react/jsx-runtime";function no({setOtpEmailData:n}){var c,b,y,w,A,P,p,R,W,L,V,_,D,M;let{crossmintAuth:r}=O(),{appearance:o,defaultEmail:t,setStep:i,setError:e,loginMethods:u}=C(),[s,g]=Ct(t!=null?t:""),[l,v]=Ct(""),[d,a]=Ct(!1),f=s.toLowerCase().includes("@gmail.com")&&!s.toLowerCase().includes("+")&&dt(s)&&!d&&u.includes("google");function m(S){return x(this,null,function*(){S.preventDefault(),a(!0);try{let G=s.trim().toLowerCase(),j=yield r==null?void 0:r.sendEmailOtp(G);n({email:G,emailId:j.emailId}),i("otp")}catch(G){a(!1),e("Failed to send email. Please try again or contact support.")}})}return B(Vo,{children:B("div",{className:"flex flex-col items-start justify-start w-full rounded-lg",children:pt("div",{className:"w-full",children:[B("label",{className:"text-cm-text-primary block mb-[5px]",style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textPrimary},children:"Email"}),pt("form",{role:"form",className:"relative",onSubmit:S=>{if(f){S.preventDefault();return}dt(s)?m(S):S.preventDefault()},noValidate:!0,children:[B("label",{htmlFor:"emailInput",className:"sr-only",children:"Email"}),B("input",{className:N("flex-grow text-cm-text-primary text-left pl-[16px] h-[58px] w-full border border-cm-border rounded-xl bg-cm-background-primary placeholder:text-md","transition-none duration-200 ease-in-out","focus:outline-none focus-ring-custom","placeholder:[color:var(--placeholder-color)]",l?"border-red-500":"",f?"pr-[132px]":"pr-[80px]"),style:{color:(b=o==null?void 0:o.colors)==null?void 0:b.textPrimary,borderRadius:o==null?void 0:o.borderRadius,borderColor:l?(y=o==null?void 0:o.colors)==null?void 0:y.danger:(w=o==null?void 0:o.colors)==null?void 0:w.border,backgroundColor:(A=o==null?void 0:o.colors)==null?void 0:A.inputBackground,"--placeholder-color":(p=(P=o==null?void 0:o.colors)==null?void 0:P.textSecondary)!=null?p:"#67797F","--focus-ring-color":new Ko((W=(R=o==null?void 0:o.colors)==null?void 0:R.accent)!=null?W:"#04AA6D").alpha(.18).toString()},type:"email",placeholder:"your@email.com",value:s,onChange:S=>{g(S.target.value),v(""),e(null)},readOnly:d,"aria-describedby":"emailError"}),pt("div",{className:"absolute inset-y-0 right-0 flex items-center pr-4",children:[l&&B(ut,{customColor:(L=o==null?void 0:o.colors)==null?void 0:L.danger}),d&&B(U,{style:{color:(V=o==null?void 0:o.colors)==null?void 0:V.textSecondary,fill:(_=o==null?void 0:o.colors)==null?void 0:_.textPrimary}}),f?B(eo,{emailInput:s,appearance:o}):!l&&!d?B("button",{type:"submit",className:N("font-medium text-cm-accent text-nowrap bg-cm-background-primary",dt(s)?"cursor-pointer":"!cursor-not-allowed opacity-60"),style:{color:(D=o==null?void 0:o.colors)==null?void 0:D.accent,backgroundColor:(M=o==null?void 0:o.colors)==null?void 0:M.inputBackground},disabled:!dt(s)||d,children:"Submit"}):null]})]}),l&&B("p",{className:"text-xs text-red-500 mb-2 pt-2",children:l})]})})})}import{jsx as io}from"react/jsx-runtime";function lo(){let{step:n}=C(),[r,o]=jo(null);return n==="otp"?io(ro,{otpEmailData:r,setOtpEmailData:o}):n==="initial"?io(no,{setOtpEmailData:o}):null}import{Fragment as zo,jsx as ft,jsxs as so}from"react/jsx-runtime";function uo(r){var n=lt(r,[]);var u,s,g,l;let{step:o,appearance:t}=C(),{startOAuthLogin:i,isLoading:e}=K();return o!=="initial"?null:so("button",Y(Q({className:N("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",e?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(u=t==null?void 0:t.colors)==null?void 0:u.buttonBackground},onClick:e?void 0:()=>i("google")},n),{children:[so(zo,{children:[ft(mt,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),e?ft(U,{style:{color:(s=t==null?void 0:t.colors)==null?void 0:s.textSecondary,fill:(g=t==null?void 0:t.colors)==null?void 0:g.textPrimary}}):ft("span",{className:"font-medium",style:{margin:"0px 32px",color:(l=t==null?void 0:t.colors)==null?void 0:l.textPrimary},children:"Sign in with Google"})]}),ft("span",{className:"sr-only",children:"Sign in with Google"})]}))}import{useEffect as At,useMemo as $o,useState as qo}from"react";import{useSignIn as Xo,QRCode as Jo}from"@farcaster/auth-kit";import{Fragment as Yo,jsx as F,jsxs as et}from"react/jsx-runtime";function mo(){var i,e;let{step:n,appearance:r,setStep:o,setError:t}=C();return n==="initial"?F("div",{children:et("button",{className:N("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(i=r==null?void 0:r.colors)==null?void 0:i.buttonBackground},onClick:()=>{o("qrCode"),t(null)},children:[F(Mt,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),F("span",{className:"font-medium",style:{margin:"0px 32px",color:(e=r==null?void 0:r.colors)==null?void 0:e.textPrimary},children:"Sign in with Farcaster"}),F("span",{className:"sr-only",children:"Sign in with Farcaster"})]})}):n==="qrCode"?F(Qo,{}):null}function Qo(){var m,c,b,y,w,A,P,p,R;let{crossmintAuth:n}=O(),{appearance:r,setStep:o,setDialogOpen:t,setError:i}=C(),[e,u]=qo(null),s=$o(()=>({onSuccess:W=>{u(W)}}),[]),{signIn:g,url:l,connect:v,signOut:d,isConnected:a}=Xo(s),f=W=>x(this,null,function*(){i(null);try{let L=yield n==null?void 0:n.signInWithFarcaster(W);yield n==null?void 0:n.handleRefreshAuthMaterial(L),t(!1),o("initial")}catch(L){console.error("Error during Farcaster sign-in:",L),i("Failed to sign in with Farcaster")}});return At(()=>{e!=null&&f(e)},[e]),At(()=>{a&&g()},[a]),At(()=>{v()},[]),et("div",{children:[F(st,{onClick:()=>{d(),o("initial")},iconColor:(m=r==null?void 0:r.colors)==null?void 0:m.textPrimary,ringColor:(c=r==null?void 0:r.colors)==null?void 0:c.accent}),et("div",{className:"flex flex-col items-center gap-4",children:[et("div",{className:"text-center",children:[F("h3",{className:"text-lg font-semibold text-cm-text-primary mb-2",style:{color:(b=r==null?void 0:r.colors)==null?void 0:b.textPrimary},children:"Sign in with Farcaster"}),F("p",{className:"text-base font-normal text-cm-text-secondary",style:{color:(y=r==null?void 0:r.colors)==null?void 0:y.textSecondary},children:"Scan with your phone's camera to continue."})]}),F("div",{className:"bg-white aspect-square rounded-lg p-4",style:{backgroundColor:(w=r==null?void 0:r.colors)==null?void 0:w.inputBackground,borderRadius:r==null?void 0:r.borderRadius},children:l!=null?F(Jo,{uri:l,size:280}):F("div",{className:"min-h-[246px] flex items-center justify-center",children:F(U,{style:{color:(A=r==null?void 0:r.colors)==null?void 0:A.textSecondary,fill:(P=r==null?void 0:r.colors)==null?void 0:P.textPrimary}})})}),l?et(Yo,{children:[F("p",{className:"text-base text-center font-normal text-cm-text-secondary",style:{color:(p=r==null?void 0:r.colors)==null?void 0:p.textSecondary},children:"Alternatively, click on this link to open Warpcast."}),F("a",{href:l,rel:"noopener noreferrer",target:"_blank",className:"text-base font-normal text-cm-link",style:{color:(R=r==null?void 0:r.colors)==null?void 0:R.textLink},children:"Open Warpcast"})]}):null]})]})}import{Fragment as Zo,jsx as gt,jsxs as ao}from"react/jsx-runtime";function co(r){var n=lt(r,[]);var u,s,g,l;let{step:o,appearance:t}=C(),{startOAuthLogin:i,isLoading:e}=K();return o!=="initial"?null:ao("button",Y(Q({className:N("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",e?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(u=t==null?void 0:t.colors)==null?void 0:u.buttonBackground},onClick:e?void 0:()=>i("twitter")},n),{children:[ao(Zo,{children:[gt(_t,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),e?gt(U,{style:{color:(s=t==null?void 0:t.colors)==null?void 0:s.textSecondary,fill:(g=t==null?void 0:t.colors)==null?void 0:g.textPrimary}}):gt("span",{className:"font-medium",style:{margin:"0px 32px",color:(l=t==null?void 0:t.colors)==null?void 0:l.textPrimary},children:"Sign in with X"})]}),gt("span",{className:"sr-only",children:"Sign in with X"})]}))}import{jsx as k,jsxs as nt}from"react/jsx-runtime";function fo({className:n}){var g,l,v,d,a,f,m,c,b,y,w,A,P;let{step:r,appearance:o,loginMethods:t,baseUrl:i,error:e,termsOfServiceText:u,authModalTitle:s}=C();return nt("div",{className:N("relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none",n),children:[e!=null?nt("div",{className:"flex items-start justify-start w-full rounded-lg p-2 mt-4 bg-cm-danger-muted",style:{backgroundColor:new tr((l=(g=o==null?void 0:o.colors)==null?void 0:g.danger)!=null?l:"#f44336").alpha(.12).toString()},children:[k("div",{className:"min-w-[20px]",children:k(ut,{customColor:(d=(v=o==null?void 0:o.colors)==null?void 0:v.danger)!=null?d:"#f44336"})}),k("p",{className:"ml-2 text-sm",style:{color:(f=(a=o==null?void 0:o.colors)==null?void 0:a.danger)!=null?f:"#f44336"},children:e})]}):null,r==="initial"?nt("div",{children:[k("h1",{className:"text-2xl font-bold text-cm-text-primary",style:{color:(m=o==null?void 0:o.colors)==null?void 0:m.textPrimary},children:s!=null?s:"Sign in to Crossmint"}),k("p",{className:"text-base font-normal mb-3 text-cm-text-secondary",style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textSecondary},children:"Access using one of the options below."})]}):null,t.includes("google")?k(uo,{}):null,t.includes("farcaster")?k(Bt,{baseUrl:i,children:k(mo,{})}):null,t.includes("twitter")?k(co,{}):null,t.some(p=>p.startsWith("web3"))?k(Gt,{}):null,t.includes("email")?nt("div",{children:[t.length>1?k(Dt,{appearance:o,text:"OR"}):null,k(lo,{})]}):null,r==="initial"&&u!=null?nt("div",{className:"text-sm text-center text-cm-text-secondary mt-2",style:{color:(b=o==null?void 0:o.colors)==null?void 0:b.textSecondary},children:[k("style",{children:`
|
|
8
|
-
p a {
|
|
9
|
-
color: ${(w=(y=o==null?void 0:o.colors)==null?void 0:y.textLink)!=null?w:"#1A74E9"};
|
|
10
|
-
}
|
|
11
|
-
`}),u]}):null,r==="initial"||r==="otp"?k(Ut,{className:"mt-1.5 md:mt-4 justify-center",color:(P=(A=o==null?void 0:o.colors)==null?void 0:A.textSecondary)!=null?P:"#67797F"}):null]})}import{useEffect as or}from"react";import{jsx as Z,jsxs as rr}from"react/jsx-runtime";function ct({open:n}){var t,i,e;let{appearance:r,setDialogOpen:o}=C();return or(()=>{document.body.style.overflow=n?"hidden":""},[n]),Z(Ot,{modal:!1,open:n,onOpenChange:o,children:rr(Et,{onInteractOutside:u=>u.preventDefault(),onOpenAutoFocus:u=>u.preventDefault(),closeButtonColor:(t=r==null?void 0:r.colors)==null?void 0:t.textPrimary,closeButtonRingColor:(i=r==null?void 0:r.colors)==null?void 0:i.accent,className:"!p-0 !min-[480px]:p-0",style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(e=r==null?void 0:r.colors)==null?void 0:e.background},children:[Z(go,{asChild:!0,children:Z(Ft,{children:"Crossmint Auth"})}),Z(go,{asChild:!0,children:Z(kt,{children:"Sign in via Crossmint"})}),Z(fo,{className:"max-w-[448px]"})]})})}export{ct as a,Ht as b,K as c,$t as d,Yt as e,vt as f,Kr as g,O as h,Go as i,ro as j,eo as k,no as l,lo as m,uo as n,mo as o,co as p,fo as q};
|
package/dist/chunk-PLLOJELT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFMFVGDE3cjs = require('./chunk-FMFVGDE3.cjs');var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _sdkreactcore = require('@dynamic-labs/sdk-react-core');var _jsxruntime = require('react/jsx-runtime');function g(){var i,e;let{appearance:o,step:n,setStep:c}=_chunkKT4LGFPNcjs.a.call(void 0, );return n==="web3"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkFMFVGDE3cjs.a,{onClick:()=>c("initial"),iconColor:(i=o==null?void 0:o.colors)==null?void 0:i.textPrimary,ringColor:(e=o==null?void 0:o.colors)==null?void 0:e.accent}),_jsxruntime.jsx.call(void 0, "div",{className:"flex flex-col items-center",children:_jsxruntime.jsx.call(void 0, "div",{className:"flex flex-col gap-[10px] w-full",children:_jsxruntime.jsx.call(void 0, "div",{className:"widget-container",children:_jsxruntime.jsx.call(void 0, _sdkreactcore.DynamicEmbeddedWidget,{background:"none"})})})})]}):null}exports.a = g;
|
package/dist/chunk-QCLLJVY2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x}from"./chunk-TNCETEEL.js";import{a as u}from"./chunk-NBJIJZGO.js";import{d as a}from"./chunk-PXDN3KFO.js";import{useState as h}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";function S({phone:r,onConfirm:v,onCancel:C,appearance:t}){var m,c,f;let[e,i]=h(!1),[l,y]=h(""),g=()=>a(this,null,function*(){i(!0);try{yield v(r)}catch(w){console.error("Error sending authorization code:",w),y("Failed to send code. Please try again.")}finally{i(!1)}}),b=((m=t==null?void 0:t.colors)==null?void 0:m.accent)||"#4CAF50",n=((c=t==null?void 0:t.colors)==null?void 0:c.textPrimary)||"#000000",d=((f=t==null?void 0:t.colors)==null?void 0:f.border)||"#E0E0E0";return s("div",{className:"flex flex-col w-full max-w-md mx-auto rounded-xl",children:[o("h2",{className:"mb-2",style:{color:n},children:"Send authorization code to"}),o("div",{className:"w-full mb-8 p-4 rounded-xl border",style:{borderColor:d},children:s("div",{className:"flex items-center",children:[o("div",{className:"flex-shrink-0 mr-3",children:o("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",className:"lucide lucide-phone",children:o("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})})}),o("span",{style:{color:n},children:r})]})}),l&&o("div",{className:"text-red-500 mb-4 text-sm",children:l}),s("div",{className:"flex gap-3",children:[o("button",{onClick:C,className:"flex-1 py-4 px-6 border rounded-full text-center font-medium",style:{borderColor:d},children:"Cancel"}),o("button",{onClick:g,disabled:e,className:u("flex-1 py-4 px-6 rounded-full text-white text-center font-medium",e?"opacity-70":""),style:{backgroundColor:b},children:e?o("div",{className:"flex justify-center items-center",children:o(x,{style:{color:"white"}})}):"Send code"})]})]})}export{S as a};
|
package/dist/chunk-RERW4UT4.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF2PJZF7Hcjs = require('./chunk-F2PJZF7H.cjs');var _chunkHLGNSXEQcjs = require('./chunk-HLGNSXEQ.cjs');var _chunkHG5ML6KXcjs = require('./chunk-HG5ML6KX.cjs');var _chunkI4GMMHQRcjs = require('./chunk-I4GMMHQR.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function W({email:_,onSubmitOTP:D,onResendCode:d,appearance:o}){var f,y,g,P,c,k,v,b,T,h,O,C,E,I,B,e,N,S;let[u,$]=_react.useState.call(void 0, ""),[j,m]=_react.useState.call(void 0, !1),[q,n]=_react.useState.call(void 0, !1),[x,i]=_react.useState.call(void 0, null),z=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){n(!0);try{yield D(u),m(!1),i(null)}catch(s){console.error("Error confirming recovery key OTP",s),i("Invalid code. Please try again."),m(!0)}finally{n(!1)}});return _jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col items-center justify-start w-full",children:[_jsxruntime.jsx.call(void 0, "div",{className:"relative left-3",children:_jsxruntime.jsx.call(void 0, _chunkI4GMMHQRcjs.a,{customAccentColor:(f=o==null?void 0:o.colors)==null?void 0:f.accent,customButtonBackgroundColor:(y=o==null?void 0:o.colors)==null?void 0:y.buttonBackground,customBackgroundColor:(g=o==null?void 0:o.colors)==null?void 0:g.background})}),_jsxruntime.jsx.call(void 0, "p",{className:"text-base font-normal mt-4 mb-1 text-center text-cm-text-primary",style:{color:(P=o==null?void 0:o.colors)==null?void 0:P.textPrimary},children:"Check your email"}),_jsxruntime.jsxs.call(void 0, "p",{className:"text-center text-cm-text-secondary px-4",style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textSecondary},children:["A temporary login code has been sent to ",_]}),_jsxruntime.jsx.call(void 0, "div",{className:"py-8",children:_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.a,{maxLength:9,value:u,onChange:s=>{$(s),m(!1),i(null)},onComplete:z,disabled:q,customStyles:{accent:(v=(k=o==null?void 0:o.colors)==null?void 0:k.accent)!=null?v:"#04AA6D",danger:(T=(b=o==null?void 0:o.colors)==null?void 0:b.danger)!=null?T:"#f44336",border:(O=(h=o==null?void 0:o.colors)==null?void 0:h.border)!=null?O:"#E5E7EB",textPrimary:(E=(C=o==null?void 0:o.colors)==null?void 0:C.textPrimary)!=null?E:"#909ca3",buttonBackground:(B=(I=o==null?void 0:o.colors)==null?void 0:I.buttonBackground)!=null?B:"#eff6ff",inputBackground:(N=(e=o==null?void 0:o.colors)==null?void 0:e.inputBackground)!=null?N:"#FFFFFF",borderRadius:o==null?void 0:o.borderRadius},children:_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.b,{children:Array.from({length:9}).map((s,w)=>_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:w,hasError:j,className:"max-sm:w-7 max-sm:h-11 max-sm:text-xl max-sm:mx-0 h-12 w-9"},w))})})}),x&&_jsxruntime.jsx.call(void 0, "div",{className:"text-sm text-red-500 mb-4",children:x}),_jsxruntime.jsx.call(void 0, "div",{className:"text-xs leading-tight text-cm-text-secondary text-center",children:_jsxruntime.jsxs.call(void 0, "span",{style:{color:(S=o==null?void 0:o.colors)==null?void 0:S.textSecondary},children:["Can't find the email? Check spam folder.",`
|
|
2
|
-
`,"Some emails may take several minutes to arrive."]})}),d&&_jsxruntime.jsx.call(void 0, _chunkHLGNSXEQcjs.a,{initialSeconds:60,appearance:o,countdownText:s=>`Re-send code in ${s}s`,countdownCompleteText:"Re-send code",handleOnClick:d})]})}exports.a = W;
|
package/dist/chunk-RGVTYWKX.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _chunkWABJHG6Bcjs = require('./chunk-WABJHG6B.cjs');var _chunkTXOVDTYKcjs = require('./chunk-TXOVDTYK.cjs');var _chunkYXF74MVIcjs = require('./chunk-YXF74MVI.cjs');var _jsxruntime = require('react/jsx-runtime');function N(){var r,l,s,e,i;let{step:b,appearance:o,setStep:x,setError:d}=_chunkKT4LGFPNcjs.a.call(void 0, );return b!=="initial"?null:_jsxruntime.jsxs.call(void 0, "button",{className:_chunkWABJHG6Bcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:o==null?void 0:o.borderRadius,borderColor:(r=o==null?void 0:o.colors)==null?void 0:r.border,backgroundColor:(l=o==null?void 0:o.colors)==null?void 0:l.buttonBackground},onClick:()=>{x("web3"),d(null)},children:[_jsxruntime.jsx.call(void 0, _chunkTXOVDTYKcjs.a,{className:"h-[21px] w-[21px] absolute left-[20px]",style:{color:(s=o==null?void 0:o.colors)==null?void 0:s.textPrimary}}),_jsxruntime.jsx.call(void 0, "span",{className:"font-medium",style:{margin:"0px 32px",color:(e=o==null?void 0:o.colors)==null?void 0:e.textPrimary},children:"Continue with a wallet"}),_jsxruntime.jsx.call(void 0, _chunkYXF74MVIcjs.a,{className:"h-[21px] w-[21px] absolute right-[20px]",style:{color:(i=o==null?void 0:o.colors)==null?void 0:i.textSecondary}}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Continue with a wallet"})]})}exports.a = N;
|
package/dist/chunk-RO7NM3Y3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-WK7PY5WL.js";import{jsx as l,jsxs as f}from"react/jsx-runtime";function x({appearance:o,text:t}){var s,r,i;let{step:u}=m();return u!=="initial"?null:f("div",{className:"flex items-center justify-center w-full pt-2 pb-3",children:[l("span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(s=o==null?void 0:o.colors)==null?void 0:s.border}}),t!=null?l("p",{className:"flex-none px-2 text-sm text-cm-text-primary",style:{color:(r=o==null?void 0:o.colors)==null?void 0:r.textSecondary},children:t}):null,l("span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(i=o==null?void 0:o.colors)==null?void 0:i.border}})]})}export{x as a};
|
package/dist/chunk-RPQ6BWD3.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _jsxruntime = require('react/jsx-runtime');function n({appearance:o,text:t}){var s,r,i;let{step:u}=_chunkKT4LGFPNcjs.a.call(void 0, );return u!=="initial"?null:_jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center justify-center w-full pt-2 pb-3",children:[_jsxruntime.jsx.call(void 0, "span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(s=o==null?void 0:o.colors)==null?void 0:s.border}}),t!=null?_jsxruntime.jsx.call(void 0, "p",{className:"flex-none px-2 text-sm text-cm-text-primary",style:{color:(r=o==null?void 0:o.colors)==null?void 0:r.textSecondary},children:t}):null,_jsxruntime.jsx.call(void 0, "span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(i=o==null?void 0:o.colors)==null?void 0:i.border}})]})}exports.a = n;
|
package/dist/chunk-RVN2RWLI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C}from"./chunk-EA7H4AXL.js";import{a}from"./chunk-MAZ7YKN6.js";import{a as m,b as u,c as s}from"./chunk-PXDN3KFO.js";import{useCrossmint as M}from"@crossmint/client-sdk-react-base";import{crossmintHostedCheckoutV3Service as N,crossmintHostedCheckoutV3StylesService as R}from"@crossmint/client-sdk-base";import T from"clsx";import{useEffect as j,useState as w}from"react";import{jsx as l,jsxs as D}from"react/jsx-runtime";function F(d){let[f,h]=w(!1),{crossmint:k}=M(),y=a(k),c=d,{recipient:P,locale:g,lineItems:H,payment:S,appearance:V,metadata:v}=c,b=s(c,["recipient","locale","lineItems","payment","appearance","metadata"]),n={recipient:P,locale:g,lineItems:H,payment:S,appearance:V,metadata:v},x=N({apiClient:y,hostedCheckoutProps:n}),t=R(n),p=b,{onClick:r,className:E,children:o}=p,I=s(p,["onClick","className","children"]);function B(e){e.preventDefault(),e.stopPropagation(),x.createWindow(),r&&r(e)}let i=t.generateCss();return j(()=>{let{cleanup:e}=t.injectCss(i);return h(!0),e},[i]),f?D("button",u(m({onClick:B,className:T(t.identifiers.buttonClassNames,E)},I),{children:[l(C,{style:{marginRight:"12px",flex:"none"},displayType:"icon-only",id:t.identifiers.logoId,height:16,width:16}),o!=null?o:l("p",{style:{margin:0},children:t.getButtonText()})]})):null}export{F as a};
|
package/dist/chunk-SGIMVEZT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB7QO52HDcjs = require('./chunk-B7QO52HD.cjs');var _chunkUXNLOKSGcjs = require('./chunk-UXNLOKSG.cjs');var _chunk4I42JCKBcjs = require('./chunk-4I42JCKB.cjs');var _chunkX4BUSZRJcjs = require('./chunk-X4BUSZRJ.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _reactdom = require('react-dom');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 re({children:P,showPasskeyHelpers:c=!0,appearance:m,createOnLogin:t,callbacks:i}){let{experimental_customAuth:r}=_clientsdkreactbase.useCrossmint.call(void 0, ),[h,y]=_react.useState.call(void 0, {open:!1}),[g,f]=_react.useState.call(void 0, !1),[V,v]=_react.useState.call(void 0, "initial"),[O,S]=_react.useState.call(void 0, !1),[B,T]=_react.useState.call(void 0, "initial"),[M,I]=_react.useState.call(void 0, !1),C=_react.useRef.call(void 0, p("sendEmailWithOtp")),w=_react.useRef.call(void 0, p("verifyOtp")),R=_react.useRef.call(void 0, p("sendPhoneWithOtp")),b=_react.useRef.call(void 0, p("verifyPhoneOtp")),n=_react.useRef.call(void 0, p("reject")),E=_react.useCallback.call(void 0, e=>()=>new Promise(o=>{if(!c){o();return}y({type:e,open:!0,primaryActionOnClick:()=>{y({open:!1}),o()},secondaryActionOnClick:()=>{y({open:!1}),o()}})}),[c]),k=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield C.current(),v("otp")}catch(e){console.error("Failed to send email OTP",e),n.current(new Error("Failed to send email OTP"))}}),U=e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield w.current(e),f(!1),v("initial")}catch(o){console.error("Failed to verify OTP",o),n.current(new Error("Failed to verify OTP"))}}),W=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield R.current(),T("otp")}catch(e){console.error("Failed to send phone OTP",e),n.current(new Error("Failed to send phone OTP"))}}),A=e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield b.current(e),S(!1),T("initial")}catch(o){console.error("Failed to verify phone OTP",o),n.current(new Error("Failed to verify phone OTP"))}});return _jsxruntime.jsx.call(void 0, _chunkX4BUSZRJcjs.a,{children:_jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletBaseProvider,{createOnLogin:t,onAuthRequired:(e,o,D,$)=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){(t==null?void 0:t.signer.type)==="phone"&&t.signer.phone?(S(e),R.current=o,b.current=D):(f(e),C.current=o,w.current=D),I(e),n.current=$}),callbacks:(()=>{let e=i==null?void 0:i.onWalletCreationStart,o=i==null?void 0:i.onTransactionStart;return(t==null?void 0:t.signer.type)==="passkey"&&c&&(e=E("create-wallet"),o=E("transaction")),{onWalletCreationStart:e,onTransactionStart:o}})(),children:[P,g&&(r==null?void 0:r.email)!=null?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, _chunk4I42JCKBcjs.a,{rejectRef:n,email:r==null?void 0:r.email,open:g,setOpen:f,step:V,onSubmitOTP:U,onResendOTPCode:k,onSubmitEmail:k,appearance:m}),document.body):null,O&&(r==null?void 0:r.phone)!=null?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, _chunkUXNLOKSGcjs.a,{rejectRef:n,phone:r==null?void 0:r.phone,open:O,setOpen:S,step:B,onSubmitOTP:A,onResendOTPCode:W,onSubmitPhone:W,appearance:m}),document.body):null,h.open?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, _chunkB7QO52HDcjs.a,{state:h,appearance:m}),document.body):null]})})}exports.a = re;
|
package/dist/chunk-U6SU4GSC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-CHOIE7TZ.js";import{a as c}from"./chunk-QCLLJVY2.js";import{a as x,e as b,h,i as C}from"./chunk-UDQUVZUQ.js";import{VisuallyHidden as P}from"@radix-ui/react-visually-hidden";import{jsx as i,jsxs as l}from"react/jsx-runtime";function I({phone:e,open:r,setOpen:v,step:s,onSubmitOTP:y,onResendOTPCode:D,onSubmitPhone:O,rejectRef:n,appearance:o}){var m,f,u;if(e==null)throw new Error("Phone is required");function d(t){var g;(r||t)&&((g=n.current)==null||g.call(n,new Error),v(!1))}return i(x,{modal:!1,open:r,onOpenChange:d,children:l(b,{onInteractOutside:t=>t.preventDefault(),onOpenAutoFocus:t=>t.preventDefault(),className:"!p-0 !min-[480px]:p-0",style:{borderRadius:o==null?void 0:o.borderRadius,backgroundColor:(m=o==null?void 0:o.colors)==null?void 0:m.background},children:[i(P,{asChild:!0,children:i(h,{children:"Confirm it's you"})}),i(P,{asChild:!0,children:i(C,{children:"Create a recovery key"})}),l("div",{className:"relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none max-w-[448px]",children:[s==="initial"?l("div",{className:"flex flex-col gap-4",children:[i("h1",{className:"text-2xl font-bold text-cm-text-primary",style:{color:(f=o==null?void 0:o.colors)==null?void 0:f.textPrimary},children:"Confirm it's you"}),i("p",{className:"text-base font-normal mb-3 text-cm-text-secondary",style:{color:(u=o==null?void 0:o.colors)==null?void 0:u.textSecondary},children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code via SMS."})]}):null,s==="otp"?i(a,{phone:e,onSubmitOTP:y,onResendCode:D,appearance:o}):i(c,{phone:e,onConfirm:O,onCancel:d,appearance:o})]})]})})}export{I as a};
|
package/dist/chunk-UDQUVZUQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-NBJIJZGO.js";import{a as l,b as d,c as m}from"./chunk-PXDN3KFO.js";import*as c from"react";import*as e from"@radix-ui/react-dialog";import{jsx as a,jsxs as p}from"react/jsx-runtime";var w=e.Root,T=e.Trigger,k=e.Close,D=e.Portal,v=c.forwardRef((y,x)=>{var g=y,{className:i,children:o,showCloseButton:n=!0,closeButtonColor:t,closeButtonRingColor:s}=g,f=m(g,["className","children","showCloseButton","closeButtonColor","closeButtonRingColor"]);return p(D,{children:[a("div",{className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-sm overflow-x-hidden"}),p(e.Content,d(l({ref:x,className:r("fixed z-50 p-6 pb-4 bg-cm-background-primary border border-cm-border shadow-xl transition-none","inset-x-[9px] bottom-2 w-[calc(100%-18px)] border-t rounded-t-[36px] rounded-b-[50px]","max-[479px]:data-[state=closed]:animate-slide-out-to-bottom max-[479px]:data-[state=open]:animate-slide-in-from-bottom","min-[480px]:inset-auto min-[480px]:left-[50%] min-[480px]:top-[50%]","min-[480px]:[transform:translate(-50%,-50%)]","min-[480px]:max-w-[448px] min-[480px]:rounded-3xl !min-[480px]:p-10 !min-[480px]:pb-8","min-[480px]:data-[state=closed]:animate-fade-out min-[480px]:data-[state=open]:animate-fade-in",i)},f),{children:[o,n&&p(e.Close,{className:r("absolute rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-text-primary","right-5 top-5 !min-[480px]:right-7 !min-[480px]:top-7"),style:{color:t!=null?t:"#67797F"},children:[p("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",className:"h-7 w-7",children:[a("path",{d:"M18 6 6 18"}),a("path",{d:"m6 6 12 12"})]}),a("span",{className:"sr-only",children:"Close"})]})]}))]})});v.displayName=e.Content.displayName;var u=n=>{var t=n,{className:i}=t,o=m(t,["className"]);return a("div",l({className:r("flex flex-col space-y-1.5 text-center sm:text-left",i)},o))};u.displayName="DialogHeader";var P=n=>{var t=n,{className:i}=t,o=m(t,["className"]);return a("div",l({className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i)},o))};P.displayName="DialogFooter";var b=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=m(s,["className"]);return a(e.Title,l({ref:n,className:r("text-lg font-semibold leading-none tracking-tight",i)},o))});b.displayName=e.Title.displayName;var R=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=m(s,["className"]);return a(e.Description,l({ref:n,className:r("text-sm text-muted-foreground",i)},o))});R.displayName=e.Description.displayName;export{w as a,T as b,k as c,D as d,v as e,u as f,P as g,b as h,R as i};
|
package/dist/chunk-UXNLOKSG.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMIN6TMULcjs = require('./chunk-MIN6TMUL.cjs');var _chunkGNLTOJSYcjs = require('./chunk-GNLTOJSY.cjs');var _chunkWMBBIP2Ccjs = require('./chunk-WMBBIP2C.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _jsxruntime = require('react/jsx-runtime');function p({phone:e,open:r,setOpen:v,step:s,onSubmitOTP:y,onResendOTPCode:D,onSubmitPhone:O,rejectRef:n,appearance:o}){var m,f,u;if(e==null)throw new Error("Phone is required");function d(t){var g;(r||t)&&((g=n.current)==null||g.call(n,new Error),v(!1))}return _jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.a,{modal:!1,open:r,onOpenChange:d,children:_jsxruntime.jsxs.call(void 0, _chunkWMBBIP2Ccjs.e,{onInteractOutside:t=>t.preventDefault(),onOpenAutoFocus:t=>t.preventDefault(),className:"!p-0 !min-[480px]:p-0",style:{borderRadius:o==null?void 0:o.borderRadius,backgroundColor:(m=o==null?void 0:o.colors)==null?void 0:m.background},children:[_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.h,{children:"Confirm it's you"})}),_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.i,{children:"Create a recovery key"})}),_jsxruntime.jsxs.call(void 0, "div",{className:"relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none max-w-[448px]",children:[s==="initial"?_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col gap-4",children:[_jsxruntime.jsx.call(void 0, "h1",{className:"text-2xl font-bold text-cm-text-primary",style:{color:(f=o==null?void 0:o.colors)==null?void 0:f.textPrimary},children:"Confirm it's you"}),_jsxruntime.jsx.call(void 0, "p",{className:"text-base font-normal mb-3 text-cm-text-secondary",style:{color:(u=o==null?void 0:o.colors)==null?void 0:u.textSecondary},children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code via SMS."})]}):null,s==="otp"?_jsxruntime.jsx.call(void 0, _chunkMIN6TMULcjs.a,{phone:e,onSubmitOTP:y,onResendCode:D,appearance:o}):_jsxruntime.jsx.call(void 0, _chunkGNLTOJSYcjs.a,{phone:e,onConfirm:O,onCancel:d,appearance:o})]})]})})}exports.a = p;
|
package/dist/chunk-VHNBXIOC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-NBJIJZGO.js";import{a as u,b as l,c}from"./chunk-PXDN3KFO.js";import*as r from"react";import{OTPInput as x,OTPInputContext as C}from"input-otp";import{createContext as O,useContext as T}from"react";import{jsx as s,jsxs as y}from"react/jsx-runtime";var R=O(void 0),v=r.forwardRef((P,t)=>{var i=P,{className:n,containerClassName:o,customStyles:a}=i,p=c(i,["className","containerClassName","customStyles"]);return s(R.Provider,{value:a,children:s(x,u({autoFocus:!0,ref:t,containerClassName:d("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:d("disabled:cursor-not-allowed",n)},p))})});v.displayName="InputOTP";var I=r.forwardRef((p,a)=>{var t=p,{className:n}=t,o=c(t,["className"]);return s("div",u({ref:a,className:d("flex gap-2 items-center",n)},o))});I.displayName="InputOTPGroup";var h=r.forwardRef((P,t)=>{var i=P,{index:n,className:o,hasError:a}=i,p=c(i,["index","className","hasError"]);let b=r.useContext(C),{char:f,hasFakeCaret:g,isActive:m}=b.slots[n],e=T(R);return y("div",l(u({ref:t,className:d("relative flex h-14 w-12 items-center bg-cm-muted-primary justify-center border border-cm-border text-lg transition-all rounded-md text-cm-text-primary",m&&"z-10 ring-2 ring-offset-background",o),style:{borderRadius:e==null?void 0:e.borderRadius,borderColor:a?e==null?void 0:e.danger:e==null?void 0:e.border,boxShadow:m?`0 0 0 2px ${e==null?void 0:e.accent}`:"none",backgroundColor:f?e==null?void 0:e.buttonBackground:e==null?void 0:e.inputBackground}},p),{children:[f,g&&s("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:s("div",{className:"h-4 w-px animate-caret-blink duration-1000",style:{height:"18px",backgroundColor:e==null?void 0:e.textPrimary}})})]}))});h.displayName="InputOTPSlot";export{v as a,I as b,h as c};
|
package/dist/chunk-VVC4E4IR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-WK7PY5WL.js";import{a as n}from"./chunk-NBJIJZGO.js";import{a as c}from"./chunk-VWL76U5G.js";import{a as m}from"./chunk-VLDE23JX.js";import{jsx as t,jsxs as f}from"react/jsx-runtime";function a(){var r,l,s,e,i;let{step:b,appearance:o,setStep:x,setError:d}=u();return b!=="initial"?null:f("button",{className:n("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:o==null?void 0:o.borderRadius,borderColor:(r=o==null?void 0:o.colors)==null?void 0:r.border,backgroundColor:(l=o==null?void 0:o.colors)==null?void 0:l.buttonBackground},onClick:()=>{x("web3"),d(null)},children:[t(c,{className:"h-[21px] w-[21px] absolute left-[20px]",style:{color:(s=o==null?void 0:o.colors)==null?void 0:s.textPrimary}}),t("span",{className:"font-medium",style:{margin:"0px 32px",color:(e=o==null?void 0:o.colors)==null?void 0:e.textPrimary},children:"Continue with a wallet"}),t(m,{className:"h-[21px] w-[21px] absolute right-[20px]",style:{color:(i=o==null?void 0:o.colors)==null?void 0:i.textSecondary}}),t("span",{className:"sr-only",children:"Continue with a wallet"})]})}export{a};
|
package/dist/chunk-WABJHG6B.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _clsx = require('clsx');var _tailwindmerge = require('tailwind-merge');function o(...e){return _tailwindmerge.twMerge.call(void 0, _clsx.clsx.call(void 0, e))}exports.a = o;
|
package/dist/chunk-WMBBIP2C.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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; } }var _chunkWABJHG6Bcjs = require('./chunk-WABJHG6B.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react'); var c = _interopRequireWildcard(_react);var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _jsxruntime = require('react/jsx-runtime');var C=e.Root,w= exports.b =e.Trigger,T= exports.c =e.Close,D= exports.d =e.Portal,v= exports.e =c.forwardRef((y,x)=>{var g=y,{className:i,children:o,showCloseButton:n=!0,closeButtonColor:t,closeButtonRingColor:s}=g,f=_chunk2WSEHVNPcjs.c.call(void 0, g,["className","children","showCloseButton","closeButtonColor","closeButtonRingColor"]);return _jsxruntime.jsxs.call(void 0, D,{children:[_jsxruntime.jsx.call(void 0, "div",{className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-sm overflow-x-hidden"}),_jsxruntime.jsxs.call(void 0, e.Content,_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {ref:x,className:_chunkWABJHG6Bcjs.a.call(void 0, "fixed z-50 p-6 pb-4 bg-cm-background-primary border border-cm-border shadow-xl transition-none","inset-x-[9px] bottom-2 w-[calc(100%-18px)] border-t rounded-t-[36px] rounded-b-[50px]","max-[479px]:data-[state=closed]:animate-slide-out-to-bottom max-[479px]:data-[state=open]:animate-slide-in-from-bottom","min-[480px]:inset-auto min-[480px]:left-[50%] min-[480px]:top-[50%]","min-[480px]:[transform:translate(-50%,-50%)]","min-[480px]:max-w-[448px] min-[480px]:rounded-3xl !min-[480px]:p-10 !min-[480px]:pb-8","min-[480px]:data-[state=closed]:animate-fade-out min-[480px]:data-[state=open]:animate-fade-in",i)},f),{children:[o,n&&_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkWABJHG6Bcjs.a.call(void 0, "absolute rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-text-primary","right-5 top-5 !min-[480px]:right-7 !min-[480px]:top-7"),style:{color:t!=null?t:"#67797F"},children:[_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",className:"h-7 w-7",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, "span",{className:"sr-only",children:"Close"})]})]}))]})});v.displayName=e.Content.displayName;var u=n=>{var t=n,{className:i}=t,o=_chunk2WSEHVNPcjs.c.call(void 0, t,["className"]);return _jsxruntime.jsx.call(void 0, "div",_chunk2WSEHVNPcjs.a.call(void 0, {className:_chunkWABJHG6Bcjs.a.call(void 0, "flex flex-col space-y-1.5 text-center sm:text-left",i)},o))};u.displayName="DialogHeader";var P=n=>{var t=n,{className:i}=t,o=_chunk2WSEHVNPcjs.c.call(void 0, t,["className"]);return _jsxruntime.jsx.call(void 0, "div",_chunk2WSEHVNPcjs.a.call(void 0, {className:_chunkWABJHG6Bcjs.a.call(void 0, "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i)},o))};P.displayName="DialogFooter";var b=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=_chunk2WSEHVNPcjs.c.call(void 0, s,["className"]);return _jsxruntime.jsx.call(void 0, e.Title,_chunk2WSEHVNPcjs.a.call(void 0, {ref:n,className:_chunkWABJHG6Bcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",i)},o))});b.displayName=e.Title.displayName;var R=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=_chunk2WSEHVNPcjs.c.call(void 0, s,["className"]);return _jsxruntime.jsx.call(void 0, e.Description,_chunk2WSEHVNPcjs.a.call(void 0, {ref:n,className:_chunkWABJHG6Bcjs.a.call(void 0, "text-sm text-muted-foreground",i)},o))});R.displayName=e.Description.displayName;exports.a = C; exports.b = w; exports.c = T; exports.d = D; exports.e = v; exports.f = u; exports.g = P; exports.h = b; exports.i = R;
|
package/dist/chunk-X4BUSZRJ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPZUWRGVPcjs = require('./chunk-PZUWRGVP.cjs');var _react = require('react');var _core = require('@twind/core');var _jsxruntime = require('react/jsx-runtime');var o=_react.createContext.call(void 0, !1);function f(){return _react.useContext.call(void 0, o)}function u({children:e}){let[t,i]=_react.useState.call(void 0, !1);return _react.useEffect.call(void 0, ()=>{t||(_core.install.call(void 0, _chunkPZUWRGVPcjs.a),i(!0))},[t]),_jsxruntime.jsx.call(void 0, o.Provider,{value:!0,children:e})}function p({children:e}){return f()?_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:e}):_jsxruntime.jsx.call(void 0, u,{children:e})}exports.a = p;
|
package/dist/chunk-ZFHUZZF2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-UILJI3DM.js";import{useEffect as d,createContext as a,useContext as s,useState as l}from"react";import{install as c}from"@twind/core";import{Fragment as w,jsx as n}from"react/jsx-runtime";var o=a(!1);function f(){return s(o)}function u({children:e}){let[t,i]=l(!1);return d(()=>{t||(c(r),i(!0))},[t]),n(o.Provider,{value:!0,children:e})}function C({children:e}){return f()?n(w,{children:e}):n(u,{children:e})}export{C as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkX4BUSZRJcjs = require('../chunk-X4BUSZRJ.cjs');require('../chunk-PZUWRGVP.cjs');require('../chunk-2WSEHVNP.cjs');exports.TwindProvider = _chunkX4BUSZRJcjs.a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-ZFHUZZF2.js";import"../chunk-UILJI3DM.js";import"../chunk-PXDN3KFO.js";export{a as TwindProvider};
|
package/dist/testUtils.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-2WSEHVNP.cjs');var _="sk_development_12341234";exports.MOCK_API_KEY = _;
|
package/dist/testUtils.d.cts
DELETED
package/dist/testUtils.d.ts
DELETED
package/dist/testUtils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-PXDN3KFO.js";var o="sk_development_12341234";export{o as MOCK_API_KEY};
|