@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
58 lines (53 loc) • 2.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledSearchBoxItemText = exports.StyledSearchBoxItemImage = exports.StyledSearchBoxItem = 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 StyledSearchBoxItem = exports.StyledSearchBoxItem = _styledComponents.default.div`
display: flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
&:hover {
background: ${({
theme
}) => theme['secondary-102']};
}
&[tabindex='0'] {
background: ${({
theme
}) => theme['secondary-102']};
}
`;
const StyledSearchBoxItemImage = exports.StyledSearchBoxItemImage = _styledComponents.default.img`
box-shadow: 0 0 0 1px
rgba(${({
theme
}) => theme['009-rgb']}, 0.15);
height: 22px;
width: 22px;
${({
$shouldShowRoundImage
}) => $shouldShowRoundImage && (0, _styledComponents.css)`
border-radius: 50%;
`}
`;
const StyledSearchBoxItemText = exports.StyledSearchBoxItemText = _styledComponents.default.p`
color: ${({
theme
}) => theme.text};
font-size: ${({
$shouldShowSmallItems
}) => $shouldShowSmallItems ? '14px' : undefined};
margin: ${({
$shouldShowSmallItems
}) => $shouldShowSmallItems ? '0 !important' : '5px 0 !important'};
b {
color: ${({
theme
}) => theme.headline};
}
`;
//# sourceMappingURL=SearchBoxItem.styles.js.map