@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
52 lines (46 loc) • 2.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledTooltipItemText = exports.StyledTooltipItemImage = exports.StyledTooltipItemHeadline = exports.StyledTooltipItemButtonWrapper = exports.StyledTooltipItem = 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 StyledTooltipItem = exports.StyledTooltipItem = _styledComponents.default.div`
padding: 5px;
width: ${({
$width
}) => $width ? `${$width}px` : '100%'};
${({
$maxWidth
}) => $maxWidth && (0, _styledComponents.css)`
max-width: ${$maxWidth}px;
`}
${({
$width
}) => $width && (0, _styledComponents.css)`
width: ${$width};
`}
`;
const StyledTooltipItemHeadline = exports.StyledTooltipItemHeadline = _styledComponents.default.h5`
color: ${({
theme
}) => theme.headline};
margin: 0;
word-break: break-word;
overflow-wrap: anywhere;
width: 100%;
`;
const StyledTooltipItemImage = exports.StyledTooltipItemImage = _styledComponents.default.img``;
const StyledTooltipItemButtonWrapper = exports.StyledTooltipItemButtonWrapper = _styledComponents.default.div`
display: flex;
justify-content: center;
`;
const StyledTooltipItemText = exports.StyledTooltipItemText = _styledComponents.default.p`
color: ${({
theme
}) => theme.text};
word-break: break-word;
overflow-wrap: anywhere;
width: 100%;
`;
//# sourceMappingURL=TooltipItem.styles.js.map