@moveindustries/movement-design-system 1.1.0 → 1.1.3

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("@moveindustries/wallet-adapter-react"),j=require("react"),o=require("./dialog-LjNZCtUV.cjs"),x=require("./drawer-BkuiusSD.cjs"),u=require("./utils-CikHldDD.cjs"),C=require("@phosphor-icons/react"),h={name:"Nightly Wallet",url:"https://nightly.app/download",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEyOSIgdmlld0JveD0iMCAwIDEyOSAxMjkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTMuMzgxIDAuMjVDMTA0LjAwOCAxMy4zMjI1IDkyLjI4NzQgMjIuMzg0NyA3OC40MTcyIDI4LjQ1NTZDNzMuNjA5MiAyNy4xNDg0IDY4LjY2ODIgMjYuNDM5NCA2My44MTU5IDI2LjQ4MzdDNTguOTYzNSAyNi40Mzk0IDU0LjAyMjUgMjcuMTI2MiA0OS4yMTQ1IDI4LjQ1NTZDMzUuMzY2NSAyMi4zODQ3IDIzLjYyMzQgMTMuMzIyNSAxNC4yNTEgMC4yNUMxMS40MTUgNy4zNjIzNCAwLjUxMzc5NiAzMS45MzQzIDEzLjYwODUgNjYuMjU1MkMxMy42MDg1IDY2LjI1NTIgOS40MjA4NCA4NC4xODAxIDE3LjEwOTMgOTkuNTc5MUMxNy4xMDkzIDk5LjU3OTEgMjguMjU0MSA5NC41NDk1IDM3LjA3MjYgMTAxLjYxN0M0Ni4zMTIgMTA5LjEyOSA0My4zNjUxIDExNi4zMyA0OS44NzkyIDEyMi41MzRDNTUuNDYyNyAxMjguMjUgNjMuODE1OSAxMjguMjUgNjMuODE1OSAxMjguMjVDNjMuODE1OSAxMjguMjUgNzIuMTY5IDEyOC4yNSA3Ny43NTI1IDEyMi41MzRDODQuMjY2NiAxMTYuMzMgODEuMzQxOSAxMDkuMTI5IDkwLjU1OTIgMTAxLjYxN0M5OS4zNzc2IDk0LjUyNzMgMTEwLjUyMiA5OS41NzkxIDExMC41MjIgOTkuNTc5MUMxMTguMjExIDg0LjE4MDEgMTE0LjAyMyA2Ni4yNTUyIDExNC4wMjMgNjYuMjU1MkMxMjcuMTE4IDMxLjkzNDMgMTE2LjIxNyA3LjM2MjM0IDExMy4zODEgMC4yNVpNMjAuNTY1NyA2MS40OTE1QzEzLjQ1MzQgNDYuODkwMSAxMS40ODE0IDI2LjgzODIgMTYuMDAxNCAxMC45OTYxQzIxLjkzOTUgMjYuMDE4NCAzMC4wMDQ1IDMyLjc3NjIgMzkuNjIwNiAzOS44ODg2QzM1LjUyMTYgNDguMzUyNSAyNy44Nzc1IDU2LjMyODkgMjAuNTY1NyA2MS40OTE1Wk00MS4wMzg2IDg3LjIxNTZDMzUuNDU1MSA4NC43MzQgMzQuMjM2NSA3OS44MzczIDM0LjIzNjUgNzkuODM3M0M0MS44ODA2IDc1LjAyOTMgNTMuMTE0MSA3OC43MDczIDUzLjQ2ODYgOTAuMDk1OUM0Ny41NTI3IDg2LjUyODcgNDUuNjAyOSA4OS4yMzE4IDQxLjAzODYgODcuMjE1NlpNNjMuODE1OSAxMjcuNjA3QzU5LjgwNTUgMTI3LjYwNyA1Ni41NDg0IDEyNC43NDkgNTYuNTQ4NCAxMjEuMjA0QzU2LjU0ODQgMTE3LjY1OSA1OS44MDU1IDExNC44MDEgNjMuODE1OSAxMTQuODAxQzY3LjgyNjMgMTE0LjgwMSA3MS4wODMzIDExNy42NTkgNzEuMDgzMyAxMjEuMjA0QzcxLjA4MzMgMTI0Ljc0OSA2Ny44MjYzIDEyNy42MDcgNjMuODE1OSAxMjcuNjA3Wk04Ni41OTMxIDg3LjIxNTZDODIuMDI4OCA4OS4yMDk3IDgwLjA3OSA4Ni41MDY1IDc0LjE2MzEgOTAuMDk1OUM3NC41MTc2IDc4LjcwNzMgODUuNzUxMSA3NS4wMjkzIDkzLjM5NTIgNzkuODM3M0M5My4zOTUyIDc5Ljg1OTUgOTIuMTk4OCA4NC43NTYxIDg2LjU5MzEgODcuMjE1NlpNMTA3LjA2NiA2MS40OTE1Qzk5Ljc1NDIgNTYuMzI4OSA5Mi4xMTAxIDQ4LjM1MjUgODguMDMzMyAzOS44ODg2Qzk3LjY0OTQgMzIuNzc2MiAxMDUuNzE0IDI2LjAxODQgMTExLjY1MiAxMC45OTYxQzExNi4xNSAyNi44NjA0IDExNC4xNzggNDYuOTEyMyAxMDcuMDY2IDYxLjQ5MTVaIiBmaWxsPSIjNjA2N0Y5Ii8+Cjwvc3ZnPgo=",readyState:a.WalletReadyState.NotDetected},D=t=>t.replace(/ Wallet$/i,""),w=()=>e.jsxs("svg",{width:"98",height:"16",viewBox:"0 0 98 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M4.88 1.35001C6.34667 1.35001 7.63333 1.63668 8.74 2.21001C9.86 2.78334 10.72 3.60334 11.32 4.67001C11.9333 5.72334 12.24 6.95001 12.24 8.35001C12.24 9.75001 11.9333 10.9767 11.32 12.03C10.72 13.07 9.86 13.8767 8.74 14.45C7.63333 15.0233 6.34667 15.31 4.88 15.31H0V1.35001H4.88ZM4.78 12.93C6.24667 12.93 7.38 12.53 8.18 11.73C8.98 10.93 9.38 9.80334 9.38 8.35001C9.38 6.89668 8.98 5.76334 8.18 4.95001C7.38 4.12334 6.24667 3.71001 4.78 3.71001H2.8V12.93H4.78Z",fill:"white"}),e.jsx("path",{d:"M18.8559 15.49C17.7893 15.49 16.8293 15.2567 15.9759 14.79C15.1226 14.31 14.4493 13.6367 13.9559 12.77C13.4759 11.9033 13.2359 10.9033 13.2359 9.77001C13.2359 8.63668 13.4826 7.63668 13.9759 6.77001C14.4826 5.90334 15.1693 5.23668 16.0359 4.77001C16.9026 4.29001 17.8693 4.05001 18.9359 4.05001C20.0026 4.05001 20.9693 4.29001 21.8359 4.77001C22.7026 5.23668 23.3826 5.90334 23.8759 6.77001C24.3826 7.63668 24.6359 8.63668 24.6359 9.77001C24.6359 10.9033 24.3759 11.9033 23.8559 12.77C23.3493 13.6367 22.6559 14.31 21.7759 14.79C20.9093 15.2567 19.9359 15.49 18.8559 15.49ZM18.8559 13.05C19.3626 13.05 19.8359 12.93 20.2759 12.69C20.7293 12.4367 21.0893 12.0633 21.3559 11.57C21.6226 11.0767 21.7559 10.4767 21.7559 9.77001C21.7559 8.71668 21.4759 7.91001 20.9159 7.35001C20.3693 6.77668 19.6959 6.49001 18.8959 6.49001C18.0959 6.49001 17.4226 6.77668 16.8759 7.35001C16.3426 7.91001 16.0759 8.71668 16.0759 9.77001C16.0759 10.8233 16.3359 11.6367 16.8559 12.21C17.3893 12.77 18.0559 13.05 18.8559 13.05Z",fill:"white"}),e.jsx("path",{d:"M41.6498 4.23001L38.4098 15.31H35.3898L33.3698 7.57001L31.3498 15.31H28.3098L25.0498 4.23001H27.8898L29.8498 12.67L31.9698 4.23001H34.9298L37.0098 12.65L38.9698 4.23001H41.6498Z",fill:"white"}),e.jsx("path",{d:"M48.9048 4.07001C50.2248 4.07001 51.2915 4.49001 52.1048 5.33001C52.9182 6.15668 53.3248 7.31668 53.3248 8.81001V15.31H50.5248V9.19001C50.5248 8.31001 50.3048 7.63668 49.8648 7.17001C49.4248 6.69001 48.8248 6.45001 48.0648 6.45001C47.2915 6.45001 46.6782 6.69001 46.2248 7.17001C45.7848 7.63668 45.5648 8.31001 45.5648 9.19001V15.31H42.7648V4.23001H45.5648V5.61001C45.9382 5.13001 46.4115 4.75668 46.9848 4.49001C47.5715 4.21001 48.2115 4.07001 48.9048 4.07001Z",fill:"white"}),e.jsx("path",{d:"M58.3875 0.51001V15.31H55.5875V0.51001H58.3875Z",fill:"white"}),e.jsx("path",{d:"M65.6739 15.49C64.6072 15.49 63.6472 15.2567 62.7939 14.79C61.9406 14.31 61.2672 13.6367 60.7739 12.77C60.2939 11.9033 60.0539 10.9033 60.0539 9.77001C60.0539 8.63668 60.3006 7.63668 60.7939 6.77001C61.3006 5.90334 61.9872 5.23668 62.8539 4.77001C63.7206 4.29001 64.6872 4.05001 65.7539 4.05001C66.8206 4.05001 67.7872 4.29001 68.6539 4.77001C69.5206 5.23668 70.2006 5.90334 70.6939 6.77001C71.2006 7.63668 71.4539 8.63668 71.4539 9.77001C71.4539 10.9033 71.1939 11.9033 70.6739 12.77C70.1672 13.6367 69.4739 14.31 68.5939 14.79C67.7272 15.2567 66.7539 15.49 65.6739 15.49ZM65.6739 13.05C66.1806 13.05 66.6539 12.93 67.0939 12.69C67.5472 12.4367 67.9072 12.0633 68.1739 11.57C68.4406 11.0767 68.5739 10.4767 68.5739 9.77001C68.5739 8.71668 68.2939 7.91001 67.7339 7.35001C67.1872 6.77668 66.5139 6.49001 65.7139 6.49001C64.9139 6.49001 64.2406 6.77668 63.6939 7.35001C63.1606 7.91001 62.8939 8.71668 62.8939 9.77001C62.8939 10.8233 63.1539 11.6367 63.6739 12.21C64.2072 12.77 64.8739 13.05 65.6739 13.05Z",fill:"white"}),e.jsx("path",{d:"M72.3878 9.73001C72.3878 8.61001 72.6078 7.61668 73.0478 6.75001C73.5011 5.88334 74.1078 5.21668 74.8678 4.75001C75.6411 4.28334 76.5011 4.05001 77.4478 4.05001C78.2745 4.05001 78.9945 4.21668 79.6078 4.55001C80.2345 4.88334 80.7345 5.30334 81.1078 5.81001V4.23001H83.9278V15.31H81.1078V13.69C80.7478 14.21 80.2478 14.6433 79.6078 14.99C78.9811 15.3233 78.2545 15.49 77.4278 15.49C76.4945 15.49 75.6411 15.25 74.8678 14.77C74.1078 14.29 73.5011 13.6167 73.0478 12.75C72.6078 11.87 72.3878 10.8633 72.3878 9.73001ZM81.1078 9.77001C81.1078 9.09001 80.9745 8.51001 80.7078 8.03001C80.4411 7.53668 80.0811 7.16334 79.6278 6.91001C79.1745 6.64334 78.6878 6.51001 78.1678 6.51001C77.6478 6.51001 77.1678 6.63668 76.7278 6.89001C76.2878 7.14334 75.9278 7.51668 75.6478 8.01001C75.3811 8.49001 75.2478 9.06334 75.2478 9.73001C75.2478 10.3967 75.3811 10.9833 75.6478 11.49C75.9278 11.9833 76.2878 12.3633 76.7278 12.63C77.1811 12.8967 77.6611 13.03 78.1678 13.03C78.6878 13.03 79.1745 12.9033 79.6278 12.65C80.0811 12.3833 80.4411 12.01 80.7078 11.53C80.9745 11.0367 81.1078 10.45 81.1078 9.77001Z",fill:"white"}),e.jsx("path",{d:"M85.5425 9.73001C85.5425 8.61001 85.7625 7.61668 86.2025 6.75001C86.6558 5.88334 87.2692 5.21668 88.0425 4.75001C88.8158 4.28334 89.6758 4.05001 90.6225 4.05001C91.3425 4.05001 92.0292 4.21001 92.6825 4.53001C93.3358 4.83668 93.8558 5.25001 94.2425 5.77001V0.51001H97.0825V15.31H94.2425V13.67C93.8958 14.2167 93.4092 14.6567 92.7825 14.99C92.1558 15.3233 91.4292 15.49 90.6025 15.49C89.6692 15.49 88.8158 15.25 88.0425 14.77C87.2692 14.29 86.6558 13.6167 86.2025 12.75C85.7625 11.87 85.5425 10.8633 85.5425 9.73001ZM94.2625 9.77001C94.2625 9.09001 94.1292 8.51001 93.8625 8.03001C93.5958 7.53668 93.2358 7.16334 92.7825 6.91001C92.3292 6.64334 91.8425 6.51001 91.3225 6.51001C90.8025 6.51001 90.3225 6.63668 89.8825 6.89001C89.4425 7.14334 89.0825 7.51668 88.8025 8.01001C88.5358 8.49001 88.4025 9.06334 88.4025 9.73001C88.4025 10.3967 88.5358 10.9833 88.8025 11.49C89.0825 11.9833 89.4425 12.3633 89.8825 12.63C90.3358 12.8967 90.8158 13.03 91.3225 13.03C91.8425 13.03 92.3292 12.9033 92.7825 12.65C93.2358 12.3833 93.5958 12.01 93.8625 11.53C94.1292 11.0367 94.2625 10.45 94.2625 9.77001Z",fill:"white"})]});function m(t){const s=["Dev T wallet","Pontem Wallet","Trust","Tokenpocket","Martian","Rise","Petra"];return t.filter((n,r,i)=>i.findIndex(c=>c.name===n.name)===r).filter(n=>!n||s.includes(n.name)?!1:n)}function y({onClose:t,showCloseButton:s=!0,...n}){const{wallets:r}=a.useWallet(),[i,c]=j.useState(!1),M=o.useIsMobile(),{availableWallets:d,installableWallets:g}=j.useMemo(()=>{const l=a.groupAndSortWallets(r,n),N=[];return[...l?.availableWallets??[],...l?.installableWallets??[]].some(I=>I.name.toLowerCase().includes("nightly"))||N.push(h),{availableWallets:l?.availableWallets??[],installableWallets:[...l?.installableWallets??[],...N]}},[r,n]);return e.jsxs("div",{className:u.cn("flex w-full flex-col items-center justify-center gap-6 px-6 pt-12 pb-6 md:max-w-114","z-9999 mx-auto max-h-full overflow-y-auto md:max-h-[80vh]","bg-[linear-gradient(0deg,rgba(4,5,27,0.2),rgba(4,5,27,0.2)),linear-gradient(152.97deg,rgba(0,0,0,0.8)_0%,rgba(0,0,0,0)_100%),radial-gradient(100%_100%_at_120.34%_112.85%,rgba(129,255,186,0.4)_0%,rgba(0,27,133,0.4)_100%)]","backdrop-blur-[1.3125rem]"),children:[s&&!M&&e.jsx("button",{onClick:t,className:u.cn("absolute top-6 right-6 z-9999 rounded-sm opacity-70","cursor-pointer border border-white/20 bg-white/10 p-2 text-white","transition-opacity hover:bg-white/20 hover:opacity-100","focus:outline-none"),children:e.jsx(C.XIcon,{size:16,weight:"bold"})}),e.jsxs("div",{className:"flex w-full max-w-102 flex-col items-center gap-4 p-0",children:[e.jsx("div",{className:"w-full max-w-76 text-center font-['TWK_Everett_Mono',monospace] text-[32px] leading-[120%] font-medium tracking-[-1.28px] text-white",children:"Connect Wallet"}),e.jsxs("div",{className:"w-full max-w-sm text-center font-['Neue_Haas_Unica_Pro',sans-serif] text-lg leading-[140%] font-normal text-white/48",children:["Securely connect your"," ",e.jsx("a",{className:"cursor-pointer text-white/48 underline decoration-dotted hover:text-white",href:"https://docs.movementnetwork.xyz/general/usingmovement/connect_to_movement",target:"_blank",rel:"noopener noreferrer",children:"wallet"})," ","to transfer digital assets to and from the Movement network."]})]}),e.jsxs("div",{className:"flex max-h-168 w-full max-w-102 flex-row flex-wrap content-center items-start justify-center gap-4 overflow-y-auto p-4 py-4",children:[d.length>0?m(d).map(l=>e.jsx("div",{className:"w-28 shrink-0",children:e.jsx(f,{wallet:l,onConnect:t})},l.name)):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-px w-92 bg-[rgba(255,255,255,0.48)]"}),e.jsx("span",{className:"font-['TWK_Everett_Mono',monospace] text-lg leading-[21.60px] font-medium text-primary",children:"Don't have a wallet?"}),e.jsxs("button",{className:u.cn("h-10 w-full rounded-full bg-accent px-4 py-1 [&_path]:fill-white","inline-flex cursor-pointer items-center justify-center gap-2 border-none","transition-all duration-200 ease-[ease]","hover:bg-background hover:text-foreground [&:hover_path]:fill-foreground"),onClick:()=>window.open(h.url,"_blank"),children:[e.jsx(w,{}),e.jsx(o.NightlyIcon,{size:30,fill:"white"})]})]}),!!g.length&&e.jsxs("div",{className:"flex w-full flex-col gap-3",children:[e.jsxs("button",{onClick:()=>c(!i),className:u.cn("inline-flex items-center justify-center gap-2 self-center text-white","rounded-md text-sm font-medium whitespace-nowrap transition-all duration-200","cursor-pointer border-none bg-transparent","focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","h-9 px-3 hover:bg-white/20"),children:["Other wallets",e.jsx(C.CaretDownIcon,{size:16,weight:"bold",className:u.cn("transition-transform duration-200",i?"rotate-180":"rotate-0")})]}),i&&e.jsx("div",{className:"animate-in fade-in duration-200",children:e.jsx("div",{className:"flex w-full flex-wrap items-start justify-center gap-4 pt-2",children:m(g).map(l=>e.jsx("div",{onClick:()=>window.open(l.url,"_blank"),className:"w-28 shrink-0 cursor-pointer",children:e.jsx(f,{wallet:l,onConnect:t})},l.name))})})]})]})]})}function z({onClose:t,...s}){const[n,r]=j.useState(!1),i=o.useIsMobile();if(j.useEffect(()=>(r(!0),()=>r(!1)),[]),!n||typeof window>"u")return null;const c={onClose:t,...s};return i?e.jsx(x.Drawer,{open:!0,onOpenChange:M=>!M&&t(),children:e.jsxs(x.DrawerContent,{className:"z-9999",children:[e.jsx(x.DrawerTitle,{className:"sr-only",children:"Connect Wallet"}),e.jsx(x.DrawerDescription,{className:"sr-only",children:"Securely connect your wallet to transfer digital assets to and from the Movement network."}),e.jsx(y,{...c,showCloseButton:!1})]})}):e.jsx(o.Dialog,{open:!0,onOpenChange:M=>!M&&t(),children:e.jsxs(o.DialogContent,{showCloseButton:!1,className:"border-0 bg-transparent p-0",children:[e.jsx(o.DialogTitle,{className:"sr-only",children:"Connect Wallet"}),e.jsx(o.DialogDescription,{className:"sr-only",children:"Securely connect your wallet to transfer digital assets to and from the Movement network."}),e.jsx(y,{...c})]})})}const p=t=>e.jsxs("div",{className:"group/wallet relative h-28 w-28 cursor-pointer rounded-lg backdrop-blur-[1.3125rem] transition-shadow duration-200 ease-in-out hover:shadow-[0.25rem_0.25rem_0_hsl(var(--primary))]",children:[e.jsx("div",{className:"absolute inset-0 rounded-lg bg-linear-to-br from-white/[0.096] to-transparent backdrop-blur-[1.3125rem] group-hover/wallet:from-white/40"}),e.jsx("div",{className:"absolute top-1/2 left-1/2 flex h-20.5 w-20.5 -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center gap-2 p-0",children:t})]});function f({wallet:t,onConnect:s}){return a.isInstallRequired(t)?e.jsx(a.WalletItem,{wallet:t,onConnect:s,children:e.jsx("div",{className:"cursor-default border-none bg-transparent p-0",children:p(e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-14 w-14",children:e.jsx(a.WalletItem.Icon,{className:"h-full w-full"})}),e.jsx("div",{className:"flex h-4.5 w-20.5 items-center justify-center text-center font-['TWK_Everett_Mono',monospace] text-lg leading-[100%] font-normal tracking-[-0.06em] text-white",children:D(t.name)}),e.jsx("div",{className:"absolute top-[-1rem] left-1/2 z-9999 hidden h-5 w-28 -translate-x-1/2 items-center justify-center overflow-hidden rounded-t-lg bg-primary/80 group-hover/wallet:inline-flex",children:e.jsx("span",{className:"font-['TWK_Everett_Mono',monospace] text-xs leading-[14px] font-bold tracking-[0.40px] text-secondary uppercase",children:"INSTALL"})})]}))})}):e.jsx(a.WalletItem,{wallet:t,onConnect:s,children:e.jsx(a.WalletItem.ConnectButton,{asChild:!0,children:e.jsxs("button",{className:"relative cursor-pointer border-none bg-transparent p-0",children:[p(e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-14 w-14",children:e.jsx(a.WalletItem.Icon,{className:"h-full w-full"})}),e.jsx("div",{className:"flex h-4.5 w-20.5 items-center justify-center text-center font-['TWK_Everett_Mono',monospace] text-lg leading-[100%] font-normal tracking-[-0.06em] text-white",children:D(t.name)})]})),e.jsx("span",{className:"pointer-events-none absolute bottom-[-0.5rem] left-1/2 -translate-x-1/2 text-xs whitespace-nowrap text-white/60 opacity-0 transition-opacity duration-200 ease-in-out hover:opacity-100",children:"Click to connect"})]})})})}exports.WalletModal=z;
@@ -0,0 +1,3 @@
1
+ export { WalletModal } from './components/WalletModal';
2
+ export type { ConnectWalletDialogProps } from './components/WalletModal';
3
+ //# sourceMappingURL=wallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../src/wallet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/wallet.js ADDED
@@ -0,0 +1,279 @@
1
+ import { jsx as e, jsxs as n, Fragment as d } from "react/jsx-runtime";
2
+ import { useWallet as I, groupAndSortWallets as z, WalletReadyState as A, isInstallRequired as O, WalletItem as c } from "@moveindustries/wallet-adapter-react";
3
+ import { useState as p, useEffect as T, useMemo as b } from "react";
4
+ import { u as y, D as L, a as v, b as E, c as k, N as S } from "./dialog-9n6-1DUQ.js";
5
+ import { D as U, b as Y, f as W, c as Q } from "./drawer-C7hRQ7X-.js";
6
+ import { c as u } from "./utils-eGXXUFl7.js";
7
+ import { XIcon as _, CaretDownIcon as H } from "@phosphor-icons/react";
8
+ const D = {
9
+ name: "Nightly Wallet",
10
+ url: "https://nightly.app/download",
11
+ icon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEyOSIgdmlld0JveD0iMCAwIDEyOSAxMjkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTMuMzgxIDAuMjVDMTA0LjAwOCAxMy4zMjI1IDkyLjI4NzQgMjIuMzg0NyA3OC40MTcyIDI4LjQ1NTZDNzMuNjA5MiAyNy4xNDg0IDY4LjY2ODIgMjYuNDM5NCA2My44MTU5IDI2LjQ4MzdDNTguOTYzNSAyNi40Mzk0IDU0LjAyMjUgMjcuMTI2MiA0OS4yMTQ1IDI4LjQ1NTZDMzUuMzY2NSAyMi4zODQ3IDIzLjYyMzQgMTMuMzIyNSAxNC4yNTEgMC4yNUMxMS40MTUgNy4zNjIzNCAwLjUxMzc5NiAzMS45MzQzIDEzLjYwODUgNjYuMjU1MkMxMy42MDg1IDY2LjI1NTIgOS40MjA4NCA4NC4xODAxIDE3LjEwOTMgOTkuNTc5MUMxNy4xMDkzIDk5LjU3OTEgMjguMjU0MSA5NC41NDk1IDM3LjA3MjYgMTAxLjYxN0M0Ni4zMTIgMTA5LjEyOSA0My4zNjUxIDExNi4zMyA0OS44NzkyIDEyMi41MzRDNTUuNDYyNyAxMjguMjUgNjMuODE1OSAxMjguMjUgNjMuODE1OSAxMjguMjVDNjMuODE1OSAxMjguMjUgNzIuMTY5IDEyOC4yNSA3Ny43NTI1IDEyMi41MzRDODQuMjY2NiAxMTYuMzMgODEuMzQxOSAxMDkuMTI5IDkwLjU1OTIgMTAxLjYxN0M5OS4zNzc2IDk0LjUyNzMgMTEwLjUyMiA5OS41NzkxIDExMC41MjIgOTkuNTc5MUMxMTguMjExIDg0LjE4MDEgMTE0LjAyMyA2Ni4yNTUyIDExNC4wMjMgNjYuMjU1MkMxMjcuMTE4IDMxLjkzNDMgMTE2LjIxNyA3LjM2MjM0IDExMy4zODEgMC4yNVpNMjAuNTY1NyA2MS40OTE1QzEzLjQ1MzQgNDYuODkwMSAxMS40ODE0IDI2LjgzODIgMTYuMDAxNCAxMC45OTYxQzIxLjkzOTUgMjYuMDE4NCAzMC4wMDQ1IDMyLjc3NjIgMzkuNjIwNiAzOS44ODg2QzM1LjUyMTYgNDguMzUyNSAyNy44Nzc1IDU2LjMyODkgMjAuNTY1NyA2MS40OTE1Wk00MS4wMzg2IDg3LjIxNTZDMzUuNDU1MSA4NC43MzQgMzQuMjM2NSA3OS44MzczIDM0LjIzNjUgNzkuODM3M0M0MS44ODA2IDc1LjAyOTMgNTMuMTE0MSA3OC43MDczIDUzLjQ2ODYgOTAuMDk1OUM0Ny41NTI3IDg2LjUyODcgNDUuNjAyOSA4OS4yMzE4IDQxLjAzODYgODcuMjE1NlpNNjMuODE1OSAxMjcuNjA3QzU5LjgwNTUgMTI3LjYwNyA1Ni41NDg0IDEyNC43NDkgNTYuNTQ4NCAxMjEuMjA0QzU2LjU0ODQgMTE3LjY1OSA1OS44MDU1IDExNC44MDEgNjMuODE1OSAxMTQuODAxQzY3LjgyNjMgMTE0LjgwMSA3MS4wODMzIDExNy42NTkgNzEuMDgzMyAxMjEuMjA0QzcxLjA4MzMgMTI0Ljc0OSA2Ny44MjYzIDEyNy42MDcgNjMuODE1OSAxMjcuNjA3Wk04Ni41OTMxIDg3LjIxNTZDODIuMDI4OCA4OS4yMDk3IDgwLjA3OSA4Ni41MDY1IDc0LjE2MzEgOTAuMDk1OUM3NC41MTc2IDc4LjcwNzMgODUuNzUxMSA3NS4wMjkzIDkzLjM5NTIgNzkuODM3M0M5My4zOTUyIDc5Ljg1OTUgOTIuMTk4OCA4NC43NTYxIDg2LjU5MzEgODcuMjE1NlpNMTA3LjA2NiA2MS40OTE1Qzk5Ljc1NDIgNTYuMzI4OSA5Mi4xMTAxIDQ4LjM1MjUgODguMDMzMyAzOS44ODg2Qzk3LjY0OTQgMzIuNzc2MiAxMDUuNzE0IDI2LjAxODQgMTExLjY1MiAxMC45OTYxQzExNi4xNSAyNi44NjA0IDExNC4xNzggNDYuOTEyMyAxMDcuMDY2IDYxLjQ5MTVaIiBmaWxsPSIjNjA2N0Y5Ii8+Cjwvc3ZnPgo=",
12
+ readyState: A.NotDetected
13
+ }, h = (t) => t.replace(/ Wallet$/i, ""), Z = () => /* @__PURE__ */ n(
14
+ "svg",
15
+ {
16
+ width: "98",
17
+ height: "16",
18
+ viewBox: "0 0 98 16",
19
+ fill: "none",
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ children: [
22
+ /* @__PURE__ */ e(
23
+ "path",
24
+ {
25
+ d: "M4.88 1.35001C6.34667 1.35001 7.63333 1.63668 8.74 2.21001C9.86 2.78334 10.72 3.60334 11.32 4.67001C11.9333 5.72334 12.24 6.95001 12.24 8.35001C12.24 9.75001 11.9333 10.9767 11.32 12.03C10.72 13.07 9.86 13.8767 8.74 14.45C7.63333 15.0233 6.34667 15.31 4.88 15.31H0V1.35001H4.88ZM4.78 12.93C6.24667 12.93 7.38 12.53 8.18 11.73C8.98 10.93 9.38 9.80334 9.38 8.35001C9.38 6.89668 8.98 5.76334 8.18 4.95001C7.38 4.12334 6.24667 3.71001 4.78 3.71001H2.8V12.93H4.78Z",
26
+ fill: "white"
27
+ }
28
+ ),
29
+ /* @__PURE__ */ e(
30
+ "path",
31
+ {
32
+ d: "M18.8559 15.49C17.7893 15.49 16.8293 15.2567 15.9759 14.79C15.1226 14.31 14.4493 13.6367 13.9559 12.77C13.4759 11.9033 13.2359 10.9033 13.2359 9.77001C13.2359 8.63668 13.4826 7.63668 13.9759 6.77001C14.4826 5.90334 15.1693 5.23668 16.0359 4.77001C16.9026 4.29001 17.8693 4.05001 18.9359 4.05001C20.0026 4.05001 20.9693 4.29001 21.8359 4.77001C22.7026 5.23668 23.3826 5.90334 23.8759 6.77001C24.3826 7.63668 24.6359 8.63668 24.6359 9.77001C24.6359 10.9033 24.3759 11.9033 23.8559 12.77C23.3493 13.6367 22.6559 14.31 21.7759 14.79C20.9093 15.2567 19.9359 15.49 18.8559 15.49ZM18.8559 13.05C19.3626 13.05 19.8359 12.93 20.2759 12.69C20.7293 12.4367 21.0893 12.0633 21.3559 11.57C21.6226 11.0767 21.7559 10.4767 21.7559 9.77001C21.7559 8.71668 21.4759 7.91001 20.9159 7.35001C20.3693 6.77668 19.6959 6.49001 18.8959 6.49001C18.0959 6.49001 17.4226 6.77668 16.8759 7.35001C16.3426 7.91001 16.0759 8.71668 16.0759 9.77001C16.0759 10.8233 16.3359 11.6367 16.8559 12.21C17.3893 12.77 18.0559 13.05 18.8559 13.05Z",
33
+ fill: "white"
34
+ }
35
+ ),
36
+ /* @__PURE__ */ e(
37
+ "path",
38
+ {
39
+ d: "M41.6498 4.23001L38.4098 15.31H35.3898L33.3698 7.57001L31.3498 15.31H28.3098L25.0498 4.23001H27.8898L29.8498 12.67L31.9698 4.23001H34.9298L37.0098 12.65L38.9698 4.23001H41.6498Z",
40
+ fill: "white"
41
+ }
42
+ ),
43
+ /* @__PURE__ */ e(
44
+ "path",
45
+ {
46
+ d: "M48.9048 4.07001C50.2248 4.07001 51.2915 4.49001 52.1048 5.33001C52.9182 6.15668 53.3248 7.31668 53.3248 8.81001V15.31H50.5248V9.19001C50.5248 8.31001 50.3048 7.63668 49.8648 7.17001C49.4248 6.69001 48.8248 6.45001 48.0648 6.45001C47.2915 6.45001 46.6782 6.69001 46.2248 7.17001C45.7848 7.63668 45.5648 8.31001 45.5648 9.19001V15.31H42.7648V4.23001H45.5648V5.61001C45.9382 5.13001 46.4115 4.75668 46.9848 4.49001C47.5715 4.21001 48.2115 4.07001 48.9048 4.07001Z",
47
+ fill: "white"
48
+ }
49
+ ),
50
+ /* @__PURE__ */ e("path", { d: "M58.3875 0.51001V15.31H55.5875V0.51001H58.3875Z", fill: "white" }),
51
+ /* @__PURE__ */ e(
52
+ "path",
53
+ {
54
+ d: "M65.6739 15.49C64.6072 15.49 63.6472 15.2567 62.7939 14.79C61.9406 14.31 61.2672 13.6367 60.7739 12.77C60.2939 11.9033 60.0539 10.9033 60.0539 9.77001C60.0539 8.63668 60.3006 7.63668 60.7939 6.77001C61.3006 5.90334 61.9872 5.23668 62.8539 4.77001C63.7206 4.29001 64.6872 4.05001 65.7539 4.05001C66.8206 4.05001 67.7872 4.29001 68.6539 4.77001C69.5206 5.23668 70.2006 5.90334 70.6939 6.77001C71.2006 7.63668 71.4539 8.63668 71.4539 9.77001C71.4539 10.9033 71.1939 11.9033 70.6739 12.77C70.1672 13.6367 69.4739 14.31 68.5939 14.79C67.7272 15.2567 66.7539 15.49 65.6739 15.49ZM65.6739 13.05C66.1806 13.05 66.6539 12.93 67.0939 12.69C67.5472 12.4367 67.9072 12.0633 68.1739 11.57C68.4406 11.0767 68.5739 10.4767 68.5739 9.77001C68.5739 8.71668 68.2939 7.91001 67.7339 7.35001C67.1872 6.77668 66.5139 6.49001 65.7139 6.49001C64.9139 6.49001 64.2406 6.77668 63.6939 7.35001C63.1606 7.91001 62.8939 8.71668 62.8939 9.77001C62.8939 10.8233 63.1539 11.6367 63.6739 12.21C64.2072 12.77 64.8739 13.05 65.6739 13.05Z",
55
+ fill: "white"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ e(
59
+ "path",
60
+ {
61
+ d: "M72.3878 9.73001C72.3878 8.61001 72.6078 7.61668 73.0478 6.75001C73.5011 5.88334 74.1078 5.21668 74.8678 4.75001C75.6411 4.28334 76.5011 4.05001 77.4478 4.05001C78.2745 4.05001 78.9945 4.21668 79.6078 4.55001C80.2345 4.88334 80.7345 5.30334 81.1078 5.81001V4.23001H83.9278V15.31H81.1078V13.69C80.7478 14.21 80.2478 14.6433 79.6078 14.99C78.9811 15.3233 78.2545 15.49 77.4278 15.49C76.4945 15.49 75.6411 15.25 74.8678 14.77C74.1078 14.29 73.5011 13.6167 73.0478 12.75C72.6078 11.87 72.3878 10.8633 72.3878 9.73001ZM81.1078 9.77001C81.1078 9.09001 80.9745 8.51001 80.7078 8.03001C80.4411 7.53668 80.0811 7.16334 79.6278 6.91001C79.1745 6.64334 78.6878 6.51001 78.1678 6.51001C77.6478 6.51001 77.1678 6.63668 76.7278 6.89001C76.2878 7.14334 75.9278 7.51668 75.6478 8.01001C75.3811 8.49001 75.2478 9.06334 75.2478 9.73001C75.2478 10.3967 75.3811 10.9833 75.6478 11.49C75.9278 11.9833 76.2878 12.3633 76.7278 12.63C77.1811 12.8967 77.6611 13.03 78.1678 13.03C78.6878 13.03 79.1745 12.9033 79.6278 12.65C80.0811 12.3833 80.4411 12.01 80.7078 11.53C80.9745 11.0367 81.1078 10.45 81.1078 9.77001Z",
62
+ fill: "white"
63
+ }
64
+ ),
65
+ /* @__PURE__ */ e(
66
+ "path",
67
+ {
68
+ d: "M85.5425 9.73001C85.5425 8.61001 85.7625 7.61668 86.2025 6.75001C86.6558 5.88334 87.2692 5.21668 88.0425 4.75001C88.8158 4.28334 89.6758 4.05001 90.6225 4.05001C91.3425 4.05001 92.0292 4.21001 92.6825 4.53001C93.3358 4.83668 93.8558 5.25001 94.2425 5.77001V0.51001H97.0825V15.31H94.2425V13.67C93.8958 14.2167 93.4092 14.6567 92.7825 14.99C92.1558 15.3233 91.4292 15.49 90.6025 15.49C89.6692 15.49 88.8158 15.25 88.0425 14.77C87.2692 14.29 86.6558 13.6167 86.2025 12.75C85.7625 11.87 85.5425 10.8633 85.5425 9.73001ZM94.2625 9.77001C94.2625 9.09001 94.1292 8.51001 93.8625 8.03001C93.5958 7.53668 93.2358 7.16334 92.7825 6.91001C92.3292 6.64334 91.8425 6.51001 91.3225 6.51001C90.8025 6.51001 90.3225 6.63668 89.8825 6.89001C89.4425 7.14334 89.0825 7.51668 88.8025 8.01001C88.5358 8.49001 88.4025 9.06334 88.4025 9.73001C88.4025 10.3967 88.5358 10.9833 88.8025 11.49C89.0825 11.9833 89.4425 12.3633 89.8825 12.63C90.3358 12.8967 90.8158 13.03 91.3225 13.03C91.8425 13.03 92.3292 12.9033 92.7825 12.65C93.2358 12.3833 93.5958 12.01 93.8625 11.53C94.1292 11.0367 94.2625 10.45 94.2625 9.77001Z",
69
+ fill: "white"
70
+ }
71
+ )
72
+ ]
73
+ }
74
+ );
75
+ function m(t) {
76
+ const r = [
77
+ "Dev T wallet",
78
+ "Pontem Wallet",
79
+ "Trust",
80
+ "Tokenpocket",
81
+ "Martian",
82
+ "Rise",
83
+ "Petra"
84
+ ];
85
+ return t.filter(
86
+ (a, i, o) => o.findIndex((s) => s.name === a.name) === i
87
+ ).filter((a) => !a || r.includes(a.name) ? !1 : a);
88
+ }
89
+ function x({
90
+ onClose: t,
91
+ showCloseButton: r = !0,
92
+ ...a
93
+ }) {
94
+ const { wallets: i } = I(), [o, s] = p(!1), M = y(), { availableWallets: N, installableWallets: g } = b(() => {
95
+ const l = z(i, a), C = [];
96
+ return [
97
+ ...l?.availableWallets ?? [],
98
+ ...l?.installableWallets ?? []
99
+ ].some((w) => w.name.toLowerCase().includes("nightly")) || C.push(D), {
100
+ availableWallets: l?.availableWallets ?? [],
101
+ installableWallets: [
102
+ ...l?.installableWallets ?? [],
103
+ ...C
104
+ ]
105
+ };
106
+ }, [i, a]);
107
+ return /* @__PURE__ */ n(
108
+ "div",
109
+ {
110
+ className: u(
111
+ "flex w-full flex-col items-center justify-center gap-6 px-6 pt-12 pb-6 md:max-w-114",
112
+ "z-9999 mx-auto max-h-full overflow-y-auto md:max-h-[80vh]",
113
+ "bg-[linear-gradient(0deg,rgba(4,5,27,0.2),rgba(4,5,27,0.2)),linear-gradient(152.97deg,rgba(0,0,0,0.8)_0%,rgba(0,0,0,0)_100%),radial-gradient(100%_100%_at_120.34%_112.85%,rgba(129,255,186,0.4)_0%,rgba(0,27,133,0.4)_100%)]",
114
+ "backdrop-blur-[1.3125rem]"
115
+ ),
116
+ children: [
117
+ r && !M && /* @__PURE__ */ e(
118
+ "button",
119
+ {
120
+ onClick: t,
121
+ className: u(
122
+ "absolute top-6 right-6 z-9999 rounded-sm opacity-70",
123
+ "cursor-pointer border border-white/20 bg-white/10 p-2 text-white",
124
+ "transition-opacity hover:bg-white/20 hover:opacity-100",
125
+ "focus:outline-none"
126
+ ),
127
+ children: /* @__PURE__ */ e(_, { size: 16, weight: "bold" })
128
+ }
129
+ ),
130
+ /* @__PURE__ */ n("div", { className: "flex w-full max-w-102 flex-col items-center gap-4 p-0", children: [
131
+ /* @__PURE__ */ e("div", { className: "w-full max-w-76 text-center font-['TWK_Everett_Mono',monospace] text-[32px] leading-[120%] font-medium tracking-[-1.28px] text-white", children: "Connect Wallet" }),
132
+ /* @__PURE__ */ n("div", { className: "w-full max-w-sm text-center font-['Neue_Haas_Unica_Pro',sans-serif] text-lg leading-[140%] font-normal text-white/48", children: [
133
+ "Securely connect your",
134
+ " ",
135
+ /* @__PURE__ */ e(
136
+ "a",
137
+ {
138
+ className: "cursor-pointer text-white/48 underline decoration-dotted hover:text-white",
139
+ href: "https://docs.movementnetwork.xyz/general/usingmovement/connect_to_movement",
140
+ target: "_blank",
141
+ rel: "noopener noreferrer",
142
+ children: "wallet"
143
+ }
144
+ ),
145
+ " ",
146
+ "to transfer digital assets to and from the Movement network."
147
+ ] })
148
+ ] }),
149
+ /* @__PURE__ */ n("div", { className: "flex max-h-168 w-full max-w-102 flex-row flex-wrap content-center items-start justify-center gap-4 overflow-y-auto p-4 py-4", children: [
150
+ N.length > 0 ? m(N).map((l) => /* @__PURE__ */ e("div", { className: "w-28 shrink-0", children: /* @__PURE__ */ e(f, { wallet: l, onConnect: t }) }, l.name)) : /* @__PURE__ */ n(d, { children: [
151
+ /* @__PURE__ */ e("div", { className: "h-px w-92 bg-[rgba(255,255,255,0.48)]" }),
152
+ /* @__PURE__ */ e("span", { className: "font-['TWK_Everett_Mono',monospace] text-lg leading-[21.60px] font-medium text-primary", children: "Don't have a wallet?" }),
153
+ /* @__PURE__ */ n(
154
+ "button",
155
+ {
156
+ className: u(
157
+ "h-10 w-full rounded-full bg-accent px-4 py-1 [&_path]:fill-white",
158
+ "inline-flex cursor-pointer items-center justify-center gap-2 border-none",
159
+ "transition-all duration-200 ease-[ease]",
160
+ "hover:bg-background hover:text-foreground [&:hover_path]:fill-foreground"
161
+ ),
162
+ onClick: () => window.open(D.url, "_blank"),
163
+ children: [
164
+ /* @__PURE__ */ e(Z, {}),
165
+ /* @__PURE__ */ e(S, { size: 30, fill: "white" })
166
+ ]
167
+ }
168
+ )
169
+ ] }),
170
+ !!g.length && /* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-3", children: [
171
+ /* @__PURE__ */ n(
172
+ "button",
173
+ {
174
+ onClick: () => s(!o),
175
+ className: u(
176
+ "inline-flex items-center justify-center gap-2 self-center text-white",
177
+ "rounded-md text-sm font-medium whitespace-nowrap transition-all duration-200",
178
+ "cursor-pointer border-none bg-transparent",
179
+ "focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
180
+ "disabled:pointer-events-none disabled:opacity-50",
181
+ "h-9 px-3 hover:bg-white/20"
182
+ ),
183
+ children: [
184
+ "Other wallets",
185
+ /* @__PURE__ */ e(
186
+ H,
187
+ {
188
+ size: 16,
189
+ weight: "bold",
190
+ className: u(
191
+ "transition-transform duration-200",
192
+ o ? "rotate-180" : "rotate-0"
193
+ )
194
+ }
195
+ )
196
+ ]
197
+ }
198
+ ),
199
+ o && /* @__PURE__ */ e("div", { className: "animate-in fade-in duration-200", children: /* @__PURE__ */ e("div", { className: "flex w-full flex-wrap items-start justify-center gap-4 pt-2", children: m(g).map((l) => /* @__PURE__ */ e(
200
+ "div",
201
+ {
202
+ onClick: () => window.open(l.url, "_blank"),
203
+ className: "w-28 shrink-0 cursor-pointer",
204
+ children: /* @__PURE__ */ e(f, { wallet: l, onConnect: t })
205
+ },
206
+ l.name
207
+ )) }) })
208
+ ] })
209
+ ] })
210
+ ]
211
+ }
212
+ );
213
+ }
214
+ function X({
215
+ onClose: t,
216
+ ...r
217
+ }) {
218
+ const [a, i] = p(!1), o = y();
219
+ if (T(() => (i(!0), () => i(!1)), []), !a || typeof window > "u")
220
+ return null;
221
+ const s = {
222
+ onClose: t,
223
+ ...r
224
+ };
225
+ return o ? /* @__PURE__ */ e(
226
+ U,
227
+ {
228
+ open: !0,
229
+ onOpenChange: (M) => !M && t(),
230
+ children: /* @__PURE__ */ n(Y, { className: "z-9999", children: [
231
+ /* @__PURE__ */ e(W, { className: "sr-only", children: "Connect Wallet" }),
232
+ /* @__PURE__ */ e(Q, { className: "sr-only", children: "Securely connect your wallet to transfer digital assets to and from the Movement network." }),
233
+ /* @__PURE__ */ e(x, { ...s, showCloseButton: !1 })
234
+ ] })
235
+ }
236
+ ) : /* @__PURE__ */ e(
237
+ L,
238
+ {
239
+ open: !0,
240
+ onOpenChange: (M) => !M && t(),
241
+ children: /* @__PURE__ */ n(
242
+ v,
243
+ {
244
+ showCloseButton: !1,
245
+ className: "border-0 bg-transparent p-0",
246
+ children: [
247
+ /* @__PURE__ */ e(E, { className: "sr-only", children: "Connect Wallet" }),
248
+ /* @__PURE__ */ e(k, { className: "sr-only", children: "Securely connect your wallet to transfer digital assets to and from the Movement network." }),
249
+ /* @__PURE__ */ e(x, { ...s })
250
+ ]
251
+ }
252
+ )
253
+ }
254
+ );
255
+ }
256
+ const j = (t) => /* @__PURE__ */ n("div", { className: "group/wallet relative h-28 w-28 cursor-pointer rounded-lg backdrop-blur-[1.3125rem] transition-shadow duration-200 ease-in-out hover:shadow-[0.25rem_0.25rem_0_hsl(var(--primary))]", children: [
257
+ /* @__PURE__ */ e("div", { className: "absolute inset-0 rounded-lg bg-linear-to-br from-white/[0.096] to-transparent backdrop-blur-[1.3125rem] group-hover/wallet:from-white/40" }),
258
+ /* @__PURE__ */ e("div", { className: "absolute top-1/2 left-1/2 flex h-20.5 w-20.5 -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center gap-2 p-0", children: t })
259
+ ] });
260
+ function f({ wallet: t, onConnect: r }) {
261
+ return O(t) ? /* @__PURE__ */ e(c, { wallet: t, onConnect: r, children: /* @__PURE__ */ e("div", { className: "cursor-default border-none bg-transparent p-0", children: j(
262
+ /* @__PURE__ */ n(d, { children: [
263
+ /* @__PURE__ */ e("div", { className: "h-14 w-14", children: /* @__PURE__ */ e(c.Icon, { className: "h-full w-full" }) }),
264
+ /* @__PURE__ */ e("div", { className: "flex h-4.5 w-20.5 items-center justify-center text-center font-['TWK_Everett_Mono',monospace] text-lg leading-[100%] font-normal tracking-[-0.06em] text-white", children: h(t.name) }),
265
+ /* @__PURE__ */ e("div", { className: "absolute top-[-1rem] left-1/2 z-9999 hidden h-5 w-28 -translate-x-1/2 items-center justify-center overflow-hidden rounded-t-lg bg-primary/80 group-hover/wallet:inline-flex", children: /* @__PURE__ */ e("span", { className: "font-['TWK_Everett_Mono',monospace] text-xs leading-[14px] font-bold tracking-[0.40px] text-secondary uppercase", children: "INSTALL" }) })
266
+ ] })
267
+ ) }) }) : /* @__PURE__ */ e(c, { wallet: t, onConnect: r, children: /* @__PURE__ */ e(c.ConnectButton, { asChild: !0, children: /* @__PURE__ */ n("button", { className: "relative cursor-pointer border-none bg-transparent p-0", children: [
268
+ j(
269
+ /* @__PURE__ */ n(d, { children: [
270
+ /* @__PURE__ */ e("div", { className: "h-14 w-14", children: /* @__PURE__ */ e(c.Icon, { className: "h-full w-full" }) }),
271
+ /* @__PURE__ */ e("div", { className: "flex h-4.5 w-20.5 items-center justify-center text-center font-['TWK_Everett_Mono',monospace] text-lg leading-[100%] font-normal tracking-[-0.06em] text-white", children: h(t.name) })
272
+ ] })
273
+ ),
274
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute bottom-[-0.5rem] left-1/2 -translate-x-1/2 text-xs whitespace-nowrap text-white/60 opacity-0 transition-opacity duration-200 ease-in-out hover:opacity-100", children: "Click to connect" })
275
+ ] }) }) });
276
+ }
277
+ export {
278
+ X as WalletModal
279
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moveindustries/movement-design-system",
3
3
  "private": false,
4
- "version": "1.1.0",
4
+ "version": "1.1.3",
5
5
  "type": "module",
6
6
  "description": "Production-ready design system built with shadcn/ui components, Radix UI, and Tailwind CSS for Move Industries",
7
7
  "keywords": [
@@ -43,6 +43,46 @@
43
43
  "default": "./dist/index.cjs"
44
44
  }
45
45
  },
