@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
21 lines (16 loc) • 597 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var tooltipPadding = function tooltipPadding(_ref) {
var contentHeight = _ref.contentHeight,
theme = _ref.theme;
// one-line text should have smaller top/bottom padding
if (contentHeight <= Math.floor(parseFloat(theme.orbit.lineHeightTextNormal))) {
return "".concat(theme.orbit.spaceXSmall, " ").concat(theme.orbit.spaceSmall); // TODO: create token
}
return theme.orbit.spaceSmall; // TODO: create token
};
var _default = tooltipPadding;
exports.default = _default;