@particle-network/connectkit
Version:
134 lines (125 loc) • 3.02 kB
JavaScript
"use client";
import {
__esm
} from "./chunk-Y7A564BU.mjs";
// src/components/wallets/styles.ts
import { motion } from "framer-motion";
import { styled } from "styled-components";
var WalletsContainer, WalletIconContainer, WalletLable, ForwardContainer, WalletItem;
var init_styles = __esm({
"src/components/wallets/styles.ts"() {
"use strict";
WalletsContainer = styled(motion.div)`
width: 100%;
display: flex;
flex-direction: column;
gap: 16px;
`;
WalletIconContainer = styled(motion.div)`
height: 22px;
width: 22px;
border-radius: 6px;
overflow: hidden;
svg {
width: 100%;
height: 100%;
}
`;
WalletLable = styled(motion.div)`
position: absolute;
margin: auto 16px;
right: 0;
height: 25px;
background: ${(props) => props.$customLable ? "var(--pcm-wallet-lable-background)" : "var(--pcm-body-background-secondary)"};
color: ${(props) => props.$customLable ? "var(--pcm-wallet-lable-color)" : "var(--pcm-body-color-secondary)"};
font-size: 12px;
font-weight: 300;
text-align: center;
line-height: 25px;
padding: 0 10px 0 21px;
border-radius: 25px;
max-width: 40%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition-property: opacity, transform;
opacity: 1;
transition-duration: 200ms;
&:before {
content: '';
position: absolute;
height: 7px;
width: 7px;
background: ${(props) => props.$customLable ? "var(--pcm-wallet-lable-color)" : "var(--pcm-accent-color)"};
border-radius: 50%;
top: 9px;
left: 10px;
}
`;
ForwardContainer = styled(motion.div)`
margin: auto 0;
position: absolute;
right: 26px;
opacity: 0;
transition-property: opacity, transform;
transition-duration: 200ms;
color: var(--pcm-body-color);
`;
WalletItem = styled(motion.div)`
width: 100%;
height: 47px;
border: 1px solid var(--pcm-button-border-color);
cursor: pointer;
display: flex;
align-items: center;
padding: 0 16px;
border-radius: var(--pcm-rounded-lg);
gap: 12px;
position: relative;
user-select: none;
@media only screen and (min-width: 560px) {
&:hover {
box-shadow: var(--pcm-button-hover-shadow);
${WalletLable} {
opacity: 0;
transform: translateX(-15px);
}
${ForwardContainer} {
opacity: 1;
transform: translateX(10px);
}
}
}
@media only screen and (max-width: 560px) {
&:hover:active {
box-shadow: var(--pcm-button-hover-shadow);
${WalletLable} {
opacity: 0;
transform: translateX(-15px);
}
${ForwardContainer} {
opacity: 1;
transform: translateX(10px);
}
}
}
&.all-wallets-btn {
background: var(--pcm-body-background-secondary);
border: none;
font-weight: 500;
&:hover {
box-shadow: none;
}
}
`;
}
});
export {
WalletsContainer,
WalletIconContainer,
WalletLable,
ForwardContainer,
WalletItem,
init_styles
};
//# sourceMappingURL=chunk-AHPYJJP6.mjs.map