46
+ "./carousel": {
47
+ "import": {
48
+ "types": "./dist/carousel.d.ts",
49
+ "default": "./dist/carousel.js"
50
+ },
51
+ "require": {
52
+ "types": "./dist/carousel.d.ts",
53
+ "default": "./dist/carousel.cjs"
54
+ }
55
+ },
56
+ "./forms": {
57
+ "import": {
58
+ "types": "./dist/forms.d.ts",
59
+ "default": "./dist/forms.js"
60
+ },
61
+ "require": {
62
+ "types": "./dist/forms.d.ts",
63
+ "default": "./dist/forms.cjs"
64
+ }
65
+ },
66
+ "./drawer": {
67
+ "import": {
68
+ "types": "./dist/drawer.d.ts",
69
+ "default": "./dist/drawer.js"
70
+ },
71
+ "require": {
72
+ "types": "./dist/drawer.d.ts",
73
+ "default": "./dist/drawer.cjs"
74
+ }
75
+ },
76
+ "./wallet": {
77
+ "import": {
78
+ "types": "./dist/wallet.d.ts",
79
+ "default": "./dist/wallet.js"
80
+ },
81
+ "require": {
82
+ "types": "./dist/wallet.d.ts",
83
+ "default": "./dist/wallet.cjs"
84
+ }
85
+ },
46
86
  "./component-styles": "./dist/movement-design-system.css",
