1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _templateObject = _taggedTemplateLiteral(['\n position: relative;\n\n width: calc(100% + (2 * ', '));\n margin-left: -', ';\n margin-top: ', ';\n margin-bottom: ', ';\n padding: ', ' ', ';\n'], ['\n position: relative;\n\n width: calc(100% + (2 * ', '));\n margin-left: -', ';\n margin-top: ', ';\n margin-bottom: ', ';\n padding: ', ' ', ';\n']);
|
8 |
|
9 | var _styledComponents = require('styled-components');
|
10 |
|
11 | var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
12 |
|
13 | var _react = require('react');
|
14 |
|
15 | var _react2 = _interopRequireDefault(_react);
|
16 |
|
17 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
18 |
|
19 | function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
20 |
|
21 | function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
22 |
|
23 | var Container = _styledComponents2.default.div(_templateObject, function (props) {
|
24 | return props.theme.spacing.medium;
|
25 | }, function (props) {
|
26 | return props.theme.spacing.medium;
|
27 | }, function (props) {
|
28 | return props.theme.spacing.medium;
|
29 | }, function (props) {
|
30 | return props.theme.spacing.medium;
|
31 | }, function (props) {
|
32 | return props.theme.spacing.medium;
|
33 | }, function (props) {
|
34 | return props.theme.spacing.medium;
|
35 | });
|
36 |
|
37 | var CardInset = function CardInset(_ref) {
|
38 | var children = _ref.children,
|
39 | other = _objectWithoutProperties(_ref, ['children']);
|
40 |
|
41 | return _react2.default.createElement(
|
42 | Container,
|
43 | other,
|
44 | children
|
45 | );
|
46 | };
|
47 |
|
48 | CardInset.propTypes = {
|
49 | children: _react.PropTypes.node
|
50 | };
|
51 |
|
52 | exports.default = CardInset; |
\ | No newline at end of file |