UNPKG

@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.

23 lines (19 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _styledComponents = require("styled-components"); var tooltipArrowStyle = function tooltipArrowStyle(_ref) { var position = _ref.position, theme = _ref.theme; var arrows = { top: (0, _styledComponents.css)(["border-width:7px 7px 0 7px;border-color:", " transparent transparent transparent;"], theme.orbit.paletteBlueDark), right: (0, _styledComponents.css)(["border-width:7px 7px 7px 0;border-color:transparent ", " transparent transparent;"], theme.orbit.paletteBlueDark), left: (0, _styledComponents.css)(["border-width:7px 0 7px 7px;border-color:transparent transparent transparent ", ";"], theme.orbit.paletteBlueDark), bottom: (0, _styledComponents.css)(["border-width:0 7px 7px 7px;border-color:transparent transparent ", " transparent;"], theme.orbit.paletteBlueDark) }; return arrows[position]; }; var _default = tooltipArrowStyle; exports.default = _default;