UNPKG

@daimo/pay

Version:

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

82 lines (78 loc) 1.95 kB
import { motion } from 'framer-motion'; import styled from '../../../styles/styled/index.js'; const TooltipWindow = styled(motion.div)` z-index: 2147483647; position: fixed; inset: 0; pointer-events: none; `; const TooltipContainer = styled(motion.div)` --shadow: var(--ck-tooltip-shadow); z-index: 2147483647; position: absolute; top: 0; left: 0; display: flex; gap: 8px; width: fit-content; align-items: center; justify-content: center; border-radius: var( --ck-tooltip-border-radius, ${(props) => props.$size === "small" ? 11 : 14}px ); border-radius:; padding: 10px 16px 10px 12px; font-size: 14px; line-height: 19px; font-weight: 500; letter-spacing: -0.1px; color: var(--ck-tooltip-color); background: var(--ck-tooltip-background); box-shadow: var(--shadow); > span { z-index: 3; position: relative; } > div { margin: -4px 0; // offset for icon } strong { color: var(--ck-spinner-color); } .ck-tt-logo { display: inline-block; vertical-align: text-bottom; height: 1em; width: 1.25em; svg { display: block; height: 100%; transform: translate(0.5px, -1px) scale(1.75); } } `; const TooltipTail = styled(motion.div)` z-index: 2; position: absolute; display: flex; align-items: center; justify-content: center; width: ${(props) => props.$size === "small" ? 14 : 18}px; right: 100%; top: 0; bottom: 0; overflow: hidden; &:before { content: ""; position: absolute; box-shadow: var(--shadow); width: ${(props) => props.$size === "small" ? 14 : 18}px; height: ${(props) => props.$size === "small" ? 14 : 18}px; transform: translate(75%, 0) rotate(45deg); background: var(--ck-tooltip-background); border-radius: ${(props) => props.$size === "small" ? 2 : 3}px 0 0 0; } `; export { TooltipContainer, TooltipTail, TooltipWindow }; //# sourceMappingURL=styles.js.map