@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.
36 lines (34 loc) • 1.41 kB
JavaScript
import styled, { css } from "styled-components";
import * as React from "react";
import defaultTheme from "../../../defaultTheme";
import transition from "../../../utils/transition";
export var StyledButtonPrimitiveIconContainer = styled(function (_ref) {
var className = _ref.className,
children = _ref.children;
return /*#__PURE__*/React.createElement("div", {
className: className
}, children);
}).withConfig({
displayName: "ButtonPrimitiveIconContainer__StyledButtonPrimitiveIconContainer",
componentId: "sc-8i4s5r-0"
})(["", ""], function (_ref2) {
var margin = _ref2.margin,
width = _ref2.width,
height = _ref2.height;
return css(["display:flex;flex-direction:row;align-items:center;justify-content:center;margin:", ";color:currentColor;transition:", ";> svg{width:", ";height:", ";}"], margin, transition(["background", "box-shadow", "color"], "fast", "ease-in-out"), width, height);
});
StyledButtonPrimitiveIconContainer.defaultProps = {
theme: defaultTheme
};
var ButtonPrimitiveIconContainer = function ButtonPrimitiveIconContainer(_ref3) {
var margin = _ref3.margin,
width = _ref3.width,
height = _ref3.height,
children = _ref3.children;
return /*#__PURE__*/React.createElement(StyledButtonPrimitiveIconContainer, {
margin: margin,
width: width,
height: height
}, children);
};
export default ButtonPrimitiveIconContainer;