@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
68 lines (65 loc) • 2.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledMentionFinderItemImage = exports.StyledMentionFinderItemContentName = exports.StyledMentionFinderItemContentInfo = exports.StyledMentionFinderItemContent = exports.StyledMentionFinderItem = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
const StyledMentionFinderItem = exports.StyledMentionFinderItem = _styledComponents.default.div`
align-items: center;
cursor: pointer;
display: flex;
padding: 10px 8px;
&:not(:last-child) {
border-bottom: 1px solid
rgba(${({
theme
}) => theme['text-rgb']}, 0.15);
}
${({
$isActive,
theme
}) => $isActive && (0, _styledComponents.css)`
background-color: ${theme['102']} !important;
`}
`;
const StyledMentionFinderItemImage = exports.StyledMentionFinderItemImage = _styledComponents.default.img`
background-color: rgba(
${({
theme
}) => theme['text-rgb']},
0.1
);
border-radius: ${({
$shouldShowRoundImage
}) => $shouldShowRoundImage ? '50%' : 'initial'};
box-shadow: 0 0 0 1px
rgba(${({
theme
}) => theme['009-rgb']}, 0.08) inset;
flex: 0 0 auto;
height: 40px;
object-fit: cover;
overflow: hidden;
transition: border-radius 0.3s ease;
width: 40px;
`;
const StyledMentionFinderItemContent = exports.StyledMentionFinderItemContent = _styledComponents.default.div`
color: ${({
theme
}) => theme.text};
display: flex;
flex: 1 1 auto;
flex-direction: column;
justify-content: center;
line-height: normal;
margin-left: 10px;
min-width: 0;
`;
const StyledMentionFinderItemContentName = exports.StyledMentionFinderItemContentName = _styledComponents.default.div``;
const StyledMentionFinderItemContentInfo = exports.StyledMentionFinderItemContentInfo = _styledComponents.default.div`
font-size: 85%;
margin-top: 2px;
opacity: 0.75;
`;
//# sourceMappingURL=MentionFinderItem.styles.js.map