UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

94 lines (88 loc) 1.9 kB
import{styled as o,keyframes as i}from"styled-components";import{d as t}from"./ModalHeader-BnVmXtvG.mjs";import{LinkButton as r}from"./LinkPasskeyScreen-DmtRo8xi.mjs";const e=o.div` display: flex; flex-direction: column; gap: 12px; padding-top: 24px; padding-bottom: 24px; `,n=o.div` width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; svg { border-radius: var(--privy-border-radius-sm); } `,a=o.div` display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; `,p=o.div` display: flex; align-items: center; gap: 4px; width: 100%; padding: 0 16px; border-width: 1px !important; border-radius: 12px; cursor: text; &:focus-within { border-color: var(--privy-color-accent); } `;o.div` font-size: 42px !important; `;const s=o.input` background-color: var(--privy-color-background); width: 100%; &:focus { outline: none !important; border: none !important; box-shadow: none !important; } && { font-size: 26px; } `,d=o(s)` && { font-size: 42px; } `;o.button` cursor: pointer; padding-left: 4px; `;const c=o.div` font-size: 18px; `,l=o.div` font-size: 12px; color: var(--privy-color-foreground-3); // we need this container to maintain a static height if there's no content height: 20px; `;o.div` display: flex; flex-direction: row; line-height: 22px; font-size: 16px; text-align: center; svg { margin-right: 6px; margin: auto; } `,o(r)` margin-top: 16px; `;let x=i` from { opacity: 0; } to { opacity: 1; } `;o(t)` border-radius: var(--privy-border-radius-md) !important; animation: ${x} 0.3s ease-in-out; `;const m=o.div``,f=o.a` && { color: var(--privy-color-accent); } cursor: pointer; `;export{a as F,n as I,p as a,s as b,c,l as d,e,m as f,f as g,d as h};