@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.
34 lines (27 loc) • 1.08 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _defaultTheme = _interopRequireDefault(require("../../../defaultTheme"));
var StyledIconWrapper = _styledComponents.default.div.withConfig({
displayName: "StyledIconWrapper",
componentId: "mynjos-0"
})(["min-width:", ";min-height:", ";z-index:1;text-align:center;line-height:", ";"], function (_ref) {
var theme = _ref.theme,
mobile = _ref.mobile;
return mobile && theme.orbit.spaceLarge;
}, function (_ref2) {
var theme = _ref2.theme;
return theme.orbit.spaceLarge;
}, function (_ref3) {
var theme = _ref3.theme;
return theme.orbit.lineHeightText;
}); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198
StyledIconWrapper.defaultProps = {
theme: _defaultTheme.default
};
var _default = StyledIconWrapper;
exports.default = _default;