47
87
  "./theme": "./dist/theme.css",
48
88
  "./fonts": "./dist/fonts.css"
@@ -63,7 +103,6 @@
63
103
  "prepare": "pnpm run build"
64
104
  },
65
105
  "peerDependencies": {
66
- "@hookform/resolvers": "^5.0.0",
67
106
  "@phosphor-icons/react": "^2.0.0",
68
107
  "@radix-ui/react-accordion": "^1.0.0",
69
108
  "@radix-ui/react-alert-dialog": "^1.0.0",
@@ -91,42 +130,24 @@
91
130
  "@radix-ui/react-toggle": "^1.0.0",
92
131
  "@radix-ui/react-toggle-group": "^1.0.0",
93
132
  "@radix-ui/react-tooltip": "^1.0.0",
94
- "cmdk": "^1.0.0",
95
- "date-fns": "^4.0.0",
96
- "embla-carousel-react": "^8.0.0",
97
- "input-otp": "^1.0.0",
98
133
  "lucide-react": "^0.500.0",
99
134
  "next-themes": "^0.4.0",
100
135
  "react": "^18.0.0 || ^19.0.0",
101
- "react-day-picker": "^9.0.0",
102
136
  "react-dom": "^18.0.0 || ^19.0.0",
103
- "react-hook-form": "^7.0.0",
104
- "react-resizable-panels": "^3.0.0",
105
- "recharts": "^2.0.0",
106
137
  "sonner": "^2.0.0",
107
138
  "tailwindcss": "^4.0.0",
108
- "vaul": "^1.0.0",
109
- "zod": "^4.0.0",
110
139
  "@moveindustries/wallet-adapter-react": "^7.0.0"
111
140
  },
112
141
  "peerDependenciesMeta": {
113
- "recharts": { "optional": true },
114
- "react-day-picker": { "optional": true },
115
- "date-fns": { "optional": true },
116
- "cmdk": { "optional": true },
117
- "embla-carousel-react": { "optional": true },
118
- "input-otp": { "optional": true },
119
- "react-hook-form": { "optional": true },
120
- "@hookform/resolvers": { "optional": true },
121
- "zod": { "optional": true },
122
- "react-resizable-panels": { "optional": true },
123
- "vaul": { "optional": true },
124
142
  "@moveindustries/wallet-adapter-react": { "optional": true }
125
143
  },
126
144
  "dependencies": {
127
145
  "class-variance-authority": "^0.7.1",
128
146
  "clsx": "^2.1.1",
129
- "tailwind-merge": "^3.3.1"
147
+ "tailwind-merge": "^3.3.1",
148
+ "embla-carousel-react": "^8.6.0",
149
+ "react-hook-form": "^7.65.0",
150
+ "vaul": "^1.1.2"
130
151
  },
131
152
  "devDependencies": {
132
153
  "@moveindustries/wallet-adapter-react": "^7.4.1",