UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

65 lines (62 loc) 1.53 kB
import { keyframes, css } from 'styled-components'; import styled from '../../../styles/styled/index.js'; const WalletItem = styled.button` text-align: center; transition: opacity 100ms ease; opacity: ${(props) => props.$waiting ? 0.4 : 1}; background: transparent; `; const WalletIcon = styled.div` z-index: 9; position: relative; margin: 0 auto 10px; border-radius: 16px; width: 60px; height: 60px; overflow: hidden; background: rgba(0, 0, 0, 0.04); ${(props) => props.$outline && ` &:before { content: ''; z-index: 2; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--ck-body-background-tertiary); }`} svg { display: block; position: relative; width: 100%; height: auto; } `; const WalletLabel = styled.div` color: var(--ck-body-color); font-size: 13px; line-height: 15px; font-weight: 500; opacity: 0.75; `; const PulseKeyframes = keyframes` 0%,100% { opacity:1; } 50% { opacity:0.5; } `; const WalletList = styled.div` display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 8px; margin: 0 -10px; padding: 4px 0 0; transition: opacity 300ms ease; ${(props) => props.$disabled && css` pointer-events: none; opacity: 0.4; ${WalletItem} { animation: ${PulseKeyframes} 1s infinite ease-in-out; } `} `; const Container = styled.div``; export { Container, WalletIcon, WalletItem, WalletLabel, WalletList }; //# sourceMappingURL=styles.js.map