@kiwicom/orbit-components
Version:
<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"
49 lines (35 loc) • 1.61 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledCardSection = undefined;
var _react = require("react");
var React = _interopRequireWildcard(_react);
var _styledComponents = require("styled-components");
var _styledComponents2 = _interopRequireDefault(_styledComponents);
var _defaultTokens = require("../../defaultTokens");
var _defaultTokens2 = _interopRequireDefault(_defaultTokens);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
var StyledCardSection = exports.StyledCardSection = _styledComponents2.default.div.withConfig({
displayName: "CardSection__StyledCardSection"
})(["width:100%;padding:", ";box-sizing:border-box;border-top:", ";&:first-of-type{border:0;}"], function (_ref) {
var theme = _ref.theme;
return theme.orbit.spaceLarge;
}, function (_ref2) {
var theme = _ref2.theme;
return theme.orbit.borderWidthCard + " " + theme.orbit.borderStyleCard + " " + theme.orbit.borderColorCard;
});
StyledCardSection.defaultProps = {
theme: _defaultTokens2.default
};
var CardSection = function CardSection(_ref3) {
var children = _ref3.children,
dataTest = _ref3.dataTest;
return React.createElement(
StyledCardSection,
{ "data-test": dataTest },
children
);
};
exports.default = CardSection;